[SCRIPT] Gateless Jump Hotkey/Command Updated: 12/02/08

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

PaulP
Posts: 185
Joined: Tue, 18. Nov 08, 01:50
x4

[SCRIPT] Gateless Jump Hotkey/Command Updated: 12/02/08

Post by PaulP » Wed, 26. Nov 08, 09:41

This script allows you to jump to a specified location, without need for a gate. It uses all the effects of regular jumping, only gateless. It has both a hotkey (which works about the same as the J key, except you specify a location rather than a gate) and a command.

Either option will ask you if you wish to bring followers if you have ships that are currently following you. Your ship and all followers must have a jumpdrive, navigation command, and the required energy cells. If a ship does not have one of these things, you will be sent a message.

Gateless jumps cost twice as much as regular jumps, so carry extra cells. It is more efficient to jump long distances to a gate, and then jump the remaining distance with the gateless jump.

Using this you can jump to otherwise difficult to access sectors, like the Terran sectors or a specific location inside Aldrin. Jumping directly onto a station by targeting it is perfectly safe - if you do, the game automatically moves you to a position near it.

Installation: Copy the folders in this zip file (t and scripts) into your X3TC directory. Alternatively, copy the t file and the 5 scripts over manually.

Uninstallation: Since this script creates a hotkey, I have included an uninstall script. Run a.a.paulp.gatelessjump.uninstall using the script editor and the hotkey will be removed.

Instructions for use:
After the files are installed, a hotkey and a command will be created on game load. To use the hotkey you must go into controls, interface, and find the Gateless Jump hotkey. Set it to whatever key you like. The command is in the Navigation section of your command console, labeled as Jump to Position.

Simply press the key or pick the command, select a sector, then select a position. If you have followers you will be prompted whether or not they should follow you. After this the standard jump countdown will start, and once it reaches 100% you will jump as normal. As soon as you jump, the script moves you to the specified coordinates. You will likely see the initial entry view for a second or so before you get moved - this is normal, and I believe it is unavoidable. After you're in, your followers should start popping in within a couple seconds. There is a small randomness to the timing, so the ships won't all pop in at once.

v.2 adds Jump to Dock. This jumps the ship near the station or carrier the same as if you had selected it as the position for Jump to Position, and then it attempts to dock. Their are also now wing command versions of both of these, which simply tell the entire wing to jump. These wing versions automatically have all followers jump with them, since I assumed if you were jumping wings you would want all the ships to jump.

Notes:
I have tested this script extensively, and I think I've tracked down most of the bugs. I even tested things like issuing an order to a lead ship to jump a chain of followers out with the player following the ship at the end, and it all worked fine. However, if you find a bug please tell me in this thread so I can correct it.

Version History:
v.2: Added Jump to Dock command, wing commands, corrected the replace function in messages to not replace the Y in ship names (now its pattern YZ).
v.1: Initial Release.

Download (old):
Image (old v.1.zip)

Download:
Image (v.2.zip)

I get the distinct feeling that some people don't like the 2x energy cell requirement, so heres a version with that part removed:
Image (1x ecells v.2.zip) This one uses the same as a standard jump.

NOTE: Apparently, filefront is dieing. All my links were thus broken. I moved all my X3TC files to drop.io - they have a 1 year expiration date on files, so it should stay a while.
Last edited by PaulP on Tue, 9. Jun 09, 18:04, edited 5 times in total.

bounty_hunter66
Posts: 465
Joined: Tue, 15. Aug 06, 13:36
x3tc

Post by bounty_hunter66 » Wed, 26. Nov 08, 11:28

You are my hero! :D

