Page 1 of 1

Custom ship spewing out errors...

Posted: Wed Sep 30, 2009 6:31 pm
by HeliFreak
Hi, ive been making ships for a while now but none have been more than 5 minute half-assed things mainly for testing. But now i try to make one thats actually any good and it spits out this error...


___________________________________________
ERROR in
action number 1
of Create Event
for object __newobject1016:

In script nTur2:
Error in code at line 24:
l_section[argument6].l_child[l_section[argument6].l_childnum] = l_weapon[wj]

at position 4: Unknown variable l_section or array index out of bounds

I have no idea why this happens... It happened on another ship but i thought it was because of the section that flew out of the boundaries for no reason... hope someone knows whats wrong with it...

Thanks in advance.

Oh and link to file...

http://www.wyrdysm.com/battleshipsforev ... lareon.rar

Posted: Wed Sep 30, 2009 7:21 pm
by Cycerin
You have probably tried to mirror a depth-toggled weapon or thruster. Delete them and resave, and it should work.

Posted: Wed Sep 30, 2009 7:47 pm
by HeliFreak
By the depth-toggled thingos i think you mean using the 'w' key cos i got rid of them and it worked... thanks!

Posted: Wed Sep 30, 2009 9:38 pm
by Cycerin
Yep, that's it. I kept fucking up that until I learnt to mirror them before i depthed.

Posted: Thu Oct 01, 2009 5:26 am
by Silverware
Oh so THATS what causes that!
Well thats going to save some hassle in the future.