Page 1 of 1

Help! another obnoxious error

Posted: Sun May 24, 2009 8:00 am
by 25000st
This error keeps occuring when I spawn this ship in sandbox.

Image
ERROR in
action number 1
of Draw Event
for object ShipSection:

Error in code at line 102:
draw_sprite_ext(l_speckle,l_owner.l_specklesubimg,x,y,image_xscale,image_yscale,

at position 20: Unknown variable l_speckle


(do scaled doodads cause this error?)

Posted: Sun May 24, 2009 5:37 pm
by maarten
I guess removing stuff until it works would show the error but extended doodads don't cause errors.

Posted: Sun May 24, 2009 11:49 pm
by 25000st
I removed the sections at position 20 on the x axis and it worked! I replaced the sections and it still worked! Idk what caused the problem.

Posted: Mon May 25, 2009 12:23 am
by maarten
25000st wrote:I removed the sections at position 20 on the x axis and it worked! I replaced the sections and it still worked! Idk what caused the problem.
BSF has problems saving big ships.

Posted: Mon May 25, 2009 1:01 am
by AnnihilatorX
Position 20 is the character number on that line of code and is irrelevent hence.


What I'd do if I were you, I would manually open sb4 file with notepad (keeping a backup of course)
Then delete all doodads using notepad.

sb4 files now is unencrypted and sometime it's easier to delete stuff there. Weapon, section and doodads, trigger for sections, trigger for weapons each have their own sections.

Posted: Mon May 25, 2009 1:09 am
by maarten
AnnihilatorX wrote:Position 20 is the character number on that line of code and is irrelevent hence.


What I'd do if I were you, I would manually open sb4 file with notepad (keeping a backup of course)
Then delete all doodads using notepad.

sb4 files now is unencrypted and sometime it's easier to delete stuff there. Weapon, section and doodads, trigger for sections, trigger for weapons each have their own sections.
I you are going to do it that way I advise you to use PSPad it's a lot easier to use then notepad, and a lot more powerful too. I found it rather hard to use notepad for codes, but it's up too you.

And didn't he say he found the error?

Btw Lovely ship!

Posted: Mon May 25, 2009 2:09 am
by AnnihilatorX
I use notepad++ actually.

Lol I thought I have mis-read it.