Also, can you make it play sounds when it jumps out and in?(im talking about a ship that is jumping without the player in it -ordered- so that when it does the jump effect it plays a sound.

Something like this:

http://www.youtube.com/watch?v=RiMS1bDYUQo&fmt=18

PaulP
Posts: 185
Joined: Tue, 18. Nov 08, 01:50
x4

Post by PaulP » Wed, 26. Nov 08, 18:04

I COULD, but it seems like that would get really annoying. Hearing ZbtZzbtZZZZbtZZbtZbt when you're jumping in with a bunch of fighters just doesn't seem appealing to me...

The standard jumpdrive doesn't play a sound. This script uses the same command (use jump drive: target=) as the regular jumpdrive does, that's actually where I got it from - digging around in the !move.jump file. It plays the sound when you jump, but everyone else it just has the little flash upon entering and exiting.

When I first decided to make this script I thought I would have to devise a big script to do everything the standard ones do, but the standard ones just use that command - it does everything from playing the sounds to jumping you between sectors to making the flash to using up the initial energy cells without any more input than "= [THIS] -> use jump drive: target = sector"

The only real differences between the base functionality of this and the way the standard jumpdrive functions is this one moves you to a position as soon as you're in the sector and eats extra energy cells. That and it doesn't use gates at all - it just targets sectors, the same way the standard one does if you jump to somewhere like Aldrin.

bounty_hunter66
Posts: 465
Joined: Tue, 15. Aug 06, 13:36
x3tc

Post by bounty_hunter66 » Wed, 26. Nov 08, 19:56

Not necesarly the sounds in the video....it could be other cutom added sounds

User avatar
Malakie
Posts: 863
Joined: Tue, 13. Apr 04, 23:08
x4

Post by Malakie » Thu, 27. Nov 08, 05:22

bounty_hunter66 wrote:Not necesarly the sounds in the video....it could be other cutom added sounds

How about when you initiate the jump play a sound then after ALL ships you have jumping have completed their jumps, play another sound to signify all ships have jumped.
Take it light.....

Malakie

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

DeBernd
Posts: 86
Joined: Fri, 4. Mar 05, 23:08
x3tc

Post by DeBernd » Thu, 27. Nov 08, 20:10

Yeessss!! finally someone Did it.

THANK YOU SO MUCH!!!

I always thought that this gate-jumping is lame, gateless jumps at least for the bigger ships is really needed.
....especially as the AI can do it anyways, so i don't consider it a cheat.

Thanks again... installing right now.

Bernd.
Apple MacPro 2,8 Ghz (2x Quadcore Xeon)
AMD Radeon 5770 (1GB RAM)
Bootcamp: Top Performance (X3 TC)
Mac: Poor Performance (X3 AP) :-((((

PaulP
Posts: 185
Joined: Tue, 18. Nov 08, 01:50
x4

Post by PaulP » Fri, 28. Nov 08, 07:46

It has sound when you jump (the same as the standard jump, since it uses the same command), it just doesn't use one when other ships jump in/out.

I just don't really feel the need to add sounds when ships jump in/out of places. If the regular jumpdrive had sounds for that, I would want to add them - but it just doesn't seem right to have this one use sounds when the standard one doesn't.

And a sound to signify all ships have jumped doesn't really seem necessary either - what would it be? A ding, or something? They all jump in pretty quick, and you get a message if one failed to jump for some reason - so there isn't really a chance of leaving ships behind. It would just seem out of place to hear some kind of sound effect when the last ship jumps in, when you didn't hear it for all the others.

It's just my opinion, but any extra sound just seems like it would be extra bloat and accomplish nothing more than getting annoying after extended use.

bounty_hunter66
Posts: 465
Joined: Tue, 15. Aug 06, 13:36
x3tc

Post by bounty_hunter66 » Fri, 28. Nov 08, 11:20

I think its wrong when it DOESNT have any sounds. Seeing the effect and the ship silently dissapear just isnt right! You should hear a wormhole/hyperspace sound when other ships jump in/out

PaulP
Posts: 185
Joined: Tue, 18. Nov 08, 01:50
x4

Post by PaulP » Sat, 29. Nov 08, 21:55

Update v.2
Added Jump to Dock command, wing commands, corrected the replace function in messages to not replace the Y in ship names (now its pattern YZ).

PaulP
Posts: 185
Joined: Tue, 18. Nov 08, 01:50
x4

Post by PaulP » Wed, 3. Dec 08, 06:17

Added an alternate v.2 which uses only the standard energy cells, since some people apparently dislike this feature. I personally feel the extra ecell req helps balance an innately unbalanced feature, but to each their own.

Rivo
Posts: 13
Joined: Fri, 19. Dec 08, 11:53

Post by Rivo » Mon, 29. Dec 08, 10:38

I've been trying out your mod. The problem i have is the distance I'm placed in my M6, about 30k on average. With this SLOW monster I'm flying the extra distance is a problem. Is there anyway to change the distance?

PaulP
Posts: 185
Joined: Tue, 18. Nov 08, 01:50
x4

Post by PaulP » Mon, 29. Dec 08, 10:51

It's the collision detection that's probably getting you. It tries to jump you at the exact spot you specify (which you notice if you jump in ships while OOS), but the game automatically moves you to prevent collisions. This is especially noticeable with big stations, specifically Terran stations.

I don't think theres a reliable way to move you closer. I tried the force to position command and it just warped you to the spot for a split second, did shield damage, and warped you away.

It MIGHT be a bit better if you select a spot a few km away from the station - but it still might just warp you way away, since the collision detection on those big stations is so huge.

altaar
Posts: 2
Joined: Fri, 29. Feb 08, 20:42
x3

Post by altaar » Sat, 24. Jan 09, 16:51

Hello

@ PaulP : I'm going to make a mix of all the "Free Jump" script available, may i use your code plz ?

User avatar
spacefueladdict
Posts: 500
Joined: Thu, 12. Jun 08, 15:42
x3tc

Post by spacefueladdict » Tue, 27. Jan 09, 16:04

Hi Paulp, graet script, :thumb_up:

I am currently working on a mod which is altering the look and sizes of sector's, and i've had a few requests to add a point to point jump drive, and this script seems to fit the bill.

Should i need to, could i have your permission to include this script into the mod? with full credit to yourself of course. :goner:

lastebil
Posts: 291
Joined: Sun, 6. Jan 08, 22:02
x3tc

Post by lastebil » Tue, 27. Jan 09, 16:46

Just a stupid question here:

Will your UTs be able to use this fuction (benefiting from terran sectors)?

Post Reply

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