Hostile Worlds - Invasions

Hostile Worlds - Invasions

1M Downloads

IllegalStateException error

CalaMariGold opened this issue · 5 comments

commented

https://pastebin.com/mU3dpeMe
[CoroUtil.difficulty.data.DifficultyDataReader:processFileFromFilesystem:373]: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Not a JSON Object: ""

This occurs in the console. It (or something) makes all my invasions just become regular invasions (ie, not work). Using commands says the templates don't exist.

mob_spawns.json: https://pastebin.com/AbJp0vzZ
invasion_cmods: https://pastebin.com/0cxsPiE7

commented

Can I get a full debug log that contains the "Not a JSON Object" error

Otherwise seems to load fine in my setup:
2020-03-22_22 28 08

commented

latest.log

Oops sorry, there it is.

commented

latest.log
mari told me to send this to u

commented

Hmmm hard to tell exactly why its failing still, might be another file its failing on, not that that explains why the invasions arent loading correctly.

Need to see more debug output, so could you open config/CoroUtil/General.cfg and set both useLoggingDebug and useLoggingLog to true. Then try to run the game again to reproduce the issue which will make a new latest.log then give me that log.

commented

Issue is caused by changing the files encoding from UTF-8 to UTF-8 BOM, using notepad++ to fix the encoding back to UTF-8 is one way to fix it on your end, or adjust the encoding in whatever editor you use.

Long term plan is ill add in a string.replace("\uFEFF", ""); call to remove this edge case of some editors deciding to change the default encoding of a file.