Salvage Command Suite and Advanced Jumpdrive?

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
Chrome Enigma
Posts: 1
Joined: Thu, 28. Oct 10, 01:20
x3tc

Salvage Command Suite and Advanced Jumpdrive?

Post by Chrome Enigma » Mon, 17. Oct 11, 23:19

Is there any way to get these working together? I want to fit out a fleet of M5s with Advanced Jumpdrives and issue them the 'Salvage Universe' command but it doesn't recognise the Advanced Jumpdrive as a Jumpdrive so it just toddles off to the nearest station, curls up and goes to sleep.

I'm not scared of altering a few lines of code if that's what it takes but I just don't know what I'd be changing...

Any help with this would be greatly appreciated :)

Phezzan
Posts: 79
Joined: Mon, 12. Nov 07, 05:48
xr

Post by Phezzan » Wed, 19. Oct 11, 12:58

look for:
[THIS]->get amount of ware {Jumpdrive} in cargo bay

If the script attempts to maintain Ecells, you'll need to teach it not to bother if it has an Advanced jumpdrive.

I wrote a 'getJumpEnergy' command for my jump capacitor ware. Basically I replace any call for 'get amount of ware {Energy Cells} in cargo bay' with a call to that script and the script checks for wares that provide energy and returns the sum of all energy cell sources.

The other thing you must do is ensure that !move.jump is going to call advjump.

Cycrow has an addon that tweaks !move.jump to do that 'Advanced Jumpdrive Override'

Good luck

Post Reply

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