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

pelador
Posts: 1399
Joined: Wed, 6. Nov 02, 20:31
x3tc

Post by pelador »

Whimsy V1.2.9 simply hangs for me.

Asks me for X3TC directory, set, then appears to be loading, hangs.

(Tried opening after directory setting, opens without X3TC directory question, appears to be loading and hangs.)

Tried clean install twice and also redownloaded zip to check.

Exscriptor generates an errorlog file but its blank:

Code: Select all

Error Log
---------


Event viewer details (Vista 32bit Home premium):

Code: Select all

Log Name:      Application
Source:        Application Hang
Date:          14/05/2009 02:34:28
Event ID:      1002
Task Category: (101)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      user-PC
Description:
The program Exscriptor.exe version 1.0.3419.41489 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Problem Reports and Solutions control panel. Process ID: 1fd4 Start Time: 01c9d434055934d0 Termination Time: 3
V1.2.8 still useable.
(----____JEFF____----)
Posts: 269
Joined: Sat, 20. May 06, 14:55
x3tc

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

For me V1.2.9 also hangs, just like pelador said. I'm running Windows XP SP3 Home.
Whimsy
Posts: 167
Joined: Mon, 9. Feb 04, 20:32
x3tc

Post by Whimsy »

Okay, I fixed the hanging bug in V1.2.10. As usual it was something simple and stupid, in this case me forgetting to increment a counter when it detected a non-XML/non-PCK file in the \t directory so it looped forever. Oops! :oops:
XDrake wrote:I know that these are names in the game. Is the program replacing informaton in the game or the program?
What's happening is that you have more than one data file using the same IDs. Exscriptor is telling you that it's found new names for things and that it will use these new names instead of the old ones (though in this case they seem to be the same anyway).

It won't change anything in game, don't worry. All it means is that the names might not always match, i.e. Exscriptor calls ID2043 an Argon Dreadnought while the game calls it an Argon Buster (or vice versa), but they're both referring to the same object.

If you want to investigate more closely you can look up the View Conflicts option under the Tools menu; that should tell you where all the names are coming from.
pelador
Posts: 1399
Joined: Wed, 6. Nov 02, 20:31
x3tc

Post by pelador »

Confirmed new version working. tyvm.
MutantDwarf
Posts: 716
Joined: Tue, 20. Jun 06, 02:29
x4

Post by MutantDwarf »

Thanks on getting those bits working! The Electro-Magnetic Plasma Cannon and Matter/Anti-Matter bits are working great now, as is the XXL Factory tag.

One minor problem, though - Exscriptor doesn't distinguish between wares of different types with the same name. For example, if I have an entry in TFactories with name 'Argon Medium Orbital Weapon Platform' and I have an entry in TShips with name 'Argon Medium Orbital Weapon Platform', Exscriptor doesn't distinguish between the two at all. It automatically assumes I mean the ship with that name instead of the factory, and I have no way of telling it differently.

You may want to look into that - it also effects satellites and mines, specifically Advanced Satellites, Navigation Relay Satellites, SQUASH Mines, and Fighter Drones. I don't know of any other wares it has trouble with, but those wares it can't deal with very well.
Whimsy
Posts: 167
Joined: Mon, 9. Feb 04, 20:32
x3tc

Post by Whimsy »

MutantDwarf wrote:One minor problem, though - Exscriptor doesn't distinguish between wares of different types with the same name.
This has always been a major problem and I've never found a particularly good way of solving it. However, I did think I'd managed to solve the worst of it by adding numbers to differentiate between duplicates (e.g. between multiple ships with the same name).

This should also apply to ships and wares that have the same name, e.g. a navigation satellite ware is {Navigation Relay Satellite 3893} whilst a navigation satellite ship is {Argon Navigation Relay Satellite 3841}. Impossible to guess, I know, but if you use the lists of wares/ships etc they should all be shown there. As far as I know, the same sort of thing (i.e. put 'Argon' in front for the ship version) should apply to drones and mines etc too.

However, I don't think I ever thought of duplicates between ships and stations (like your OWP example) so I'll try to fix that for next time. Unfortunately I've not yet found a more elegant solution, but I'll keep looking, so hopefully the problem won't be as bad in V2.
MutantDwarf
Posts: 716
Joined: Tue, 20. Jun 06, 02:29
x4

Post by MutantDwarf »

I don't know why, but it still compiles if you just put {Advanced Satellite} or {SQUASH Mine}, etc.
Langy the Mutant Dwarf
User avatar
ScRaT_GER
Posts: 1962
Joined: Tue, 8. Jan 08, 18:19
x3tc

Post by ScRaT_GER »

Hello Whimsy,

first: I love this tool! It is great and much more easy to use than the internal script editor.

However I can't add script arguments. I think the following screenshot explains what I mean:

[ external image ]

I'm using Windows Vista 32-Bit. It is not the resolution, I tried different ones.

