HOW TO randomize/variate tiles?

Post new scenarios and mods here to share with other gamers.

Moderator: Joel Billings

Post Reply
vilcum
Posts: 154
Joined: Mon Aug 24, 2009 9:00 am

HOW TO randomize/variate tiles?

Post 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
Attachments
TOWns.jpg
TOWns.jpg (50.23 KiB) Viewed 404 times
User avatar
RedLancer
Posts: 4338
Joined: Wed Nov 16, 2005 9:09 am
Location: UK

RE: HOW TO randomize/variate tiles?

Post 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.
John
WitE2 Asst Producer
WitE & WitW Dev
vilcum
Posts: 154
Joined: Mon Aug 24, 2009 9:00 am

RE: HOW TO randomize/variate tiles?

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

User avatar
RedLancer
Posts: 4338
Joined: Wed Nov 16, 2005 9:09 am
Location: UK

RE: HOW TO randomize/variate tiles?

Post 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?
John
WitE2 Asst Producer
WitE & WitW Dev
vilcum
Posts: 154
Joined: Mon Aug 24, 2009 9:00 am

RE: HOW TO randomize/variate tiles?

Post 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
Attachments
TOWns.jpg
TOWns.jpg (56.59 KiB) Viewed 404 times
User avatar
RedLancer
Posts: 4338
Joined: Wed Nov 16, 2005 9:09 am
Location: UK

RE: HOW TO randomize/variate tiles?

Post by RedLancer »

Those first 11 rows are all in Iceland where there are no Towns.
John
WitE2 Asst Producer
WitE & WitW Dev
vilcum
Posts: 154
Joined: Mon Aug 24, 2009 9:00 am

RE: HOW TO randomize/variate tiles?

Post 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
Attachments
TOWns.jpg
TOWns.jpg (79.06 KiB) Viewed 405 times
Post Reply

Return to “Scenario Design and Modding”