The entire mod json is expanded into a directory structure, with a directory for each object which contains a .json file describing that object, and lua script, lua state, xml ui files as appropriate. Objects that contain other objects, like bags or decks, have a ContainedObjects sub-directory with data for those objects. Objects that have multiple states have a States sub-directory with directories for each other state.
dumpmod handles 'luabundle' bundled modules such as are supported by vscode's tts extension.
dumpmod will not delete or replace an existing output directory.
Usage:
lua dumpmod.lua <modfile.json> <output dir>
E.g. lua dumpmod.lua "Arkham SCE 2.3.1.json" src
Usage:
lua buildmod.lua <input dir> <root path for luabundle> <output.json>
E.g. lua buildmod.lua src require_src "Arkham SCE 2.3.2.json"
Not for direct use
Not for direct use