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.
[04:56 am]
Ultraviolet -- I suppose we'll likely never know, but my guess would be that they already saw it operating successfully and there was no monetary incentive to finish the original work. And the dev cycle in old school Blizzard was so hectic, it's possible it just got forgotten about after the original game got released. Plus there's an element of existing MPQ files that were packaged with the original discs becoming outdated if they updated it. And it's not like they remade the original MPQs, they just made new ones for BW specifically
[04:26 am]
Oh_Man -- so that makes me think maybe the theory they are unfinished is not true and its a deliberate design decision, coz why not finish them wen ur making brood war?
[04:25 am]
Oh_Man -- the thing is thos buildings are from classic. that means they went ahead and made brood war without ever finishing the 'unfinished' buildings
[2026-6-20. : 6:15 pm]
Ultraviolet -- Yeah he's talked about a lot of that stuff in his casts before. It seems plausible. Especially knowing how Blizzard of yesteryear operated.
[2026-6-20. : 3:47 pm]
NudeRaider -- to clarify: couldn't recall the behavior for every single Protoss building but I was aware the disparity exists.
[2026-6-20. : 3:43 pm]
NudeRaider -- Contained nothing new for me. Didn't know all building's behavior, but very much all unit's. Also Terran balance whine - also nothing new :lol:
[2026-6-19. : 9:57 am]
Oh_Man -- makes me wonder if SEN knows anything about the topic
[2026-6-19. : 9:57 am]
Oh_Man -- artosis dropped pretty interesting vid: https://youtu.be/EqZHB8Blra4
[2026-6-18. : 5:01 pm]
Ultraviolet -- :wob:
[2026-6-17. : 6:15 am]
RexyRex -- :wob:
Please log in to shout.


Members Online: Symmetry