[Script] Ship Hijacker v1.1 by Nividium 05/01/09

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

Post Reply
KRM398
Posts: 1556
Joined: Wed, 6. Nov 02, 20:31
xr

Post by KRM398 » Wed, 7. May 14, 17:02

I appear to have a problem the hot key setup for the script killer has announced as I entered the game that the hotkey failed..thats 2 now the only thing that went in without a problem was the salvage command suite.

KRM398
Posts: 1556
Joined: Wed, 6. Nov 02, 20:31
xr

Post by KRM398 » Wed, 7. May 14, 17:37

ignore the old man in the corner, his set up is borked...lol

O'Shavah
Posts: 20
Joined: Mon, 24. Nov 14, 07:45
x3ap

Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09

Post by O'Shavah » Thu, 22. Jul 21, 17:45

@Meltdown
@Nividium
Is there a way to make M2's able to be hijacked? I'm using Meltdown's edit, Version #1. I've read through this whole thread and it seems to suggest increasing the shield threshold in the script should achieve this. I've increased it to 1200000 and tested with a modded beam weapon (120rd/min) that disables shields and only does shield damage. I just hold down the fire button and spam the hijack hotkey when the shields hit zero. I've used this to hijack M7's, but with M2's i always get a malfunction notice. Also, I scanned the ship to make sure that no firewall tech blah blah blah thingy was equipped. I should probably add I'm playing LxXRM.

original:
049
050 if $shields > 1200
051 goto label error
052 end
053
054 if $shields <= 1200

mine:
049
050 if $shields > 1200000
051 goto label error
052 end
053
054 if $shields <= 1200000

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24949
Joined: Sun, 2. Apr 06, 16:38
x4

Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09

Post by X2-Illuminatus » Thu, 29. Jul 21, 20:30

You also need to comment out / remove lines 32 to 34. This sends you to the error label before even reaching your shield check.
Nun verfügbar! X3: Farnham's Legacy - Ein neues Kapitel für einen alten Favoriten

Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)

Neuauflage der fünf X-Romane als Taschenbuch

The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!

O'Shavah
Posts: 20
Joined: Mon, 24. Nov 14, 07:45
x3ap

Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09

Post by O'Shavah » Sat, 31. Jul 21, 06:06

X2-Illuminatus wrote:
Thu, 29. Jul 21, 20:30
You also need to comment out / remove lines 32 to 34. This sends you to the error label before even reaching your shield check.
so if i remove line 27 through 37, all ships should be able to be hijacked? can i just delete the lines or do i need to adjust the remaining numbers so it doesn't go from 26 to 38 with nothing in between. i'm gonna try just deleting first cause i'm lazy :mrgreen: .... fingers crossed

<line linenr="021" indent=""></line>
<line linenr="022" indent=""><var>$distance&#160;=</var><text>get&#160;distance&#160;between&#160;</text><var>[PLAYERSHIP]</var><text>&#160;and&#160;</text><var>$target</var></line>
<line linenr="023" indent=""><var>if</var><var>$distance</var><text>&#160;</text><var>&gt;</var><text>&#160;</text><var>5000</var></line>
<line linenr="024" indent="&#160;"><var>=</var><text>speak&#160;text:&#160;page=</text><var>13</var><text>&#160;id=</text><var>1100040</var><text>&#160;priority=</text><var>0</var></line>
<line linenr="025" indent="&#160;"><text>goto&#160;label&#160;</text><var>error</var></line>
<line linenr="026" indent=""><text>end</text></line>
(lines to be deleted)
<line linenr="027" indent=""></line>
<line linenr="028" indent=""><var>$oc&#160;=</var><var>$target&#160;-&gt;</var><text>&#160;get&#160;object&#160;class</text></line>
<line linenr="029" indent=""><var>if</var><var>$oc</var><text>&#160;</text><var>==</var><text>&#160;</text><var>M1</var></line>
<line linenr="030" indent="&#160;"><text>goto&#160;label&#160;</text><var>error</var></line>
<line linenr="031" indent=""><text>end</text></line>
<line linenr="032" indent=""><var>if</var><var>$oc</var><text>&#160;</text><var>==</var><text>&#160;</text><var>M2</var></line>
<line linenr="033" indent="&#160;"><text>goto&#160;label&#160;</text><var>error</var></line>
<line linenr="034" indent=""><text>end</text></line>
<line linenr="035" indent=""><var>if</var><var>$oc</var><text>&#160;</text><var>==</var><text>&#160;</text><var>Carrier</var></line>
<line linenr="036" indent="&#160;"><text>goto&#160;label&#160;</text><var>error</var></line>
<line linenr="037" indent=""><text>end</text></line>
(end lines to be deleted)
<line linenr="038" indent=""></line>
<line linenr="039" indent=""><var>$computer.components&#160;=</var><var>[PLAYERSHIP]&#160;-&gt;</var><text>&#160;get&#160;amount&#160;of&#160;ware&#160;</text><var>Microchips</var><text>&#160;in&#160;cargo&#160;bay</text></line>
<line linenr="040" indent=""><var>if</var><var>$computer.components</var><text>&#160;</text><var>&lt;</var><text>&#160;</text><var>1</var></line>
<line linenr="041" indent="&#160;"><var>=</var><text>speak&#160;text:&#160;page=</text><var>17</var><text>&#160;id=</text><var>2073</var><text>&#160;priority=</text><var>0</var></line>
<line linenr="042" indent="&#160;"><var>=</var><text>speak&#160;text:&#160;page=</text><var>13</var><text>&#160;id=</text><var>25</var><text>&#160;priority=</text><var>0</var></line>
<line linenr="043" indent="&#160;"><text>goto&#160;label&#160;</text><var>error</var></line>
<line linenr="044" indent=""><text>end</text></line>

