[SCRIPT] Advanced Jumpdrive V1.50 : Updated 11/03/2007

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

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

Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22438
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

u can only jump to sectors that u have previosuly been to
cloppy007
Posts: 95
Joined: Thu, 18. Jan 07, 23:20

Post by cloppy007 »

I have been in all of them, but the advanced jumpdrive opens the universe map, unlike the default jump drive dialog which gives the option to select a sector using the universe map or a list of the 5 kha'ak sectors.
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22438
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

the kha'ak sectors should be on theu niverse map in the bottom right corner, unconnected to the rest of the sectors.

have u tryed press k until it highlights them ?
cloppy007
Posts: 95
Joined: Thu, 18. Jan 07, 23:20

Post by cloppy007 »

It didn't work :( I'm running the spanish version, those sectors are listed as "Sector enemigo" (Enemy sector). Pressing K doesn't highlight any sector, E too, and S cycles through Xenon Sectors and others, none of them Kha'ak. I jumped inside the first kha'ak sector, then used the universe map, and I could navigate to the west sectors using the keyboard, but I could not move the pointer back to the kha'ak sectors.
nailz45
Posts: 89
Joined: Sun, 23. Apr 06, 16:48
x3

Post by nailz45 »

i was reading the first few pages of this post and i read that the jumpdrive is hardcoded to use energy and that the script removes all the cargo to make room for energy cells for the jump. but im just curious as to what will happen if your ship simply doesn't have enough cargo space for the energy cells for the jump?
Got any space weed? if not i can hook you up.
garrry34
Posts: 911
Joined: Sun, 17. Jul 05, 14:43
x3tc

Post by garrry34 »

the answer to that is everything in the cargo bay dissappears, cyc ive found some kinda bug with energy cell generation, it replicates to fast and then everything dissappears including shields, ive lost a few of my hyperians due to this, lol going into battle with no shields is never a good idea, lol
PhenomII X4 940 black edition
8GB DDR2
ATI HD4890
Windows 7 64bit
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22438
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

nailz45 wrote:i was reading the first few pages of this post and i read that the jumpdrive is hardcoded to use energy and that the script removes all the cargo to make room for energy cells for the jump. but im just curious as to what will happen if your ship simply doesn't have enough cargo space for the energy cells for the jump?
what should happen, is that it wont allow you to jump if it cant fit enough energy into your cargo bay.

i've never had a problem with the wares not being returned
garrry34
Posts: 911
Joined: Sun, 17. Jul 05, 14:43
x3tc

Post by garrry34 »

the wares will return if i empty the cargobay of energy cells and eject the installed wares, ive tested the bug to see which ware it seems attached to, so far it looks like the actual advanced jumpdrive, ill try it without the addon to see if the problem stops
PhenomII X4 940 black edition
8GB DDR2
ATI HD4890
Windows 7 64bit
Jab12
Posts: 15
Joined: Tue, 2. Jan 07, 00:02
x3

Post by Jab12 »

I've been using jumpdrive generator for a while; now have enough for advanced jumpdrive and targeting scanners
bought them through trading extension (m6)
had him free energy jump to my sector
transfered it to my m7
tried to jump to position from command menu (selected station to jump to) but get a proximity warning and no jump

how do i use the position command?
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22438
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

u cant jump directly onto a station, you have to jump into empty space, hence the proximity warning.

when u do jump to position, use the number pade to move the cursor into an empty area close to where you want to goto, then then it'll jump
Jab12
Posts: 15
Joined: Tue, 2. Jan 07, 00:02
x3

Post by Jab12 »

okay thanks alot
wanderer
Posts: 279
Joined: Wed, 6. Nov 02, 20:31
x3tc

Autom.Jump deletes ship inventory

Post by wanderer »

Hi Cycrow,

in an earlier post from reinhart_menken (page 18, bottom):
Cycrow wrote:sounds like the auto command was attempting to jump each time but it failed.

which is strange as it shouldn't try to jump if its in the same sector, is it 100% repeatable ?

I can confirm it. Its weird.

- I have it turned on and set 'Fly to...' - it works fine - I also (set some debug log comments) to see the destination ($target) as a sectorname.

- I set a command 'Follow... <a ship>' and it tries to jump. You can see shields decreasing, then several parts of the inventory were cleaned. The Advanced Jumpdrive included. In the debug comments I got a $target 0,0,0,null.

In both cases, it was tested with M6 (Nemesis, Centauer) and a M7, all ships carried nearly every possible original EGO upgrade and around 80% of goods inside. No other MODs active, Bonus 3.1.05 and X3plus packet.

I think its a problem inside the plugin.advjump.autojump script. Here you catch the actual command for this ship. In case its a fixed position, eg. sector, station it seems working without errors. If set to a moving ship it creates this null values.

