[SCRIPT] X3TC Cheat Package : v1.70 : Updated: 20/03/2021 (TC/AP/FL Compatible)

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

Halcyon_Renard
Posts: 10
Joined: Fri, 17. Jul 09, 22:53

Post by Halcyon_Renard »

>Have to improvise

Can you be any more specific than that? I copied the files you indicated, now I'm stuck at figuring out how to access the cheat console in the game.
qwizzie
Posts: 562
Joined: Thu, 1. Jun 06, 12:17
x4

Post by qwizzie »

in yr controls on the very last part all the way down there should still be two parts of the cheat package you can assign hotkeys to.. one is the destroy ship hotkey and the other is the cheatmenu. just bind a key to the cheatmenu and yr set.
expnobody
Posts: 698
Joined: Wed, 17. Nov 10, 03:23

Post by expnobody »

for those who tries to get cheat script working in X3AP, copy paste the following codes to setup.cycrow.cheat.xml(open in notepad)

Code: Select all

<?xml version="1.0" standalone="yes"?>
<?xml-stylesheet href="x2script.xsl" type="text/xsl"?>
<!--Produced externally by the Exscriptor-->
<script>
   <name>setup.cycrow.cheat</name>
   <version>0</version>
   <engineversion>44</engineversion>
   <description>Description</description>
   <arguments />
   <sourcetext>
      <line linenr="001" indent=""><text>load text: id=</text><var>1000</var><text></text></line>
      <line linenr="002" indent=""><var>$Page.ID = </var><text></text><var>9999 </var><text></text></line>
      <line linenr="003" indent=""><text>set global variable: name=</text><var>'cycrow.cheat.pageid'</var><text> value=</text><var>$Page.ID</var><text></text></line>
      <line linenr="004" indent=""> </line>
      <line linenr="005" indent=""><text>add ship custom command: id=</text><var>9999</var><text></text></line>
      <line linenr="006" indent=""><text>set script command upgrade: command=</text><var>COMMAND_CYCROW_SHIPCHEAT</var><text>  upgrade=</text><var>[TRUE]</var><text>  script=</text><var></var><call>z.cheat.cycrow.cmdchk</call><var></var><text></text></line>
      <line linenr="007" indent=""><text>global script map: set: key=</text><var>COMMAND_CYCROW_SHIPCHEAT</var><text>, class=</text><var>Ship 2004</var><text>, race=</text><var>null</var><text>, script=</text><var></var><call>z.cheat.cycrow.cmd</call><var></var><text>, prio=</text><var>0</var><text></text></line>
      <line linenr="008" indent=""><text>set script command upgrade: command=</text><var>COMMAND_CYCROW_STATIONCHEAT</var><text>  upgrade=</text><var>[TRUE]</var><text></text></line>
      <line linenr="009" indent=""><text>global script map: set: key=</text><var>COMMAND_CYCROW_STATIONCHEAT</var><text>, class=</text><var>Station 2016</var><text>, race=</text><var>null</var><text>, script=</text><var></var><call>z.cheat.cycrow.cmd</call><var></var><text>, prio=</text><var>0</var><text></text></line>
      <line linenr="010" indent=""> </line>
      <line linenr="011" indent=""><text></text><var>if not</var><text> get global variable: name=</text><var>'cycrow.cheat.hotkey'</var><text></text></line>
      <line linenr="012" indent=" "><text></text><var>$text =</var><text> = read text: page=</text><var>$Page.ID</var><text> id=</text><var>901</var><text></text></line>
      <line linenr="013" indent=" "><text></text><var>$id =</var><text> = register hotkey </text><var>$text</var><text> to call script </text><var></var><call>z.cheat.cycrow.hotkey</call><var></var><text></text></line>
      <line linenr="014" indent=" "><text>set global variable: name=</text><var>'cycrow.cheat.hotkey'</var><text> value=</text><var>$id</var><text></text></line>
      <line linenr="015" indent=""><text>end</text></line>
      <line linenr="016" indent=""><text></text><var>$id =</var><text> get global variable: name=</text><var>'cheat.hotkey.destruct'</var><text></text></line>
      <line linenr="017" indent=""><var>if </var><text></text><var>$id </var><text></text></line>
      <line linenr="018" indent=" "><text>unregister hotkey </text><var>$id</var><text></text></line>
      <line linenr="019" indent=" "><text>set global variable: name=</text><var>'cheat.hotkey.destruct'</var><text> value=</text><var>null</var><text></text></line>
      <line linenr="020" indent=""><text>end</text></line>
      <line linenr="021" indent=""> </line>
      <line linenr="022" indent="" interruptable="@"><text></text><var> =</var><text> </text><var>[THIS]</var><text></text><var> -> </var><text>call script </text><var></var><call>z.cheat.cycrow.hotkey.add</call><var></var><text> : Hotkey ID=</text><var>'destruct'</var><text>  Text ID=</text><var>801</var><text>  Script Name=</text><var>'z.cheat.cycrow.destruct'</var><text>  On or Off=</text><var>[TRUE]</var><text> </text></line>
      <line linenr="023" indent="" interruptable="@"><text></text><var> =</var><text> </text><var>[THIS]</var><text></text><var> -> </var><text>call script </text><var></var><call>z.cheat.cycrow.hotkey.add</call><var></var><text> : Hotkey ID=</text><var>'reload'</var><text>  Text ID=</text><var>802</var><text>  Script Name=</text><var>'z.cheat.cycrow.hotkey.reload'</var><text>  On or Off=</text><var>[FALSE]</var><text> </text></line>
      <line linenr="024" indent="" interruptable="@"><text></text><var> =</var><text> </text><var>[THIS]</var><text></text><var> -> </var><text>call script </text><var></var><call>z.cheat.cycrow.hotkey.add</call><var></var><text> : Hotkey ID=</text><var>'accel'</var><text>  Text ID=</text><var>803</var><text>  Script Name=</text><var>'z.cheat.cycrow.hotkey.accel'</var><text>  On or Off=</text><var>[FALSE]</var><text> </text></line>
      <line linenr="025" indent="" interruptable="@"><text></text><var> =</var><text> </text><var>[THIS]</var><text></text><var> -> </var><text>call script </text><var></var><call>z.cheat.cycrow.hotkey.add</call><var></var><text> : Hotkey ID=</text><var>'brake'</var><text>  Text ID=</text><var>804</var><text>  Script Name=</text><var>'z.cheat.cycrow.hotkey.brake'</var><text>  On or Off=</text><var>[FALSE]</var><text> </text></line>
      <line linenr="026" indent=""><text>return </text><var>null</var><text></text></line>
      <line linenr="027" indent=""> </line>
      <line linenr="028" indent=""> </line>
   </sourcetext>
   <codearray>
      <sval type="array" size="10">
         <sval type="string" val="setup.cycrow.cheat" />
         <sval type="int" val="44" />
         <sval type="string" val="Description" />
         <sval type="int" val="0" />
         <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="9999" />
            </sval>
            <sval type="array" size="6">
               <sval type="int" val="154" />
               <sval type="int" val="18" />
               <sval type="int" val="1300" />
               <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="1300" />
               <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="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="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="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="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="7">
            <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 type="array" size="2">
               <sval type="int" val="21" />
               <sval type="int" val="2" />
            </sval>
            <sval type="array" size="2">
               <sval type="int" val="21" />
               <sval type="int" val="2" />
            </sval>
         </sval>
         <sval type="int" val="0" />
      </sval>
   </codearray>
