[Help] Solved: MSCI Scripts do not belong in catalogue files.

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

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

Post Reply
User avatar
Createse
Posts: 58
Joined: Fri, 20. Mar 09, 23:28
x4

[Help] Solved: MSCI Scripts do not belong in catalogue files.

Post by Createse » Sat, 22. Feb 14, 20:14

I've been trying to format Cycrow's cheat package because I'm OCD like that but I can't seem to get it to initialise anymore. I'm not seeing any hotkeys to map and I'm also not seeing any of the scripts via the in-game script editor. According to X3 Editor 2, the files are being discovered properly via it's virtual file system.

Can anyone tell what I'm doing wrong from the following snippet of code? As far as I know, I've not changed anything incorrectly but I have applied formatting across all of Cycrow's files so I'm thinking I must have broken something somewhere.

Preview

Code: Select all

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<?xml-stylesheet href="x2script.xsl" type="text/xsl" ?>
<script>
	<name>setup.cycrow.cheat</name>
	<version>1</version>
	<engineversion>50</engineversion>
	<description>Description</description>
	<arguments></arguments>
	<sourceplaintext>
<![CDATA[
  load text: id=1000
  $Page.ID = 9999
  set global variable: name='cycrow.cheat.pageid' value=$Page.ID
  
  add ship custom command: id=1400
  set script command upgrade: command=COMMAND_CYCROW_SHIPCHEAT  upgrade=[TRUE]  script=z.cheat.cycrow.cmdchk
  global script map: set: key=COMMAND_CYCROW_SHIPCHEAT, class=Ship, race=null, script=z.cheat.cycrow.cmd, prio=0
  set script command upgrade: command=COMMAND_CYCROW_STATIONCHEAT  upgrade=[TRUE]
  global script map: set: key=COMMAND_CYCROW_STATIONCHEAT, class=Station, race=null, script=z.cheat.cycrow.cmd, prio=0
  
  if not get global variable: name='cycrow.cheat.hotkey'
    $text = read text: page=$Page.ID id=901
    $id = register hotkey $text to call script z.cheat.cycrow.hotkey
    set global variable: name='cycrow.cheat.hotkey' value=$id
  end
  $id = get global variable: name='cheat.hotkey.destruct'
  if $id
    unregister hotkey $id
    set global variable: name='cheat.hotkey.destruct' value=null
  end
  
@ = [THIS] -> call script z.cheat.cycrow.hotkey.add :  Hotkey ID='destruct'  Text ID=801  Script Name='z.cheat.cycrow.destruct'  On or Off=[FALSE]
@ = [THIS] -> call script z.cheat.cycrow.hotkey.add :  Hotkey ID='reload'  Text ID=802  Script Name='z.cheat.cycrow.hotkey.reload'  On or Off=[TRUE]
@ = [THIS] -> call script z.cheat.cycrow.hotkey.add :  Hotkey ID='accel'  Text ID=803  Script Name='z.cheat.cycrow.hotkey.accel'  On or Off=[FALSE]
@ = [THIS] -> call script z.cheat.cycrow.hotkey.add :  Hotkey ID='brake'  Text ID=804  Script Name='z.cheat.cycrow.hotkey.brake'  On or Off=[FALSE]
  return null
]]>
	</sourceplaintext>
	<sourcetext>
		<line indent="">
			<text>load text: id=</text>
			<var>1000</var>
		</line>
		<line indent="">
			<var>$Page.ID = </var>
			<var>9999</var>
		</line>
		<line indent="">
			<text>set global variable: name=</text>
			<var>'cycrow.cheat.pageid'</var>
			<text> value=</text>
			<var>$Page.ID</var>
		</line>
		<line indent=""></line>
		<line indent="">
			<text>add ship custom command: id=</text>
			<var>1400</var>
		</line>
		<line indent="">
			<text>set script command upgrade: command=</text>
			<var>COMMAND_CYCROW_SHIPCHEAT</var>
			<text>  upgrade=</text>
			<var>[TRUE]</var>
			<text>  script=</text>
			<call>z.cheat.cycrow.cmdchk</call>
		</line>
		<line indent="">
			<text>global script map: set: key=</text>
			<var>COMMAND_CYCROW_SHIPCHEAT</var>
			<text>, class=</text>
			<var>Ship</var>
			<text>, race=</text>
			<var>null</var>
			<text>, script=</text>
			<call>z.cheat.cycrow.cmd</call>
			<text>, prio=</text>
			<var>0</var>
		</line>
		<line indent="">
			<text>set script command upgrade: command=</text>
			<var>COMMAND_CYCROW_STATIONCHEAT</var>
			<text>  upgrade=</text>
			<var>[TRUE]</var>
		</line>
		<line indent="">
			<text>global script map: set: key=</text>
			<var>COMMAND_CYCROW_STATIONCHEAT</var>
			<text>, class=</text>
			<var>Station</var>
			<text>, race=</text>
			<var>null</var>
			<text>, script=</text>
			<call>z.cheat.cycrow.cmd</call>
			<text>, prio=</text>
			<var>0</var>
		</line>
		<line indent=""></line>
		<line indent="">
			<var>if not </var>
			<text>get global variable: name=</text>
			<var>'cycrow.cheat.hotkey'</var>
		</line>
		<line indent=" ">
			<var>$text = </var>
			<text>read text: page=</text>
			<var>$Page.ID</var>
			<text> id=</text>
			<var>901</var>
		</line>
		<line indent=" ">
			<var>$id = </var>
			<text>register hotkey </text>
			<var>$text</var>
			<text> to call script </text>
			<call>z.cheat.cycrow.hotkey</call>
		</line>
		<line indent=" ">
			<text>set global variable: name=</text>
			<var>'cycrow.cheat.hotkey'</var>
			<text> value=</text>
			<var>$id</var>
		</line>
		<line indent="">
			<text>end</text>
		</line>
		<line indent="">
			<var>$id = </var>
			<text>get global variable: name=</text>
			<var>'cheat.hotkey.destruct'</var>
		</line>
		<line indent="">
			<var>if </var>
			<var>$id</var>
		</line>
		<line indent=" ">
			<text>unregister hotkey </text>
			<var>$id</var>
		</line>
		<line indent=" ">
			<text>set global variable: name=</text>
			<var>'cheat.hotkey.destruct'</var>
			<text> value=</text>
			<var>null</var>
		</line>
		<line indent="">
			<text>end</text>
		</line>
		<line indent=""></line>
		<line interruptable="@" indent="">
			<var>= </var>
			<var>[THIS] -></var>
			<text> call script </text>
			<call>z.cheat.cycrow.hotkey.add</call>
			<text> : </text>
			<text> Hotkey ID=</text>
			<var>'destruct'</var>
			<text> </text>
			<text> Text ID=</text>
			<var>801</var>
			<text> </text>
			<text> Script Name=</text>
			<var>'z.cheat.cycrow.destruct'</var>
			<text> </text>
			<text> On or Off=</text>
			<var>[FALSE]</var>
		</line>
		<line interruptable="@" indent="">
			<var>= </var>
			<var>[THIS] -></var>
			<text> call script </text>
			<call>z.cheat.cycrow.hotkey.add</call>
			<text> : </text>
			<text> Hotkey ID=</text>
			<var>'reload'</var>
			<text> </text>
			<text> Text ID=</text>
			<var>802</var>
			<text> </text>
			<text> Script Name=</text>
			<var>'z.cheat.cycrow.hotkey.reload'</var>
			<text> </text>
			<text> On or Off=</text>
			<var>[TRUE]</var>
		</line>
		<line interruptable="@" indent="">
			<var>= </var>
			<var>[THIS] -></var>
			<text> call script </text>
			<call>z.cheat.cycrow.hotkey.add</call>
			<text> : </text>
			<text> Hotkey ID=</text>
			<var>'accel'</var>
			<text> </text>
			<text> Text ID=</text>
			<var>803</var>
			<text> </text>
			<text> Script Name=</text>
			<var>'z.cheat.cycrow.hotkey.accel'</var>
			<text> </text>
			<text> On or Off=</text>
			<var>[FALSE]</var>
		</line>
		<line interruptable="@" indent="">
			<var>= </var>
			<var>[THIS] -></var>
			<text> call script </text>
			<call>z.cheat.cycrow.hotkey.add</call>
			<text> : </text>
			<text> Hotkey ID=</text>
			<var>'brake'</var>
			<text> </text>
			<text> Text ID=</text>
			<var>804</var>
			<text> </text>
			<text> Script Name=</text>
			<var>'z.cheat.cycrow.hotkey.brake'</var>
			<text> </text>
			<text> On or Off=</text>
			<var>[FALSE]</var>
		</line>
		<line indent="">
			<text>return </text>
			<var>null</var>
		</line>
	</sourcetext>
	<codearray>
		<sval type="array" size="10">
			<sval type="string" val="setup.cycrow.cheat" />
			<sval type="int" val="50" />
			<sval type="string" val="Description" />
			<sval type="int" val="1" />
			<sval type="int" val="0" />
			<sval type="array" size="3">
				<sval type="string" val="Page.ID" />
				<sval type="string" val="text" />
				<sval type="string" val="id" />
			</sval>
			<sval type="array" size="21">
				<sval type="array" size="3">
					<sval type="int" val="151" />
					<sval type="int" val="4" />
					<sval type="int" val="1000" />
				</sval>
				<sval type="array" size="7">
					<sval type="int" val="104" />
					<sval type="int" val="0" />
					<sval type="int" val="1" />
					<sval type="int" val="4" />
					<sval type="int" val="9999" />
					<sval type="int" val="1" />
					<sval type="int" val="-1" />
				</sval>
				<sval type="array" size="5">
					<sval type="int" val="157" />
					<sval type="int" val="5" />
					<sval type="string" val="cycrow.cheat.pageid" />
					<sval type="int" val="131074" />
					<sval type="int" val="0" />
				</sval>
				<sval type="array" size="3">
					<sval type="int" val="1463" />
					<sval type="int" val="4" />
					<sval type="int" val="1400" />
				</sval>
				<sval type="array" size="6">
					<sval type="int" val="154" />
					<sval type="int" val="18" />
					<sval type="int" val="1400" />
					<sval type="int" val="131075" />
					<sval type="int" val="10" />
					<sval type="string" val="z.cheat.cycrow.cmdchk" />
				</sval>
				<sval type="array" size="10">
					<sval type="int" val="118" />
					<sval type="int" val="18" />
					<sval type="int" val="1400" />
					<sval type="string" val="z.cheat.cycrow.cmd" />
					<sval type="int" val="4" />
					<sval type="int" val="0" />
					<sval type="int" val="12" />
					<sval type="int" val="2004" />
					<sval type="int" val="0" />
					<sval type="int" val="0" />
				</sval>
				<sval type="array" size="5">
					<sval type="int" val="144" />
					<sval type="int" val="18" />
					<sval type="int" val="1114" />
					<sval type="int" val="131075" />
					<sval type="int" val="10" />
				</sval>
				<sval type="array" size="10">
					<sval type="int" val="118" />
					<sval type="int" val="18" />
					<sval type="int" val="1114" />
					<sval type="string" val="z.cheat.cycrow.cmd" />
					<sval type="int" val="4" />
					<sval type="int" val="0" />
					<sval type="int" val="12" />
					<sval type="int" val="2016" />
					<sval type="int" val="0" />
					<sval type="int" val="0" />
				</sval>
				<sval type="array" size="4">
					<sval type="int" val="158" />
					<sval type="int" val="5" />
					<sval type="string" val="cycrow.cheat.hotkey" />
					<sval type="int" val="-536867836" />
				</sval>
				<sval type="array" size="6">
					<sval type="int" val="126" />
					<sval type="int" val="1" />
					<sval type="int" val="131074" />
					<sval type="int" val="0" />
					<sval type="int" val="4" />
					<sval type="int" val="901" />
				</sval>
				<sval type="array" size="5">
					<sval type="int" val="1100" />
					<sval type="int" val="2" />
					<sval type="int" val="131074" />
					<sval type="int" val="1" />
					<sval type="string" val="z.cheat.cycrow.hotkey" />
				</sval>
				<sval type="array" size="5">
					<sval type="int" val="157" />
					<sval type="int" val="5" />
					<sval type="string" val="cycrow.cheat.hotkey" />
					<sval type="int" val="131074" />
					<sval type="int" val="2" />
				</sval>
				<sval type="array" size="4">
					<sval type="int" val="158" />
					<sval type="int" val="5" />
					<sval type="string" val="cheat.hotkey.destruct" />
					<sval type="int" val="2" />
				</sval>
				<sval type="array" size="7">
					<sval type="int" val="104" />
					<sval type="int" val="-1610608637" />
					<sval type="int" val="1" />
					<sval type="int" val="131074" />
					<sval type="int" val="2" />
					<sval type="int" val="1" />
					<sval type="int" val="-1" />
				</sval>
				<sval type="array" size="3">
					<sval type="int" val="1101" />
					<sval type="int" val="131074" />
					<sval type="int" val="2" />
				</sval>
				<sval type="array" size="5">
					<sval type="int" val="157" />
					<sval type="int" val="5" />
					<sval type="string" val="cheat.hotkey.destruct" />
					<sval type="int" val="0" />
					<sval type="int" val="0" />
				</sval>
				<sval type="array" size="14">
					<sval type="int" val="102" />
					<sval type="string" val="z.cheat.cycrow.hotkey.add" />
					<sval type="int" val="-2147483647" />
					<sval type="int" val="131075" />
					<sval type="int" val="1" />
					<sval type="int" val="4" />
					<sval type="int" val="5" />
					<sval type="string" val="destruct" />
					<sval type="int" val="4" />
					<sval type="int" val="801" />
					<sval type="int" val="5" />
					<sval type="string" val="z.cheat.cycrow.destruct" />
					<sval type="int" val="131075" />
					<sval type="int" val="9" />
				</sval>
				<sval type="array" size="14">
					<sval type="int" val="102" />
					<sval type="string" val="z.cheat.cycrow.hotkey.add" />
					<sval type="int" val="-2147483647" />
					<sval type="int" val="131075" />
					<sval type="int" val="1" />
					<sval type="int" val="4" />
					<sval type="int" val="5" />
					<sval type="string" val="reload" />
					<sval type="int" val="4" />
					<sval type="int" val="802" />
					<sval type="int" val="5" />
					<sval type="string" val="z.cheat.cycrow.hotkey.reload" />
					<sval type="int" val="131075" />
					<sval type="int" val="10" />
				</sval>
				<sval type="array" size="14">
					<sval type="int" val="102" />
					<sval type="string" val="z.cheat.cycrow.hotkey.add" />
					<sval type="int" val="-2147483647" />
					<sval type="int" val="131075" />
					<sval type="int" val="1" />
					<sval type="int" val="4" />
					<sval type="int" val="5" />
					<sval type="string" val="accel" />
					<sval type="int" val="4" />
					<sval type="int" val="803" />
					<sval type="int" val="5" />
					<sval type="string" val="z.cheat.cycrow.hotkey.accel" />
					<sval type="int" val="131075" />
					<sval type="int" val="9" />
				</sval>
				<sval type="array" size="14">
					<sval type="int" val="102" />
					<sval type="string" val="z.cheat.cycrow.hotkey.add" />
					<sval type="int" val="-2147483647" />
					<sval type="int" val="131075" />
					<sval type="int" val="1" />
					<sval type="int" val="4" />
					<sval type="int" val="5" />
					<sval type="string" val="brake" />
					<sval type="int" val="4" />
					<sval type="int" val="804" />
					<sval type="int" val="5" />
					<sval type="string" val="z.cheat.cycrow.hotkey.brake" />
					<sval type="int" val="131075" />
					<sval type="int" val="9" />
				</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="5">
				<sval type="array" size="2">
					<sval type="int" val="3" />
					<sval type="int" val="2" />
				</sval>
				<sval type="array" size="2">
					<sval type="int" val="8" />
					<sval type="int" val="2" />
				</sval>
				<sval type="array" size="2">
					<sval type="int" val="12" />
					<sval type="int" val="4" />
				</sval>
				<sval type="array" size="2">
					<sval type="int" val="16" />
					<sval type="int" val="4" />
				</sval>
				<sval type="array" size="2">
					<sval type="int" val="16" />
					<sval type="int" val="2" />
				</sval>
			</sval>
			<sval type="int" val="0" />
		</sval>
	</codearray>
