[Script] Ship Hijacker v1.1 by Nividium 05/01/09
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09
@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
@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
- X2-Illuminatus
- Moderator (Deutsch)
- Posts: 24961
- Joined: Sun, 2. Apr 06, 16:38
Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09
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!
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!
Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09
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 .... fingers crossedX2-Illuminatus wrote: ↑Thu, 29. Jul 21, 20:30You also need to comment out / remove lines 32 to 34. This sends you to the error label before even reaching your shield check.
<line linenr="021" indent=""></line>
<line linenr="022" indent=""><var>$distance =</var><text>get distance between </text><var>[PLAYERSHIP]</var><text> and </text><var>$target</var></line>
<line linenr="023" indent=""><var>if</var><var>$distance</var><text> </text><var>></var><text> </text><var>5000</var></line>
<line linenr="024" indent=" "><var>=</var><text>speak text: page=</text><var>13</var><text> id=</text><var>1100040</var><text> priority=</text><var>0</var></line>
<line linenr="025" indent=" "><text>goto label </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 =</var><var>$target -></var><text> get object class</text></line>
<line linenr="029" indent=""><var>if</var><var>$oc</var><text> </text><var>==</var><text> </text><var>M1</var></line>
<line linenr="030" indent=" "><text>goto label </text><var>error</var></line>
<line linenr="031" indent=""><text>end</text></line>
<line linenr="032" indent=""><var>if</var><var>$oc</var><text> </text><var>==</var><text> </text><var>M2</var></line>
<line linenr="033" indent=" "><text>goto label </text><var>error</var></line>
<line linenr="034" indent=""><text>end</text></line>
<line linenr="035" indent=""><var>if</var><var>$oc</var><text> </text><var>==</var><text> </text><var>Carrier</var></line>
<line linenr="036" indent=" "><text>goto label </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 =</var><var>[PLAYERSHIP] -></var><text> get amount of ware </text><var>Microchips</var><text> in cargo bay</text></line>
<line linenr="040" indent=""><var>if</var><var>$computer.components</var><text> </text><var><</var><text> </text><var>1</var></line>
<line linenr="041" indent=" "><var>=</var><text>speak text: page=</text><var>17</var><text> id=</text><var>2073</var><text> priority=</text><var>0</var></line>
<line linenr="042" indent=" "><var>=</var><text>speak text: page=</text><var>13</var><text> id=</text><var>25</var><text> priority=</text><var>0</var></line>
<line linenr="043" indent=" "><text>goto label </text><var>error</var></line>
<line linenr="044" indent=""><text>end</text></line>
will look like this:
<line linenr="021" indent=""></line>
<line linenr="022" indent=""><var>$distance =</var><text>get distance between </text><var>[PLAYERSHIP]</var><text> and </text><var>$target</var></line>
<line linenr="023" indent=""><var>if</var><var>$distance</var><text> </text><var>></var><text> </text><var>5000</var></line>
<line linenr="024" indent=" "><var>=</var><text>speak text: page=</text><var>13</var><text> id=</text><var>1100040</var><text> priority=</text><var>0</var></line>
<line linenr="025" indent=" "><text>goto label </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 =</var><var>[PLAYERSHIP] -></var><text> get amount of ware </text><var>Microchips</var><text> in cargo bay</text></line>
<line linenr="040" indent=""><var>if</var><var>$computer.components</var><text> </text><var><</var><text> </text><var>1</var></line>
<line linenr="041" indent=" "><var>=</var><text>speak text: page=</text><var>17</var><text> id=</text><var>2073</var><text> priority=</text><var>0</var></line>
<line linenr="042" indent=" "><var>=</var><text>speak text: page=</text><var>13</var><text> id=</text><var>25</var><text> priority=</text><var>0</var></line>
<line linenr="043" indent=" "><text>goto label </text><var>error</var></line>
<line linenr="044" indent=""><text>end</text></line>
Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09
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 workedO'Shavah wrote: ↑Sat, 31. Jul 21, 06:06so 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 .... fingers crossedX2-Illuminatus wrote: ↑Thu, 29. Jul 21, 20:30You also need to comment out / remove lines 32 to 34. This sends you to the error label before even reaching your shield check.
...
...
...
...
help?
- X2-Illuminatus
- Moderator (Deutsch)
- Posts: 24961
- Joined: Sun, 2. Apr 06, 16:38
Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09
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!
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!
Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09
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???X2-Illuminatus wrote: ↑Sat, 31. Jul 21, 08:30You 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.
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!!!!!
Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09
it seems only mr.bear's has been kept up to date... by N5M4R3 ( viewtopic.php?f=94&t=417934 ), correct?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 ).
- X2-Illuminatus
- Moderator (Deutsch)
- Posts: 24961
- Joined: Sun, 2. Apr 06, 16:38
Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09
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!
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!
Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09
buttons and link is dead maybe things are just getting too old here anymore...lol
- X2-Illuminatus
- Moderator (Deutsch)
- Posts: 24961
- Joined: Sun, 2. Apr 06, 16:38
Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09
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!
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!
Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09
The site came to life and works again ... Great ...
Re: [Script] Ship Hijacker v1.1 by Nividium 05/01/09
nice picture of the DL buttons but nothing else.