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.
[2024-5-02. : 1:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
Please log in to shout.


Members Online: eksxo