lilgallon / Bettercolors

⚔️ Minecraft assistance mod built with Forge AND Fabric. For MC 1.8.9, 1.12.2, 1.13.2, 1.14.4, 1.15.2, 1.16.x, 1.17.X, 1.18.X, 1.19.X
Apache License 2.0
39 stars 2 forks source link

1.8.9: crash after start (Linux Ubuntu 20.04) #89

Closed d-513 closed 3 years ago

d-513 commented 3 years ago

Describe the bug:

After launch of minecraft with bettercolors, it shows the menu screen for a split second then crashes with:

The game crashed whilst unexpected error
Error: java.lang.IndexOutOfBoundsException: 260
Exit Code: 255

To Reproduce (or what were you doing when it happened): Installed forge 1.8.9 dropped bettercolors 1.8.9 to mods folder

Screenshots (if applicable): img

Crash log:

https://pastebin.com/raw/8C7pRSUQ

lilgallon commented 3 years ago

Did you use a newer version of Bettercolors in the same minecraft directory? I suspect that the minecraft/config/bc_default.properties file has the toggle key ID of 260 (the one for MC1.16.5 whereas you are using 1.8.9 and it should be 210)

If you want to keep the settings that you are currently using, then:

If you don't care losing your configuration, then:

I will update the mod later on to handle this issue automatically. It's due to the fact that key codes are not the same on different minecraft versions

d-513 commented 3 years ago

Whoops. I already deleted the config foler before reporting the issue, but now that I looked at the mc folder it seems that something really werid happened and the files were named config/ instead being in the config folder. Screenshot attached below

image

What I belive is causing this is the use of \ instead of / in paths. MS uses \ while linux uses /, causing it to not write them to the folder.

After deleting the werid artifacts, the issue is solved. Thanks.

lilgallon commented 3 years ago

Glad that you fixed your issue! It's weird that java doesn't recognize \ properly. I'll try to fix that issue in the next update