CraftTweaker

CraftTweaker

151M Downloads

Since update 4.0.5 for 1.12, Crafttweaker spits out execution error for all of my scrips

NovaViper opened this issue ยท 10 comments

commented

Issue Description:

After updating the mod to 4.0.5, CraftTweaker starts up saying that there was an execution error with all of my scripts whenever I enter my world

What happens:

I get an error like this in my chat and log:

[11:58:41] [main/INFO] [net.spellcraftgaming.lib.gui.override.GuiChatRPGHud/]: [CHAT] ERROR: [crafttweaker]: Error executing {[0:crafttweaker]: Doggy Talents\Recipes\Shaped.zs}: Doggy Talents/Recipes/Shaped
[11:58:41] [main/INFO] [net.spellcraftgaming.lib.gui.override.GuiChatRPGHud/]: [CHAT] ERROR: [crafttweaker]: Error executing {[0:crafttweaker]: Vanilla\Recipes\Smelting.zs}: Vanilla/Recipes/Smelting
[11:58:41] [main/INFO] [net.spellcraftgaming.lib.gui.override.GuiChatRPGHud/]: [CHAT] ERROR: [crafttweaker]: Error executing {[0:crafttweaker]: Doggy Talents\Recipes\Remove.zs}: Doggy Talents/Recipes/Remove
[11:58:41] [main/INFO] [net.spellcraftgaming.lib.gui.override.GuiChatRPGHud/]: [CHAT] ERROR: [crafttweaker]: Error executing {[0:crafttweaker]: Doggy Talents\Recipes\Shaped.zs}: Doggy Talents/Recipes/Shaped
[11:58:41] [main/INFO] [net.spellcraftgaming.lib.gui.override.GuiChatRPGHud/]: [CHAT] ERROR: [crafttweaker]: Error executing {[0:crafttweaker]: Vanilla\Recipes\Smelting.zs}: Vanilla/Recipes/Smelting

What you expected to happen:

Not to get an error at all

Script used: http://pastebin.ubuntu.com/25499035/

Minetweaker.log file: http://pastebin.ubuntu.com/25498997/


Affected Versions (Do not use "latest"):

  • Minecraft: 1.12.1
  • Forge: 14.22.0.2462
  • Crafttweaker: 4.0.5 and 4.0.6

Your most recent log file where the issue was present: http://pastebin.ubuntu.com/25499008/

commented

Just to make sure I understand your scripts correctly, they all are in subfolders, am I correct?
Could you, just for the sake of testing, try putting them all directly in the scripts folder?

commented

They are indeed all within sub folders. And moving them out of the subfolders fixed the issue! But... why would placing them in subfolders mess it up now?

commented

Remove the space in all of your folder names and get back to me please

commented

I don't have spaces in all of the folders, expect for the Doggy Talents folder; yet the Vanilla folder still errors out

commented

Remove the spaces there please

commented

Still getting the errors, the spaces don't seem to matter in the case of the error

commented

I have a fix for that on the way (#322), but for now you can just move the files down one folder layer.
Like only scritps/doggyrecipes/script.zs not /scripts/bla1/bla2/scripts.zs

commented

@BloodWorkXGaming Thanks! I wonder what changed to cause this bug to occur

commented

well, kinda two things, the class name it now creates is the full path, not only the file name.
There is a method that converts the filename -> classname, however in the original implementions which I didn't make supported only one subfolder for whatever reason but I didn't know about that.
Welp, now i updatet it to work with any kind of subfolder complexity and it works again :P

commented

fixed by PR