Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: SCM Draft String Editor
SCM Draft String Editor
Mar 7 2014, 8:01 pm
By: Stranger  

Mar 7 2014, 8:01 pm Stranger Post #1



Hey, please take a look on this screen, there's something I would like to know.



Can you tell me what exactly does this mean ?

1049 = max strings the map can handle ?

1025 = currently created (existing) strings ?

78.3% = how many created strings are being used in triggers ?

Is this right ? Or wrong ?



None.

Mar 7 2014, 8:04 pm NudeRaider Post #2

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

you got the counts right, but % is total chars of the string section used (max 65535)




Mar 7 2014, 8:14 pm Stranger Post #3



Thank you, that was exactly what I have been trying to figure out :)

Well, this string limit is kinda annoying, but I can still recycle lots of them.



None.

Mar 7 2014, 8:42 pm jjf28 Post #4

Cartography Artisan

Quote
1049 = max strings the map can handle ?
No, maps can technically have more strings by changing around things in the STR section (the 'numStrings' value tops off at 65535, but the theoretical is lowered 32768 strings due to each string offset taking 2 bytes, each of which would have to be messily coded into the string offsets themselves; what I like to think of as the true max (where the string section is 'proper' as in strings are all 1 character and NUL terminated, no sub-string recycling, no repeated strings, no use of metadata as string data) at 16384 strings).

That's mostly useless info though, all you'll usually need to know is max 65535 bytes+(length of longest string (must be placed in last slot for this to work))-1 is all the string data you can have, and that SCMDraft tends to gets weird when you start using more than 1024 in a map (likes to shout out string corruption and stuff).

Quote
1025 = currently created (existing) strings ?

Yep



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Mar 7 2014, 9:09 pm Zoan Post #5

Math + Physics + StarCraft = Zoan

So, just to be clear, I could have, say, 2000 strings (assuming SCMDraft2, obvi.) only as long as the total amount of bytes due to those strings is under (2^16)-1 bytes? Or am I understanding this totally wrong?

OR is it like this: 1049 # of strings is the MAX # of strings, AND (2^16)-1 Bytes is the MAX number of Bytes? (Allowing either to be a limiting factor)

Post has been edited 2 time(s), last time on Mar 7 2014, 9:17 pm by Zoan.



\:rip\:ooooo\:wob\:ooooo \:angel\: ooooo\:wob\:ooooo\:rip\:

Mar 7 2014, 9:26 pm jjf28 Post #6

Cartography Artisan

Max bytes is the major limiting factor, a properly formatted string section will work like this:

Number of bytes used = 2+3*numStrings+numCharacters
(that's 2 bytes for numStrings and 2 for each string offset, 1 for each NUL character)

Max bytes (normal) = 65535
Max bytes (using last-string trick) = 65535+sizeOfLastString-1




You can have 2000 strings, but don't be surprised if SCMDraft behaves funny

Post has been edited 2 time(s), last time on Mar 7 2014, 9:36 pm by jjf28.



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:56 am]
Oh_Man -- cool bit of history, spellsword creator talking about the history of EUD ^
[09:24 pm]
Moose -- denis
[05:00 pm]
lil-Inferno -- benis
[10:41 am]
v9bettel -- Nice
[2024-4-19. : 1:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[2024-4-18. : 10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[2024-4-18. : 10:11 pm]
Ultraviolet -- :P
[2024-4-18. : 10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
Please log in to shout.


Members Online: jun3hong, NudeRaider, Oh_Man