Page 1 of 1

HOW TO randomize/variate tiles?

Posted: Sat Apr 10, 2021 6:28 am
by vilcum
I am trying to take parts of WitW Mapoverhaul mod from overkill01 for use in WiTE2. For starters I took the TOWN tiles, but thought there is 16 different tga files the game only seems to use the first one (001) so all of them are the same

anybody knows how tell to the engine to make thsi variable (as it does with other tile type)





Image

RE: HOW TO randomize/variate tiles?

Posted: Sat Apr 10, 2021 6:57 am
by RedLancer
The art is not strictly variable. We set the art in each hex individually although we did randomise the process in early development to save time. Town does not have this randomise function.

If you don't want to do each hex individually you could try exporting the hex art to csv and using a programme like excel change the appropriate value in Column D. However I haven't used csv for hex art for years so I'm not sure it is working. There have been significant recent changes in map drawing code to improve performance so there is a chance that it may not work.

Building a simple tile map is quite quick - making it look like a tableau map takes much longer.

RE: HOW TO randomize/variate tiles?

Posted: Sat Apr 10, 2021 10:41 am
by vilcum
Thanks John, though as you warned it seems something was changed in the code , even when I changed the CSV (second export returns the modified data) the system continues using file TOWN_001 in every town tile.


RE: HOW TO randomize/variate tiles?

Posted: Sat Apr 10, 2021 11:01 am
by RedLancer
Is it changing manually if you do it hex by hex?

Have you tried saving after csv import then closing and restarting the game?

RE: HOW TO randomize/variate tiles?

Posted: Sat Apr 10, 2021 11:26 am
by vilcum
I located my (first) mistake, it seems it does not apply the CSV changes on SAVED games, only in new ones.

Now i have no town marker in any one, but I thing that can be bad format in the CSV on my part








Image

RE: HOW TO randomize/variate tiles?

Posted: Sat Apr 10, 2021 11:33 am
by RedLancer
Those first 11 rows are all in Iceland where there are no Towns.

RE: HOW TO randomize/variate tiles?

Posted: Sat Apr 10, 2021 11:42 am
by vilcum
I modified the full file (showed first lines to allow for columnd titles),

here an example from hel (i expected to take 006 but as you see it took none, files seems good ... or at least 0010 is being showed in saved games ok (even when it is edited)

Image