Exscriptor - new external script editor

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

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

Whimsy
Posts: 167
Joined: Mon, 9. Feb 04, 20:32
x3tc

Post by Whimsy »

draffutt wrote:1) tools / options: browse button doesn't work for the x3 TC tab but works fine for the other 2 tabs
I can't believe I missed this one! Okay, it's fixed now in V1.2.2.
draffutt wrote:2) hitting the X in the top right in the options window brings up a popup saying do you want to close without saving. ?!?!?! at first i thought i was going to close out the whole program.
I changed it to say that it's the Options that are closing, not the whole program, so hopefully that's better now.
(----____JEFF____----)
Posts: 269
Joined: Sat, 20. May 06, 14:55
x3tc

Post by (----____JEFF____----) »

Hey Whimsy, it's been quite a while since I've been here, did you have a good Christmas and everything?

Anyway I ran into a problem, or actually it's egosoft's problem. In this code is a typo:

Code: Select all

*In Exscriptor
<RetVar/IF> match regular expression: <Var/String> to string <Var/String>

*In X3:TC
<RetVar/IF> match regular expession: <Var/String> to string <Var/String>
Egosoft forgot the "r" in "expression", so when I insert the code from the right by double clicking it, it won't compile. If I remove the "r" it compiles just fine. Don't know if you even want to spend time on something this small, but it might be useful for anyone else that encounters this problem ;)

The error the compiler shows is this (if everything else is good):

Code: Select all

Saving file...
Save failed because of compilation errors - please compile again
Save failed due to compilation errors!
- Error on line 91 - Unrecognised symbol in expression: match
Whimsy
Posts: 167
Joined: Mon, 9. Feb 04, 20:32
x3tc

Post by Whimsy »

It's not Egosoft's misspelling, it's mine - a typo in one of the command XML files. Easily fixed though. :) I also added the new commands added by X3TC V1.3 which I forgot to do before.

V1.2.3 is here. As usual, if you spot any more bugs, just let me know.
ybo1233
Posts: 47
Joined: Tue, 18. Nov 08, 18:16
x4

Post by ybo1233 »

Hi,

I have installed Exscriptor, and when i launch it with language file 033 (french) i have the following error :
Failed to load X4 data:
L'index et la longueur doivent faire référence à un emplacement situé dans la chaîne.
Nom du paramètre : length
Could not load X4 data - please check settings in Tools-->Options
I have checked my Tools-->Option everything seems ok...

Turning language to english seems ok.

Any idea of what's wrong ?

Thx.
Whimsy
Posts: 167
Joined: Mon, 9. Feb 04, 20:32
x3tc

Post by Whimsy »

ybo1233 wrote:Any idea of what's wrong ?
It seems that in the French language file (0001-L033), the sector name section includes an entry for the freight scanner - which confuses the program a bit. :D I've modified it so it should work now in V1.2.4.
ybo1233
Posts: 47
Joined: Tue, 18. Nov 08, 18:16
x4

Post by ybo1233 »

Hi,

I have begin to use it in english.

That's just great :D

I will try newest version ASAP.

But for now, the link seems to be broken... :roll:

Thx.
dpadula
Posts: 246
Joined: Tue, 15. Aug 06, 18:47
x4

Post by dpadula »

Will this let me create a new jobs file easily so that I can add all of my extra ships into the game as well?
-----
Dell Precision 3600
12 gb ram
Nvidia 1060
256 gd boot ssd and 1 tb data ssd
Windows 10
Whimsy
Posts: 167
Joined: Mon, 9. Feb 04, 20:32
x3tc

Post by Whimsy »

ybo1233 wrote:But for now, the link seems to be broken... :roll:
Are you sure? It works okay for me. But you can always try one of the alternative links in the first post if you're still having problems.
dpadula wrote:Will this let me create a new jobs file easily so that I can add all of my extra ships into the game as well?
No, sorry - Exscriptor only lets you play with script files. For jobs you'd need a different tool.
ybo1233
Posts: 47
Joined: Tue, 18. Nov 08, 18:16
x4

Post by ybo1233 »

Hi,

it seems to work now :)

When i launch exscriptor he tell me that there is many conflicts...

Is it normal :?
Whimsy
Posts: 167
Joined: Mon, 9. Feb 04, 20:32
x3tc

Post by Whimsy »

ybo1233 wrote:Hi,

it seems to work now :)

When i launch exscriptor he tell me that there is many conflicts...

Is it normal :?
Probably not normal, no - do you have lots of scripts or mods installed? Maybe some of them are incompatible with each other. But if everything seems to work okay in the game and you don't think there are any missing commands etc, then it shouldn't matter much anyway. :)
ecomoot
Posts: 11
Joined: Sun, 18. Nov 07, 02:27
x3

Request for Constants

Post by ecomoot »

Whimsy,

Just for ease of use, would you be willing to put in a Constants list? The MSCI Handbook is lacking in this area and it would be genuinely useful to not have to look them all up. Just a thought.

Kudos to you on this. It is much more efficient to use than the X3 SE.

Ecomoot
ybo1233
Posts: 47
Joined: Tue, 18. Nov 08, 18:16
x4

