So VCMI 0.94b is out. I corrected this migration script to convert buildings/faction/structures.jsons to new format and used it on VCMI towns until they converted without errors.
To convert town buildings place this script in one folder with buildings.json/structures.json/faction.json.
To run program without actual correction of initial files you must input command (this will be helpful to look to output of console and see if process had no mistakes):
To run program with changes of files you must input command:
I’ve tested it, and didn’t get errors on my files.
Perl script uses only regular expressions and works only with text, requires no special Perl modules. Script was tested on Debian and Windows 8.1.
PS If there will be more changes in VCMI modding system , I will correct script to fit new expectations…
VCMI095_Migrator_Script_v02.zip (2.71 KB)