[SCRIPT] Free Jump - version 1.4

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

User avatar
Graxster
Posts: 817
Joined: Sat, 14. Oct 06, 01:01
x3tc

[SCRIPT] Free Jump - version 1.4

Post by Graxster » Wed, 12. Nov 08, 18:12

Free Jump

:arrow: Adds Navigation Command: Free Jump

:arrow: Adds a Hotkey for Free Jump (you can use from Nav commands or hotkey).

:arrow: Required: Navigation Command Software MK1 and a Jump Drive

What it does:

Having nav cmd MK1 and a jump drive, player ships will now have the command, "Free Jump" in the Navigation menu. Warps ship to specific coordinates within any sector. Does not require energy cells or cargo space for energy cells. Can warp ships to all Terran Sectors (doesn't require gates).

Enjoy!

-Grax

---------------------------------------------------------------------
UPDATE: version 1.1

Added a popup menu when a ship using Free Jump has followers.
Asks you if you want the followers to jump also (just in case you don't).
Makes followers use Free Jump.

UPDATE: version 1.2

Added some variation/randomization of destination position for followers, so they don't jump in right on top of the ship they're following.
Removed an unnecessary wait command when the jumping ship is not the Playership.

UPDATE: version 1.3

Fixed player ship sometimes ending up at coordinates 0,0,0.
Reorganized code.

UPDATE:

Repackaged so the hotkey scripts are included in main package.

UPDATE: version 1.4

Hotkey script now checks for jumpdrive.
Added Free Jump command for Wings.
---------------------------------------------------------------------

Free Jump - Credits - v1.4

Calculates how many energy cells the ship would have used, and deducts the cost from your money (@ 12cr per energy cell).

SPK

[ external image ]

RAR archive

[ external image ]

---------------------------------------------------------------------
Non-credits version no longer updated/supported
Too much work - may change later...
---------------------------------------------------------------------

Free Jump - v1.3

SPK

[ external image ]

RAR archive

[ external image ]

---------------------------------------------------------------------
Last edited by Graxster on Wed, 3. Dec 08, 19:39, edited 8 times in total.

bounty_hunter66
Posts: 550
Joined: Tue, 15. Aug 06, 13:36
x4

Post by bounty_hunter66 » Wed, 12. Nov 08, 18:28

Question: If i Freejump to a point in another sector, will the ships that follow me jump with me and land at the same point as i specified for my own ship? In other words, is it playership only? Or other player owned ships can jump in groups?

User avatar
Graxster
Posts: 817
Joined: Sat, 14. Oct 06, 01:01
x3tc

Post by Graxster » Wed, 12. Nov 08, 18:51

It's not player ship only, but it doesn't include followers... yet. I'll have to take a look at the jump commands to see how they're doing that to see if it's possible.

-Grax

User avatar
TSM
Not a Moderator
Posts: 2947
Joined: Thu, 1. Jul 04, 12:31
x4

Post by TSM » Wed, 12. Nov 08, 19:12

Nice one Grax do you ever find time to play TC :D
FAQ's Egosoft Interactive FAQ
Egosoft Wiki

bounty_hunter66
Posts: 550
Joined: Tue, 15. Aug 06, 13:36
x4

Post by bounty_hunter66 » Wed, 12. Nov 08, 19:54

It IS possible!! Just take a look at this

http://forum.egosoft.com/viewtopic.php?t=77552

The first script on the list "MH_AdvJumper"...thats the one!! Please just download it and look at it

With that script, if you freejump to a position in a sector, followers will jump at the same time with you and land at the same location at the same time with you (but first you have to set "Auto Jump" in the Additonal Commands menu of every ship)

The cool thing is that if you remote order a ship to Freejump, it will make a cool light effect when it jumps(like the khaak when they jump in and out)

But the bad news is that script is for x2. It worked well in X3:R but in TC it doesnt apear to work. And the maker of that script hasnt posted another message since 2005/2006 or so. So no one will be converting it unless you try Graxster :D

User avatar
TSM
Not a Moderator
Posts: 2947
Joined: Thu, 1. Jul 04, 12:31
x4

Post by TSM » Wed, 12. Nov 08, 20:05

Graxster wrote:It's not player ship only, but it doesn't include followers... yet. I'll have to take a look at the jump commands to see how they're doing that to see if it's possible.

-Grax
Feedback

I am using the Credits Version and with Auto jump set with protect my ship my followers jumped obviously using a count down version.
FAQ's Egosoft Interactive FAQ
Egosoft Wiki

fud
Posts: 9837
Joined: Wed, 25. Jan 06, 14:26
x3

Post by fud » Wed, 12. Nov 08, 20:06

Hmmm

I've got ideas of UT uses now...

Might just have to edit the UT scripts a bit to call this jump command (I'm sure it's a little work).

If you figure out the follower thing, I think you'll have given a new feature to X3 that should have been there a long time ago:

Escorts for UTs that can actually jump with them... :)

User avatar
Graxster
Posts: 817
Joined: Sat, 14. Oct 06, 01:01
x3tc

Post by Graxster » Wed, 12. Nov 08, 20:24

No worries... it was pretty easy to do. Figured it out within a few minutes. Thanks for the link, bounty hunter, but I didn't even come back to the forum until I already finished it. Oh well. As I said, it was easy.

@TSM: Sometimes I find time to actually play... :lol:

And yeah, Auto Jump makes them follow with the standard script. This new version includes a standalone "followers jump" script that uses no energy cells.

Updating links now to version 1.1.

-Grax

fud
Posts: 9837
Joined: Wed, 25. Jan 06, 14:26
x3

Post by fud » Wed, 12. Nov 08, 20:30

Sweet.

I made M6s UT-able, but I think TS with a couple M4 escort would be a cheaper route to go. :P

Lancefighter
Posts: 3144
Joined: Sun, 19. Dec 04, 02:41
x4

Post by Lancefighter » Thu, 13. Nov 08, 01:00

would it be possible to use a hotkey for this by any chance?

User avatar
Graxster
Posts: 817
Joined: Sat, 14. Oct 06, 01:01
x3tc

Post by Graxster » Thu, 13. Nov 08, 01:11

Lancefighter wrote:would it be possible to use a hotkey for this by any chance?
Actually, I made a hotkey version that I've been using for weeks. Just never posted it in the forum. I'll package it later on or tomorrow.

-Grax

User avatar
TSM
Not a Moderator
Posts: 2947
Joined: Thu, 1. Jul 04, 12:31
x4

Post by TSM » Thu, 13. Nov 08, 01:13

:lol: you do more updates than M$ :wink:
FAQ's Egosoft Interactive FAQ
Egosoft Wiki

Lancefighter
Posts: 3144
Joined: Sun, 19. Dec 04, 02:41
x4

Post by Lancefighter » Thu, 13. Nov 08, 03:50

Graxster wrote:
Lancefighter wrote:would it be possible to use a hotkey for this by any chance?
Actually, I made a hotkey version that I've been using for weeks. Just never posted it in the forum. I'll package it later on or tomorrow.

-Grax
score \o/

Now, to clarify; when you use a personal free-jump, weather by hotkey or autopilot, does the AI follower ships also use their free-jump?

User avatar
Graxster
Posts: 817
Joined: Sat, 14. Oct 06, 01:01
x3tc

Post by Graxster » Thu, 13. Nov 08, 20:38

Lancefighter wrote:Now, to clarify; when you use a personal free-jump, weather by hotkey or autopilot, does the AI follower ships also use their free-jump?
Yes

To clarify :wink: , Any time "Free Jump" command is used and the ship using FJ has followers, the Player gets a popup menu that asks, "Should followers jump too?", with a Yes or No option. I added this for the rare instances where you may not want a follower to jump. It only takes a second... just press Enter when the question pops up. This applies in ALL cases, whether it's the Player using FJ and having followers or any other player-owned ship. All follower ships will also use Free Jump.

Adding hotkey scripts now.

-Grax

User avatar
TSM
Not a Moderator
Posts: 2947
Joined: Thu, 1. Jul 04, 12:31
x4

Post by TSM » Thu, 13. Nov 08, 20:47

Grax this is great I FJ'ed and one of my follower's was M2 it jumped far enough away from me to block my assasination targets exit :)
FAQ's Egosoft Interactive FAQ
Egosoft Wiki

