Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: String corruption
String corruption
Jan 23 2013, 4:39 pm
By: MetalGear  

Jan 23 2013, 4:39 pm MetalGear Post #1



I've got to a point in my map where each time I try to modify certain strings, the editor crashes and talks about "string corruption". Is there any way to avoid/resolve this?



None.

Jan 23 2013, 5:10 pm jjf28 Post #2

Cartography Artisan

Assuming you've been using SCMDraft, your best option is probably loading a backup.

Perhaps if you can isolate the string(s) in question you could save your map as a .chk, change the string(s) to simple words with no special characters using a text editor like notepad++, then reload in SCMDraft to see if it gets better, but you're essentially shooting flys in the dark trying to troubleshoot SCMDraft's string handling.



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Jan 23 2013, 5:57 pm Oh_Man Post #3

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

You should also disable autosave and autobackup in profile settings. They cause all sorts of issues in my experience, one time I tried to save and ended up with a 1kb map that, needless to say, I couldn't open anymore. :P




Jan 23 2013, 6:50 pm UnholyUrine Post #4



For me, the best way to avoid this is.. don't use Starforge + SCMDraft2 together, as they hate each other.
If you must, save lots of backup



None.

Jan 24 2013, 1:00 am NudeRaider Post #5

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

Quote from Oh_Man
You should also disable autosave and autobackup in profile settings. They cause all sorts of issues in my experience, one time I tried to save and ended up with a 1kb map that, needless to say, I couldn't open anymore. :P
Disabling auto backup is not recommended. Often the backup database is what saves you from losing your work when a corruption occurs.




Jan 24 2013, 1:25 am Dem0n Post #6

ᕕ( ᐛ )ᕗ

The database, however, does cause scmdraft to freeze when it tries to autosave a 2 gigabyte backup, causing the person to lose their progress by having to shut the program down.




Jan 24 2013, 4:22 am Azrael Post #7



I also have auto-backup turned off. The backup system is flawed pretty terribly. If the map size is too large, or if the backup database becomes too large, then you're going to experience crashes and other nasty critical bugs until you get it cleared (which often requires deleting the actual backup file).

It's up to the user's discretion, but if you're not going to disable auto-backup, at least make sure you're keeping your database cleared of unnecessary backups. You won't know the backup database file is too large until after it's too late.




Jan 24 2013, 6:51 am NudeRaider Post #8

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

Quote from Dem0n
The database, however, does cause scmdraft to freeze when it tries to autosave a 2 gigabyte backup, causing the person to lose their progress by having to shut the program down.
Oh right, I wanted to mention that, but I got distracted.

Personally I've never experienced a 2GB database, but it's definitely something to keep in mind. I'm not sure if it happens purely over time or if it's a bug that, when triggered, writes a 2GB file (more likely).

If it's the latter then occasional manual backups are recommended. But I'd still use it because the bug is rare and the featire convenient




Jan 24 2013, 7:13 am Azrael Post #9



It happens over time. It's pretty easy to manage when you have sound files in your map.

As mentioned in the previous post, keeping the database cleared of unnecessary backups will prevent it from crashing.

I personally got tired of clearing them manually, and eventually opted to simply turn it off.




Jan 24 2013, 6:38 pm NudeRaider Post #10

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

Id just rename or delete the db once it gets too big.

Ah wavs are the culprit! I never used them. Would be cool if there was a way to not store them in every backup file.




Jan 24 2013, 8:02 pm Azrael Post #11



Yeah, I was also going to clear it when it got too big. The way I found out about this issue was pretty unfortunate though, I had done a lot on a map, only to have the client crash when I tried to save it. I lost a ton of work that day, and it's the sort of experience that leaves you unwilling to risk the same outcome again. Even now, I still open the backup database occasionally to ensure it's not filling up with backups :P




Jan 24 2013, 8:20 pm Lanthanide Post #12



The thing with the backup database is most people don't even know it is there, which makes it especially annoying when it goes bad and ruins all your work. A feature that's designed to save your ass that you don't know about might as well not even be there.

Personally I just managed my own backups, as again I was one of the people that didn't know about the database until many months after I'd gotten into the routine of making backups anyway.



None.

Jan 24 2013, 10:20 pm Roy Post #13

An artist's depiction of an Extended Unit Death

Running the map through an unprotector may fix the string corruption.




Jan 26 2013, 4:18 am MetalGear Post #14



Wow guys, I found the problem. There's a 65530 bytes limit, and I'm only at 749 strings :/



None.

Jan 27 2013, 7:48 pm rockz Post #15

ᴄʜᴇᴇsᴇ ɪᴛ!

stop commenting your triggers. IIRC you can remove location names as well.

Going backwards from a huge string size map is difficult, but not impossible.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Jan 28 2013, 2:54 am MetalGear Post #16



I learned an even better way to save trigger space. In my text messages, I had lots of 'space bar' characters, so I changed them into 'tabs' instead. 1 tab = 4 spaces. All good :)



None.

Jan 28 2013, 7:20 am O)FaRTy1billion[MM] Post #17

👻 👾 👽 💪

Quote from rockz
stop commenting your triggers. IIRC you can remove location names as well.
Locations always have a string, unless SCMDraft specifically is cool and has a default string.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jan 28 2013, 7:24 am Azrael Post #18



You could set all the location names to the same thing, ideally a string that's already being used, so they wouldn't use any strings.

The problem with this is that you'll lose the ability to edit the text triggers unless you make all the location names unique again.




Jan 29 2013, 12:27 am MetalGear Post #19



Wow Azrael, never thought of that. Good thinking!



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[01:53 am]
Ultraviolet -- :lol:
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
Please log in to shout.


Members Online: O)FaRTy1billion[MM], Roy, Vrael