Exscriptor AP Compatibility v0.2 (23/12/11)

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

Shimrod
Posts: 907
Joined: Tue, 18. Feb 03, 01:43
x4

Exscriptor AP Compatibility v0.2 (23/12/11)

Post by Shimrod »

Update: Exscriptor is now compatible with AP. This download is no longer necessary.

Exscriptor topic:
http://forum.egosoft.com/viewtopic.php?p=2513546

---

I've made some changes to get exscriptor working with the new AP script commands and constants as described in my post in the exscriptor thread:
http://forum.egosoft.com/viewtopic.php? ... 38#3755638

I've uploaded the files here:
[ external image ]

Be vigilant for errors as adding the new script commands to the exscriptor files was a manual process.

Readme:

Code: Select all

X3APScriptor v0.2
===================================
Forum: http://forum.egosoft.com/viewtopic.php?t=312689

These files are for making exscriptor work with Albion Prelude.

Instructions
------------
1. Backup exscriptor's X3TCCommandList and X3TCCommandParameters files
2. Copy the 4 files to the exscriptor folder (X3APScriptor.cat/dat, X3TCCommandList, X3TCCommandParameters)
3. Configure Exscriptor's settings as follows (assuming Steam is on C:\Steam)

X3TC Directory: Point at Steam's 'X3 Terran Conflict' folder
X3TC Script Directory: Steam's 'Terran Conflict\Addon\Scripts' folder
Mod cat/dat file: Point to the X3APScriptor.cat file supplied in this package.

4. Restart exscriptor

If it worked
------------
- You'll see the new script commands in the editor: e.g. Fly Commands\Fleet Commands
- You'll see the new constants in the Constants menu: e.g. Bullet.Beam
- You'll be able to save and load scripts utilizing the new commands and constants.

Notes
-----

To get the script commands into exscriptor I took them from 0001-L044.xml and manually edited to suit the format of exscriptors X3TCCommandList and X3TCCommandParameters.
** Because this was a lengthy manual process, its possible the files may contain errors **

The purpose of the cat file is to get exscriptor to see the AP constants. I edited 0001-L044.xml and copied the 382002 table entries into the 2002 table and packaged this into a cat file for use with exscriptor's 'Mod cat/dat file' setting. Exscriptor wouldn't otherwise see the 382002 table containing the new constants, and it was not otherwise possible to load and save scripts using the new constants.

Changelog
---------

0.2
---

Fixed a problem with the 0.1 dat/cat (0001-L044.xml) file causing scripts to be loaded wrongly so they could not be saved.
Last edited by Shimrod on Tue, 27. Dec 11, 12:45, edited 7 times in total.
User avatar
Jack08
Posts: 2993
Joined: Sun, 25. Dec 05, 10:42
x3tc

Post by Jack08 »

I was doing the same thing and planed on posting a patch in the exscriptor post, as the creator isnt around - if you have finished doing it then you should post the patch - i still have 30 or so commands to do but am swamed with other work at the moment.

edit:

also to add another command table all you haave to do is:

# Trade Commands - Stock Exchange Commands
***commands here

The exscriptor will see this and create a new sub-tree
[ external image ]
"One sure mark of a fool is to dismiss anything that falls outside his experience as being impossible."
―Farengar Secret-Fire
Shimrod
Posts: 907
Joined: Tue, 18. Feb 03, 01:43
x4

Post by Shimrod »

I've edited the OP with a download link. The commands are organized into the proper submenus, in more or less the same order they appear in the ingame editor.
Shimrod
Posts: 907
Joined: Tue, 18. Feb 03, 01:43
x4

Post by Shimrod »

Found a problem. When specifying the cat file with the constants and loading scripts the editor reads them in with errors, such that they cannot be saved.

One issue is that the space between if/while and the expression is removed after loading:

Code: Select all

while$idx < $Ships.Count
if$perc > $lastperc
Another issue is a 1 appears in some statements

Code: Select all

= 1 wait 1 ms
Fixed
The problem appears to have been a bad 0001-L044.xml file which I've fixed in a v0.2 upload.

I originally extracted the file from X3Editor2 before editing and repacking using X3ModManager. This time I extracted using X3ModManager and diffed the files. There was considerable differences between the files, and exscriptor was ok with the version extracted from X3ModManager and edited to put the new constants in the old constant tables.

I suspect what happened is that X3Editor parsed the t file into its editor and effectively rewrote a new version when exporting it, which differed in various ways to the original file in the cat.
Whimsy
Posts: 167
Joined: Mon, 9. Feb 04, 20:32
x3tc

Post by Whimsy »

Shimrod wrote:I've edited the OP with a download link. The commands are organized into the proper submenus, in more or less the same order they appear in the ingame editor.
Thanks Shimrod. :) I've updated Exscriptor accordingly. The new version is available over in the Exscriptor thread or, more directly, here.
Shimrod
Posts: 907
Joined: Tue, 18. Feb 03, 01:43
x4

Post by Shimrod »

Thanks Whimsy. I've updated the OP to reflect that.

And thanks for the new features :)

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