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

incarn
Posts: 38
Joined: Sat, 11. Sep 10, 03:51
x4

Post by incarn »

A most excellent tool.
Been using it for a while.

Question: Is there any way to get the game to recognise a changed script without closing and reopening it?
I really hate having to use the in-game script editor.
chms
Posts: 165
Joined: Thu, 21. Oct 04, 19:17
x4

Post by chms »

incarn wrote:Is there any way to get the game to recognise a changed script without closing and reopening it?
Simply use the command "new script version available" (general commands) and don't forget to increase the version number after each change.

Example:

Code: Select all

START:
if is a new script version available
  START [THIS]->call script 'Test.Script' :
  return null
end

... rest of script .....

goto label START
return null
incarn
Posts: 38
Joined: Sat, 11. Sep 10, 03:51
x4

Post by incarn »

Not quite, but understandable upon review my wording could have been better.

What I actually meant:
I was after a way to read a script, while in game, that has been changed via the external script editor.

The in-game editor is painful.
chms
Posts: 165
Joined: Thu, 21. Oct 04, 19:17
x4

Post by chms »

incarn wrote:I was after a way to read a script, while in game, that has been changed via the external script editor.
I'm not sure what exactly You mean - maybe because English isn't my native language.
But if You want to read a script while You are within the game why not switching to the Exscriptor by using ALT-TAB?
If You want X to automatically "respond" to changes AFAIK the way shown before would be the right way - maybe in combination with "re-init script caches".
chms
Posts: 165
Joined: Thu, 21. Oct 04, 19:17
x4

Post by chms »

After thinking of it a while I'd suppose You want to edit a script with exscriptor while You are in game?

In this case a combination of both of my answers would be the right way for You.
  • Start exscriptor and load script with check for new version
  • Start x and load game
  • run script and check if it does what it's supposed to do
