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):
./VCMI095_Migrator_Script.pl 0
To run program with changes of files you must input command:
./VCMI095_Migrator_Script.pl 1
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)
This is pure Perl script I wrote to automate migration of creatures JSONs to 0.94b (0.95 actually).
It comments strings in “sound” section, that point to “” (no sound file).
Also it adds “idle”:1 to “animationTime” section.
To run program you must write:
VCMI095_Creature_Migrator_Script.pl
It saves backup copy to same folder and then tries to migrate file to new format. VCMI095_Creature_Migrator_Script_v01.zip (1.36 KB)
Now this mod not only removes standart factions heroes and units from selection, but also removes all standard factions from selection on start!
You can comment in mod.json only those factions that you want to play with.
Now this will work only with maps, where no standard towns are placed in editor.
So if you want to play only with factions of your choice, you must find good map. ban-mod.zip (8.49 KB)
Next version of Macron1 puzzle creation.
Now you need to install ImageMagick on your computer and then do things as described in readme.txt.
You must prepare 596x546 picture to be inserted as puzzle. Then it will be cutted to set of PUZxx.png files. You can quickly make 32-bit puzzles then puzzle_generator.zip (41.3 KB)
This program allows to change colors in DEF palette. You can load creature or map object def, and change one colors to anothers. After saving resulting DEF you will get recolored thing.
Now you have mechanism of automatic recoloring using previous recolors.
PS Program is written in Borland Builder C++ 5.0. Program was made quickly, so there is a ugly quickly written code (bydlokod ). DEF Recoloring Program v.0.0.2.zip (123 KB)
This program allows to change colors in DEF palette. You can load creature or map object def, and change one colors to anothers. After saving resulting DEF you will get recolored thing.
Now it has mechanism of automatic recoloring using previous recolors. But it needs to be impoved. DEF Recoloring Program v.0.0.3.zip (124 KB)
Extract and place mod files to /Mods folder.
With help of MMArchive or other tools extract all DEF files from FREDOBJ.pac file to /Content/Sprites directory of Mod.
I didn’t included Fred79 assets due to avoid legal problems and screams about “stealing” from Russian community.
This set of Fred79 objects is incomplete and uses my own look at objects names/uses.
About several hundred DEF files are not configured, because they are not changed since Fred79 first objects patch release.
About 3 hundred objects like dwellings without flags, banks, are not configured also for my reasons.
I didnt test appearance on maps of all objects - because we have no map editor yet to test this.
I commented in “mod.json” config files for “Walls.json” and “Mines.json” - Walls don’t make RMG maps look good. Mines are crashing RMG in this mod - didn’t have time yet to find why this is happening.
I changed DEF paths to root folder with Regexes, so some templates maybe get lost due to syntax errors
Enjoy if you can. There seems to be some bugs cause RMG sometimes crashes when generating maps. fred79objects-mod.zip (133 KB)
Hi, after few days of coding I’ve eventually finished a script in Python, which (I hope will help you to convert most (if not all of H3 random map templates to compatible with VCMI JSONs.
To use it simply drag and drop H3 RMG templates over script icon.
Edit: Now it is possible to parse a file with multiple templates.
Edit: Fixed bug when OH3 template doesn’t contain monster strength in single zone.
Edit: Now script can properly parse multiple portals per one connection (sth. like: “a”:“1,2”)
Edit: Uploaded new version which works with Python 3.5.1 H3 RMG Converter.zip (5.08 KB) H3 RMG Converter.zip (5.08 KB)
I’m not sure about Linux, but for windows should work smoothly.
Hmm, perhaps different Python versions? I based on Python 2.7.11 and this template has been parsed without problems, but before downgrading Python try clues described in script.
Also you can use script via cmd, so if something would go wrong you will see output.
Btw. does it happen for every template you’re trying to convert?
Sweet Baby Jesus! It works! (yeap, it was version incompatibilities). Here’s the random map generated under Around A Marsh template. Now the ball is at Warmonger’s site to write better objects randomization