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.
[03:20 am]
Symmetry -- Dang I'm up to 155 minerals gambling really pays off guys
[2026-10-11. : 6:02 am]
Donald -- Samase
[2026-10-09. : 2:53 am]
Mr.BurnLiquid -- Symmetry
Symmetry shouted: I'll check it out this weekend!
Thanks
[2026-10-09. : 2:47 am]
Symmetry -- I'll check it out this weekend!
[2026-10-09. : 2:40 am]
Mr.BurnLiquid -- Symmetry
Symmetry shouted: Another map maker? Damn we really ARE back
I invite you to try out the map I modified. I don't have the creativity to create maps from scratch, but I do have the know-how to modify existing ones; my project is to tweak community campaigns (specifically those with errors—to make them playable.
[2026-10-09. : 2:27 am]
Symmetry -- Another map maker? Damn we really ARE back
[2026-10-09. : 1:51 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Now that I wanted to change my avatar, the error image is showing up, haha.
[2026-10-09. : 1:34 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Mr.BurnLiquid
Mr.BurnLiquid shouted: Ultraviolet Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
I invite you to try out a mission I'm modifying from *StarCraft Reversed*; I'm trying to make it more playable and challenging.
[2026-10-09. : 1:33 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
Please log in to shout.


Members Online: NudeRaider, DarkenedFantasies