will look like this: :gruebel:
<line linenr="021" indent=""></line>
<line linenr="022" indent=""><var>$distance&#160;=</var><text>get&#160;distance&#160;between&#160;</text><var>[PLAYERSHIP]</var><text>&#160;and&#160;</text><var>$target</var></line>
<line linenr="023" indent=""><var>if</var><var>$distance</var><text>&#160;</text><var>&gt;</var><text>&#160;</text><var>5000</var></line>
<line linenr="024" indent="&#160;"><var>=</var><text>speak&#160;text:&#160;page=</text><var>13</var><text>&#160;id=</text><var>1100040</var><text>&#160;priority=</text><var>0</var></line>
<line linenr="025" indent="&#160;"><text>goto&#160;label&#160;</text><var>error</var></line>
<line linenr="026" indent=""><text>end</text></line>
<line linenr="038" indent=""></line>
<line linenr="039" indent=""><var>$computer.components&#160;=</var><var>[PLAYERSHIP]&#160;-&gt;</var><text>&#160;get&#160;amount&#160;of&#160;ware&#160;</text><var>Microchips</var><text>&#160;in&#160;cargo&#160;bay</text></line>
<line linenr="040" indent=""><var>if</var><var>$computer.components</var><text>&#160;</text><var>&lt;</var><text>&#160;</text><var>1</var></line>
<line linenr="041" indent="&#160;"><var>=</var><text>speak&#160;text:&#160;page=</text><var>17</var><text>&#160;id=</text><var>2073</var><text>&#160;priority=</text><var>0</var></line>
<line linenr="042" indent="&#160;"><var>=</var><text>speak&#160;text:&#160;page=</text><var>13</var><text>&#160;id=</text><var>25</var><text>&#160;priority=</text><var>0</var></line>
<line linenr="043" indent="&#160;"><text>goto&#160;label&#160;</text><var>error</var></line>
<line linenr="044" indent=""><text>end</text></line>

O'Shavah
Posts: 20
Joined: Mon, 24. Nov 14, 07:45
x3ap

Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09

Post by O'Shavah » Sat, 31. Jul 21, 07:07

O'Shavah wrote:
Sat, 31. Jul 21, 06:06
X2-Illuminatus wrote:
Thu, 29. Jul 21, 20:30
You also need to comment out / remove lines 32 to 34. This sends you to the error label before even reaching your shield check.
so if i remove line 27 through 37, all ships should be able to be hijacked? can i just delete the lines or do i need to adjust the remaining numbers so it doesn't go from 26 to 38 with nothing in between. i'm gonna try just deleting first cause i'm lazy :mrgreen: .... fingers crossed
wwwweeeeeellllllllllll..... so i tried just deleting the lines, changing the lines to say M0, and deleting the lines and also adjusting to the line numbers so it are consecutive 27,28,29, yadda yadda yadda (the final line count comes to 89 rather than 100) and nothing worked :(
...
...
...
...
help? :? :gruebel: :lol:

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24949
Joined: Sun, 2. Apr 06, 16:38
x4

Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09

Post by X2-Illuminatus » Sat, 31. Jul 21, 08:30

You cannot edit script .xml files in a text or xml editor directly. The sourcetext you posted just provides the text for the browser view. The actual code is stored in the codearray. Hence why you have to use the ingame Script Editor or a dedicated external one like the one from mrbear to make the changes.
Nun verfügbar! X3: Farnham's Legacy - Ein neues Kapitel für einen alten Favoriten

Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)

