Localisation crash [crash fixed, translations still funky]
baysupercool opened this issue · 26 comments
Minecraft version: 1.16.5
Forge version: 36.2.2
UMC version: 1.1.0
TrackAPI version: 1.2.1
Immersive Railroading version: 1.9.0
Expected result: Game launches successfully
Actual result: java.lang.ExceptionInInitializerError: null
Reproducing:
- This crash is only reproducible with certain languages (in my case Turkish), set the computer language to one of these
- Launch the game
- See the error screen
The crash report points to UMC but loading UMC alone doesn't crash, hence why I reported here.
Interesting:
Exception message: net.minecraft.util.ResourceLocationException: Non [a-z0-9/._-] character in path of location: forge:barsıron
Game still crashes with error java.lang.ExceptionInInitializerError but this time exception message is:
Exception message: net.minecraft.util.ResourceLocationException: Non [a-z0-9/._-] character in path of location: immersiverailroading:raıl
Can you post the generated universalmodcore.cfg file?
Thanks for your patience and help debugging!
Ok so I deleted the config files and let them regenerate. Game launches fine for the first time.
Log for the first time:
first log.log
But when I try to launch the game for the second time I get an error saying that UMC cannot read the config file.
crash-2021-08-02_22.59.37-fml.txt
latest.log
Ok, I had fixed all of the toLowerCase, missed a toUpperCase.
Here's the build: https://teamopenindustry.cc/maven/cam72cam/universalmodcore/UniversalModCore/1.16.5-forge-1.1.1-0adb54/UniversalModCore-1.16.5-forge-1.1.1-0adb54.jar
You will need to remove the universalmodcore.cfg again
This build doesn't crash!!!
There are missing names for some items, though. Which are:
Firebox
Piping
Boiler segment
Boiler
Whistle
Eccentric rod
Eccentric crank
Main rod
Side rod etc.
Basically anything with the letter "i" in it.
Other than that everything seems fine.
Ok, cool. I'll include this in the next UMC release and will also fix it in ImmersiveRailroading, though I may not release the IR changes as soon.
Would you also mind testing https://teamopenindustry.cc/maven/cam72cam/universalmodcore/UniversalModCore/1.16.5-forge-1.1.1-95742a/UniversalModCore-1.16.5-forge-1.1.1-95742a.jar and https://teamopenindustry.cc/maven/cam72cam/immersiverailroading/ImmersiveRailroading/1.16.5-forge-1.9.0-e316fb/ImmersiveRailroading-1.16.5-forge-1.9.0-e316fb.jar ?
I got the same crash at the first post.
latest.log
crash-2021-08-03_10.50.49-fml.txt
Sorry, I messed up the last build. Try this one: https://teamopenindustry.cc/maven/cam72cam/universalmodcore/UniversalModCore/1.16.5-forge-1.1.1-af1c64/UniversalModCore-1.16.5-forge-1.1.1-af1c64.jar
Whenever I try to create a new world I get an error saying:
Errors in currently selected datapacks prevent the world from loading. You can either try to load it with only the vanilla datapack ("safe mode"), or go back to the title screen and fix it manually.
yeah, I think that's because I don't have any turkish translations provided for IR?
That is quite strange, I set my local minecraft to TR and the IR translations came through in english as expected.
I mean mods default to English translations when they don't have translations for the selected language
I set my minecraft language to EN and there are still missing names, only names that are not missing are the rolling stock.
latest.log
I'm going to need to change my system language and test this more over the coming days.
Turkish has special rules with regard to i's, definitely seems like there's an issue with Locales. https://stackoverflow.com/questions/10336730/which-locale-should-i-specify-when-i-call-stringtolowercase, http://www.java2s.com/Tutorials/Java/java.util/Locale/Java_Locale_ROOT.htm