zzarac Posted March 16, 2020 Posted March 16, 2020 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. Quote
Moderator Quaksen Posted March 16, 2020 Moderator Posted March 16, 2020 Your internet security software is probably blocking the access to the file from within the game when the game is loading. Quote
zzarac Posted March 16, 2020 Author Posted March 16, 2020 My internet security would block it from accessing in my web browser then too. However, I can reach the URL using Chrome, Firefox and Edge. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.