Mods / dumpjson

Category: #Other
Author: bluelightning32
Side: Client
Created: Sep 22nd at 1:25 AM
Last modified: Sep 22nd at 1:26 AM
Downloads: 64
Follow Unfollow 1

Latest file for v1.19.8:
dumpjson_1.0.0.zip 1-click install


This is a debugging tool for mod developers. It adds no game content.

Typos in the json files are a common mistake for mod developers. This mod helps debug those issues by showing what the game parsed the json files into.

When the client starts up, it receives the block types, item types, and entity types from the server. This mod runs on the client side, intercepts that packet, then saves those different resources as new json files in a 'dump' folder under the game logs folder. The dumped json data is after the variant processing and json patches.

The files are under the Logs directory, wherever that is configured on your system. For instance on Linux the logs go to "$HOME/.config/VintagestoryData/Logs/dump".

Note that the dumped format is very similar to the input json file, but there may be slight differences since it is actually the serialized packet from the server instead of the block load type.

Also take a look at PatchDebug, which is more focused on debugging json patches.

As an example, here is part of the dump/blocks/gravel-basalt.json:

...
  "code": "gravel-basalt",
  "entityClass": null,
  "behaviors": [
    {
      "code": "UnstableFalling",
      "attributes": "{\n  \"fallSound\": \"effect/rockslide\",\n  \"dustIntensity\": 1,\n  \"fallSidewaysChance\": 0.75\n}",
      "clientSideOptional": 0
    }
  ],
...

 

Compare that to the original file:

...
        code: "gravel",
        behaviors: [{name: "UnstableFalling", properties: { fallSound: "effect/rockslide", dustIntensity: 1, fallSidewaysChance: 0.75 }}],
        variantgroups: [
                { loadFromProperties: "block/rock", code: "rock" },
        ],
...

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v1.0.0 64 Sep 22nd at 1:26 AM Show dumpjson_1.0.0.zip Install now

0 Comments (oldest first | newest first)

(edit comment delete)