</script>
Last edited by Createse on Mon, 3. Mar 14, 13:02, edited 6 times in total.

User avatar
DrBullwinkle
Posts: 5715
Joined: Sat, 17. Dec 11, 01:44
x3tc

Re: [Help Request] Xml syntax formatting.

Post by DrBullwinkle » Sat, 22. Feb 14, 20:25

Createse wrote:Can anyone tell what I'm doing wrong from the following snippet of code?
Yep. You did not use an editor made for the job.

Scripts must be edited with the in-game Script Editor, X-Studio Script Editor, or eXscriptor.

User avatar
Createse
Posts: 58
Joined: Fri, 20. Mar 09, 23:28
x4

Post by Createse » Sat, 22. Feb 14, 20:50

I thought X3 used semantically correct Xml? I've done the same formatting on a mission director file and several language files and they work fine.

I think it's something to do with the formatting of the character data. Will try this:
"The ']]>' that marks the end of the CDATA section cannot contain spaces or line breaks." ~ W3Schools
Last edited by Createse on Sat, 22. Feb 14, 20:59, edited 1 time in total.

User avatar
DrBullwinkle
Posts: 5715
Joined: Sat, 17. Dec 11, 01:44
x3tc

Post by DrBullwinkle » Sat, 22. Feb 14, 20:55

