jump drive3 crashing

The place to discuss scripting and game modifications for X²: The Threat.

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

Williamm
Posts: 140
Joined: Sat, 31. Jan 04, 05:21
x2

jump drive3 crashing

Post by Williamm »

I tryed uploading this and the game crashes when
I try to load a saved game.

what should I do?
Slugworm X
Posts: 150
Joined: Mon, 1. Dec 03, 09:15
x3

Post by Slugworm X »

You may have a COMMAND_TYPE_FIGHT conflict, in that they are both trying to use the same command.

IE They are both trying to use the same command slot in the menus. Xai Jump 3.1 (or is it 3.0a?) uses 315 and 316. See here:

http://xscripting.com/modules.php?name= ... opic&t=425

I do not know what TYPE_FIGHT command Auto Patrol uses.

Hold on....

Original AutoPatrol uses 330, 329 and 328. These should not colflict with anything......Unless they have changed in the later release.

Are you running other scripts?

SlugwormX
Williamm
Posts: 140
Joined: Sat, 31. Jan 04, 05:21
x2

Post by Williamm »

First, I took out the old files. Next,
I deleted the old jump commands and patrol scrips from the game itself.
Then, I tryed to upload thejump3 comands game crashes.
Next, I took out the jump3 commands game runs fine
Then I tryed to upload the patrol4 commands, game crashes.

I removed them game runs.

Is there anything else I can do?

Thanks

Billy
matt32
Posts: 110
Joined: Sat, 18. Oct 03, 22:05
x2

Post by matt32 »

..hm .. i had never luck using that jumping script stuff ...
so created my own ... notice that you should change the lang to 44
within the 490030.xml and rename the file to 440030.xml .. have fun

file one save as ...x2\t\490030.xml (german version)

<?xml version="1.0" encoding="UTF-8" ?>
<language id="49">
<page id="2010" title="Script Cmd Names" descr=" ">
<t id="221">SHIP JUMP TO</t>
</page>
<page id="2011" title="Script Cmd Shorts" descr=" ">
<t id="221">JUMP</t>
</page>
<page id="490030" title="Line Formatting" descr=" ">
<t id="001">%s\n</t>
</page>
</language>

save as ...x2\t\440030.xml (english version)

<?xml version="1.0" encoding="UTF-8" ?>
<language id="44">
<page id="2010" title="Script Cmd Names" descr=" ">
<t id="221">SHIP JUMP TO</t>
</page>
<page id="2011" title="Script Cmd Shorts" descr=" ">
<t id="221">JUMP</t>
</page>
<page id="440030" title="Line Formatting" descr=" ">
<t id="001">%s\n</t>
</page>
</language>

file 2 ..x2\scripts\init.cmd.jumpto.xml

<?xml version="1.0" standalone="yes" ?>
<?xml-stylesheet href="x2script.xsl" type="text/xsl" ?>
<script>
<name>init.cmd.jumpto</name>
<version>1</version>
<engineversion>23</engineversion>
<description>menu initialisation</description>
<arguments>
</arguments>
<sourcetext>
<line linenr="001" indent=""></line>
<line linenr="002" indent=""><text>load text: id=</text><var>30</var></line>
<line linenr="003" indent=""><text>set ship command upgrade: command=</text><var>COMMAND_TYPE_NAV_21</var><text>  upgrade=</text><var>Navigationssoftware MK1</var></line>
<line linenr="004" indent=""><text>global ship map: set: key=</text><var>COMMAND_TYPE_NAV_21</var><text>, class=</text><var>Ship</var><text>, race=</text><var>Player</var><text>, script=</text><call>ship.cmd.jumpto</call><text>, prio=</text><var>0</var></line>
<line linenr="005" indent=""><text>return </text><var>null</var></line>
</sourcetext>
<codearray>
<sval type="array" size="10"><sval type="string" val="init.cmd.jumpto" /><sval type="int" val="23" /><sval type="string" val="menu initialisation" /><sval type="int" val="1" /><sval type="int" val="0" /><sval type="int" val="0" /><sval type="array" size="4"><sval type="array" size="3"><sval type="int" val="151" /><sval type="int" val="4" /><sval type="int" val="30" /></sval><sval type="array" size="5"><sval type="int" val="144" /><sval type="int" val="18" /><sval type="int" val="221" /><sval type="int" val="9" /><sval type="int" val="1048629" /></sval><sval type="array" size="10"><sval type="int" val="118" /><sval type="int" val="18" /><sval type="int" val="221" /><sval type="string" val="ship.cmd.jumpto" /><sval type="int" val="4" /><sval type="int" val="0" /><sval type="int" val="12" /><sval type="int" val="2004" /><sval type="int" val="10" /><sval type="int" val="10" /></sval><sval type="array" size="3"><sval type="int" val="103" /><sval type="int" val="0" /><sval type="int" val="0" /></sval></sval><sval type="int" val="0" /><sval type="array" size="1"><sval type="array" size="2"><sval type="int" val="0" /><sval type="int" val="2" /></sval></sval><sval type="string" val="init.cmd.jumpto" /></sval>
</codearray>
</script>

