deltadawn/compile_mod.py
2026-06-15 02:44:40 -04:00

18 lines
642 B
Python

# This script should:
#
# Given a modcode directory as input containing:
#
# - .jsons with patches to apply to the vanilla .dbr files
# - .jsons with new records to add to the vanilla .dbr files
# - .jsons with new texts to add to the vanilla .txt files
#
# Generate a mod directory with:
# - database/records
# - source/text_en
#
# To do so, it will need to:
# 1. Read all .jsons in the modcode directory
# 2. Determine which vanilla .dbr files they modify, apply the patches, and write the new .dbr files to the mod directory.
# 3. Write the new .dbr files to the mod directory.
# 4. Write the new .txt text_en files to the mod directory.