Mission Director and Language files do not require a special script editor.

I am slightly surprised that formatting was enough to break a script, but you would not be able to make any changes without a specialized script editor anyway.

The text that you see is just documentation. The *real* xml that makes up the script is in the codearray... it is mostly numbers. Think of it like indexes into a data store.

User avatar
Createse
Posts: 58
Joined: Fri, 20. Mar 09, 23:28
x4

Post by Createse » Sat, 22. Feb 14, 21:02

DrBullwinkle wrote:. . . you would not be able to make any changes without a specialized script editor anyway.

The text that you see is just documentation. The *real* xml that makes up the script is in the codearray... it is mostly numbers. Think of it like indexes into a data store.
I was aware of this. I don't plan on coding like this, I just like clean code.
P.S. Edited my post above while you were posting.

User avatar
Createse
Posts: 58
Joined: Fri, 20. Mar 09, 23:28
x4

Post by Createse » Sat, 22. Feb 14, 23:20

Well, I don't think it's the CDATA thing anymore, see updated code snippet.

There must be something I'm not seeing.

User avatar
mr.bear
Posts: 444
Joined: Sat, 11. Dec 10, 01:38
x2

Post by mr.bear » Sun, 23. Feb 14, 00:07

like the good doctor said, i'm not sure what you're trying to achieve here, but try this:

