Open Chezzik opened 3 years ago
This error is repeatable for me. It happens every time I try to launch the pack. The array index changes each time, but it always fails in the same location. Another log, for example:
Time: 1/20/21 8:24 AM
Description: Initializing game
java.lang.ArrayIndexOutOfBoundsException: -1
at com.tfar.extraanvils.generic.BlockGenericAnvil.stringToRainbow(BlockGenericAnvil.java:244)
at com.tfar.extraanvils.generic.BlockGenericAnvil.func_190948_a(BlockGenericAnvil.java:220)
at net.minecraft.item.ItemBlock.func_77624_a(ItemBlock.java:157)
at net.minecraft.item.ItemStack.func_82840_a(ItemStack.java:707)
I should probably update Glacial Awakening soon, which could possibly things for you, but until then you can remove Extra Anvils and that should stop the crash.
For some reason, I thought that this mod was integral to progression in the pack. In any case, I tried disabling that mod, and it runs fine, and I was able to create a world and enter it.
I really can't understand why I'm hitting this error and no one else is. I have Java 8, and run plenty of modpacks, and don't ever hit strange issues that affect me only.
It seems the error the code makes is assuming that the output of some function is a positive integer, but it seems to be a negative integer output for me:
public static String stringToRainbow(String parString) {
int stringLength = parString.length();
if (stringLength < 1)
return "";
StringBuilder outputString = new StringBuilder();
TextFormatting[] colorChar = { TextFormatting.RED, TextFormatting.GOLD, TextFormatting.YELLOW, TextFormatting.GREEN, TextFormatting.AQUA, TextFormatting.BLUE, TextFormatting.DARK_PURPLE, TextFormatting.LIGHT_PURPLE };
for (int i = 0; i < stringLength; i++)
outputString.append(colorChar[(i + (int)(Minecraft.func_71386_F() / 50L)) % 8]).append(parString, i, i + 1);
return outputString.toString();
}
The outputString.append()
line is the one that one that crashes. Clearly the array index should be between 0 and 7, and it will be as long as Minecraft.func_713886_F()
returns any non-negative integer. I can't find anything that says exactly what that function does, but the stack shows that this is being called from a function that puts tooltips on items.
I found another mod that calls this function while doing stuff with advancements, maybe it's related to that? I'm really confused by it.
I'm also having this same exact issue, I'm on an m1 Macbook but the error is exactly the same, it works fine on my windows machine.
I'm also having this same exact issue, I'm on an m1 Macbook but the error is exactly the same, it works fine on my windows machine.
For now, just disable it- it is not key to progression. I'll upload a script shortly that you can upload to your /scripts/ folder, it will replace all the removed anvil recipes with working ones
extraanvils.txt
Okay nevermind, it doesn't like me uploading .zs files-- put it in your /scripts/ folder (within the Glacial Awakening instance; can be gotten to by going into your resource packs folder and going up a directory), and rename it to extraanvils.zs
I'm using MultiMC on Linux with Java 8. I tried uninstalling the whole pack and reinstalling with no extra mods, and it still crashes when I first start it up. Here's the relevant part of the crash log: