ModTweaker

ModTweaker

88M Downloads

Railcraft Rockcrusher addRecipie crash

egeis opened this issue · 11 comments

commented

I added the following line to my scripts for railcraft changes. On /mt reload no error messages are presented. Examining the any item in the output list using NEI Integration however causes a crash.

This error also occurs during processing in the rock crusher. The LooseRock is placed in the output fine but when the small ore is randomly added the client crashes. The error is identical to the one posted below.

mods.railcraft.RockCrusher.addRecipe(terrafirmacraft:Gravel:0, false, false,
[terrafirmacraft:item.LooseRock:0,
<terrafirmacraft:item.Small Ore:4>,
<terrafirmacraft:item.Small Ore:1>,
<terrafirmacraft:item.Small Ore:5>,
<terrafirmacraft:item.Small Ore:28>],
[0.5,0.05,0.05,0.05,0.05]);

Pastebin crash log: http://pastebin.com/YjbxEkte

commented

[terrafirmacraft:item.LooseRock:0, , , , ],
shouldn't there be entrys between the commas?

commented

thats funny when i pasted there were entries, let me try again.

Comments are because ive disabled the recipie for now.
//mods.railcraft.RockCrusher.addRecipe(terrafirmacraft:Gravel:0, false, false,
// [terrafirmacraft:item.LooseRock:0,
// <terrafirmacraft:item.Small Ore:4>,
// <terrafirmacraft:item.Small Ore:1>,
// <terrafirmacraft:item.Small Ore:5>,
// <terrafirmacraft:item.Small Ore:28>],
// [0.5,0.05,0.05,0.05,0.05]);

commented

its not pasting properly with the entries, they are "terrafirmacraft:item.Small Ore:#" where # is 4,1,5,28 in that order.

commented

The error i believe is with how the space is handled in the name. Unfortunately some mods using spaces in their names.... All names without spaces in terrafirmacraft work fine in the rock crusher.

commented

Yes that's very likely the problem.
Had the same Problem by some fluids (but a problem from minetweaker not modtweaker).

commented

Minetweaker issue. also mods are NEVER meant to have a space in unloc names. ALSO NEVER USE /MT RELOAD!

commented

They are not meant to but they can do it. Also, it is an issue on MT's end, not the mod's.

commented

Uh no. A mod should NEVER have a dpace in the unlocalized name. That is a
minecraft rule, try /give @A
It WILL fail.

On Wednesday, July 1, 2015, Yulife [email protected] wrote:

They are not meant to but they can do it. Also, it is an issue on MT's
end, not the mod's.


Reply to this email directly or view it on GitHub
#150 (comment)
.

commented

Hm
The given item uses indeed whitespace, according to minetweaker and NEI.
Because i had a similar issue a year ago i asked the devs http://terrafirmacraft.com/f/topic/6433-internal-item-names-with-whitespaces/.

And when I uses this item in vanilla workbench recipe it works.
Confusing.

commented

Yep that is normal, well you mean in code or script? Code =normal script =
something is messed

On Wednesday, July 1, 2015, Tobias Wohlfarth [email protected]
wrote:

Hm
The given item uses indeed whitespace, according to minetweaker and NEI.
Because i had a similar issue a year ago i asked the devs
http://terrafirmacraft.com/f/topic/6433-internal-item-names-with-whitespaces/
.

And when uses this item in vanilla workbench recipe it works.
Confusing.


Reply to this email directly or view it on GitHub
#150 (comment)
.

commented

Hmm, can't reproduce this bug.

Added the command:
mods.railcraft.RockCrusher.addRecipe(<terrafirmacraft:Gravel:0>, false, false, [<terrafirmacraft:item.Small Ore:4>], [1.0]);

Log:
INFO: [ModTweaker2] Adding 1 Railcraft Rock Crusher Recipe(s) for <terrafirmacraft:Gravel>

Working Crusher:
http://imgur.com/hZPQjP0