I hope this bug was not reported too often.
Thanks again for the great work.

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

Post by Whimsy »

MutantDwarf wrote:I don't know why, but it still compiles if you just put {Advanced Satellite} or {SQUASH Mine}, etc.
I have to admit I never thought to test that but you're absolutely right. :oops: Now I have to figure out how it manages to do that and figure out how to fix it...

ScRaT_GER wrote:first: I love this tool! It is great and much more easy to use than the internal script editor.
Thanks! :)
ScRaT_GER wrote:However I can't add script arguments. I think the following screenshot explains what I mean:

[ external image ]

I'm using Windows Vista 32-Bit. It is not the resolution, I tried different ones.
I've never seen the interface look so messed up, so whatever is causing that is probably also preventing you from adding script arguments. I don't really know what could cause it though. Do you have the latest .NET framework installed? Failing that, you could try deleting & reinstalling Exscriptor, but apart from that I don't know what else to suggest. If all else fails I suppose you could click in the argument list (next to the arrow buttons) and press TAB - which should move focus to the Add Argument button - and then press space. But that's only a workaround, not a proper solution. Sorry I can't suggest anything better! :(
User avatar
ScRaT_GER
Posts: 1962
Joined: Tue, 8. Jan 08, 18:19
x3tc

Post by ScRaT_GER »

Do you have the latest .NET framework installed?
I'm not sure. How can I check?
And which one is the newest? I found a version 2.0 and a very new version 4.0 beta. Which one should I try?

Another thing is, that sometimes all windows aside from the two main windows (displaying the code and the commands/objects/etc.) are missing.
Unfortunately I cannot recreate this state intentionally, but maybe it helps you find a bug.

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

Post by Whimsy »

ScRaT_GER wrote:I'm not sure. How can I check?
And which one is the newest? I found a version 2.0 and a very new version 4.0 beta. Which one should I try?
You should be able to check by looking in Add/Remove programs or whatever the Vista equivalent is - they should be listed as "Microsoft .NET Framework" or something like that. The best one to use is probably Version 3.5 (as that's the version I use to build it); you should be able to get it here I think.

If you already have that version (or a newer one?) then I have no idea what's wrong.
ScRaT_GER wrote:Another thing is, that sometimes all windows aside from the two main windows (displaying the code and the commands/objects/etc.) are missing.
Unfortunately I cannot recreate this state intentionally, but maybe it helps you find a bug.
That's weird too but it must be part of the same problem. I can't see why it would be happening otherwise... :?

Check to see if it's the .NET framework and then let me know how you get on. If it's still not working then I'll see if I can come up with a better idea. :)
User avatar
ScRaT_GER
Posts: 1962
Joined: Tue, 8. Jan 08, 18:19
x3tc

Post by ScRaT_GER »

Mh, I reinstalled the Version 3.5 (already had it installed seemingly), but the errors remain the same.

Hope you can come up with a better idea. :)
If not, nevermind - I can add arguments in the internal script editor aswell.

Greets,
ScRaT
User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent »

:S Anoying ness :S


As I'm scripting in multiple directories and I'm going through a huge file renaming process atm. I keep getting:
Loading files...

Loading C:\Program Files\EGOSOFT\X3 Terran Conflict\scripts\sca sfm\plugin.sfm.ship.futuremax.xml...
Load failed! Error while trying to open script file: scripts\plugin.stat.fm.ship.jumpcheck ('Found but could not read from script file: scripts\plugin.stat.fm.ship.jumpcheck ('Arithmetic operation resulted in an overflow.')')
Load failed

And the script I'm loading does, but the other one (.jumpcheck) does not, and the reason why I'm trying to open it, is to rename it. Short of notepading the line I'm trying to rename, I don't suppose you can improvise a solution? (i.e. let it open any way, but just high light it red or something)
Freggel.Doe
Posts: 310
Joined: Wed, 6. Nov 02, 20:31
x2

Post by Freggel.Doe »

first i want to say that exscriptor is a great tool. i write all my scripts with it.
there are some annoyances however, mostly quirks i can work around.

but exscriptor recently "broke" my script. i could write and save it in exscriptor but i couldn't load it in a later session.
after alot of work and research i found the culprit:

Code: Select all

$command = {COMMAND_WING_TYPE_SPECIAL_17} 
this line caused all the trouble. it gave me the following error-message:

Code: Select all

Loading files...

Loading E:\Games\X3 Terran Conflict\scripts\setup.freggel.scripts.xml...
Load failed! Error on line 21 - Unknown parameter type: 25
Load failed
there seems to be a problem with wing commands. even though it was in my t-file, exscriptor never noticed this and always called it {COMMAND_WING_TYPE_SPECIAL_17}. the ise recognized the name in my t-file.


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

Post by Whimsy »

