[MOD] PlayerJump (Update August 22 2014)

The place to discuss scripting and game modifications for X Rebirth.

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

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 10905
Joined: Sun, 15. Feb 04, 21:12

[MOD] PlayerJump (Update August 22 2014)

Post by euclid » Mon, 23. Dec 13, 22:45

PlayerJumpAddon v0.4 August 22 2014


This is the lastest version and you need this for the mod to work irrespectively whether you are using the new sidebar menu (2.5) or the legacy (compass) menu.

Reason:
I have changed the (sub) choices for prefix "g_" to prefix "g" because the new sidebar menu code causes "Unexpected section g_" debug errors and may affect the functionality.


How:


Use the sidebar menu map or the corresponding key to open the map, then select a zone of your choice from the sector map and then select "plot course" to trigger the jump options as a custom conversation. You can mark a position before jumping. To jump to a previously marked position just select any zone from any sector map, select "plot course" and then "jump to position".


Installation:


If you have already installed v0.4 then just delete the script EuclidsJump.xml from the md folder and add the new scripts EuclidsJumpAlt.xml and EuclidsJumpTrigger.xml.

If this is your first install then just extract the entire
PlayerJumpAnim folder to your extensions folder.


Remark:


As explained above the "plot course" triggers the jump options. Of course this also triggers a mission guidance "Fly to Zone ...". On arrival (i.e. after the jump) the guidance should disappear. However, in some cases you have to disable it manually via the mission menu. This is a tad annoying but as it is for now there are no other alternatives to avoid conflicts with other mods menu options.


"Mark position" will store the Skunk's current position (zone and coordinates) whilst "Jump to zone" will jump to the selected zone. You can select "Mark position" anytime and when you then use the menu again you will see the option "Jump to position". This option will be available as long as you have not used it. If you select that option and the Skunk will jump to the marked position.


Cheers Euclid


Download
Last edited by euclid on Wed, 25. Feb 15, 04:15, edited 9 times in total.
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

DarthVain
Posts: 842
Joined: Mon, 2. Jun 03, 11:53

Post by DarthVain » Tue, 24. Dec 13, 00:21

Awesome, :D

Will chck this out tonight.
Another one bites the dust!!

DarthVain

User avatar
YorrickVander
Posts: 2672
Joined: Tue, 29. Oct 13, 22:59

Post by YorrickVander » Tue, 24. Dec 13, 04:01

I like it :) Makes moving to clear stuck queues and npcs much more painless.

May I make a suggestion to the code?

Code: Select all

<play_sound object="player.ship" sound="'gate_flythrough'"/> 
           
<warp object="player.ship" zone="$Zone" >
	<position x="0m" y="20000m" z="0m"/>
</warp>

<show_notification caption="{1010,11}" details="['Jumped to zone:' , $Zone.knownname ]" queued="true" sound="notification_generic"/>
I like pretty jump noises :)
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.

DarthVain
Posts: 842
Joined: Mon, 2. Jun 03, 11:53

Post by DarthVain » Tue, 24. Dec 13, 04:06

YorrickVander wrote:I like it :) Makes moving to clear stuck queues and npcs much more painless.

May I make a suggestion to the code?

Code: Select all

<play_sound object="player.ship" sound="'gate_flythrough'"/> 
           
<warp object="player.ship" zone="$Zone" >
	<position x="0m" y="20000m" z="0m"/>
</warp>

<show_notification caption="{1010,11}" details="['Jumped to zone:' , $Zone.knownname ]" queued="true" sound="notification_generic"/>
I like pretty jump noises :)
Interesting.. Where do you add it in?
Another one bites the dust!!

DarthVain

User avatar
YorrickVander
Posts: 2672
Joined: Tue, 29. Oct 13, 22:59

Post by YorrickVander » Tue, 24. Dec 13, 05:10

