Making turrets... but the driving won't work.

Discuss all things Battleships Forever that aren't Ships and Shipmaker - Missions, Development, etc.!

Moderators: th15, Moderators

Post Reply
User avatar
Siniruusu
Ensign
Ensign
Posts: 7
Joined: Mon Jun 29, 2009 8:20 am

Making turrets... but the driving won't work.

Post by Siniruusu »

Ugh... my first post, and it has to be like this. Yes, I'm trying to make turrets for one of my ships, and it worked fine until it happened.

I had a turret, with some autocannons on top of it, and tried to make an other autocannon for driving it, and this is the result:
___________________________________________
ERROR in
action number 1
of Create Event
for object __newobject996:

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

___________________________________________
ERROR in
action number 1
of Step Event
for object Autocannon:

Error in code at line 45:
if dc_group != -1 && l_owner.dc_controlled then

at position 23: Unknown variable l_owner

___________________________________________
ERROR in
action number 1
of End Step Event
for object ShipSection:

Error in code at line 275:
image_angle = l_owner.image_angle + l_angle + rs_rotang

at position 20: Unknown variable l_owner
___________________________________________
ERROR in
action number 1
of End Step Event
for object ctr_Turrets:

Error in code at line 4:
dir = rs_offsetdir + rs_owner.image_angle - rs_owner.l_angle

at position 32: Unknown variable image_angle

___________________________________________
ERROR in
action number 1
of Alarm Event for alarm 10
for object ctr_Turrets:

Error in code at line 1:
if (dc_group != -1 && l_owner.dc_controlled) ||

at position 23: Unknown variable l_owner
With pictures:

Image

and with this the ship is still running

Image

but...

Image

and putting the driver on place

Image

And the error pops up when loading the ship on the game.

I would really appreciate any help, since I happen to like that ship (and my turret design).

EDIT: I deleted all the cannons in the ship, and made a new turret... and it works. So I still have no idea why it didn't earlier, and I don't really want to use another evening of my life to try fix the turret that did not work, so I'll just use the new turret.

Thank you for the replies, and sorry for using your time.
Last edited by Siniruusu on Sun Jul 05, 2009 8:25 pm, edited 1 time in total.
Xynus
Lieutenant Commander
Lieutenant Commander
Posts: 62
Joined: Sun Apr 12, 2009 10:32 am

Post by Xynus »

driver must not be parented to the section it is driving.
User avatar
Siniruusu
Ensign
Ensign
Posts: 7
Joined: Mon Jun 29, 2009 8:20 am

Post by Siniruusu »

Ooh, I know, i know... it isn't, so the problem can't be that, but thanks anyways.
Xynus
Lieutenant Commander
Lieutenant Commander
Posts: 62
Joined: Sun Apr 12, 2009 10:32 am

Post by Xynus »

that's exactly what it looks like from the picture.

if you want the other weapons to fire in unison you have to link them to the driver weapon.
User avatar
Arcalane
Pseudofeline Overlord
Posts: 4034
Joined: Thu Sep 13, 2007 10:37 am
Location: UK

Post by Arcalane »

If you'd be so kind as to upload the blueprint, some of our more experienced people could probably take a closer look at it.
  /l、
゙(゚、 。 7
 l、゙ ~ヽ
 じしf_, )ノ
User avatar
Siniruusu
Ensign
Ensign
Posts: 7
Joined: Mon Jun 29, 2009 8:20 am

Post by Siniruusu »

I'm sorry, the picture is a little messy. And I know also that they need to be linked, but that was the next step, and I didn't really get to it with the ship not working.

Oops, sorry for not uploading the ship also, since it should've been obvious to upload it X_x ... so here it is;

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

And as a side note, really large thank you for Arcalane for running the Metagame, I like the ships people have made for it =P
Post Reply