Freggel.Doe wrote:there seems to be a problem with wing commands. even though it was in my t-file, exscriptor never noticed this and always called it {COMMAND_WING_TYPE_SPECIAL_17}. the ise recognized the name in my t-file.
I apparently missed some wing command handling when I updated everything to cope with X3TC - in this case, wing commands used in expressions. It should be fixed now. While I was there I also went over the loading so it should (hopefully) load your user-defined wing command names too.
s9ilent wrote:And the script I'm loading does, but the other one (.jumpcheck) does not, and the reason why I'm trying to open it, is to rename it. Short of notepading the line I'm trying to rename, I don't suppose you can improvise a solution? (i.e. let it open any way, but just high light it red or something)
If I'm understanding the error message correctly, then it seems to be failing while checking the parameters of a script call inside your script. Is that right? If so I think I may have fixed it in the latest version (it should just ignore the check if it doesn't work). Test it with your problem scripts and let me know how you get on.
MutantDwarf wrote:I don't know why, but it still compiles if you just put {Advanced Satellite} or {SQUASH Mine}, etc.
I figured it out - those are the object classes (which means something like "SQUASH Mine" has upto three possible meanings). I've added additional text to make the distinction plain, but unfortunately there's no simple solution to this problem in general; even context-sensitive knowledge (e.g. "[THIS]->add 100 units of {SQUASH Mine}" is not talking about an object class) can be foiled if you use a variable instead. Hopefully I've managed to make everything sufficiently distinct for the time being though, at the expense of making it impossible to guess what the right name without looking.
ScRaT_GER wrote:Mh, I reinstalled the Version 3.5 (already had it installed seemingly), but the errors remain the same.

Hope you can come up with a better idea.
If not, nevermind - I can add arguments in the internal script editor aswell.
Unfortunately I haven't come up with anything better as I don't know what might be causing it. Therefore, in honour of your seemingly undiagnosable bug, I have created - just for you! - your very own version of the Exscriptor. It's the same as V1.2.11 except the interface is deliberately spaced out a lot more. Give it a try and see what happens; also check out the error log and see if anything is in there. Finally, if you could post a screenshot of how it looks in this new version, it might also help me figure out what's going wrong, but even if I can't sort it out, hopefully it will at least be more usable for you. :)

For those of you without bizarre user interface bugs, the normal V1.2.11 can be found here.
User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent »

I am using the latest version (1.2.10) and I've noticed it only occurs with some scripts, although I'm unable to find out why only some (and I did end up note pading them so I can't test it again :( sorry :S)

I suspect it was tied to the number of arguments for the non existent scripts thou
Whimsy
Posts: 167
Joined: Mon, 9. Feb 04, 20:32
x3tc

Post by Whimsy »

s9ilent wrote:I am using the latest version (1.2.10) and I've noticed it only occurs with some scripts, although I'm unable to find out why only some (and I did end up note pading them so I can't test it again :( sorry :S)

I suspect it was tied to the number of arguments for the non existent scripts thou
I meant the new version - V1.2.11 - but if you've already got it working then I guess it doesn't matter. If it was the arguments though, hopefully I've fixed it now. :wink:
Freggel.Doe
Posts: 310
Joined: Wed, 6. Nov 02, 20:31
x2

Post by Freggel.Doe »

Whimsy wrote:I apparently missed some wing command handling when I updated everything to cope with X3TC - in this case, wing commands used in expressions. It should be fixed now. While I was there I also went over the loading so it should (hopefully) load your user-defined wing command names too.
Everything is working now.

Thanks for all the work you put into this excellent project.

greetings freggel
User avatar
ScRaT_GER
Posts: 1962
Joined: Tue, 8. Jan 08, 18:19
x3tc

Post by ScRaT_GER »

Unfortunately I haven't come up with anything better as I don't know what might be causing it. Therefore, in honour of your seemingly undiagnosable bug, I have created - just for you! - your very own version of the Exscriptor.
Wow, thanks a lot! :D
Below is a screenshot:
[ external image ]

It is still not as neat as it could be, but at least I can add arguments now!
I checked the error log, but it is empty.

Hope that helps you help me. =)
Thanks and greets,
ScRaT
Whimsy
Posts: 167
Joined: Mon, 9. Feb 04, 20:32
x3tc

Post by Whimsy »

ScRaT_GER wrote:It is still not as neat as it could be, but at least I can add arguments now!
I checked the error log, but it is empty.
Hmm - it looks like for some reason the width and height of the window aren't being correctly reported. Exscriptor should be able to rearrange components when you resize it to keep everything tidy; it works by moving things like the script arguments list a certain distance from the right edge of the window, but in your case it's not working, and I can't figure out why. Are you using dual monitors or anything like that? Does it still look like that when maximised as well as in a normal window?

Unfortunately I don't really know what else I can try, but at least in the mean time you have a version you can use more easily. :)

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