User avatar
corhen
Posts: 338
Joined: Thu, 16. Oct 08, 08:45
x3tc

Post by corhen » Thu, 13. Nov 08, 22:07

i love this mod.

couple of requests
i cant seem to make my non-folower ships (IE trade ships M7 thats not folowing me...) jump. Is this intentinal? or am i missing somthing?

and second.. is there a way for it to cost more about $20 per crystal?

Thanks
Corhen

fud
Posts: 9837
Joined: Wed, 25. Jan 06, 14:26
x3

Post by fud » Thu, 13. Nov 08, 22:41

Grax, as I'm sure you don't have enough on your plate as it is (heh heh), have you looked to see if this can be incorporated into the UT scripts?

I'd imagine it could be as simple as a command call change. But then, when is anything ever that simple? :p

User avatar
Graxster
Posts: 817
Joined: Sat, 14. Oct 06, 01:01
x3tc

Post by Graxster » Thu, 13. Nov 08, 22:52

corhen wrote:i love this mod.

couple of requests
i cant seem to make my non-folower ships (IE trade ships M7 thats not folowing me...) jump. Is this intentinal? or am i missing somthing?

and second.. is there a way for it to cost more about $20 per crystal?

Thanks
Corhen
Do they have a jump drive and navigation command software MK1 installed?

Sure, it could cost more, but look how many versions I already made! Hehe. Do this:

in-game press shift + c, then s
scroll down to plugin.Grax.free.jump and press enter or click on it
scroll down to line 25

Code: Select all

025   $cost = $ecells * 12
click on the "12", scroll down and select <Number> and type in 20
press escape and select yes to save

Do the same with plugin.Grax.free.jump.followers (and .free.jump.hotkey if you have that).

At the main script editor window, highlight "reinit script caches" and press enter. Save your game.

@fud: Haven't looked at all. Read alot about UT's being busted at the moment, so haven't even used them at all. I use Lucike's Economy and Supply Trader script. IMO, better than ST/UT any day.

-Grax

Lancefighter
Posts: 3144
Joined: Sun, 19. Dec 04, 02:41
x4

Post by Lancefighter » Thu, 13. Nov 08, 23:54

awesomeness, your my hero :D

I will now go roam the universe with my credit jumping skillz. "hey, lets make a jump to argon prime; throw another few thousand credits into the drives!"

User avatar
juanitierno
Posts: 451
Joined: Fri, 28. Dec 07, 17:06
xrvr

Post by juanitierno » Fri, 14. Nov 08, 13:58

Possible improvements:

If its possible it would be great to have a single script for this. Maybe somehow add a config option to set the ecell cost (wich could be 0).

I dont see a reason why the hotkey version doesnt have the menu option too, if you fuse this 2 you will have less scripts to maintain.

Also, im using cycrows manager, and im not sure if its replacing/adding the files correctly, i generally uninstall the old spk and add the new one. i might have lost the menu option without knowing.

Post Reply

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