</script>
summer time..
slowpokex4
Posts: 7
Joined: Fri, 16. Dec 11, 12:05

Post by slowpokex4 »

Halcyon_Renard wrote:>Have to improvise

Can you be any more specific than that? I copied the files you indicated, now I'm stuck at figuring out how to access the cheat console in the game.
1st you need to enable the script manager by changing your name, press "m" to "Thereshallbewings". The capital "T" is important, since the script editor activation is case sensitive, now hit enter until your name changes and it exits out of the menu options. Next, hit "ESC" to bring up the options menu, then choose controls, click on the game tab, scroll down until you see the "Global commands: [not bound]" option, click on the red [not bound] part and choose the add control option and bind a hotkey to the global command, I chose "]", next click Apply, then exit out of the controls menu and choose to save changes when asked to.

Next, depending on if you have not already copied the "t" & "scripts" folder from the main Albion Prelude folder into the Albion Prelude\addons folder, you should do so now, after saving your current game, if isn't already saved. When copying over the "t" & "scripts" folders, choose to overwrite the folders, but not the files that already exist in the addons folder, since egosoft changed how the "t" & "scripts" folder works and what commands numbers they can use.

After this is done or if you already did this, next alt + tab back into the game, wait for it to reload the game visuals back up and then hit whatever hotkey you bound the "global commands" command to in the options -> controls -> game menu. Then press "s" while in the "global commands" menu to bring up the script editor menu, next you click on the "Reinit Script Caches" to update the script database listings. Now you can either load your current saved game from earlier or continue playing now.

