Scripted M7/M8 ships won't fire

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
Snakes6369
Posts: 6
Joined: Tue, 24. May 11, 21:56

Scripted M7/M8 ships won't fire

Post by Snakes6369 » Tue, 24. May 11, 22:03

Hi guys,

Im a noobie but i scripted my first ships with deafault wares,

Most of them I can use pretty well but my titan/collosus class ships won't fire!! (only missles)

I don't see any weapons in the left bottom screen like when you first have with the Elite, (i can only see missles there) (but i do see the weapons in the weapon menu).

I added gauss cannon amo and chain gun ammo but it still wont work.

it works fine with my other ships though..


Plz help guys its getting very frustrating

Feloidea
Posts: 553
Joined: Sat, 25. Apr 09, 11:06
x4

Post by Feloidea » Tue, 24. May 11, 22:06

What was the code you used when scripting them?

Even if I may not see the error, others WILL see it at first glance if it is what I suspect it is.

Snakes6369
Posts: 6
Joined: Tue, 24. May 11, 21:56

Post by Snakes6369 » Tue, 24. May 11, 22:14

This is the script i used

[ external image ]

001 $sector = [PLAYERSHIP ] -> get sector
002 $ship = create ship: type=Titan owner= Player addto=$sector x=0 y=0 z=0
003 $ship -> add default items to ship
<New Line>

Feloidea
Posts: 553
Joined: Sat, 25. Apr 09, 11:06
x4

Post by Feloidea » Tue, 24. May 11, 22:22

Did you manually installed the weapons?

Because the script will only add some wares to the ship, not install them iirc.

Snakes6369
Posts: 6
Joined: Tue, 24. May 11, 21:56

Post by Snakes6369 » Tue, 24. May 11, 22:27

well the weapons are installed in the weapons control menu

if deleted them and reinstalled them but to no avail.

Correct me if im wrong but in my main window (the one were you can activate "follow mouse" and shoot with right mouse button). Shouldn't i see my weapons above the missile info button at the left bottom of the screen.

Im getting really desperate, do you have any troubles with this or another script i can implement?

Feloidea
Posts: 553
Joined: Sat, 25. Apr 09, 11:06
x4

Post by Feloidea » Tue, 24. May 11, 22:32

It has been a while I last flew with a CapShip so my memories might be a bit blurry, but I don't think turrets display their loadout to the normal control screen. Try switching to the frontturret and check again.
I am positive that there SHOULD be weapons listed if things didn't go amiss.

But as the Titan has no frontweapons itself, just the turret, I think everything should be okay.

I may be wrong though, ... haven't had a gaming session of X³TC in a loooong time :nö:

Snakes6369
Posts: 6
Joined: Tue, 24. May 11, 21:56

Post by Snakes6369 » Tue, 24. May 11, 22:34

but shouldn't they attack when i order them to, if im on my elite again?

They swirl arround the enemy but they don't fire notting?

Snakes6369
Posts: 6
Joined: Tue, 24. May 11, 21:56

Post by Snakes6369 » Tue, 24. May 11, 22:41

or do they need special ammunition for there cannons?

SyncViews
Posts: 58
Joined: Thu, 27. Jan 11, 14:38
x3tc

Post by SyncViews » Tue, 24. May 11, 23:45

Most capital ships only have turreted lasers, and those require the turret commands to be set in order to fire, not just the main command (that handles non-turreted lasers and missiles)

Snakes6369
Posts: 6
Joined: Tue, 24. May 11, 21:56

Post by Snakes6369 » Thu, 26. May 11, 20:03

i feel so stupid now they are firing, many thanks anyhow

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”