Lasertower Upgrade Script available now
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
Pro_Consul
- Posts: 7
- Joined: Wed, 28. Dec 05, 13:54

-
PabloRSA
- Posts: 690
- Joined: Sat, 31. Dec 05, 20:46

Ok this maybe a stupid question aswel.
Why not make a LT sellable with 125mj shields at the AI LT factorys. This would then make it easyer than an upgrade for these people that dont have LT and are planning to get them.
Edit:
Note I havent d/l script yet so assuming they are not sellable at LT fact as it hasnt been pointed out in your original post.
Why not make a LT sellable with 125mj shields at the AI LT factorys. This would then make it easyer than an upgrade for these people that dont have LT and are planning to get them.
Edit:
Note I havent d/l script yet so assuming they are not sellable at LT fact as it hasnt been pointed out in your original post.
-
LV
- Sith Lord
- Posts: 8255
- Joined: Wed, 6. Nov 02, 20:31

Have you thought about having this script upgrade all player LT's for a set fee every x hours instead of using commands, No messing for the player other than paying his bill every now and then and I'd even have it upgrade all non player LT's as imo they should be 125 shielded by default?
LV's TC Scripts
Readme's For All My Scripts
I felt a great disturbance in the forum, Like millions of voices cried out in terror, then were silenced
si tacuisses, philosophus mansisses
Readme's For All My Scripts
I felt a great disturbance in the forum, Like millions of voices cried out in terror, then were silenced
si tacuisses, philosophus mansisses
-
euclid
- Moderator (Script&Mod)

- Posts: 13543
- Joined: Sun, 15. Feb 04, 20:12

Pro_Consul: The scripts checks the shields ove all your deployed LT's and only those with 25 MJ shields will be upgraded. So no double pay.
However, there is a catch with hull repairs: if you collect an upgraded LT (so that its hull is repaired) then the shield is downgraded to 25 MJ.
PabloRSA: That would be a mod rather than a script. I hope a future patch will do that.
LV: I don't like permanently running scripts. A few of them are Ok but in numbers they put a heavy load on the CPU IMO. Also you want your LT to be upgraded immediately after deployment and not some minutes later.
To incorporate the upgrade of NPC LT's is a nice idea.
Cheers Euclid
However, there is a catch with hull repairs: if you collect an upgraded LT (so that its hull is repaired) then the shield is downgraded to 25 MJ.
PabloRSA: That would be a mod rather than a script. I hope a future patch will do that.
LV: I don't like permanently running scripts. A few of them are Ok but in numbers they put a heavy load on the CPU IMO. Also you want your LT to be upgraded immediately after deployment and not some minutes later.
To incorporate the upgrade of NPC LT's is a nice idea.
Cheers Euclid
-
LV
- Sith Lord
- Posts: 8255
- Joined: Wed, 6. Nov 02, 20:31

who said anything about perminantly running scripts? that's what timers are foreuclid wrote: LV: I don't like permanently running scripts. A few of them are Ok but in numbers they put a heavy load on the CPU IMO. Also you want your LT to be upgraded immediately after deployment and not some minutes later.
To incorporate the upgrade of NPC LT's is a nice idea.
Cheers Euclid
Upgrade all NPC Ltowers in 0.5s
As you will see with this script that took all of 1 min to write it's possible to run commands only on re-init or load that will execute and finish before you can say #wooho#
-
euclid
- Moderator (Script&Mod)

- Posts: 13543
- Joined: Sun, 15. Feb 04, 20:12

So whenever you load a savegame or start X3 all NPC LT's will be checked and upgraded if necessary?LV wrote:..... it's possible to run commands only on re-init or load that will execute and finish before you can say #wooho#
Excellent - didn't know that this is possible. Indeed, a very useful feature.
Cheers Euclid
-
MillerTime
- Posts: 184
- Joined: Tue, 8. Nov 05, 19:01

I just deployed som LT's and it doesn't seem to work, when I upgrade it says autopilot activated but it just stays at 25MJ and I get the Upgrade of 0 LT's for 0 credits. I don't know what I may be doing wrong. Anyone else ?
Just to let you know that I put 21 LT's around a gate and it killed 2 falcons in around 20 seconds and 2 busters without them even having fired a shoot. The busters took just a tad longer though. Nice lite show also.
Antec 3700-QBE - True-Blue 480 Watt - K8V Deluxe - AMD 3200+ - 1G Kingston HyperX PC3500 - X800XL 256 AGP - 480 Gig Barracuda's - Plextor PX-708A - LG GCE-8320B - HP P1110 Trinitron FD - Audigy 2 ZS Platinum Pro - Megaworks 550's.
-
MillerTime
- Posts: 184
- Joined: Tue, 8. Nov 05, 19:01

Can someone confirm this for me.
try placing a LT right beside a gate and try to upgrade it to 125MJ.
If I place it a few KM away the upgrade works but not if you place it right beside a gate.
try placing a LT right beside a gate and try to upgrade it to 125MJ.
If I place it a few KM away the upgrade works but not if you place it right beside a gate.
Antec 3700-QBE - True-Blue 480 Watt - K8V Deluxe - AMD 3200+ - 1G Kingston HyperX PC3500 - X800XL 256 AGP - 480 Gig Barracuda's - Plextor PX-708A - LG GCE-8320B - HP P1110 Trinitron FD - Audigy 2 ZS Platinum Pro - Megaworks 550's.
-
LV
- Sith Lord
- Posts: 8255
- Joined: Wed, 6. Nov 02, 20:31

