[ALP] Upgrade Kits (JDK) 1.5 TC 9/12/08

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

Rate this plugin

5/5
53
34%
4/5
8
5%
3/5
3
2%
2/5
0
No votes
1/5
3
2%
I Love LV
89
57%
 
Total votes: 156

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

Post by DrBullwinkle »

First, you MUST use an editor made for the game, such as the in-game Script Editor. A normal text/xml editor will not work. If you want an external editor then use X-Studio Script Editor or Exscriptor.The human-readable portion of X3's script files is just "documentation". The real code is the array of numbers at the bottom. A standard editor will not edit scripts correctly.

Second, changing the *name* of the pack could get you into trouble. The name must match $level, which is passed to getlists as an argument (which means that it is used in other scripts). It would be much easier to leave the names as they are and change only the content.

Yes, changing the content is as easy as commenting out a ware or appending a new ware. The task should be obvious in a proper editor.
joajoha
Posts: 37
Joined: Fri, 1. Dec 06, 13:03
x4

Post by joajoha »

DrBullwinkle wrote:First, you MUST use an editor made for the game, such as the in-game Script Editor. A normal text/xml editor will not work. If you want an external editor then use X-Studio Script Editor or Exscriptor.The human-readable portion of X3's script files is just "documentation". The real code is the array of numbers at the bottom. A standard editor will not edit scripts correctly.

Second, changing the *name* of the pack could get you into trouble. The name must match $level, which is passed to getlists as an argument (which means that it is used in other scripts). It would be much easier to leave the names as they are and change only the content.

Yes, changing the content is as easy as commenting out a ware or appending a new ware. The task should be obvious in a proper editor.
Thank you for your help.

Will stick with just editing the content then. And will use one of the editors suited for it.

Was just looking at it with the notepad 2 to see if I could grasp it :)

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