Post by ybo1233 »

I seems that exscriptor see more than one version of some t files...

For exemple, i tell me that it find 2 name for race 3 / FII.

I think it see the original one, plus the patched version of the base t file.

I seems that there nothing wrong, the game is not "clean", but it works fine :P
ybo1233
Posts: 47
Joined: Tue, 18. Nov 08, 18:16
x4

a little error

Post by ybo1233 »

I have found an error : <RetVar> = get palyer name

Should be : <RetVar> = get player name
Whimsy
Posts: 167
Joined: Mon, 9. Feb 04, 20:32
x3tc

Post by Whimsy »

ecomoot wrote:Just for ease of use, would you be willing to put in a Constants list? The MSCI Handbook is lacking in this area and it would be genuinely useful to not have to look them all up. Just a thought.
I cannot believe I've never noticed that before! A Constants list is definitely helpful, especially for the more obscure ones. I've added a new list to V1.2.5. It's a new button in the top-right.
ybo1233 wrote:I seems that exscriptor see more than one version of some t files...

For exemple, i tell me that it find 2 name for race 3 / FII.

I think it see the original one, plus the patched version of the base t file.
Have you unpacked the t files at any point? It may be conflicting between ones still in the CAT/DAT files and ones you've unpacked. Other than that, I don't know - but if the game runs fine, then I guess it's not a problem. The conflicts are just warnings really. :) I also fixed the typo you spotted too.
ecomoot
Posts: 11
Joined: Sun, 18. Nov 07, 02:27
x3

Post by ecomoot »

Whimsy wrote:
ecomoot wrote:Just for ease of use, would you be willing to put in a Constants list? The MSCI Handbook is lacking in this area and it would be genuinely useful to not have to look them all up. Just a thought.
I cannot believe I've never noticed that before! A Constants list is definitely helpful, especially for the more obscure ones. I've added a new list to V1.2.5. It's a new button in the top-right.
Thanks!! I'm using this an awful lot. In fact, I'm putting up my first public script in just a couple of days. A big reason why I never did was because of the built in script editor. So I really appreciate it. :D
ybo1233
Posts: 47
Joined: Tue, 18. Nov 08, 18:16
x4

Post by ybo1233 »

Have found a new issue...

I am currently working on a wing script.

In game script editor i could have a Var/wing variable for my script arg, but not in exscriptor.

Is there a way to correct this ?
draffutt
Posts: 4293
Joined: Wed, 21. Feb 07, 17:46
x4

Post by draffutt »

ok if i type this:

Code: Select all

$config = [THIS]->call script 'anarkis.cmd.lib.config.test' : config=$config  startid=211  global=211  max=214  titleid=210
i get this error: "calling a script with too many parameters - should be 0 parameters:"


but if i type this:

Code: Select all

$config = [THIS]->call script 'anarkis.cmd.lib.config' : config=$config  startid=211  global=211  max=214  titleid=210
it compiles just fine. is this a limitation of scriptor?

edit after further testing. everything you reload a script with this command and make a change anywhere else in the script that error pops up. you have to change the name of the call script you are calling just to compile it.

edit : edit its doing the same thing with this command as well:

Code: Select all

    $config = [THIS]->call script 'aa.lib.config.test' : arg0=$config  arg1=231  arg2=233  arg3=234  arg4=230
edit : edit : edit after compling either of the commands above and view them with the ingame scripter. it shows them as:

Code: Select all

$config = [THIS]->call script 'anarkis.cmd.lib.config' : ????=$config  ????=231  ????=233  ????=234  ????=230
Last edited by draffutt on Sat, 7. Feb 09, 12:12, edited 11 times in total.
None of us is as smart as all of us. ~Ken Blanchard

TC player bug fixes
Reunion player bug fixes
ybo1233
Posts: 47
Joined: Tue, 18. Nov 08, 18:16
x4

Post by ybo1233 »

Minor issue : Exscriptor seems to don't start

When launching Exscriptor, nothing happen !!!

The process is running and responding, but nothing happen on screen.

I have finaly find what happen, when the program finish and is reduced, the config.dat register the position of the screen at -32000/-32000 (x/y).

Soluce : As the program don't appear in the taskbar, edit config.dat, and put the "window x pos =" and "window y pos =" to "0".

Whimsy, is there a way to have the reduced position registered at 0/0 in config.dat ?
draffutt
Posts: 4293
Joined: Wed, 21. Feb 07, 17:46
x4

Post by draffutt »

Hello whimsy,

came across a major issue today. i'll let you see for yourself:[ external image ]

i have uploaded the files i was using an wrote a step-by-step procedure on what i did so you could follow along. you should get the same results. :D
corrupt.rar
None of us is as smart as all of us. ~Ken Blanchard

TC player bug fixes
Reunion player bug fixes
Loky77
Posts: 110
Joined: Sun, 25. Jan 09, 09:54
x3tc

Post by Loky77 »

Hello,
I just found a minor typo in X3TCCommandList.txt.
<RetVar> = sory array: data=<Value> sort values=<Value>

Excellent job with this editor :)

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