Code: Select all

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-stylesheet href="x2script.xsl" type="text/xsl"?>
<script>
   <name>setup.cycrow.cheat</name>
   <version>1</version>
   <engineversion>50</engineversion>
   <description>Description</description>
   <arguments></arguments>
   <codearray>
      <sval type="array" size="10">
         <sval type="string" val="setup.cycrow.cheat" />
         <sval type="int" val="50" />
         <sval type="string" val="Description" />
         <sval type="int" val="1" />
         <sval type="int" val="0" />
         <sval type="array" size="3">
            <sval type="string" val="Page.ID" />
            <sval type="string" val="text" />
            <sval type="string" val="id" />
         </sval>
         <sval type="array" size="21">
            <sval type="array" size="3">
               <sval type="int" val="151" />
               <sval type="int" val="4" />
               <sval type="int" val="1000" />
            </sval>
            <sval type="array" size="7">
               <sval type="int" val="104" />
               <sval type="int" val="0" />
               <sval type="int" val="1" />
               <sval type="int" val="4" />
               <sval type="int" val="9999" />
               <sval type="int" val="1" />
               <sval type="int" val="-1" />
            </sval>
            <sval type="array" size="5">
               <sval type="int" val="157" />
               <sval type="int" val="5" />
               <sval type="string" val="cycrow.cheat.pageid" />
               <sval type="int" val="131074" />
               <sval type="int" val="0" />
            </sval>
            <sval type="array" size="3">
               <sval type="int" val="1463" />
               <sval type="int" val="4" />
               <sval type="int" val="1400" />
            </sval>
            <sval type="array" size="6">
               <sval type="int" val="154" />
               <sval type="int" val="18" />
               <sval type="int" val="1400" />
               <sval type="int" val="131075" />
               <sval type="int" val="10" />
               <sval type="string" val="z.cheat.cycrow.cmdchk" />
            </sval>
            <sval type="array" size="10">
               <sval type="int" val="118" />
               <sval type="int" val="18" />
               <sval type="int" val="1400" />
               <sval type="string" val="z.cheat.cycrow.cmd" />
               <sval type="int" val="4" />
               <sval type="int" val="0" />
               <sval type="int" val="12" />
               <sval type="int" val="2004" />
               <sval type="int" val="0" />
               <sval type="int" val="0" />
            </sval>
            <sval type="array" size="5">
               <sval type="int" val="144" />
               <sval type="int" val="18" />
               <sval type="int" val="1114" />
               <sval type="int" val="131075" />
               <sval type="int" val="10" />
            </sval>
            <sval type="array" size="10">
               <sval type="int" val="118" />
               <sval type="int" val="18" />
               <sval type="int" val="1114" />
               <sval type="string" val="z.cheat.cycrow.cmd" />
               <sval type="int" val="4" />
               <sval type="int" val="0" />
               <sval type="int" val="12" />
               <sval type="int" val="2016" />
               <sval type="int" val="0" />
               <sval type="int" val="0" />
            </sval>
            <sval type="array" size="4">
               <sval type="int" val="158" />
               <sval type="int" val="5" />
               <sval type="string" val="cycrow.cheat.hotkey" />
               <sval type="int" val="-536867836" />
            </sval>
            <sval type="array" size="6">
               <sval type="int" val="126" />
               <sval type="int" val="1" />
               <sval type="int" val="131074" />
               <sval type="int" val="0" />
               <sval type="int" val="4" />
               <sval type="int" val="901" />
            </sval>
            <sval type="array" size="5">
               <sval type="int" val="1100" />
               <sval type="int" val="2" />
               <sval type="int" val="131074" />
               <sval type="int" val="1" />
               <sval type="string" val="z.cheat.cycrow.hotkey" />
            </sval>
            <sval type="array" size="5">
               <sval type="int" val="157" />
               <sval type="int" val="5" />
               <sval type="string" val="cycrow.cheat.hotkey" />
               <sval type="int" val="131074" />
               <sval type="int" val="2" />
            </sval>
            <sval type="array" size="4">
               <sval type="int" val="158" />
               <sval type="int" val="5" />
               <sval type="string" val="cheat.hotkey.destruct" />
               <sval type="int" val="2" />
            </sval>
            <sval type="array" size="7">
               <sval type="int" val="104" />
               <sval type="int" val="-1610608637" />
               <sval type="int" val="1" />
               <sval type="int" val="131074" />
               <sval type="int" val="2" />
               <sval type="int" val="1" />
               <sval type="int" val="-1" />
            </sval>
            <sval type="array" size="3">
               <sval type="int" val="1101" />
               <sval type="int" val="131074" />
               <sval type="int" val="2" />
            </sval>
            <sval type="array" size="5">
               <sval type="int" val="157" />
               <sval type="int" val="5" />
               <sval type="string" val="cheat.hotkey.destruct" />
               <sval type="int" val="0" />
               <sval type="int" val="0" />
            </sval>
            <sval type="array" size="14">
               <sval type="int" val="102" />
               <sval type="string" val="z.cheat.cycrow.hotkey.add" />
               <sval type="int" val="-2147483647" />
               <sval type="int" val="131075" />
               <sval type="int" val="1" />
               <sval type="int" val="4" />
               <sval type="int" val="5" />
               <sval type="string" val="destruct" />
               <sval type="int" val="4" />
               <sval type="int" val="801" />
               <sval type="int" val="5" />
               <sval type="string" val="z.cheat.cycrow.destruct" />
               <sval type="int" val="131075" />
               <sval type="int" val="9" />
            </sval>
            <sval type="array" size="14">
               <sval type="int" val="102" />
               <sval type="string" val="z.cheat.cycrow.hotkey.add" />
               <sval type="int" val="-2147483647" />
               <sval type="int" val="131075" />
               <sval type="int" val="1" />
               <sval type="int" val="4" />
               <sval type="int" val="5" />
               <sval type="string" val="reload" />
               <sval type="int" val="4" />
               <sval type="int" val="802" />
               <sval type="int" val="5" />
               <sval type="string" val="z.cheat.cycrow.hotkey.reload" />
               <sval type="int" val="131075" />
               <sval type="int" val="10" />
            </sval>
            <sval type="array" size="14">
               <sval type="int" val="102" />
               <sval type="string" val="z.cheat.cycrow.hotkey.add" />
               <sval type="int" val="-2147483647" />
               <sval type="int" val="131075" />
               <sval type="int" val="1" />
               <sval type="int" val="4" />
               <sval type="int" val="5" />
               <sval type="string" val="accel" />
               <sval type="int" val="4" />
               <sval type="int" val="803" />
               <sval type="int" val="5" />
               <sval type="string" val="z.cheat.cycrow.hotkey.accel" />
               <sval type="int" val="131075" />
               <sval type="int" val="9" />
            </sval>
            <sval type="array" size="14">
               <sval type="int" val="102" />
               <sval type="string" val="z.cheat.cycrow.hotkey.add" />
               <sval type="int" val="-2147483647" />
               <sval type="int" val="131075" />
               <sval type="int" val="1" />
               <sval type="int" val="4" />
               <sval type="int" val="5" />
               <sval type="string" val="brake" />
               <sval type="int" val="4" />
               <sval type="int" val="804" />
               <sval type="int" val="5" />
               <sval type="string" val="z.cheat.cycrow.hotkey.brake" />
               <sval type="int" val="131075" />
               <sval type="int" val="9" />
            </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="5">
            <sval type="array" size="2">
               <sval type="int" val="3" />
               <sval type="int" val="2" />
            </sval>
            <sval type="array" size="2">
               <sval type="int" val="8" />
               <sval type="int" val="2" />
            </sval>
            <sval type="array" size="2">
               <sval type="int" val="12" />
               <sval type="int" val="4" />
            </sval>
            <sval type="array" size="2">
               <sval type="int" val="16" />
               <sval type="int" val="4" />
            </sval>
            <sval type="array" size="2">
               <sval type="int" val="16" />
               <sval type="int" val="2" />
            </sval>
         </sval>
         <sval type="int" val="0" />
      </sval>
   </codearray>
