Exscriptor - new external script editor
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 1114
- Joined: Mon, 13. Dec 04, 16:15
Just wanted to say thanks for this awesome tool!
It even enables me to convert TC/AP scripts back to reunion!
If only it wouldn't crash at startup?!
It worked fine the first time I started it. Now windows always claims that the program doesn't work anymore and kills it.
Any suggestions on why that happens?
It even enables me to convert TC/AP scripts back to reunion!
If only it wouldn't crash at startup?!
It worked fine the first time I started it. Now windows always claims that the program doesn't work anymore and kills it.
Any suggestions on why that happens?
Skripte:
-
- Posts: 14163
- Joined: Sun, 16. May 04, 13:01
Suggestion :
If the first character on any line is a *, then indenting is ignored for that line.
Load in a script created in the SE that has *'d out code in the middle of a nested if-else, and you cant compile the script because all the * lines are indented when in the SE they are not. You either have to remove the indent manually or delete the code. Neither was a palatable option.
Please dont indent * lines.
If the first character on any line is a *, then indenting is ignored for that line.
Load in a script created in the SE that has *'d out code in the middle of a nested if-else, and you cant compile the script because all the * lines are indented when in the SE they are not. You either have to remove the indent manually or delete the code. Neither was a palatable option.
Please dont indent * lines.
-
- Posts: 1133
- Joined: Thu, 10. Jul 03, 07:42
There is a bug in command id=648 in the command parameters files. The operand types are out of order. It should be:
rather than what it is now (ware is last in the parameter type list instead of first).
Also, it should be a trivial change to have Exscriptor accept { and } as quotes inside a dim. That way you can specify objects in the array.
Code: Select all
<t id="648">
<command>
%0->switch laser in turret %2 gun %3 to %1
</command>
<type>RefObj</type>
<type>Var/Ware</type>
<type>Var/Number</type>
<type>Var/Number</type>
</t>
Also, it should be a trivial change to have Exscriptor accept { and } as quotes inside a dim. That way you can specify objects in the array.
You were warned... pirates will be hunted down like vermin.
Ex Turbo Modestum
Ex Turbo Modestum
-
- Posts: 235
- Joined: Thu, 3. Apr 08, 05:27
-
- Posts: 1133
- Joined: Thu, 10. Jul 03, 07:42
-
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
I ran into the same problem. The solution is to add "->" to the marine id's in X3TCCommandParameters.xml (or X3APCommandParameters.xml):wga wrote:It seems that Exscriptor can not recognise all 'get marine xxx skill'
Using Exscriptor, Version 1.2.41, Released 2 January 2012
Code: Select all
<t id="1512"><command>%1 %0->get marine fighting skill</command><type>RefObj</type><type>RetVar/IF</type></t>
<t id="1513"><command>%1 %0->get marine mechanical skill</command><type>RefObj</type><type>RetVar/IF</type></t>
<t id="1514"><command>%1 %0->get marine hacking skill</command><type>RefObj</type><type>RetVar/IF</type></t>
<t id="1515"><command>%1 %0->get marine engineering skill</command><type>RefObj</type><type>RetVar/IF</type></t>
<t id="1516"><command>%1 %0->get marine overall skill</command><type>RefObj</type><type>RetVar/IF</type></t>
Yes. If you read through Whimsy's posts, you will see that he is busy with real life and has not yet chosen to make Exscriptor open source.Reven wrote: Is this thread the only place to report bugs and make feature requests?
Just be grateful that Exscriptor exists. I know I am.
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: 5715
- Joined: Sat, 17. Dec 11, 01:44
I had exactly the same thought. However, I do not see the word "skip" in the file (presumably because it does not contain parameters). It is not in the X3xxCommandsList.txt, either.gnasirator wrote:Hmm hey, would it be possible to fix the "skip if not" / "do if" bug in those files?
In another thread, Jack08 suggested the following:
- "extract the 0001 file from the 01.cat/dat and replace the "do if" string in the script command table to "skip if not", then repack it into 01.cat/dat"
Mostly I just search and replace "do if" with "skip if not" (and, yes, that is a kludge).
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: 105
- Joined: Wed, 6. Nov 02, 20:31
Great tool, many thanks!
I am just learning how to mod, so my question may seem dumb for gurus
I keep getting compilation errors for the following line:
$ware = {\033ALasertower\033X}
Error:
Unresolved literal: {\ 033ALasertower\ 033X}
How do I fix this? Thanks!
I am just learning how to mod, so my question may seem dumb for gurus

I keep getting compilation errors for the following line:
$ware = {\033ALasertower\033X}
Error:
Unresolved literal: {\ 033ALasertower\ 033X}
How do I fix this? Thanks!

