Forum index VCMI Project - Heroes 3: WoG recreated
Forum of the project aiming to recreate best turn-based strategy ever!

FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  StatisticsStatistics
RegisterRegister  Log inLog in  AlbumAlbum  DownloadDownload

Previous topic :: Next topic
Macron1 topic for different stuff
Author Message
Macron1 

Joined: 02 Apr 2013
Posts: 576
Posted: 2015-02-14, 11:07   DEF Recoloring Program v.0.0.3 from Macron1

DEF Recoloring Program v.0.0.3 from Macron1

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
DEF Recoloring Program v.0.0.3 from Macron1
Download 145 Time(s) 124.22 KB

_________________
I'm not a member of VCMI developer group and my posts are not official. I'm just a fan.
 
     
Macron1 

Joined: 02 Apr 2013
Posts: 576
Posted: 2015-08-07, 22:53   

Macron1 Modern Roads v. 0.0.1

Simple made replacements for standard roads:
- asphalt road,
- automobile road with road markup
- railway

Forge your Heroes 3 :mrgreen:

modern_roads-mod.zip
Download 107 Time(s) 6.34 KB

_________________
I'm not a member of VCMI developer group and my posts are not official. I'm just a fan.
 
     
Macron1 

Joined: 02 Apr 2013
Posts: 576
Posted: 2015-11-01, 00:26   

4K UHD (3840x2160) Support for VCMI

File "resolutions.json" goes to C:\Users\<username>\Documents\My Games\vcmi\config\
File "AdvMap3840x2160.png goes to "Mods\vcmi\Data\" (vcmi mod, folder "Data")

I quickly made it and didn't test it with many towns and heroes, so maybe background still needs corrections.

uhd.jpg
UHD screenshot (beware breaking eyes:-)
477 Time(s) 4.19 MB

4k_uhd_resolution.zip
Config with 4k resolution added + background
Download 93 Time(s) 468.25 KB

_________________
I'm not a member of VCMI developer group and my posts are not official. I'm just a fan.
 
     
val-gaav 

Joined: 24 Feb 2008
Posts: 186
Posted: 2015-11-01, 13:19   

top arrow buttons are duplicated. Resources bar is a mess.

Other then that such big res seems unplayable. Town window is really to small for my taste. Takes away a lot from game feel .
 
     
Macron1 

Joined: 02 Apr 2013
Posts: 576
Posted: 2015-11-07, 13:01   

Fred79 Object Patch confguration JSONs v.0.0.1

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.

1) About several hundred DEF files are not configured, because they are not changed since Fred79 first objects patch release.
2) About 3 hundred objects like dwellings without flags, banks, are not configured also for my reasons.
3) I didnt test appearance on maps of all objects - because we have no map editor yet to test this.
4) 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.
5) I changed DEF paths to root folder with Regexes, so some templates maybe get lost due to syntax errors 8-)

Enjoy if you can. There seems to be some bugs cause RMG sometimes crashes when generating maps.

fred79objects-mod.zip
Fred79 Objects mod json configs
Download 88 Time(s) 132.82 KB

_________________
I'm not a member of VCMI developer group and my posts are not official. I'm just a fan.
 
     
Warmonger 
VCMI programmer


Age: 27
Joined: 07 Jun 2008
Posts: 1530
Location: Warsaw, Poland
Posted: 2015-11-07, 13:16   

^Very intersting. Still looking forward to proper object support :roll:

Quote:
With help of MMArchive or other tools extract all DEF files from FREDOBJ.pac file to /Content/Sprites directory of Mod.

Why can't you do this on your own and distribute complete mod?
_________________
Think twice if you really need to send me private message. Use public forum for general questions.
DJ Warmonger blog
beegee wrote:
Warmonger, you are the best!
 
 
     
Kantor 

Age: 22
Joined: 28 Dec 2013
Posts: 89
Location: Poland
Posted: 2016-04-04, 19:52   

Hi, I just ported Macron's Balancer program to Python, all previous issues should be fixed now.

How to use it?
Via command prompt:
1. Open command prompt and set working directory same as path to this script
2. Type name of the script or just drop it over cmd
3. Drag and drop valid JSON file
You also can specify many files by repeating step 3. but remember to separate them by space.

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
Download 68 Time(s) 5.63 KB

Last edited by Kantor on 2016-04-06, 17:47; edited 5 times in total  
 
     
misiokles 

Joined: 12 Nov 2015
Posts: 155
Posted: 2016-04-04, 20:19   

Macron1 - you can give here the exact mathematical equation/formulas how to calculate AI/Fight values? It would simplfy some things :)
 
     
Kantor 

Age: 22
Joined: 28 Dec 2013
Posts: 89
Location: Poland
Posted: 2016-05-18, 20:59   

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
Works with Python 3.5.1
Download 31 Time(s) 5.08 KB

H3 RMG Converter.zip
Works with Python 2.7.11
Download 35 Time(s) 5.08 KB

Last edited by Kantor on 2016-05-31, 17:29; edited 5 times in total  
 
     
misiokles 

Joined: 12 Nov 2015
Posts: 155
Posted: 2016-05-19, 17:45   

What did I do wrong?

rmg.png
1753 Time(s) 9.48 KB

 
     
Kantor 

Age: 22
Joined: 28 Dec 2013
Posts: 89
Location: Poland
Posted: 2016-05-19, 19:20   

Quote:
It works only for Linux, right?

I'm not sure about Linux, but for windows should work smoothly.

Quote:
In my win10 I downloaded python software 3.5.1 version, unpack H3 rmg Converter, drag and drop Around a Marsh.txt template. Something happened, folder Converted was created, but... is empty :(

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.
 
     
misiokles 

Joined: 12 Nov 2015
Posts: 155
Posted: 2016-05-19, 19:45   

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 ;P

I think, this site http://www.toheroes.com/h3maps/Random.htm will be soon borgizied ;]

rmg1.png
42 Time(s) 1.4 MB

 
     
Kantor 

Age: 22
Joined: 28 Dec 2013
Posts: 89
Location: Poland
Posted: 2016-05-19, 19:50   

Quote:
It works!

I'm glad to hear that :)
 
     
misiokles 

Joined: 12 Nov 2015
Posts: 155
Posted: 2016-05-19, 20:55   

Ok, I've found a problem.
When I try to convert (for example this rmg) http://www.toheroes.com/h...Blockbuster.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.
 
     
Kantor 

Age: 22
Joined: 28 Dec 2013
Posts: 89
Location: Poland
Posted: 2016-05-19, 20:59   

Well, this is an intended behaviour, check note inside script :)
 
     
Display posts from previous:   
Reply to topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Add this topic to your bookmarks
Printable version

Jump to:  

Powered by phpBB modified by Przemo © 2003 phpBB Group
Template Chronicles modified by Nasedo modified by Tow.
© VCMI Team
Page generated in 0.1 second. SQL queries: 16