Exscriptor - new external script editor
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 38
- Joined: Sat, 11. Sep 10, 03:51
-
- Posts: 165
- Joined: Thu, 21. Oct 04, 19:17
Simply use the command "new script version available" (general commands) and don't forget to increase the version number after each change.incarn wrote:Is there any way to get the game to recognise a changed script without closing and reopening it?
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
-
- Posts: 38
- Joined: Sat, 11. Sep 10, 03:51
-
- Posts: 165
- Joined: Thu, 21. Oct 04, 19:17
I'm not sure what exactly You mean - maybe because English isn't my native language.incarn wrote:I was after a way to read a script, while in game, that has been changed via the external script editor.
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".
-
- Posts: 165
- Joined: Thu, 21. Oct 04, 19:17
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.
(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:
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
(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
-
- Posts: 76
- Joined: Tue, 13. Jul 04, 23:58
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.
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.
-
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
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.
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.
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
-
- Posts: 76
- Joined: Tue, 13. Jul 04, 23:58
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.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.
Brilliant, that's reassuring to know.The errors are normal; they just show objects that have been overridden due to object precedence.
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.Does your font error occur after you select a new font and click OK? Or does it happen before the font dialog opens?
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).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.
Many thanks for the response DrBullwinkle, much appreciated.
-
- Posts: 2
- Joined: Thu, 28. Feb 13, 23:49
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
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
-
- Moderator (Deutsch)
- Posts: 25130
- Joined: Sun, 2. Apr 06, 16:38
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!
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!
-
- Posts: 2
- Joined: Thu, 28. Feb 13, 23:49
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
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
-
- Posts: 126
- Joined: Mon, 12. Nov 07, 05:48
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.
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.
-
- Posts: 6
- Joined: Thu, 6. Dec 07, 05:57
-
- Moderator (Deutsch)
- Posts: 25130
- Joined: Sun, 2. Apr 06, 16:38
How (with what program) did you write this code? It doesn't look like valid script code.When open script:
= wait
= [THIS]
= $Some
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!
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!
-
- Posts: 6
- Joined: Thu, 6. Dec 07, 05:57
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...
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...
-
- Posts: 167
- Joined: Mon, 9. Feb 04, 20:32
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.Rami-sergey wrote:When open script:
= wait
= [THIS]
= $Some
autochanged to wrong:
= 1 wait
= 1 [THIS]
= 1 $Some
Not sure I understand this question - what's ESX? What wait are you referring to?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?
-
- Posts: 66
- Joined: Fri, 12. Jul 13, 14:08
-
- Posts: 167
- Joined: Mon, 9. Feb 04, 20:32
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 wrote:Please improve the support to international characters, for example Chinese and Japanese. They may appear as comments or descriptions of parameters.
-
- Posts: 66
- Joined: Fri, 12. Jul 13, 14:08
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}
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}
-
- Posts: 167
- Joined: Mon, 9. Feb 04, 20:32
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.

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.