[Bug]: Creating a non-OTG world with Chinese characters can cause the world to crash when re-entering
Hlwyefeng opened this issue · 3 comments
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
The mod list only contains OTG.
forge14.23.5.2860
When I create a non-OTG world with Chinese characters in the world name, the world is created successfully. However, when I re-enter the world, my game crashes!
Expected Behavior
When I check the config.yaml
for that world, I find that WorldName: "XXX"
has encoding errors. I change the encoding and can re-enter the world normally. However, when I re-enter the world again, it crashes, and the encoding format in config.yaml
is incorrect once more.
Which platforms have you reproduced this issue using?
Forge Single Player
OTG Version
OpenTerrainGenerator-1.12.2-v9.5-R2
Platform Version
1.12.2
Steps To Reproduce
1.Open the Vanilla world creation page, not the OTG page.
2.Change the world name to any Chinese characters, for example: 游戏测试.
3.Create and enter the world, then exit the world normally.
4.Re-enter the world you just created, and you'll find that the game crashes!
5.Sometimes it doesn’t crash, but in 95% of cases, the game crashes.
6.In the save
folder, find the world you just created. Locate the OpenTerrainGenerator
folder within that world, open the config.yaml
file, convert it to ANSI encoding first, then to UTF-8, and save it.
7.Re-enter the world, and you will find that you can enter it. However, if you re-enter again, it will crash and the config.yaml
file will have encoding errors once more!
Log file
latest.log
https://mclo.gs/3v8EiqG
crash-reports
https://mclo.gs/QikPnjl
Anything else?
No response
Hmm, this is an annoying bug for sure. I will see if we can push out an updated version soon-ish, but if you join the discord I can try to get you a dev build with a fix for this today