file 3 ..x2\scripts\ship.cmd.jumpto.xml

<?xml version="1.0" standalone="yes" ?>
<?xml-stylesheet href="x2script.xsl" type="text/xsl" ?>
<script>
<name>ship.cmd.jumpto</name>
<version>0</version>
<engineversion>23</engineversion>
<description>lets jump any ship</description>
<arguments>
<argument index="1" name="ship" type="Var/Ship owned by Player" desc="select your ship" />
<argument index="2" name="sector" type="Var/Sector" desc="select sector to go to" />
</arguments>
<sourcetext>
<line linenr="001" indent=""><var>$ezam = </var><var>$ship -></var><text> needed jump drive energy for jump to sector </text><var>$sector</var></line>
<line linenr="002" indent=""><text>inc </text><var>$ezam = </var></line>
<line linenr="003" indent=""><var>$rc = </var><var>$ship -></var><text> add </text><var>$ezam</var><text> units of </text><var>Laderaumerweiterung</var></line>
<line linenr="004" indent=""><var>$rc = </var><var>$ship -></var><text> add </text><var>$ezam</var><text> units of </text><var>Energiezellen</var></line>
<line linenr="005" indent=""><var>$rc = </var><var>$ship -></var><text> install </text><var>1</var><text> units of </text><var>Sprungantrieb</var></line>
<line linenr="006" indent=""><var>$rc = </var><var>$ship -></var><text> use jump drive: target=</text><var>$sector</var></line>
<line linenr="007" indent=""><text>return </text><var>null</var></line>
</sourcetext>
<codearray>
<sval type="array" size="10"><sval type="string" val="ship.cmd.jumpto" /><sval type="int" val="23" /><sval type="string" val="lets jump any ship" /><sval type="int" val="0" /><sval type="int" val="0" /><sval type="array" size="4"><sval type="string" val="ship" /><sval type="string" val="sector" /><sval type="string" val="ezam" /><sval type="string" val="rc" /></sval><sval type="array" size="7"><sval type="array" size="6"><sval type="int" val="567" /><sval type="int" val="131074" /><sval type="int" val="0" /><sval type="int" val="2" /><sval type="int" val="131074" /><sval type="int" val="1" /></sval><sval type="array" size="2"><sval type="int" val="142" /><sval type="int" val="2" /></sval><sval type="array" size="8"><sval type="int" val="646" /><sval type="int" val="131074" /><sval type="int" val="0" /><sval type="int" val="3" /><sval type="int" val="131074" /><sval type="int" val="2" /><sval type="int" val="9" /><sval type="int" val="1048592" /></sval><sval type="array" size="8"><sval type="int" val="646" /><sval type="int" val="131074" /><sval type="int" val="0" /><sval type="int" val="3" /><sval type="int" val="131074" /><sval type="int" val="2" /><sval type="int" val="9" /><sval type="int" val="720896" /></sval><sval type="array" size="8"><sval type="int" val="647" /><sval type="int" val="131074" /><sval type="int" val="0" /><sval type="int" val="3" /><sval type="int" val="4" /><sval type="int" val="1" /><sval type="int" val="9" /><sval type="int" val="1048611" /></sval><sval type="array" size="6"><sval type="int" val="566" /><sval type="int" val="131074" /><sval type="int" val="0" /><sval type="int" val="3" /><sval type="int" val="131074" /><sval type="int" val="1" /></sval><sval type="array" size="3"><sval type="int" val="103" /><sval type="int" val="0" /><sval type="int" val="0" /></sval></sval><sval type="array" size="2"><sval type="array" size="2"><sval type="int" val="35" /><sval type="string" val="select your ship" /></sval><sval type="array" size="2"><sval type="int" val="14" /><sval type="string" val="select sector to go to" /></sval></sval><sval type="int" val="0" /><sval type="int" val="0" /></sval>
</codearray>
</script>

..you get a new entry to the navigation menu of your ships and theres no need to have a jumpdrive nor ecells
Slugworm X
Posts: 150
Joined: Mon, 1. Dec 03, 09:15
x3

Post by Slugworm X »

You should be aware that if you have saved your game with the jump script installed, the save game will have the script within it.

When you reload, the script will be reconstituted.
User avatar
moggy2
Posts: 5505
Joined: Wed, 6. Nov 02, 20:31
x3ap

Post by moggy2 »

wpatrician1@aol.com wrote:First, I took out the old files. Next,
I deleted the old jump commands and patrol scrips from the game itself.
Then, I tryed to upload thejump3 comands game crashes.
Next, I took out the jump3 commands game runs fine
Then I tryed to upload the patrol4 commands, game crashes.

I removed them game runs.

Is there anything else I can do?

Thanks

Billy
It doesn't sound like a problem with the jumpdrive scripts per se. Sounds more like your install doesn't like scripts. Have you tried reinstalling the game? Another possible cause is if you've some how changed the file format from windows to unix, that will cause the game to crash when loading a save game. Not sure how you'd manage that though, short of opening the files and resaving them. What extractor do you use? Does it have an option for extracting text files in a different format?

Return to “X²: The Threat - Scripts and Modding”