Giter VIP home page Giter VIP logo

Comments (26)

oierbravo avatar oierbravo commented on August 14, 2024 1

thx!

from createsifter.

vishtheshnu avatar vishtheshnu commented on August 14, 2024

I created a new world and the KubeJS scripts began working there. I namely copied over the waterlogged example and that that works fine, even when I remove .waterlogged().

from createsifter.

vishtheshnu avatar vishtheshnu commented on August 14, 2024

The same script throws these same errors when I restart the game, even when it was working perfectly fine and created the desired effect beforehand.

from createsifter.

vishtheshnu avatar vishtheshnu commented on August 14, 2024

Updated to createsifter 1.19.2-1.7.0.c-36 and the problem still persists

from createsifter.

oierbravo avatar oierbravo commented on August 14, 2024

You have to use the KubeJS 6.1 example for the 1.19.2 version of the mod.

from createsifter.

vishtheshnu avatar vishtheshnu commented on August 14, 2024

Yup, I used the KubeJS 6.1 example and it's also throwing that error. Specifically the following is a basic example of a line that causes the same error:
event.recipes.createsifterSifting([Item.of('minecraft:clay').withChance(0.5)], ['minecraft:sand','createsifter:string_mesh'])

I also went through my logs, and I found these relevant lines:

[04Aug2023 16:07:41.626] [main/WARN] [mixin/]: Reference map 'createsifter.refmap.json' for createsifter.mixins.json could not be read. If this is a development environment you can ignore this message
...
[04Aug2023 16:07:47.398] [modloading-worker-0/ERROR] [KubeJS/]: Failed to load plugin com.oierbravo.createsifter.compat.kubejs.KubeJSCreatesifterPlugin from source createsifter: java.lang.ExceptionInInitializerError

from createsifter.

oierbravo avatar oierbravo commented on August 14, 2024

I'm not able to reproduce the bug with only create, kubejs, kubejs-create and the sifter mod.
Can you plz send the full error mc log? and kubejs server log too.

from createsifter.

vishtheshnu avatar vishtheshnu commented on August 14, 2024

Alright, so something I did while trying to find a fix broke it even further, and I'm going to start from an earlier working version of my pack and build back up from there. I'll let you know later today or tomorrow if I can recreate it as well, and what caused it. Sorry for throwing such a vague error on you, and thank you for the quick response!

from createsifter.

oierbravo avatar oierbravo commented on August 14, 2024

Ok!
Good luck and have fun!

from createsifter.

vishtheshnu avatar vishtheshnu commented on August 14, 2024

Good news, I've figured out how to recreate the issue!

I had the KubeJS scripts set up and working fine, and then I installed the Wooden Hopper mod.
The first startup after installing it worked fine as well, but after closing and loading up the game again, none of the createsifter KubeJS scripts were recognized. This includes the custom mesh creation function which failed on startup, and even after removing that, the custom sifting scripts on server-side scripts.

Removing the mod made it work again, thankfully.

I have no clue what could be causing the issue, or how a mod as simple as Wooden Hoppers could cause this, but I hope this will help you reproduce the issue and figure out what's going on. Thanks!

Other mods I had installed the first time the problem occurred are: Scannable, Pretty Pipes, and JAOPCA. They might not all also be causing this issue, but it's likely at least one of them might have the same behavior as Wooden Hoppers.

from createsifter.

TheosCreation avatar TheosCreation commented on August 14, 2024

its cool that you have found the problem but im having the same issue here and i have around 170 mods and probably will not find the mods causing the problem

from createsifter.

vishtheshnu avatar vishtheshnu commented on August 14, 2024

Update: this behavior is happening now whenever I add any new mod to my modpack. Tree Squat Grow, Simple Graves, etc.

The only cause I can think of is that this only started after I added createsifter kubejs scripts. Going to experiment and see if removing them first helps.

from createsifter.

oierbravo avatar oierbravo commented on August 14, 2024

Hi!
I'm blind without logs (mc and kubejs) and some steps or a way to reproduce the error.

from createsifter.

TheosCreation avatar TheosCreation commented on August 14, 2024

here is my problem
Mc 1.19.2, Create version 0.5.1c, create sifter 1.6.0c or 1.6.1c
after create sifter 1.6.0c version im having kubejs startup issues with the custom meshes
Screenshot 2023-08-07 183829

startup.log
server.log
client.log
modlist.txt

from createsifter.

oierbravo avatar oierbravo commented on August 14, 2024

can you plz send the latest.log and debug.log from minecraft?

from createsifter.

oierbravo avatar oierbravo commented on August 14, 2024

in the server.log I can see:

[18:41:25] [ERROR] ! #3: Error occurred while handling event 'ServerEvents.recipes': TypeError: Cannot find function toJson in object 'minecraft:redstone'. (server_scripts:createsifter.js#3)

you have to use the 6.1 example

from createsifter.

TheosCreation avatar TheosCreation commented on August 14, 2024

in the server.log I can see:

[18:41:25] [ERROR] ! #3: Error occurred while handling event 'ServerEvents.recipes': TypeError: Cannot find function toJson in object 'minecraft:redstone'. (server_scripts:createsifter.js#3)

you have to use the 6.1 example

btw i have errors because i havent updated my server scripts yet

from createsifter.

TheosCreation avatar TheosCreation commented on August 14, 2024

can you plz send the latest.log and debug.log from minecraft?

latest.log
startup.log
and there is no debug log

from createsifter.

oierbravo avatar oierbravo commented on August 14, 2024

plz try with 1.7.0.c-36:

StartupEvents.registry('item', event => {
    event.create("test","createsifter:mesh").displayName("Amethyst mesh")
        .parentModel("createsifter:block/meshes/mesh")
        .texture("createsifter:item/custom_mesh")
        .texture("mesh","kubejs:item/test")
        .texture("frame","kubejs:item/test")
        .texture("particle","kubejs:item/test");
});

texture is invalid as it doesn't exist but the mesh is generated.

from createsifter.

TheosCreation avatar TheosCreation commented on August 14, 2024

client.log
latest.log
and ive made a texture in the file location kubejs\assets\kubejs\textures\item\test.png

from createsifter.

oierbravo avatar oierbravo commented on August 14, 2024

Have you tried with the code above?
It works for me.

I'm not able to reproduce the bug.
Can you plz send me the pack in a zip so I can do more testing.
My discord user is the same. You can find my in the kubejs and create servers.

from createsifter.

TheosCreation avatar TheosCreation commented on August 14, 2024

its late ive added you on discord ill send you a message

from createsifter.

oierbravo avatar oierbravo commented on August 14, 2024

Just uploaded a new version... hope it resolves the issue.

from createsifter.

TheosCreation avatar TheosCreation commented on August 14, 2024

yea that seemed to fix the problem

from createsifter.

vishtheshnu avatar vishtheshnu commented on August 14, 2024

So far it's working well! I'll update if anything else comes up, thank you so much!

from createsifter.

oierbravo avatar oierbravo commented on August 14, 2024

Thanks for your patience and time!

from createsifter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.