If You have to change script change to exscriptor and edit the script.
(Don't forget to change the version number of Your script)
In x "call" the script editor, "reinit script caches" and leave it again.

Now You have 2 options:
  • If You have made (major) changes that require a complete new start load the savegame before You started the script and run script again
  • Minor changes will take effect in running game when script checks for a new version the next time
I hope I got Your "request" correct now and my post is of some help.
Andrew Wilde
Posts: 76
Joined: Tue, 13. Jul 04, 23:58
x3tc

Post by Andrew Wilde »

Hi, just started using this wonderful tool on Mac via Crossover (XP emulation via Wineskin wrapper), and it's all working perfectly _except_, annoyingly (and it's a bit of a show stopper), the emulation won't handle display font size changes properly. I'm certain it's not a problem with Exscriptor, I'm getting exactly the same problem using X2 Editor 2 within Crossover (not big deal with X3 Ed, starting font is fine - but Exscriptor's initial 8 point font for the code is just toooo small for me!), so there's something wrong or missing in the emulated XP environment that needs taking up with Crossover.

However before I do, could someone just confirm that this does not exhibit in the options dialog under Windows ?

And just in case anyone has any thoughts, the error I'm getting is this, whenever I attempt to select a new font or size (including reselecting the existing choice); the '-16' changes depending on what font size I've selected. Only thing I was thinking, I've only got TrueType fonts in the XP environment - might the .Net framework that I assume is handling the dialogs be expecting a different type of font set that has different parameter protocols ? Any thoughts much appreciated, but as I said, I'm expecting this to be a problem for Crossover, really.


And also, not really concerned, because my TC install is running fine, no unusual behaviour at all, but are these load errors and these conflict errors usual (or at least not unusual) for TC installs ?

Thanks for looking,

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

Post by DrBullwinkle »

Ampersands (&) in dialogs and menus are the way that Windows knows which character should be highlighted (as part of a keyboard shortcut). They do not display in Windows. Instead, the letter immediately following the ampersand will be underscored.

The errors are normal; they just show objects that have been overridden due to object precedence. For example, a file in 01.cat may be overridden by the same file in 02.cat.

Does your font error occur after you select a new font and click OK? Or does it happen before the font dialog opens?

You might try populating the paths to your AP and TC folders. Those are important to Exscriptor, although they may be unrelated to the font error.
Andrew Wilde
Posts: 76
Joined: Tue, 13. Jul 04, 23:58
x3tc

Post by Andrew Wilde »

DrBullwinkle wrote:Ampersands (&) in dialogs and menus are the way that Windows knows which character should be highlighted (as part of a keyboard shortcut). They do not display in Windows. Instead, the letter immediately following the ampersand will be underscored.
Ah, that explains 'what' I'm seeing; and I guess the 'why' will be down to some problem/deficiency with the Framework being provided to Exscriptor's code. Just about to submit a ticket to the Codeweaver (Crossover's publishers) site, see if they've any ideas.
The errors are normal; they just show objects that have been overridden due to object precedence.
Brilliant, that's reassuring to know.
Does your font error occur after you select a new font and click OK? Or does it happen before the font dialog opens?
After. The font dialog disappears when I ok the selection (and the error message pops up), but the Options pane stays open throughout. Does exactly the same with X3 Editor 2 (in an identical wrapper), albeit with a slightly different error dialog. Same error though.
You might try populating the paths to your AP and TC folders. Those are important to Exscriptor, although they may be unrelated to the font error.
No, got that, the Options pane's misleading at first glance, because it defaults to the AP paths and I have no AP install. But my TC paths are fine, Exscriptor wouldn't do a thing till I'd done that (though actually, had to fiddle around a bit because the folder structure's a touch different on Mac - what Exscriptor really wants is where the Cat/Dat files are, not where the App/Exe is).

Many thanks for the response DrBullwinkle, much appreciated.
Edward Hyde
Posts: 2
Joined: Thu, 28. Feb 13, 23:49

Post by Edward Hyde »

Hi!

I think I need help.

I can't get the programm to work.

The error message is:

Failed to load X3TC data:
Could not open main language file (t\0001-L049) - please ensure the settings are correct.
Could not load X3TC data - please check settings in Tools-->Options
- Could not load mod cat/dat: C:\Program Files (x86)\Games\X3 Terran Conflict\01.cat.

The language files doesn't exists in the folder at all.

I'm not using AP! I've searched on the web for the better part of 3 hours without find a solution.
Anybody here who can help me?

With best regards,
Edward
User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 25130
Joined: Sun, 2. Apr 06, 16:38
x4

Post by X2-Illuminatus »

The main language file is stored within the cat/dat files. You could try extracting it using the Modmanager by doubleshadow. The latest 0001-L049.xml can be found in cat/dat number 13.
Nun verfügbar! X3: Farnham's Legacy - Ein neues Kapitel für einen alten Favoriten

Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)

Neuauflage der fünf X-Romane als Taschenbuch

The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!
Edward Hyde
Posts: 2
Joined: Thu, 28. Feb 13, 23:49

Post by Edward Hyde »

Extracted.

New error is now:

"Could not find Type file TWareT - please ensure the settings are correct."

I found a reference to a TWareT.txt file within the x3files.xml, still have to clue how to proceed :/
There is a TWareT fiel within the cat12 file, but in a folder (types), which is not native to the X3 directory.
Still I extracred it and copied hte directory, including the file to the X3 home directory.

That seem to have helped. The error is now for TWareM...


Final Solution: I extracted all cat files and copied the complete "types" folder to the X3 home directory.
That seems to do the trick...

At least It started and I seem to have (all?) commands available.

Thanks for the help.

Best regards,
Edward
Phezzan
Posts: 126
Joined: Mon, 12. Nov 07, 05:48
x4

Post by Phezzan »

I think it would help if you showed us your directory configuration from the editor. My guess is that something about the directory structure is incorrect, so the editor is not finding the files.

When you extract the files, you override the cat files the editor is unable to find, and suddenly 'it works'.

In reality you've merely masked the problem and will not be able to install mods normally.
Rami-sergey
Posts: 6
Joined: Thu, 6. Dec 07, 05:57
x4

