Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: [SOLVED] String Clarification
[SOLVED] String Clarification
Jun 18 2011, 12:51 pm
By: Oh_Man  

Jun 18 2011, 12:51 pm Oh_Man Post #1

Find Me On Discord (Brood War UMS Community & Staredit Network)

DTM = Display Text Message.

OK everyone here is my question: Which is the most efficient method of string-saving?

Say I have a menu, the DTM would be like this:
1 - Quests
2 - Character Attributes
3 - Equipment
8 - Back

So, is SCMDraft recycling strings on every enter? Or is it only recycling strings if DTMs are identical? Because, otherwise, I am planning on going all back through my triggers and changing it to something like this.

DTM
1 - Quests
DTM (separate one)
2 - Character Attributes
DTM (separate one)
3 - Equipment
DTM (separate one)
8 - Back


Thanks,
Oh_Man.




Jun 18 2011, 2:23 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

Open ScmDraft's string editor and see for yourself. :P

---

Which method conserves more strings depends on how many combinations of different menus with the same element you have.
Every separate DTM is saved as a separate string. Using the [Enter] char in a string won't split it into a new string.

So when you have like 3 different possible combinations, like for example

1
2
3
8

1
3
8

1
2
8

In that case you need fewer number of strings (but more of the max. char limit of 64k) when to put everything in 3 strings, but if you have more combinations than there are choices it's better to separate it into individual lines if you're using ScmDraft because it recycles identical strings in different triggers. This is the only editor that does this.




Jun 18 2011, 7:36 pm Oh_Man Post #3

Find Me On Discord (Brood War UMS Community & Staredit Network)

Aah thank you, a lot of my DTMs have lots of enters as well, to push other writing off the screen. Right now I have a very inefficient use of strings, and I am looking forward to all the extra space I'll have after employing this method.

Many thanks!!

Post has been edited 1 time(s), last time on Jun 19 2011, 12:45 am by Oh_Man.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
[01:05 am]
Vrael -- that's better
[12:39 am]
NudeRaider -- can confirm, Vrael is a total madman
[10:18 pm]
Vrael -- who says I'm not a total madman?
[02:26 pm]
UndeadStar -- Vrael, since the ad messages get removed, you look like a total madman for someone that come late
[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
Please log in to shout.


Members Online: jun3hong, Roy