Be careful about reading health books. You may die of a misprint.
---Mark Twain---
---Mark Twain---
-
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
The current version of Exscriptor is incompatible with Colour-Coded Freight Menu.Charon_A wrote: $ware = {\033ALasertower\033X}
Error:
Unresolved literal: {\ 033ALasertower\ 033X}
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: 167
- Joined: Mon, 9. Feb 04, 20:32
Sorry for the long absence (again)! I found some time to fix some bugs - thanks to everyone who reported them. Fixes below:
- Renaming a script should now rename it in the drop-down select box too. (Shimrod)
- Added some checking to stop the window (in minimised mode) appearing offscreen. (ScRaT_GER)
- Updated path checking for the command line version. (Sir_Maniac)
- Fixed missing arrow for "get marine fighting skill" (and several other commands). (wga, DrBullwinkle)
- Added warning to make sure X3TC path is set too if you try to use X3AP files. (mib666007, AshToDust, StarCrack)
- Exscriptor now ignores the colour codes in wares etc, so you should be able to use the Color Coded Freight Menu (and similar mods). (DrBullwinkle, Charon_A)
- X3AP mode now uses "do if" rather than "skip if not". (A.Persyn, gnasirator, DrBullwinkle)
- Fixed problems with Graph scripts (they contain undocumented commands). (Litcube)
- Added copy/cut/paste to right-click context menu. (chms)
- Double clicking <RetVar> or <RefObj> or <Var/> will autoselect everything upto and including the angle brackets. (chms)
- Added option to disable/enable indenting of comments. (apricotslice)
- Fixed error in "switch laser" command for X3R. (Reven)
- Dim now allows {objects}. (Reven)
Latest version can be found here as usual.
- Renaming a script should now rename it in the drop-down select box too. (Shimrod)
- Added some checking to stop the window (in minimised mode) appearing offscreen. (ScRaT_GER)
- Updated path checking for the command line version. (Sir_Maniac)
- Fixed missing arrow for "get marine fighting skill" (and several other commands). (wga, DrBullwinkle)
- Added warning to make sure X3TC path is set too if you try to use X3AP files. (mib666007, AshToDust, StarCrack)
- Exscriptor now ignores the colour codes in wares etc, so you should be able to use the Color Coded Freight Menu (and similar mods). (DrBullwinkle, Charon_A)
- X3AP mode now uses "do if" rather than "skip if not". (A.Persyn, gnasirator, DrBullwinkle)
- Fixed problems with Graph scripts (they contain undocumented commands). (Litcube)
- Added copy/cut/paste to right-click context menu. (chms)
- Double clicking <RetVar> or <RefObj> or <Var/> will autoselect everything upto and including the angle brackets. (chms)
- Added option to disable/enable indenting of comments. (apricotslice)
- Fixed error in "switch laser" command for X3R. (Reven)
- Dim now allows {objects}. (Reven)
Latest version can be found here as usual.

-
- Posts: 98
- Joined: Fri, 17. Jan 03, 02:51
I am getting this exception:
1. Downloaded the zip version Exscriptor_v1.2.42.zip
2. Extracted
3. Ran Exscriptor.exe for the first time on this computer.
4. In the options dialog, set paths for X3TC Directory, X3TC Script Directory, X3AP Addon Directory, and X3AP Script Directory.
5. Changed script editor font to Consolas.
6. Clicked "OK"
1. Downloaded the zip version Exscriptor_v1.2.42.zip
2. Extracted
3. Ran Exscriptor.exe for the first time on this computer.
4. In the options dialog, set paths for X3TC Directory, X3TC Script Directory, X3AP Addon Directory, and X3AP Script Directory.
5. Changed script editor font to Consolas.
6. Clicked "OK"
Code: Select all
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at System.Windows.Forms.TabControl.get_SelectedTabInternal()
at System.Windows.Forms.TabControl.get_SelectedTab()
at X3_Script_Editor.Editor.get_CurrentScript()
at X3_Script_Editor.Editor.set_IndentComments(Boolean value)
at X3_Script_Editor.Options.SaveSettings()
at X3_Script_Editor.Options.clickOK(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
-
- Posts: 15
- Joined: Tue, 15. May 12, 22:51
-
- Posts: 167
- Joined: Mon, 9. Feb 04, 20:32
Ah, this one was an X3AP bug that must have slipped through the net. It should be fixed now.Litcube wrote:Note, on the right click menu to insert new commands, the "Other" script category does not pop-up.
This was a strange bug, and I'm not sure how or when it appeared, but I think I've fixed it now. If you run into it again, let me know.goncyn wrote:I am getting this exception: ...
You can reinstall over the top - no need to uninstall first. Just either unzip to the Exscriptor folder or (simplest) just run the installer again.5tr4n63r wrote:Do we have to uninstall the old Exscripter OR it overwrites?
Has {?} been solved as well?
As for the {?} issue, I'm not sure what you're referring to exactly. Exscriptor will display {?} when it doesn't recognise a ship/object/ware/etc, so it's usually caused by a script referring to something in a mod or a new language/Tfile that Exscriptor cannot find. If you're seeing it, make sure you've set up your paths and included any modded files you want to use.
Thanks again to those who reported bugs. The updated version with fixes can be found here as usual.

-
- Posts: 50
- Joined: Sat, 18. Jul 09, 00:20