Post by Rami-sergey »

When open script:
= wait
= [THIS]
= $Some
autochanged to wrong:
= 1 wait
= 1 [THIS]
= 1 $Some

Sorry for my bad english
User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 25130
Joined: Sun, 2. Apr 06, 16:38
x4

Post by X2-Illuminatus »

When open script:
= wait
= [THIS]
= $Some
How (with what program) did you write this code? It doesn't look like valid script code.
Nun verfügbar! X3: Farnham's Legacy - Ein neues Kapitel für einen alten Favoriten

Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)

Neuauflage der fünf X-Romane als Taschenbuch

The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!
Rami-sergey
Posts: 6
Joined: Thu, 6. Dec 07, 05:57
x4

Post by Rami-sergey »

It's sample...
https://www.dropbox.com/s/3urt1yzmofcgw ... or-old.png
and
https://www.dropbox.com/s/sds54d1dw2eo5 ... or-new.png

and all the rest also look

or from my script:
https://www.dropbox.com/s/aulrlg3m007rj ... r-old2.png
and
https://www.dropbox.com/s/t3bndhz56uxqe ... r-new2.jpg

what is it?

add: ESX always read files from game folder - it is not necessary when always making changes & testing it (Each letter leads to a rereading of the text).
The rereading of the config text doen't needed, but needed for save.

and
https://www.dropbox.com/s/5ob33wvpm5fbgfe/whyI.jpg
How much should I wait after rereading each entering letter?

Again sorry for my english. I'm Russian...
Whimsy
Posts: 167
Joined: Mon, 9. Feb 04, 20:32
x3tc

Post by Whimsy »

Rami-sergey wrote:When open script:
= wait
= [THIS]
= $Some
autochanged to wrong:
= 1 wait
= 1 [THIS]
= 1 $Some
Only just saw this post - sorry. However, I don't know what's causing the problem you've found, nor can I reproduce it. If you can upload the file(s) you were having issues with somewhere, I'll try them myself and see if I can figure it out. Alternatively, if you're still experiencing problems, you could try X-Studio instead.
add: ESX always read files from game folder - it is not necessary when always making changes & testing it (Each letter leads to a rereading of the text).
The rereading of the config text doen't needed, but needed for save.

and
https://www.dropbox.com/s/5ob33wvpm5fbgfe/whyI.jpg
How much should I wait after rereading each entering letter?
Not sure I understand this question - what's ESX? What wait are you referring to?
Gqqnbig
Posts: 66
Joined: Fri, 12. Jul 13, 14:08

Post by Gqqnbig »

Please improve the support to international characters, for example Chinese and Japanese. They may appear as comments or descriptions of parameters.

If you need some Chinese character, here it is: 这个编辑器很好用。
Whimsy
Posts: 167
Joined: Mon, 9. Feb 04, 20:32
x3tc

Post by Whimsy »

Gqqnbig wrote:Please improve the support to international characters, for example Chinese and Japanese. They may appear as comments or descriptions of parameters.
International characters should already work, although (for me at least) they don't show up in game. However, they should work fine in Exscriptor and seem to persist even if you change the script in-game.
Gqqnbig
Posts: 66
Joined: Fri, 12. Jul 13, 14:08

Post by Gqqnbig »

But it doesn't work for me. I'm using Windows 7, Simplified Chinese. See the screenshot.

https://lh3.googleusercontent.com/-sDZx ... 2%2598.png


{Images posted directly to the forums should not be greater than 640x480 or 100kb, oversize image now linked - Terre}
Whimsy
Posts: 167
Joined: Mon, 9. Feb 04, 20:32
x3tc

Post by Whimsy »

Is that happening when you try to type the characters in? If so, it's weird that it allows you to copy characters in but not type them. You could try changing the editor font to something else and see if that makes any difference, but otherwise I don't know what else to suggest, unfortunately. :( As far as I can tell, it should just work.

As an alternative, you could try X-Studio instead -- it's a lot more up to date than Exscriptor so the international characters may work better.

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