Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: String limit help
String limit help
Sep 10 2007, 9:37 am
By: Hugel  

Sep 10 2007, 9:37 am Hugel Post #1



I could use some help. I'm at a loss for what is going on.
I know there is a string limit and I know what things go into reaching that limit.
Right now, in my map it will not let me add any new strings.
I can actually physically type in a "display text" string and hit "ok" and then save it.
Upon opening the trigger back up, the text has been deleted.
I had been keeping lots of triggers commented up until this point so I went about deleting old comments.
I have deleted over 100 comments since I was told I was out of strings.
It is still saying I am at my string limit.
Is there any way to safely delete old unused switches, I ended up naming too many while making the map.
Is there any programs that can help me look at what is going on with my strings?

Any help would be greatly appreciated. I know I have strings available, because I have deleted lots of comments.


Thanks,

Hugel



None.

Sep 11 2007, 2:03 am DT_Battlekruser Post #2



Use any string editor as opposed to deleting the instance of the string in the map. Most editors don't check to see if deleting a comment/switch instance is freeing up a string or not.



None.

Sep 11 2007, 3:07 am Falkoner Post #3



Yes, although I'd still think that when you delete the text it would leave a string, but free up some memory, are you using SCM Draft 2?



None.

Sep 11 2007, 3:11 am DT_Battlekruser Post #4



Unless you are using really long strings, the only thing that matters is the 1024 string limit in editors (the section size limit is rarely reached).



None.

Sep 11 2007, 3:15 am Falkoner Post #5



So I guess what he really should do is use SCM Draft 2 to either recycle all the empty strings into 1, or delete them all.

Edited by: Some mod, so this isn't what I said.

Post has been edited 1 time(s), last time on Sep 19 2007, 11:08 pm by Falkoner.



None.

Sep 11 2007, 4:36 am Hugel Post #6



I have been trying some of your suggestions.

Uberation3 deleted a good portion of my strings that i need to keep, it also moved some of the items around on my map and made them invalid placements.

Osmap had a runtime error when I tried to use it.

I was able to delete some in SCM Draft, it did seem to free up some space, but not much.



None.

Sep 11 2007, 4:43 am Falkoner Post #7



Do you have the latest version of OS Map 2? Version i? If so, can you post the map so I can get it to LW?



None.

Sep 11 2007, 6:16 am DT_Battlekruser Post #8



What you can delete in the String Editor in SCMDraft is all there is in the map - you should be seeing all the strings in the map and if there are enough you can't delete, then you are going to be stuck with the limit.



None.

Sep 12 2007, 4:07 am Hugel Post #9



In SCM Draft, are the strings only listed in numerical order?
The very last string in the list is 961, and there are plenty of gaps and holes between some of the other strings.

Also, is it safe to go ahead and delete location strings?
Will that free up a string or will it just rename it as Location X ?



None.

Sep 13 2007, 1:17 am Hugel Post #10



Update to this problem:

I am able to create a brand new string with a display text trigger,
but if I copy and paste through a different display text trigger
it will not save the string and it will be missing next time i open the trigger.

Is there a max number of characters that can be saved through strings?
I've made a number of my strings quite long to save on individual strings.



None.

Sep 13 2007, 2:08 am Falkoner Post #11



I'm pretty sure the max characters is 65535, someone correct me if I am wrong, I might be one off, or way off.

What editor were you using when you made the strings?



None.

Sep 13 2007, 2:34 am Hugel Post #12



I'm working in Xtra



None.

Sep 13 2007, 2:45 am Falkoner Post #13



If you use SCM Draft 2 your strings will recycle(any strings that are the same will only take up one string spot) I'd switch to that and stick to it.



None.

Sep 13 2007, 10:11 am Hugel Post #14



Mapstats has shown me that I have 63000 Str Capacity currently out of around 62000....
If I read that right, I have more characters in my map than I should be able to.
This is bad news for my map, but I thought of a work around to be able to complete it.
I'm going to go through and # all my locations with single and double digit characters names.
This should free up between 5-15 characters per location.
Just think...once Starcraft2 hits we shouldn't have to worry about all these tiny little arbitrary limits in our map making abilities.



None.

Sep 16 2007, 4:50 pm DT_Battlekruser Post #15



Yeah, if you're hitting the character limit, it is supposed to be 65535 bytes for the string section, but that's one byte per character plus one (or two) bytes to delimit the string - I can't remember which.

To be hitting the byte limit with less than 1000 strings, you must have some really long strings. What is taking up all that space? The best solution is probably to find a workaround for whatever paragraph-size strings you have.




None.

Sep 18 2007, 10:37 pm Esponeo Post #16



The problem here is that you are hitting the string limit. Staredit-based editors (ie: X-tra) will not save strings you create if there are too many. I suggest simply using SCMDraft 2 and increasing the string limit in the settings. Odds are you have not reached the character limit, and SCMDraft 2 lets you use more strings that Staredit. Note this may create backwards compatibility problems with Staredit-based editors.



None.

Sep 19 2007, 8:05 pm Hugel Post #17



Yes, I do have lots of very long strings.
From the get go on building this map I knew that the string limit was rather low,
so I went with longer strings in the form of paragraphs for quest updates and such.
Guess they added up to break the actual character limit.
I went through and renamed all 254 locations into a 2 letter code.
It actually freed up 3000-4000 character, some of my locations were very descriptive.
I'm sure I'll reach the character limit again before I finish all my required strings.
I'll have to go back in and trim some down I guess.



None.

Sep 19 2007, 9:50 pm Akar Post #18



Ewwww... comments, In my opinion they slow you down... I can glance at a trigger and know almost immediately what it does, plus I don't have to double click and sort through conditions, actions, and players for troubleshooting.



None.

Sep 19 2007, 11:27 pm Esponeo Post #19



I suggest using a single word or short phrase for locations, followed by a number if there are many of them. For example:

Spawn[1], Spawn[2], EnemySpawn[1], EnemySpawn[2], etc. etc.

As for comments, I would not suggest using them if you are planning on a map with a lot of strings.



None.

Sep 20 2007, 1:03 am DT_Battlekruser Post #20



Quote
From the get go on building this map I knew that the string limit was rather low,
so I went with longer strings in the form of paragraphs for quest updates and such.
Guess they added up to break the actual character limit.
I went through and renamed all 254 locations into a 2 letter code.
It actually freed up 3000-4000 character, some of my locations were very descriptive.
I'm sure I'll reach the character limit again before I finish all my required strings.
I'll have to go back in and trim some down I guess.

Yeah, like Esponeo said, the string number limit is not a hard limit, but rather an editor enforced limit. My guess is Blizzard did that figuring that no set of 1200 strings could exceed 65535 characters (a bit naive, but still), so they could better explain the string limit to the average user. The character limit is a section bytesize limit, and there's nothing you can do but work around it.

Quote from Esponeo
I suggest using a single word or short phrase for locations, followed by a number if there are many of them. For example:

Spawn[1], Spawn[2], EnemySpawn[1], EnemySpawn[2], etc. etc.

As for comments, I would not suggest using them if you are planning on a map with a lot of strings.

How about Spawn1, Spawn2, etc.. Saves 2 bytes/string :P




None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[05:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[05:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[03:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[12:51 am]
Oh_Man -- definitely EUD
[09:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[09:35 pm]
Vrael -- that is insane
[09:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
Please log in to shout.


Members Online: Roy