The internet is a lawless place with knowledge and sarcastic wit the pistols of this wild frontier.
Don't go out without being sufficiently armed.

~Blade

Other places

Ares (Current version: 0.B)

Ares's primary facilities have been moved elsewhere:

  • If you wish to report a bug in Ares, please proceed to its bugtracker.
  • If you'd like to request a feature, register a blueprint.
  • If you have questions or can provide answers regarding Ares's usage, visit the Q&A section.
  • Before you post a new question, you should check the FAQ, though.

Behavior

  • Mind the forum rules.
  • Due to its documentedly horrible quality, we do not offer NPatch support.


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Terrain Types
Author Message
Corporal Blade Offline
Senior Member
****
Community Patrons

Posts: 453
Joined: 26 Jan 2005
Reputation: 7
Post: #1
Terrain Types
Based on a thread over at PPM, my curiosity in terrain types was peaked and I empirically tested tiles with different values for the terrain type set in TMP Editor to see what rulesmd.ini terrain type all the values correspond to. To my disappointment none of them represented Tiberium, Weeds or Wall terrain types and a value of 16 caused an IE so I didn't test any higher. Any exe guru want to see if any value does set a tile to these terrain types or can they only be assigned to a cell by way of an overlay?
20.04.2011 00:27:24
Visit this user's website Find all posts by this user Quote this message in a reply
Commander-in-Chief DCoder Offline
Not Ares Anymore
*****
Admins

Posts: 1 756
Joined: 22 Nov 2004
Reputation: 18
Post: #2
RE: Terrain Types
TL;DR: the latter.

The bytes in the TMP file responsible for the terrain types of the tiles are remapped to the game's internal LandTypes list. The remap table is 16 bytes long at 0x8288E4 and remaps as follows:
Code:
0 -> Clear
1 -> Ice
2 -> Ice
3 -> Ice
4 -> Ice
5 -> Tunnel
6 -> Railroad
7 -> Rock
8 -> Rock
9 -> Water
A -> Beach
B -> Road
C -> Road
D -> Clear
E -> Rough
F -> Rock
Using indices outside that range is likely to result in unpredictable behaviours as the game will happily use it as an index into this table and read other stuff in the exe as if it were real data.

20.04.2011 07:23:17
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)