[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

Gandalf88
Posts: 23
Joined: Fri, 8. Sep 06, 19:01

Post by Gandalf88 »

I´m having a problem with the script. I accidentaly installed the Script Replacement Addon when using x3. I stupidly didn´t realized that i had it running. I followed your uninstallation process but still can´t use the energy generator when i reinstalled the two scripts. I really blew it.
I would appreciate any help
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22438
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

well the addon shoudln't effect ur ability to use the energy generator.

how is it your trying to use it ?
User avatar
YBnorml
Posts: 123
Joined: Tue, 13. Jun 06, 01:30
x3

Post by YBnorml »

Cycrow

Have you been able to reproduse the bug where your escorts jump to the center of the sector and then fly off towards the Gate that you would have used to get back to where you were before you jumped?

This being done when you use jump to pos.
Virtual is reality...
Y B Nor M/L
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22438
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

no, i've not had chance to look at it yet
Gandalf88
Posts: 23
Joined: Fri, 8. Sep 06, 19:01

Post by Gandalf88 »

Sorry Cycrow I wasn´t able to reply. I tried to use it with SHIFT + j. I had my normal jumpdrive and bought the shield power extension. Is there a way to activate it from a command console or sonething?
Thanks for your help
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22438
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

u cant use Shift+j that will alwaus use ur standard jumpdrive and requires energy cells, theres no way to change that.

there are 2 commands available however depending on what upgrades you have.

if you have either the Advanced Jumpdrive, or the Jumpdrive and Energy Generator, then you can use the command, Energy Free Jump, which is in the naviational commands, you need naviagtion software mk1 for them to appear.

the 2nd command is if you have the Advanced Jumpdrive and the Targetting Scanners, then you get the jump to position command
Mad Hatter
Posts: 246
Joined: Fri, 5. Dec 03, 16:08
x3

Post by Mad Hatter »

OK... I've been thinking about the shift-j problem, and I refuse to believe that we can't find a workaround.

I'm thinking in the direction of leveraging a programmable joystick (or keyboard macro) to get around it. (I figure most people have one.) Rather than trying to tie everything to a single key. You work with two Hotkeys and try to coordinate their behavior with shift-j.

The idea would be to use a macro to execute a sequence of commands that would work in 3 stages.

1. swap out stuff in cargo hold for e-cells. (mark how many are there.)
2. shift J
3. follow up and put original stuff back. (drain shields proportional to how many e-cells were used - if any)

It seems like this would work, as long as there is a way to tell whether or not you canceled the jump, and how long to pause... Are there any events that are called during the Shift-J process?

Dead end idea? Or no?


EDIT:
I suppose the 3 key thing does nothing a 2 key macro wouldn't do. The first key (hotkey) does step 1 and waits. Then shift J. Then the wait ends and does step 3 after an interval. (Have it check for a sudden drop in ecells? If it doesn't happen in a max time, then timeout?)
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22438
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

well it might be possible, but its something i wont be able to test, i dont even have a joystick.

ill have ago creating a macro for my keyboard and c if that works
Mad Hatter
Posts: 246
Joined: Fri, 5. Dec 03, 16:08
x3

Post by Mad Hatter »

Is it possible to tap into the jump script, so that you know when the jumpdrive has been engaged? That way the jump routine can call Step 3 and clean up the cargo and drain the shields.

Then the only thing would be how to determine if the jump was canceled, (Step 1 switches cargo, shift J -> cancel) so that you could run Step 3 cleanup, and put the cargo back to the way it was.

Unless by some miracle there is an event handler that knows when you cancel out of the galaxy menu?
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22438
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

unfortuatlly theres no way to tell if the jumpdrive has been activated, or if its been canceled, which could cause a problem.

the only way it could work is to detect either that you've got to a different sector, or that ur energy cells have been removed, etc

of course the script wont be able to tell how many ecells is required, so it would have to fill the cargo bay with energy cells
Jakesnake5
Posts: 2880
Joined: Fri, 17. Feb 06, 04:55
x4

Post by Jakesnake5 »

Wait, if the script knows the target sector, it can find out how many ecells are needed.
Perfection is in the hands of God, we bags of dirt can only do the best we can©
[ external image ]
Modders are a source of ideas to help the Game Makers improve what they have made. Cherrish them, for they are the fruit of thy labors.©
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22438
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

well thats the point, it doesn't know the target sector.

when using shift+j you select the sector and it jumps straight away, you cant call a script in between to ptu the energy cells in for the sector that u've selected
Mad Hatter
Posts: 246
Joined: Fri, 5. Dec 03, 16:08
x3

Post by Mad Hatter »

Canceling is the bigger problem anyway. Its no big deal to swap out cargo for ecells, take a count, and then set up a loop to watch for them to drop. (It's only a short term thing - it only lasts as long as it takes you to pick a sector.) Once it drops, you note how much, put everything back and drain shields and the script ends. Your cargo is back to normal right after the jump count starts. I think that would be fine.

It's when the user cancels that it becomes difficult... The user cancels, the loop is still checking... Eventually it has to time out and put the cargo back. But did time run out because the user canceled? Or because they took too long selecting the sector?

You could make the user have to manually cancel... but that's too kludgy. (The first part is already kludgy enough... I just can't think of any other way to do it.)

Anyone have any ideas how to determine if the user canceled the jump?
russbo
Posts: 862
Joined: Sat, 12. Nov 05, 21:53
x4

Post by russbo »

Cycrow, is it normal for this script to install over a hundred tasks in the global tasks area?? I just cleaned out the global tasks because of another issue, and in doing so, wiped out literally, over a hundred mentions , if not more, of the advjump.keepstock plugin.
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22438
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

nope, that shoudln't happen, infact that script shouldn't even exist in the latest version.

i would suggest download and install it again, even if the versions match, then kill all the keepstock scripts.

but leave the lib.cycrow.keepstock.perm
there should be only one of those running
any other keepstock scripts can be removed
russbo
Posts: 862
Joined: Sat, 12. Nov 05, 21:53
x4

Post by russbo »

It is not an issue in the latest version, as you mentioned.

But I did kill the lib.cyrcro.keepstock.perm. How do I get that running again? Running that in the script editor does not make it appear in the global tasks.
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22438
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

you have to whipe the global varible so it allows it to run.

or u can edit the scripts, comment out the first too lines, run the scripts, and uncomment then again

that shoudl start it runnign again
russbo
Posts: 862
Joined: Sat, 12. Nov 05, 21:53
x4

Post by russbo »

OK, you lost me. :)

Is it important? Exactly what two lines do I comment out of this script? First words will be enough. Thanks!
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22438
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

should be right at the top, the first would be something like,

Code: Select all

skip if get global varible
then the next line with be

Code: Select all

return null
russbo
Posts: 862
Joined: Sat, 12. Nov 05, 21:53
x4

Post by russbo »

Done, and now present in global scripts. not sure what it does, but thanks.

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