If you want you should go bind the cheat menu hotkey option in the Options -> Controls -> Interface menu under the "Cheat Menu" option near the bottom of the page if you scroll down. Now you can use the cheat menu package in X3: Albion Prelude, one note though, if you enable god mode and ram or run into anything near or bigger in size than your current ship, you will randomly explode and die at times, since the god mode scripts can't update the shield/hull values faster enough at times.
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22438
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

AP Compatable version added
Demon of Rashomon
Posts: 38
Joined: Fri, 4. Apr 08, 09:22
x3tc

Post by Demon of Rashomon »

I'm clearly doing something wrong as I can't seem to get even the AP friendly version to work. I eagerly look forward to an AP friendly Plugin Manager.
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22438
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

download beta 9 of the plugin manager which is AP friendly, then then install the AP version of this script for it to work
Demon of Rashomon
Posts: 38
Joined: Fri, 4. Apr 08, 09:22
x3tc

Post by Demon of Rashomon »

Cheers, I just tried doing it with beta 9 and I'm getting the same problem. I install the cheat package, open the game, I don't have a current game so I start a new one. I activate the script editor and save, and this is where I hit my problem, I now can't open the saved game. It just crashes. I can't open a game with the script editor enabled and I don't know why.
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22438
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

Demon of Rashomon wrote:Cheers, I just tried doing it with beta 9 and I'm getting the same problem. I install the cheat package, open the game, I don't have a current game so I start a new one. I activate the script editor and save, and this is where I hit my problem, I now can't open the saved game. It just crashes. I can't open a game with the script editor enabled and I don't know why.
i've just tested it on mine and not had a problem.

also, if the plugin manager is in modified mode, then it will force the game to be modified as well, this means you dont need to activate the script editor, the cheats should be ready to use when you start the game.

u could try redownloading the cheat package just incase it was curropt for some reason
Halcyon_Renard
Posts: 10
Joined: Fri, 17. Jul 09, 22:53

Post by Halcyon_Renard »

Same problem; downloaded the beta plugin manager 9, installed the new AP friendly cheat package, and no option appears under the interface menu to bind a key to open the cheat menu, as you'd usually see.
flatbush71

Post by flatbush71 »

Ok, Got it !!!
Thank you so much for all your hard work.
I used the beta 9 and 1.61 for AP, it works fine.

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

Post by Cycrow »

beta 10 is out for the plugin manager now which will improve stuff for AP
Halcyon_Renard
Posts: 10
Joined: Fri, 17. Jul 09, 22:53

Post by Halcyon_Renard »

Thanks, Cycrow. Your speedy support for your mods is commendable.
omik
Posts: 30
Joined: Fri, 16. Dec 11, 06:59
x3tc

Post by omik »

I can't seem to get this to work. I have Beta 10 of the plugin manager, set it to modified mode, applied the AP version of cheat package. When I start a new game, there is no option to bind a key to the cheat menu in game.
User avatar
NZ-Wanderer
Posts: 1627
Joined: Thu, 5. Aug 04, 01:57
x4

Post by NZ-Wanderer »

AP version of the cheat package with plugin manager v10 beta worked perfect for me, installed it, ran the game then bound a key to it and as a test I created an entire fleet :lol:
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22438
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

the AP version has a new option for a fleet.

if you goto create fleet, then select Complete Fleet.

it'll create a proper AP fleet under a fleet commander
User avatar
NZ-Wanderer
Posts: 1627
Joined: Thu, 5. Aug 04, 01:57
x4

Post by NZ-Wanderer »

Cycrow wrote:the AP version has a new option for a fleet.
if you goto create fleet, then select Complete Fleet.
it'll create a proper AP fleet under a fleet commander
Heheh so I found out, I had ships for miles :lol: very very impressive...
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22438
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

wait till u start issuing them with fleet commands ;)
User avatar
NZ-Wanderer
Posts: 1627
Joined: Thu, 5. Aug 04, 01:57
x4

Post by NZ-Wanderer »

One baby step at a time methinks.. - I notice none of them are equiped with weapons, so I would have to outfit the entire fleet by the looks of it, and if I didn't use the cheat that would take forever....
Now a script that would automatically outfit ships with the best weapons for that ship would be nice :D
omik
Posts: 30
Joined: Fri, 16. Dec 11, 06:59
x3tc

Post by omik »

Any way to solve my problem, Cycrow? No idea why the key binding isn't coming up in the game menu.

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