Disappearing terminals and script boxes

Started by Dav999, July 17, 2012, 07:00:11 PM

Previous topic - Next topic

Dav999

Sometimes when I make a level, save it, and load it later, random terminals and script boxes disappear. It doesn't always happen, just sometimes. The scripts are still intact. Why does this happen, and how can I prevent this from happening?

Dav999

I also see gravity lines and enemies disappearing now?

blue626

 :o ??? Strange. I haven't read anything about this anywhere in this forum. Are you sure you saved well? You must, after making all the changes you wanted, press Shift-S, type the filename (If you've saved once, it will appear automatically) and press Enter. A message saying "Saved map "(file name).vvvvvv"" should appear.

Dav999

I'm sure it doesn't have anything to do with not saving, because I see things disappearing that have been there since one of the first versions... And I also didn't change anything about them... I don't understand it. I make sure I save before every test play.

Vallu

This happens to mee too pretty often and I'm using the 2.1 version. Sometimes scripts doesn't just disappear but something disappears inside them. Like end of some texts... I wonder why does this happen?

Dav999

#5
Quote from: Vallu on July 21, 2012, 07:52:09 PM
This happens to mee too pretty often and I'm using the 2.1 version. Sometimes scripts doesn't just disappear but something disappears inside them. Like end of some texts... I wonder why does this happen?

If you don't press enter after the last line of the script, that last line will most likely disappear...



say(2)
This is a
text box._



If you return and open it again:



say(2)
This is a_




Make it a habit that you always press enter before quitting a script. The script editor is a bit unstable when it comes to enters/empty lines, like if you put in 20 new lines (keep them empty), and press backspace after that, all 20 empty lines will disappear at once. Also you can't have a line of text, and clear it while still having an empty line. For example, if you try to clear line 2 in this example:



say(2)
Text_
box


say(2)
Tex_
box


Say(2)
Te_
box


Say(2)
T_
box


Say(2)_
box



It will disappear completely when you try to delete the last letter on that line.

Also, it deletes spaces at the beginning and changes double spaces into one, but that's also the case with room names and room text. (Why?)

FIQ

How many entities do you have? Make a search in the file (open it in a text editor) for "</edentity>" and check how many matches you get. Maybe you've encountered a hard limit (that would require *many* entities though..)
Quote from: Dav999 on July 21, 2012, 08:18:56 PM
Quote from: Vallu on July 21, 2012, 07:52:09 PM
This happens to mee too pretty often and I'm using the 2.1 version. Sometimes scripts doesn't just disappear but something disappears inside them. Like end of some texts... I wonder why does this happen?

If you don't press enter after the last line of the script, that last line will most likely disappear...



say(2)
This is a
text box._



If you return and open it again:



say(2)
This is a_




Make it a habit that you always press enter before quitting a script. The script editor is a bit unstable when it comes to enters/empty lines, like if you put in 20 new lines (keep them empty), and press backspace after that, all 20 empty lines will disappear at once. Also you can't have a line of text, and clear it while still having an empty line. For example, if you try to clear line 2 in this example:



say(2)
Text_
box


say(2)
Tex_
box


Say(2)
Te_
box


Say(2)
T_
box


Say(2)_
box



It will disappear completely when you try to delete the last letter on that line.

Also, it deletes spaces at the beginning and changes double spaces into one, but that's also the case with room names and room text. (Why?)
You can avoid it by having a character with a low ASCII number (which will have the same appearence as space).

Dav999

Quote from: FIQ on July 21, 2012, 08:58:53 PM
How many entities do you have? Make a search in the file (open it in a text editor) for "</edentity>" and check how many matches you get. Maybe you've encountered a hard limit (that would require *many* entities though..)

So, is 240 entities over the limit?

