Lasertower Upgrade Script available now

The place to discuss scripting and game modifications for X³: Reunion.

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

Pro_Consul
Posts: 7
Joined: Wed, 28. Dec 05, 13:54
x3

Post by Pro_Consul »

Another stupid, obvious question: will it ignore LTs that have already been upgraded so that I don't have to pay multiple times if I deploy more LTs later down the road?
PabloRSA
Posts: 690
Joined: Sat, 31. Dec 05, 20:46
x4

Post by PabloRSA »

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.
User avatar
LV
Sith Lord
Posts: 8255
Joined: Wed, 6. Nov 02, 20:31
x3tc

Post by LV »

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
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13543
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid »

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
User avatar
LV
Sith Lord
Posts: 8255
Joined: Wed, 6. Nov 02, 20:31
x3tc

Post by LV »

euclid 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
who said anything about perminantly running scripts? that's what timers are for :)

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# :)
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13543
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid »

LV wrote:..... it's possible to run commands only on re-init or load that will execute and finish before you can say #wooho# :)
So whenever you load a savegame or start X3 all NPC LT's will be checked and upgraded if necessary?

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
x3

Post by MillerTime »

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 ?

:wink: 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
x3

Post by MillerTime »

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.
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.
User avatar
LV
Sith Lord
Posts: 8255
Joined: Wed, 6. Nov 02, 20:31
x3tc

Post by LV »

euclid wrote:So .........
just call the script that runs the command(s) via a setup.bla.bla script
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
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13543
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid »

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.
The current version has a range restriction to 60 Km (nonsense, I know). Probably your LT's are outside the range.

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
x3

Post by MillerTime »

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
Great it worked, thanks. Just had to reinit the script once the change was made.

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.
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13543
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid »

Updated !

The download link in the first post is the final (hopefully!) version. No range restriction and an increased number of total player-owned LT's (999999).

Cheers Euclid
User avatar
George Wills
Posts: 546
Joined: Wed, 6. Nov 02, 20:31
xr

Post by George Wills »

What about second command to downgrade shields (125 to 25) of selected LT only, before you scoop it for "repairs damaged hull"?
MillerTime
Posts: 184
Joined: Tue, 8. Nov 05, 19:01
x3

Post by MillerTime »

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"?
don't they downgrade automatically when you pick it up ?

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.
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13543
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid »

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
User avatar
LV
Sith Lord
Posts: 8255
Joined: Wed, 6. Nov 02, 20:31
x3tc

Post by LV »

euclid wrote:
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
what makes you think this?

and it's not a bug it's a feature ;)
User avatar
Khaakbuster
Posts: 393
Joined: Sun, 8. Jan 06, 18:43
x3tc

Post by Khaakbuster »

Another stupid question: :wink:

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?
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13543
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid »

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?
As I said above, it's a 'bug' IMO but some people (Euclid nods head in LV's direction) think it's a 'feature'. :wink:

Cheers Euclid
User avatar
Khaakbuster
Posts: 393
Joined: Sun, 8. Jan 06, 18:43
x3tc

Post by Khaakbuster »

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. :roll:
Slayersyd
Posts: 57
Joined: Sat, 7. Feb 04, 17:16
x3ap

Post by Slayersyd »

Great script, cheers euclid!

Return to “X³: Reunion - Scripts and Modding”