Neuauflage der fünf X-Romane als Taschenbuch

The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!

O'Shavah
Posts: 20
Joined: Mon, 24. Nov 14, 07:45
x3ap

Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09

Post by O'Shavah » Sat, 31. Jul 21, 17:19

X2-Illuminatus wrote:
Sat, 31. Jul 21, 08:30
You cannot edit script .xml files in a text or xml editor directly. The sourcetext you posted just provides the text for the browser view. The actual code is stored in the codearray. Hence why you have to use the ingame Script Editor or a dedicated external one like the one from mrbear to make the changes.
thanks a million!!! i'll try in editing in game i guess.... wish it could be done in X3 Editor 2... oh well... 4th time's the charm right???
hahahahahhaaha

as for external script editors, do you only recommend mr.bear's ( viewtopic.php?t=301433 )? i googled it and i also found one by whimsy ( viewtopic.php?t=211689 ).

also, thanks again, X2-Illuminatus, for all your help.

edit/update:
SUCCESS!!!!! :D :mrgreen: :D :mrgreen: :D :mrgreen: :D :mrgreen: :D :mrgreen: :D :mrgreen: :D :mrgreen: :D :mrgreen:

O'Shavah
Posts: 20
Joined: Mon, 24. Nov 14, 07:45
x3ap

Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09

Post by O'Shavah » Sat, 31. Jul 21, 18:29

O'Shavah wrote:
Sat, 31. Jul 21, 17:19

as for external script editors, do you only recommend mr.bear's ( viewtopic.php?t=301433 )? i googled it and i also found one by whimsy ( viewtopic.php?t=211689 ).
it seems only mr.bear's has been kept up to date... by N5M4R3 ( viewtopic.php?f=94&t=417934 ), correct?

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24949
Joined: Sun, 2. Apr 06, 16:38
x4

Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09

Post by X2-Illuminatus » Mon, 2. Aug 21, 19:12

Correct.
Nun verfügbar! X3: Farnham's Legacy - Ein neues Kapitel für einen alten Favoriten

Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)

Neuauflage der fünf X-Romane als Taschenbuch

The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!

KRM398
Posts: 1556
Joined: Wed, 6. Nov 02, 20:31
xr

Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09

Post by KRM398 » Tue, 24. Aug 21, 18:15

buttons and link is dead maybe things are just getting too old here anymore...lol

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24949
Joined: Sun, 2. Apr 06, 16:38
x4

Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09

Post by X2-Illuminatus » Sat, 11. Sep 21, 18:28

Available on xdownloads:
Image

Onedrive mirror
Image
Nun verfügbar! X3: Farnham's Legacy - Ein neues Kapitel für einen alten Favoriten

Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)

Neuauflage der fünf X-Romane als Taschenbuch

The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!

User avatar
alexalsp
Posts: 1820
Joined: Fri, 18. Jul 14, 05:28
x4

Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09

Post by alexalsp » Sat, 11. Sep 21, 20:35

X2-Illuminatus wrote:
Sat, 11. Sep 21, 18:28
Available on xdownloads:
[ external image ]
The site came to life and works again ... Great ... :D

KRM398
Posts: 1556
Joined: Wed, 6. Nov 02, 20:31
xr

Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09

Post by KRM398 » Fri, 1. Sep 23, 15:33

nice picture of the DL buttons but nothing else.

User avatar
alexalsp
Posts: 1820
Joined: Fri, 18. Jul 14, 05:28
x4

Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09

Post by alexalsp » Fri, 1. Sep 23, 17:03

KRM398 wrote:
Fri, 1. Sep 23, 15:33
nice picture of the DL buttons but nothing else.
Available on xdownloads:
Image

Post Reply

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