Script Issues

Started by SomeRandomCreator, July 24, 2016, 06:00:03 PM

Previous topic - Next topic

SomeRandomCreator

Does anyone have the problem where when working on scripts, you exit the script and go back in, some data is lost? >:(

CreepiX


SomeRandomCreator

Quote from: CreepiX on July 24, 2016, 06:02:07 PM
More details please?
Sure, okay so here's how it would look:
say(2)
I don't know what happened.
Uh-oh.
say(3)
Well, this is a problem, a very big one indeed.
I think I need a break.
Maybe even a vacation.

The last three lines would be erased as soon as I exit.

If you need the actual script line, I'll post it, in case it's relevant.
Also, the script name is "entry20"

LafondaSaysMeow

Did you put the empty line after your script? Because the script editor is buggy like that!

SomeRandomCreator

Nope, made sure to delete it, but I'm gonna check something...to see if I just made a mountain out if a molehill.

LafondaSaysMeow

#5
Quote from: SomeRandomCreator on July 24, 2016, 06:53:44 PM
Nope, made sure to delete it,
Actually, it is the other way around. Scripts might get deleted if there ISN'T an empty line at the end of the script.

Dav999

I've heard of the last line being deleted, but not three lines at once.

LafondaSaysMeow

it's happened to me before
i feel like the more you exit out of the editor the more lines that get deleted
i'm not sure tho

SomeRandomCreator

UPDATE!

Ok, so I was continuing my work, when in the script editor, it had the first three words from the line that was-
You know what? That's way too confusing to say, I'll just show you here:

Original Scripting [Name: Scripting]
say(1):
Why?
say(3):
You know what? I don't care. I JUST DON'T CARE!
WHY? YOU KNOW WHY? I KNOW WHY! I
KNOW, YOU KNOW, EVERYONE DOES.


Say this was my scripting, with the bolded being the said erased.
Today, I found a new script called:
You know what?
That's right, there was a new script named on the first three words of the said erased.
I checked it, and it had all the erased scripting.
I think it's because my computer takes some time to save the scripting. (Not like real save, but like to take it all.)
So, because I was too fast to exit, the computer had just made another script and had put the loaded script.
I mean, that's just what I think...

Dav999

Putting a colon at the end of a line causes the script to be split... Because that is how script names work in the level file.

So writing say(x) without the colon should prevent further problems like this. I should actually make colons at ends of lines red or something in Ved, or add a warning message.