Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

HITMAN 3 Mod Framework

A tool to dynamically assemble mods to handle inter-mod dependencies and reduce conflict potential. · By onionsquid

Weird Bug (delimiter,). Related to storyconfig.json. Something missing?

A topic by antispammy created Jan 23, 2022 Views: 626 Replies: 8
Viewing posts 1 to 2
(1 edit)

There was another user here weeks ago who has the same error message I also get. 

https://itch.io/t/1755052/im-getting-the-same-error-when-trying-to-install-mods

(See my Error below).

It happens to ANY mod that usese campaign.json, like terminator mode.

Now, I actually managed to prevent that error by commenting out the following lines in __init__.py:


With this it works fine. But I'm not sure what problems this causes, neither do I understand where I can find the storyconfig.json part :(

Is it because of the newer game version? 1.70 HF2?

Something went wrong:
Traceback (most recent call last):
  File "Z:\GAMES\Hitman 3 Test\Hitman 3\Runtime\Framework\tools\main.py", line 48, in <module>
    importlib.import_module(mod_name).apply_to_mod_builder(
  File "Z:\GAMES\Hitman 3 Test\Hitman 3\Runtime\Framework\tools\..\2 Offline Content\__init__.py", line 313, in apply_to_mod_builder
    campaign_list = m.edit_blob('storyconfig.json')
  File "Z:\GAMES\Hitman 3 Test\Hitman 3\Runtime\Framework\tools\..\tools\mod.py", line 358, in edit_blob
    return self.edit(self.get(blobdb_hash, 0).id_to_hash[blob_path], 0)
  File "Z:\GAMES\Hitman 3 Test\Hitman 3\Runtime\Framework\tools\..\tools\mod.py", line 342, in edit
    result = self.get(ioi_hash_with_extension, chunk)
  File "Z:\GAMES\Hitman 3 Test\Hitman 3\Runtime\Framework\tools\..\tools\mod.py", line 333, in get
    result = types_for_extensions[extension](path)
  File "Z:\GAMES\Hitman 3 Test\Hitman 3\Runtime\Framework\tools\..\tools\json.py", line 60, in __init__
    self.content = json.load(f)
  File "json\__init__.py", line 293, in load
  File "json\__init__.py", line 346, in loads
  File "json\decoder.py", line 337, in decode
  File "json\decoder.py", line 353, in raw_decode
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 572 column 1 (char 23609)
Developer

storyconfig.json is in the game files, the framework is supposed to unpack and patch it to add new levels to the campaign menu.

It seems like yours is damaged and thus cannot get patched. The most likely reason is that you installed another mod that contains a version of storyconfig.json that is broken. Do you have any other mods installed?

I have the same issue as described above. I've tried reinstalling : the game, mods, mod framework. Nothing seems to work. Any help would be greatly appreciated.

Developer

Are you sure you do not have any other mods installed? Verify the game files through epic or steam to make sure. Then install only the framework and framework mods. If that works, you can add other mods one by one until you know which mod causes the issue.

Installing the framework alone is fine. But when trying to install some content packs I get this :


Something went wrong: Traceback (most recent call last):   File "H:\Games\Hitman 3\Runtime\Framework\tools\main.py", line 48, in <module>     importlib.import_module(mod_name).apply_to_mod_builder(   File "H:\Games\Hitman 3\Runtime\Framework\tools\..\2 Offline Content\__init__.py", line 311, in apply_to_mod_builder     campaign_list = m.edit_blob('storyconfig.json')   File "H:\Games\Hitman 3\Runtime\Framework\tools\..\tools\mod.py", line 372, in edit_blob     return self.edit(self.get(blobdb_hash, 0).id_to_hash[blob_path], 0)   File "H:\Games\Hitman 3\Runtime\Framework\tools\..\tools\mod.py", line 354, in edit     result = self.get(ioi_hash_with_extension, chunk)   File "H:\Games\Hitman 3\Runtime\Framework\tools\..\tools\mod.py", line 344, in get     result = types_for_extensions[extension](path)   File "H:\Games\Hitman 3\Runtime\Framework\tools\..\tools\json.py", line 60, in __init__     self.content = json.load(f)   File "json\__init__.py", line 293, in load   File "json\__init__.py", line 346, in loads   File "json\decoder.py", line 337, in decode   File "json\decoder.py", line 353, in raw_decode json.decoder.JSONDecodeError: Expecting ',' delimiter: line 572 column 1 (char 23609) If you don't understand the error message above, try uninstalling non-framework mods or remove the mod or content pack listed directly before the error occured.
Developer

If you did what I asked (verify through Epic and uninstall all mods), then I have no idea what causes this. Your game files seem to be different from mine. I'd be interested in seeing resource 0093B70B9E704CE0.JSON from all chunk0patchX.rpkg files you have. Could anybody affected from the problem extract this resource for each patch with rpkg-tool and upload them somewhere?

The files as requested :

https://www86.zippyshare.com/v/5nUS3CRf/file.html

Developer

Thanks! As I assumed, you have a broken mod installed with patch number 13.

From the single file, it looks like an outdated mod to make seasonal and sniper missions available offline. So it is not only broken, but also obsolete if you also have framework mods that add missions.

Uninstall that mod and everything should work as intended.

Thank you so much, this completely solved my problems !!!