Method for identifying TC / AP

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
Nicoman35
Posts: 681
Joined: Thu, 17. Nov 05, 13:12
x3tc

Method for identifying TC / AP

Post by Nicoman35 » Tue, 3. Jun 14, 17:45

Hey guys, I am looking for a script wise method for identifying, if a game is TC or AP. Is this possible?

User avatar
JSDD
Posts: 1378
Joined: Fri, 21. Mar 14, 20:51
x3tc

Post by JSDD » Tue, 3. Jun 14, 18:10

... yepp, it is ^^

Code: Select all

$Game.Is.X3AP = get script engine version
$Game.Is.X3AP = $Game.Is.X3AP >= 50

if $Game.Is.X3AP
... code 4 AP
else
... code 4 TC
end
// edit: shame @ egosoft !! ... since appearance of X3AP there is an error in the TC script editor, they added 2 new weapon instructions, one of those does nothing :|
Last edited by JSDD on Tue, 3. Jun 14, 18:21, edited 1 time in total.
To err is human. To really foul things up you need a computer.
Irren ist menschlich. Aber wenn man richtig Fehler machen will, braucht man einen Computer.


Mission Director Beispiele

Nicoman35
Posts: 681
Joined: Thu, 17. Nov 05, 13:12
x3tc

Post by Nicoman35 » Tue, 3. Jun 14, 18:20

Thank you very much, JSDD :)
I modified your code a bit, as 'get script engine version' did not work for me, at least not with X Studio v1.08...

Code: Select all

$script.engine.version = script engine version
if $script.engine.version >= 50
... code 4 AP 
else
... code 4 TC 
end

Post Reply

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