</script>
mr.bear
Rapunzel, Rapunzel, let down your bear...

User avatar
Createse
Posts: 58
Joined: Fri, 20. Mar 09, 23:28
x4

Post by Createse » Sun, 23. Feb 14, 00:18

Nice thought, I tried it but to no avail, other than removing the good stuff when viewing via a web browser (see original post for preview) etc.. It's still not appearing in the in-game script editor's script list.

P.S. I only tried removing the source code from the script detailed above, I didn't try it on all the others as well.
P.S.S. Why does your application (X-Studio) require administrative privilages? It bugs the hell outta me :D.
P.S.S.S-lol. I'm current analysing the output of X-Studio to see what happens to the code when I push one of Cycrow's scripts through it.

User avatar
Createse
Posts: 58
Joined: Fri, 20. Mar 09, 23:28
x4

Post by Createse » Sun, 23. Feb 14, 04:07

I'm beginning to think it wasn't the syntax at all! I've just tried .cat packing an unmodified version of Cycrow's cheat package and it still doesn't work.

Update: Not putting the scripts in a .cat file seems to work (even my formatted scripts), does anyone know why this is? Is X3 Editor 2's Cat manager buggy or are scripts not meant to be in .cat files in the first place?

Shush
Posts: 244
Joined: Sat, 6. Dec 03, 16:21
x4