just call the script that runs the command(s) via a setup.bla.bla scripteuclid wrote:So .........
LV's TC Scripts
Readme's For All My Scripts
I felt a great disturbance in the forum, Like millions of voices cried out in terror, then were silenced
si tacuisses, philosophus mansisses
Readme's For All My Scripts
I felt a great disturbance in the forum, Like millions of voices cried out in terror, then were silenced
si tacuisses, philosophus mansisses
-
euclid
- Moderator (Script&Mod)

- Posts: 13543
- Joined: Sun, 15. Feb 04, 20:12

The current version has a range restriction to 60 Km (nonsense, I know). Probably your LT's are outside the range.MillerTime wrote:Can someone confirm this for me.
try placing a LT right beside a gate and try to upgrade it to 125MJ.
If I place it a few KM away the upgrade works but not if you place it right beside a gate.
I will update the script soon for infinite range.
Meanwhile open the script editor, open the script upgradelt and scroll down to the line 18 (I think) with find ship.... there replace '60000' by 'null'.
Sorry for the confusion.
Cheers Euclid
-
MillerTime
- Posts: 184
- Joined: Tue, 8. Nov 05, 19:01

Great it worked, thanks. Just had to reinit the script once the change was made.euclid wrote:Meanwhile open the script editor, open the script upgradelt and scroll down to the line 18 (I think) with find ship.... there replace '60000' by 'null'.Sorry for the confusion.Cheers Euclid
Also noticed that if you target one LT and upgrade it, it will upgrade all LT's in the area at the same time. I upgraded 26 LT's for a total cost of 1823016 credits
Antec 3700-QBE - True-Blue 480 Watt - K8V Deluxe - AMD 3200+ - 1G Kingston HyperX PC3500 - X800XL 256 AGP - 480 Gig Barracuda's - Plextor PX-708A - LG GCE-8320B - HP P1110 Trinitron FD - Audigy 2 ZS Platinum Pro - Megaworks 550's.
-
euclid
- Moderator (Script&Mod)

- Posts: 13543
- Joined: Sun, 15. Feb 04, 20:12

-
George Wills
- Posts: 546
- Joined: Wed, 6. Nov 02, 20:31

-
MillerTime
- Posts: 184
- Joined: Tue, 8. Nov 05, 19:01

don't they downgrade automatically when you pick it up ?George Wills wrote:What about second command to downgrade shields (125 to 25) of selected LT only, before you scoop it for "repairs damaged hull"?
and how do you repair a damage hull to an LT ?
Antec 3700-QBE - True-Blue 480 Watt - K8V Deluxe - AMD 3200+ - 1G Kingston HyperX PC3500 - X800XL 256 AGP - 480 Gig Barracuda's - Plextor PX-708A - LG GCE-8320B - HP P1110 Trinitron FD - Audigy 2 ZS Platinum Pro - Megaworks 550's.
-
euclid
- Moderator (Script&Mod)

- Posts: 13543
- Joined: Sun, 15. Feb 04, 20:12

The hull is repaired automatically once you've picked it up. Disadvantage is that the 125 MJ shield is replaced by a 25 MJ shield. So when you deploy the LT you have to uprgade it again.
The reason is this: You actually do not pick up the LT. It is just destroyed without explosion and a new one is placed into your cargo hold.
Regard the cost for upgrading it again as a contribution towards the hull repair.
BTW: I think LT should come with 125MJ shields from the fab. Most likely this 'bug' will be fixed in a future patch anyway.
Cheers Euclid
The reason is this: You actually do not pick up the LT. It is just destroyed without explosion and a new one is placed into your cargo hold.
Regard the cost for upgrading it again as a contribution towards the hull repair.
BTW: I think LT should come with 125MJ shields from the fab. Most likely this 'bug' will be fixed in a future patch anyway.
Cheers Euclid
-
LV
- Sith Lord
- Posts: 8255
- Joined: Wed, 6. Nov 02, 20:31

-
Khaakbuster
- Posts: 393
- Joined: Sun, 8. Jan 06, 18:43

-
euclid
- Moderator (Script&Mod)

- Posts: 13543
- Joined: Sun, 15. Feb 04, 20:12

As I said above, it's a 'bug' IMO but some people (Euclid nods head in LV's direction) think it's a 'feature'.Khaakbuster wrote: ....Why do the laser towers all have 25MJ shield? When I looked into the 05.cat I only found two versions of "laser towers" in the TShips.pck, one with a 1MJ shield and one with a 125MJ shield. Where do those LTs with 25MJ come from?
Cheers Euclid
-
Khaakbuster
- Posts: 393
- Joined: Sun, 8. Jan 06, 18:43

Aha, so that probably means that there is an ingame script that spawns custom LTs that don't use the values from the .cat. Unfortunately we don't have access to that script. Damn! 
edit: By the way I don' t think it is a "feature". I guess everybody has already seen what one M4 alone can do to a LT in its present form without even being scratched, so LTs are totally useless without the upgrade.
edit: By the way I don' t think it is a "feature". I guess everybody has already seen what one M4 alone can do to a LT in its present form without even being scratched, so LTs are totally useless without the upgrade.

