Staredit Newtork
Community
StarCraft
Games
Site
Favourites
 
Strings
A string in Starcraft map making can be defined as a string of characters, numbers, and symbols.
"Hello" (without quotes) can be recognized as a string.

Many things in a StarCraft map take up strings.
These things include:
  • Map title and description
  • Force titles
  • Custom location names (including Anywhere)
  • Custom switch names
  • Custom unit names
  • Display Text trigger actions
  • Trigger comments
  • WAV sound paths

String Limits
The limit in StarEdit, and in StarForge, is 1024 individual strings. You cannot exceed this limit in either of these programs.
Additionally, in StarEdit strings cannot exceed 1024 bytes in length.

SCMDraft2, and both of the Uberation programs support greater than 1024 strings. There is another limit, however.
The byte (or character) limit for strings is 65536.
Each character in a string takes up one byte of data, and each string has a 2 byte offset value, and a 1 byte null terminator. So, the string "Hello" takes up 8 bytes.
Basically, the limit isn't on how many individual strings the map has, but instead on how much space the strings take up. (or in other words, how many characters the strings have)
For example, if you have 1000 strings that are only 8 bytes long, such as "Hello", you're using 8000 bytes, which is less than 1/8 of the limit.


[09:17 pm]
Falkoner -- Even if I have a 1280x1024 monitor, I still like a smaller size, it's annoying reading across a massive screen
[09:16 pm]
Falkoner -- Much easier on the eyes, <3 the margins
[09:16 pm]
Falkoner -- Yeah, I've always used it
[08:48 pm]
madroc -- Wow the carbonite skin is nice
[08:36 pm]
[lil-Inferno]:] -- LOL C'E QUE
[08:33 pm]
Corbo[MM] -- contrary that we CAN do stuff that you can't :P
[08:33 pm]
Corbo[MM] -- what can you do that we can't?
You must log in to shout.

©2003-2008 Staredit Network.
Starcraft & Starcraft II are trademarks of Blizzard Entertainment.
Site Index   |   Terms of Service   |   Privacy Policy   |   Contributions