^Very intersting. Still looking forward to proper object support
Why canāt you do this on your own and distribute complete mod?
^Very intersting. Still looking forward to proper object support
Why canāt you do this on your own and distribute complete mod?
Hi, I just ported Macronās Balancer program to Python, all previous issues should be fixed now.
How to use it?
Via command prompt:
Via dragging and dropping files as well as folders with JSONs over script icon.
Any encountered bug please report to my priv.
EDIT: fixed buggy replacing min\max fields
EDIT2: added possibility to drop files and\or folders with JSONs over script icon
EDIT3: fixed wrong parsing few cases
Macronās Balancer.zip (5.63 KB)
Macron1 - you can give here the exact mathematical equation/formulas how to calculate AI/Fight values? It would simplfy some things
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?
Edit: yeah, seems like version incompatibilities.
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
I think, this site toheroes.com/h3maps/Random.htm will be soon borgizied ;]
Iām glad to hear that
Ok, Iāve found a problem.
When I try to convert (for example this rmg) toheroes.com/h3maps/15-Jun-03Blockbuster.txt everything is ok, butā¦! Original template is for 2 players, and for M-L-XL maps. Converted json is only for first map size - M. L and XL templates remain unconverted.
Well, this is an intended behaviour, check note inside script
Ah, now I see! Silly me!
Good job! Unfortunatelly I use Python 3 so canāt run teh script atm.
Feel free to make any template packs (including OH3 templates) and I will upload them to server.
Ok, Iāve improved a bit my script, so itās now possible to parse single file with more than one template, also some bugs have been resolved (I hope :).
Now it is not, this shouldnāt happen anymore.
Updated version is here.
Thanks to Kantor and his script, we managed to convert all standard H3 templates and HD mod tempaltes as well. Hereās the mod:
mediafire.com/?dtf7j64wnw4ka9p
Unpack it to your My Games/vcmi/mods/vcmi/mods/defaultTemplates/mods directory and make sure that additional submods are enables in launcher (look for submods under vcmi mod).
Itās hard to test it, but console eats all jsons very fine.
Know issues:
Hard to tell without details.
Could be, map options are still far from perfect.
Iāve noticed that as well, but Iām quite sure that crash doesnāt happen for every attempt of map creation. Anyway Iāll try to catch some of that bugs and report them in mantis.
Btw. great job Did you converted some of that russian templates as well?
All of them! Itās in HD mod templates pack, because hd mod uses almost all of them.
Iāve rearranged Macron1 & Fred79ās mod, fixed some bugs and made fredās objects to appear in map editor. Now editor looks like that:
Unfortunatelly, such test map canāt be opened in game (game crashes) In random maps this mod works but RMG algorithms take these objects in very chaotic ways (Mine submod even breaks rmg generation).
But I think this tool will be very handy for further mapmakers. And still lofs of Freds objects wait to be configuredā¦
Hereās the link:
mediafire.com/download/bcocv ā¦ k_v1.0.zip
This mod was tested only for proper work in map editor (not quality, masks, etcā¦)
Cool!
But there are some general issues. Using vcmi map format be careful with mod identifiers (=mod directory name) - they are used inside map data. Once used they should not be renamed rearranged etc.
Also decorative objects should work with both HEAD and PR200, you can test them in vcmi.
Hosting provided by DigitalOcean