in the md\ file, just where the warp part is now :) its the message + jump in different order hoping for a delay, that part didnt work though :(
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.

DarthVain
Posts: 842
Joined: Mon, 2. Jun 03, 11:53

Post by DarthVain » Tue, 24. Dec 13, 08:40

YorrickVander wrote:in the md\ file, just where the warp part is now :) its the message + jump in different order hoping for a delay, that part didnt work though :(
Thanks, I tried adding it in but not cluey enough. It didn't work so I presume I placed it in the wrong spot.

The warp drive works great but as it is instant, I can jump from one system to a sector in another system in less than a second but isn't feasible unless there is:
1. a delay and I'm facing the front when the jump occurs
2. the effect of the super highway scene so you can see yourself in a warp situation; and
3. to have that scene effect the warp travel be around 5 to 10 seconds so that we can enjoy the warp travel.

I'm currently playing with the booster to see how fast travel can be done and can use the warp drive to place myself in the systems sector when I reach it according to the map. I wonder though if the option can be made to choose keystroke 'J' to initiate the jump once the system and sector is plotted.
Another one bites the dust!!

DarthVain

User avatar
YorrickVander
Posts: 2672
Joined: Tue, 29. Oct 13, 22:59

Post by YorrickVander » Tue, 24. Dec 13, 14:21

Pooped the full jump xml with sound to your inbox mate. And facing front... pure genius. that'll get the delay i wanted for the sound to play while the cockpit animates. Will tinker when the family stuffs done.
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.

DarthVain
Posts: 842
Joined: Mon, 2. Jun 03, 11:53

Post by DarthVain » Wed, 25. Dec 13, 00:47

YorrickVander wrote:Pooped the full jump xml with sound to your inbox mate. And facing front... pure genius. that'll get the delay i wanted for the sound to play while the cockpit animates. Will tinker when the family stuffs done.
Neat. Any chance you can sent to my inbox also?
Another one bites the dust!!

DarthVain

drunkenjawa
Posts: 21
Joined: Tue, 13. Dec 05, 00:04

Post by drunkenjawa » Wed, 25. Dec 13, 06:23

Totally agree - awesome mod, this would be badass if there were animations to go with it, and perhaps a cooldown on it of say 2 - 5 minutes or something though.

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 10905
Joined: Sun, 15. Feb 04, 21:12

Post by euclid » Wed, 25. Dec 13, 19:14

Merry Christmas :)

Thanks YorrickVander, DarthVain and drunkenjawa for your feedback. I have uploaded an alternative version with a jump animation. Hope you like it.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

User avatar
YorrickVander
Posts: 2672
Joined: Tue, 29. Oct 13, 22:59

Post by YorrickVander » Wed, 25. Dec 13, 19:24

Ty santa euclid, will check it out :)

EDIT : Pretty jump sound and pretty animation. I feel spoiled today :D
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.

User avatar
BlueSabor
Posts: 119
Joined: Tue, 27. Jul 04, 19:41

Post by BlueSabor » Wed, 25. Dec 13, 21:48

Wow, this is great! :D
Windows 10 Pro 64-bit.
Asus MAXIMUS IX HERO (LGA1151) Intel Core i7-7700K CPU @ 4.20GHz
Corsair Hydro H115i CPU Cooler.
Gigabyte AORUS GeForce GTX 1080 Ti
500GB Samsung 970 EVO, M.2.
Corsair Vengeance® LPX 16GB DDR4 3200MHz
Image

Staberind
Posts: 78
Joined: Wed, 5. May 10, 23:32

Post by Staberind » Wed, 25. Dec 13, 23:02

Awesome E. and others, hope we are all having a pleasant wintertime celebration of whatever you like to celebrate, (I got a lovely solstice card from a mate "in the know")

Idea, and I will post this for requests; are there any hooks to take control away from manual for the playership? if we have a small ship, with perhaps a drone body and set the playership to follow or escort it, and tell the drone-ship to go somewhere, would we not have autopilot? i see the ships follow us using the highways and so on.

DarthVain
Posts: 842
Joined: Mon, 2. Jun 03, 11:53

Post by DarthVain » Thu, 26. Dec 13, 01:50

euclid wrote:Merry Christmas :)

Thanks YorrickVander, DarthVain and drunkenjawa for your feedback. I have uploaded an alternative version with a jump animation. Hope you like it.

Cheers Euclid
You've done it Euclid 8) This is awesome...

I love the wind-up of the jumpdrive and the visual effects
Thanks heaps and Happy Holidays.
Another one bites the dust!!

DarthVain

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 10905
Joined: Sun, 15. Feb 04, 21:12

Post by euclid » Sat, 11. Jan 14, 03:44

New version uploaded - see OP for details.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

Post Reply

Return to “X Rebirth - Scripts and Modding”