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
TerrainTile name length
Author Message
Private Nikademis Von Hisson Offline
Member
***
Members

Posts: 230
Joined: 22 Jun 2008
Reputation: 1
Post: #1
TerrainTile name length
There is a discussion on IE problems related to terrain items. Some one said that a terrain tile should be 6 letters and the 2 numbers. Since I have been working on tiles I have had as many as 8 letters and the 2 numbers. From all my posts I have not once had someone tell me about 6 letters deal. From all I have seen and read I think I have my terrain issues under control, can someone verify the length of a terrain tile name. Thanks

05.03.2011 07:41:44
Find all posts by this user Quote this message in a reply
Ares Tester AlexB Offline
Grandmaster B
***

Posts: 221
Joined: 16 Feb 2010
Reputation: 5
Post: #2
RE: TerrainTile name length
The filename (excluding the extension) cannot be longer than 9 characters (including letters and numbers).

The game saves the filename in a buffer of 14 chars, including four chars for the extension like ".TEM" and one char for the required null char to mark the end of the name. The game copies the first 14 chars of the filename into that buffer, without making sure there's actually a null char at the end. If the name is longer, it won't get terminated. This could lead to the adjacent fields (responsible for allowing burrowing and ore on the tile) to be taken as part of the filename erratically. If burrowing is disallowed, the corresponding bool has a value of 0, serving as accidental null char to end the string. Filenames longer than 9 chars will always have their end cut.

Ares disallows the usage of tile filenames longer than nine chars.
08.03.2011 12:12:25
Find all posts by this user Quote this message in a reply
Private Nikademis Von Hisson Offline
Member
***
Members

Posts: 230
Joined: 22 Jun 2008
Reputation: 1
Post: #3
RE: TerrainTile name length
So in other words like the other post stated.....6 letters plus 2 numbers, maybe a-e? total of 9 characters is what it should be (not including extension) Thanks Alex.

So then I take that my tiles that contain 8 letters 2 numbers working is just a fluke?

Is there any chance that this notation can be added to the modenc? Took me 2 years to find this out accident. Despite then fact I had posted the pieces before and no one said anything. This could help others who want to make new pieces.

10.03.2011 05:12:11
Find all posts by this user Quote this message in a reply
Corporal Blade Offline
Senior Member
****
Community Patrons

Posts: 453
Joined: 26 Jan 2005
Reputation: 7
Post: #4
RE: TerrainTile name length
To be fair I don't think anyone knew for certain what the limit was but WW themselves stuck to 8.3 for all file names and I imagined it was for a reason. I'd imagine no one wanted to say long files were a problem since no one knew that it was for certain (the the exception of the Ares devs it seems).
10.03.2011 10:41:18
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: #5
RE: TerrainTile name length
The main reason we know about the terrain tile length problem is because it crashed the game and someone reported it, the same happened for House name length and a hundred other string length problems... WW themselves were particularly gifted at ignoring their own limits, too.

10.03.2011 12:39:14
Visit this user's website Find all posts by this user Quote this message in a reply
Private Nikademis Von Hisson Offline
Member
***
Members

Posts: 230
Joined: 22 Jun 2008
Reputation: 1
Post: #6
RE: TerrainTile name length
Cranium made a comment abou 6/2....and for some reason that kept making me feel I had heard it before. All of my tile names are no longer than 8. When I first started I remember Marshall and DJBreit telling me and my nephew things about how to. I could swear I remember the 8 deal, I searched the forums I visit and can't find anything, but I am thing that it might have been C-Gen, which is no longer around, but thank you blade.

10.03.2011 12:40:50
Find all posts by this user Quote this message in a reply
Post Reply 




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