Post by Shush » Sun, 23. Feb 14, 07:37

Createse wrote:I'm beginning to think it wasn't the syntax at all! I've just tried .cat packing an unmodified version of Cycrow's cheat package and it still doesn't work.

Update: Not putting the scripts in a .cat file seems to work (even my formatted scripts), does anyone know why this is? Is X3 Editor 2's Cat manager buggy or are scripts not meant to be in .cat files in the first place?
MSCI scripts are ignored in cat/dat files, you need to manually copy them into the appropriate scripts directory.

User avatar
Createse
Posts: 58
Joined: Fri, 20. Mar 09, 23:28
x4

Post by Createse » Sun, 23. Feb 14, 07:57

Shush wrote:MSCI scripts are ignored in cat/dat files, you need to manually copy them into the appropriate scripts directory.
Thanks, hopefully others will see this.

Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22224
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow » Wed, 26. Feb 14, 11:58

Script files do not work in the cat/dat files.

you can pack them into pck files, but they must remain in the scripts directory for them to work

User avatar
Createse
Posts: 58
Joined: Fri, 20. Mar 09, 23:28
x4

Post by Createse » Wed, 26. Feb 14, 18:39

Cycrow wrote:Script files do not work in the cat/dat files.

you can pack them into pck files, but they must remain in the scripts directory for them to work
Thanks, hopefully others will see this too.

Post Reply

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