Now I noticed something very. Very. Very strange. Why do I find these lines of text which I didn't write in my level file??
<edentity x="96" y="12" t="1" p1="3" p2="0" p3="0" p4="0" p5="320" p6="240">Try to walk left or right
            </edentity>
            <edentity x="97" y="14" t="1" p1="3" p2="0" p3="0" p4="0" p5="320" p6="240">when at the corners!
            </edentity>
            <edentity x="98" y="16" t="1" p1="3" p2="0" p3="0" p4="0" p5="320" p6="240">Try to walk left or right
            </edentity>
            <edentity x="99" y="18" t="1" p1="3" p2="0" p3="0" p4="0" p5="320" p6="240">Try to walk left or right
            </edentity>
            <edentity x="100" y="20" t="1" p1="3" p2="0" p3="0" p4="0" p5="320" p6="240">when at the corners!
            </edentity>
            <edentity x="101" y="22" t="1" p1="3" p2="0" p3="0" p4="0" p5="320" p6="240">when at the corners!
            </edentity>
            <edentity x="102" y="24" t="1" p1="3" p2="0" p3="0" p4="0" p5="320" p6="240">Try to walk left or right
            </edentity>
            <edentity x="103" y="26" t="1" p1="3" p2="0" p3="0" p4="0" p5="320" p6="240">when at the corners!


This seems to come from the level 'Blue's Adventure' by Franz24:
<edentity x="206" y="50" t="1" p1="3" p2="0" p3="0" p4="0" p5="320" p6="240">Blue knew what he had to do,
            </edentity>
            <edentity x="206" y="52" t="1" p1="2" p2="0" p3="0" p4="0" p5="320" p6="240">He had to find a girl and save her!
            </edentity>

I also didn't write this:
<edentity x="206" y="76" t="1" p1="3" p2="0" p3="0" p4="0" p5="320" p6="240">Who is the worst
            </edentity>
            <edentity x="204" y="74" t="1" p1="2" p2="0" p3="0" p4="0" p5="320" p6="240">Super Meat Boy Character?
            </edentity>
            <edentity x="206" y="74" t="1" p1="2" p2="0" p3="0" p4="0" p5="320" p6="240">Tofu Boy
            </edentity>
            <edentity x="202" y="72" t="1" p1="3" p2="0" p3="0" p4="0" p5="320" p6="240">The Kid
            </edentity>
            <edentity x="204" y="72" t="1" p1="3" p2="0" p3="0" p4="0" p5="320" p6="240">the course so far
            </edentity>
            <edentity x="206" y="72" t="1" p1="3" p2="0" p3="0" p4="0" p5="320" p6="240">rtrtr
            </edentity>
            <edentity x="202" y="70" t="1" p1="2" p2="0" p3="0" p4="0" p5="320" p6="240">What is the second most
            </edentity>
            <edentity x="204" y="70" t="1" p1="2" p2="0" p3="0" p4="0" p5="320" p6="240">Over powered item in the
            </edentity>
            <edentity x="206" y="70" t="1" p1="2" p2="0" p3="0" p4="0" p5="320" p6="240">Binding of Isaac?
            </edentity>
            <edentity x="203" y="69" t="1" p1="3" p2="0" p3="0" p4="0" p5="320" p6="240">Mom&apos;s Knife
            </edentity>
            <edentity x="205" y="69" t="1" p1="3" p2="0" p3="0" p4="0" p5="320" p6="240">Brimstone
            </edentity>
            <edentity x="204" y="67" t="1" p1="2" p2="0" p3="0" p4="0" p5="320" p6="240">Who are the couples
            </edentity>
            <edentity x="271" y="57" t="11" p1="0" p2="5" p3="240" p4="0" p5="320" p6="240">In VVVVVV?
            </edentity>
            <edentity x="276" y="55" t="10" p1="1" p2="0" p3="0" p4="0" p5="320" p6="240">Viridian &amp; Violet
            </edentity>
            <edentity x="248" y="55" t="1" p1="1" p2="0" p3="0" p4="0" p5="320" p6="240">Vitellary &amp; Vermilion
            </edentity>
            <edentity x="270" y="55" t="1" p1="1" p2="0" p3="0" p4="0" p5="320" p6="240">Violet &amp; Verdigris
            </edentity>
            <edentity x="259" y="33" t="1" p1="0" p2="0" p3="0" p4="0" p5="320" p6="240">Victoria &amp; Vitellary
            </edentity>
            <edentity x="276" y="33" t="10" p1="0" p2="0" p3="0" p4="0" p5="320" p6="240">Who is Vex69&apos;s
            </edentity>
            <edentity x="259" y="32" t="11" p1="0" p2="5" p3="240" p4="0" p5="320" p6="240">Favorite Binding of Isaac
            </edentity>


I have absolutely no idea how this ended up in my level file :o But can this have something to do with it?