Author Topic: Ai Scripting  (Read 7653 times)

Offline BlackBox

  • Administrator
  • Hero Member
  • *****
  • Posts: 3093
Ai Scripting
« Reply #25 on: March 22, 2006, 06:07:05 PM »
Some other notes I want to make about game limitations:

I was poking thru the code today, and it appears that an AIModDesc (the structure that holds some DLL data like MapName, LevelDesc, etc) places some limits on the length of those strings.

There is a maximum of 16 bytes for both the MapName and the TechtreeName (this includes the null-terminator, so the user shouldn't be allowed to type more than 15 chars)

And then on the LevelDesc, a max of 48 bytes (so 47 chars).

Thus you should put limits to be sure the user can't exceed these..

Offline Eddy-B

  • Hero Member
  • *****
  • Posts: 1186
    • http://www.eddy-b.com
Ai Scripting
« Reply #26 on: March 23, 2006, 05:45:18 AM »
Quote
Some other notes I want to make about game limitations:

I was poking thru the code today, and it appears that an AIModDesc (the structure that holds some DLL data like MapName, LevelDesc, etc) places some limits on the length of those strings.

There is a maximum of 16 bytes for both the MapName and the TechtreeName (this includes the null-terminator, so the user shouldn't be allowed to type more than 15 chars)
That doesn't matter much, since Oupost uses 8.3 filennames, so i have to check for 8 characters on name, and 8.3 on mapname
Quote
And then on the LevelDesc, a max of 48 bytes (so 47 chars).

Thus you should put limits to be sure the user can't exceed these..
I'll put that into scripter tonight.


I will also update VOLCANO
any more typos - just let me know.

> i'm currently setting up a version database system & website. Logged in users can submit bugs that way
Rule #1:  Eddy is always right
Rule #2: If you think he's wrong, see rule #1
--------------------

Outpost : Renegades - Eddy-B.com - Electronics Pit[/siz