How to use a batch file to unpack those pesky scripts

The place to discuss scripting and game modifications for X³: Reunion.

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

Post Reply
AalaarDB
Posts: 2282
Joined: Thu, 29. Jan 04, 08:19
x3tc

How to use a batch file to unpack those pesky scripts

Post by AalaarDB » Fri, 3. Mar 06, 10:34

This will help you unpack all of the default scripts in your scripts folder with ease. This post is only intended for people who need to look at those scripts.

Download x3tools.exe and place it in your X3\scripts folder
Create a file called test.txt
Copy and paste this into it:

cd c:\
cd X3 Reunion
cd scripts
FOR %%f IN (*.pck) DO x3tools -unpack %%f %%f.xml

This assumes you have installed X3 to C:\X3 Reunion, if not, change the directory.

Change the file name to test.bat, and run it.
Your files will be named filename.pck.xml, but they will open just like normal .xmls.

Post Reply

Return to “X³: Reunion - Scripts and Modding”