Jump to content

On battle results statistics by RaJCeL - strange behaviour at game startup


Recommended Posts

For the past few days (maybe 2 or 3 last iterations of the modpack) I've been having this strange issue where the file "xvmscales.json" from "mods/config/rajcel/" folder gets reset to 0 bytes on game startup. As a consequence, "On battle results statistics by RaJCeL" does not work. The file gets installed fine during the modpack installation, but gets its content deleted on game startup.

 

Here's the corresponding python.log portion:

2020-03-16 17:59:43.458: INFO: [rajcel.core] Unable to access https://static.modxvm.com/wn8-data-exp/json/wn8exp.json
2020-03-16 17:59:43.759: INFO: [rajcel.core] xvmscales.json updated to 2020-03-16
2020-03-16 17:59:43.764: ERROR: Exception in thread Thread-2:
2020-03-16 17:59:43.764: ERROR: Traceback (most recent call last):
2020-03-16 17:59:43.764: ERROR:   File "scripts/common/Lib/threading.py", line 810, in __bootstrap_inner
2020-03-16 17:59:43.764: ERROR:   File "scripts/common/Lib/threading.py", line 763, in run
2020-03-16 17:59:43.764: ERROR:   File "coreRajcel", line 1, in initData
2020-03-16 17:59:43.764: ERROR:   File "scripts/common/Lib/json/__init__.py", line 290, in load
2020-03-16 17:59:43.764: ERROR:   File "scripts/common/Lib/json/__init__.py", line 338, in loads
2020-03-16 17:59:43.764: ERROR:   File "scripts/common/Lib/json/decoder.py", line 366, in decode
2020-03-16 17:59:43.764: ERROR:   File "scripts/common/Lib/json/decoder.py", line 384, in raw_decode
2020-03-16 17:59:43.764: ERROR: ValueError: No JSON object could be decoded
2020-03-16 17:59:43.764: ERROR: 

 

However, the URL from the python.log (https://static.modxvm.com/wn8-data-exp/json/wn8exp.json) is working fine for me when I paste it into a web browser.

 

The workaround is to change the file's attributes to "read only" before starting the game. That will prevent clearing the file's content.

 

For now, I compressed the read-only version of the file and placed it into "Custom_mods" folder, so I don't need to change the attributes after every modpack installation.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.