Hm,

Code: Select all

062       resize array $target.pos to 0
063       append 0 to array $target.pos
064       append 0 to array $target.pos
065       append 0 to array $target.pos
066       append $target to array $target.pos
067       $target.sector = $target
You go into this script part in case $target is null. Well, but then how to get the destination sector? Line 067 seems to make no sense to me, while as said, the $target itself is empty. So, in this case the upcoming jump in 'plugin.advjump.jump' goes to null.
And here, you start later to remove the inventory.

In the moment I'm trying to get these 'null' values out of the plugin.advjump.autojump script. Trying to check before jumping, if 0,0,0,null then abord jump.
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22438
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

basically what its sposed to do, is if its something like the follow command, the target should be a ship.

if the target is a ship, it should get the destinartion sector of that ship and jump to there instead.

im guess its this part of the script thats not working correctly. Ill have to check this
wanderer
Posts: 279
Joined: Wed, 6. Nov 02, 20:31
x3tc

Post by wanderer »

Hi Cycrow,

so, more info after debug:

- I startet the Auto Jump new, clean log. The ship, startet before, is running in 'Defend...<another ship>'. It was following the leader (a Raptor carrier) without anything - no combat or else.

The Autojump was going through the lines and presented me with the complete coordinates of the leader. It went through the checks and when it came to the if $target -> is of class Moveable Ship it failed. It went into:

Code: Select all

055        write to player logbook 'Target it NOT a ship!'
056        $target.sector = $target -> get sector
057        $target.pos = $target -> get position as array
058        append $target.sector to array $target.pos
059        write to player logbook $target.pos
And here after this code - i got the problem 0,0,0,null as $target.pos and as sector 'null'. After this, well - there goes my inventory...

Well, hope it will help. For me now - well g8 :D

-------------------

2nd comment:
I also installed your Trading Distribution Network scripts. Here I have the same error. But the difference is now, that it happens also when only the Adv.JD is installed. I didn't set the Autojump feature. Inventory was gone after the installment and starting of the TDN.
reinhart_menken
Posts: 229
Joined: Sat, 27. Jan 07, 05:23

Post by reinhart_menken »

wanderer,

So, so far what commands have you used that causes this bug? I've only found it during the patrol command, and would like to know because I'm thinking about using the auto jump aux command script again. Thanks a lot!
wanderer
Posts: 279
Joined: Wed, 6. Nov 02, 20:31
x3tc

wg.: Missing/gone upgrades

Post by wanderer »

Hello Reinhard,


I used 'Follow... <ship>', 'Protect...' - there it was.
Here my changes (in: plugin.advjump.autojump):

Code: Select all

...
060       $target.sector = $target
061      end
062      
063   * We check again, if a target sector is given
064      if $target == null OR $target.pos == null OR $target.sector == null
065   *write to player logbook 'Adv. Jumpdrive: No target sector set, abording script!'
066      else
067       $Ship.name = [THIS] -> get name
068       $this.sector = [THIS] -> get sector
069       if $target.sector != $this.sector
070   *write to player logbook: printf: fmt='Adv.Jumpdrive: Automatic Jump startet from Ship '%s' to sector '%s'.', $Ship.name, $target.sector, null, null, null
...
This only sets an condition to avoid the NULL as target. In this case my inventory is still there.

Also, found a second problem:
I use Adv.JD for my FSUP. Set 'Auto use' to on. It works. But my ship is always jumping 2 times. First to the nearest gate, then to the middle of the sector. Its anoying, still works for me now.

And third: A, well, using ACC (Anarkis carrier cmds.) and Adv.JD with Auto Jump on - and now the carrier jumps, and my not landed ships... They're still in the old sector, desperate trying to fly to xenon sectors to follow the carrier ;-)
But here, I think I get a solution by implementing a 'eg.: all ships landed' function into the '!move.jump.xml' from the Plugin.

regards[/code]
Annex
Posts: 39
Joined: Sun, 18. Jul 04, 21:11

Post by Annex »

Why does the advanced jumpdrive appear as a ware in my freight bay, and not an extension? (regardless if im cheating to add it or buying it from the argon docks) I tried on vanilla X3 2.0 without any other addons besides EMP installed and it still does it.
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22438
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

because its a ware and not an extension, its sposed to be there
tatakau
Posts: 697
Joined: Sat, 21. Oct 06, 08:09
x3tc

Post by tatakau »

deleted
Last edited by tatakau on Wed, 12. Jun 19, 12:14, edited 1 time in total.
tatakau
Posts: 697
Joined: Sat, 21. Oct 06, 08:09
x3tc

Post by tatakau »

deleted
Last edited by tatakau on Wed, 12. Jun 19, 12:14, edited 1 time in total.

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