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

User avatar
SpaceAcid
Posts: 63
Joined: Tue, 7. Feb 12, 06:20

Thank You

Post by SpaceAcid »

My Hats off to you for taking on the project.

going out of your way to simplify mod related design
deserves +10 & some cookies.
gnasirator
Posts: 1114
Joined: Mon, 13. Dec 04, 16:15
x3tc

Post by gnasirator »

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?
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

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.
User avatar
Reven
Posts: 1133
Joined: Thu, 10. Jul 03, 07:42
x4

Post by Reven »

There is a bug in command id=648 in the command parameters files. The operand types are out of order. It should be:

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>
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.
You were warned... pirates will be hunted down like vermin.

Ex Turbo Modestum
StarCrack
Posts: 235
Joined: Thu, 3. Apr 08, 05:27
x3tc

Post by StarCrack »

can't seem to get past this ( Could not load X3AP data - please check settings in Tools-->Options )

have every thing pointing to the right folders t think any help please
User avatar
Reven
Posts: 1133
Joined: Thu, 10. Jul 03, 07:42
x4

Post by Reven »

Is there a forum or web site or mailing list associated with this program? Is this thread the only place to report bugs and make feature requests?
You were warned... pirates will be hunted down like vermin.

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

Post by DrBullwinkle »

wga wrote:It seems that Exscriptor can not recognise all 'get marine xxx skill'

Using Exscriptor, Version 1.2.41, Released 2 January 2012
I ran into the same problem. The solution is to add "->" to the marine id's in X3TCCommandParameters.xml (or X3APCommandParameters.xml):

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>
Reven wrote: Is this thread the only place to report bugs and make feature requests?
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.

Just be grateful that Exscriptor exists. I know I am.
gnasirator
Posts: 1114
Joined: Mon, 13. Dec 04, 16:15
x3tc

Post by gnasirator »

Hmm hey, would it be possible to fix the "skip if not" / "do if" bug in those files?
User avatar
DrBullwinkle
Posts: 5715
Joined: Sat, 17. Dec 11, 01:44
x3tc

Post by DrBullwinkle »

gnasirator wrote:Hmm hey, would it be possible to fix the "skip if not" / "do if" bug in those files?
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.

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"
I do not know why he suggested repacking. And I had mixed results when I tried it.

Mostly I just search and replace "do if" with "skip if not" (and, yes, that is a kludge).
gnasirator
Posts: 1114
Joined: Mon, 13. Dec 04, 16:15
x3tc

Post by gnasirator »

Mostly I just search and replace "do if" with "skip if not" (and, yes, that is a kludge).
-> same here! 8)
5tr4n63r
Posts: 15
Joined: Tue, 15. May 12, 22:51
xr

Post by 5tr4n63r »

Great Tool...I use it every day:)
User avatar
Charon_A
Posts: 105
Joined: Wed, 6. Nov 02, 20:31

Post by Charon_A »

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! :roll:
Be careful about reading health books. You may die of a misprint.
---Mark Twain---
User avatar
DrBullwinkle
Posts: 5715
Joined: Sat, 17. Dec 11, 01:44
x3tc

Post by DrBullwinkle »

Charon_A wrote: $ware = {\033ALasertower\033X}
Error:
Unresolved literal: {\ 033ALasertower\ 033X}
The current version of Exscriptor is incompatible with Colour-Coded Freight Menu.
Whimsy
Posts: 167
Joined: Mon, 9. Feb 04, 20:32
x3tc

Post by Whimsy »

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. :)
User avatar
akeelah
Posts: 231
Joined: Fri, 14. Mar 08, 17:01
x3tc

Post by akeelah »

Great news! Thanks, Whimsy.
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

Nice work, Whimsy!


Note, on the right click menu to insert new commands, the "Other" script category does not pop-up.
Goncyn
Posts: 98
Joined: Fri, 17. Jan 03, 02:51
x4

Post by Goncyn »

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"

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)
5tr4n63r
Posts: 15
Joined: Tue, 15. May 12, 22:51
xr

Post by 5tr4n63r »

Do we have to uninstall the old Exscripter OR it overwrites?
Has {?} been solved as well?
Many forget that isn't the good they want,it is the purpose of that good.
Whimsy
Posts: 167
Joined: Mon, 9. Feb 04, 20:32
x3tc

Post by Whimsy »

Litcube wrote:Note, on the right click menu to insert new commands, the "Other" script category does not pop-up.
Ah, this one was an X3AP bug that must have slipped through the net. It should be fixed now.
goncyn wrote:I am getting this exception: ...
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.
5tr4n63r wrote:Do we have to uninstall the old Exscripter OR it overwrites?
Has {?} been solved as well?
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.

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. :)
sicknezz
Posts: 50
Joined: Sat, 18. Jul 09, 00:20
x4

Post by sicknezz »

I just found this Today because i searched for a way to edit my Scripts without X3TC.
I can only say... Thank God that Whimsy exists! THIS TOOL IS AWESOME!
I hope this will be forever available and updated ;)

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