kyrub, on 12th January 2012, 10:05am, said:
Hi Hobbes,
the screens look great, as aleays. I cannot wait for the whole maps.
---------
Here is some scattered info, that might help you and widen the options (although I have no idea if you want to fiddle with the executable). Use at your own will.
1) There is a conversion table in EXE file where WORLD.DAT terrain number is translated into "what terrain shall we see at the battlescape". The world.dat uses 12 types of terrain structure, so the table has just 12 entries. It starts at the address 0x743FC in UFO CE version
0200 = forest / jungle
0100 = farm
0100
0100
0100
0700 = mountain
0200 = forest / jungle
0600 = desert
0600
0800 = arctic
0000 = jungle (??)
0200 = forest (unused)
0800 = arctic
This could be good to make farm (or native) terrain less overwhelming (see Wiki terrrain talk page for %), and mountains and probably desert should be present more (and / or you may change world.dat for mountains as well, since they seem to deny world geography in vanilla UFO).
2) you may increase the variety of terror city terrain (or any other) and/or change the odds of a map chunk appearing.
a) The big maps (2x2) are randomized at 0x4E5A1 (4) and 0x4E5B3 (5), in form of Number of map = RNG (4) + 5. That will choose any big map between 5...9. Changing those numbers allows more big maps appearing (if you want to).
b) The 1x1 terror city maps. Even better, these have a table at 0x72C84
0E 0F 10 11 12 03 04 0E 0F 10 11 12 03 03 04 04
from which the game randomly chooses. The maps 03,04 with no building are the most likely to show up. The maps 14...18 less so. Changing these numbers will give you a possibility of variation in between 15 maps, instead of current 6 maps. The table may be even extended easily to contain many more entries.
3) similar work can be done for all other terrains. DOS version addresses can be found easily as well, in case you are interested.
Hope that helps,
kyrub
Thanks for the detailed explanation.
Concerning 1) XComUtil already has an option for the less seen terrains to appear more, so no work necessary if someone wants to see those terrains more.
Concerning 2) and 3), I'd definitely like to add more maps to URBAN or any other terrain (I have for instance 10 additional maps to FARM) but like you said it would be necessary to change the .EXE, which is kinda of an issue to me because it could make this mod incompatible with others (XComUtil, UFOExtender, etc.). At the same time both those editors already change the .EXE, it can be way to add additional maps (XComUtil already does it) - this is something I'll look into it later when I finish all terrains.
I've almost finished redoing the new graphics for Urban. I should post more screenshots this weekend