|
|
 |
View previous topic :: View next topic |
 |
|
|
|
|
Author |
Message |
|
|
|
|
|
ScRaT_GER

Joined: 08 Jan 2008 Posts: 998 on topic

|
Posted: Thu, 1. Oct 09, 12:26 Post subject: |
|
|
I have a question:
Where are the text files saved, when you choose "Quicksave as text"?
I can't seem to find them anywhere.
And a simple request:
When you have a "return null" somewhere in your script, the exscriptor does not add an additional one to the end of the script.
However if this is missing and the game does not exit the script "using" one of your returns, the game will crash.
The solution would be to simply add "return null" to any script at the end, if the last command isn't a return command.
Greetings,
ScRaT
_________________ Skripts:
Teladi Informations Service, Fahrtenbuch, Handelsübersicht
MOD (iP): ETNO: Chroniken |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Whimsy
Joined: 09 Feb 2004 Posts: 123 on topic Location: UK

|
Posted: Sat, 3. Oct 09, 04:04 Post subject: |
|
|
| ScRaT_GER wrote: |
Where are the text files saved, when you choose "Quicksave as text"?
I can't seem to find them anywhere. |
They're supposed to be stored in the main script directory. However, it seems that the code actually stored it in the current working directory, which in some cases may be different. I've updated it so it always stores them in the scripts directory now.
| ScRaT_GER wrote: |
And a simple request:
When you have a "return null" somewhere in your script, the exscriptor does not add an additional one to the end of the script.
However if this is missing and the game does not exit the script "using" one of your returns, the game will crash.
The solution would be to simply add "return null" to any script at the end, if the last command isn't a return command. |
Easily done. It should work better now.
| Litcube wrote: |
| Does the command "branch out"? Meaning, will it find all called scripts within all called scripts? |
I've added a third 'Find scripts' command to the Tools menu that searches recursively for all called scripts. It takes a little longer obviously but it seems to work okay (and I hope I've made sure it won't get stuck in a loop). I've also extended these functions to include all types of call commands (there are 25 now included) and also, when in recursive mode, it will ignore .pcks and the 'hidden' ! scripts.
As usual, latest version is available here.
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
draffutt
Joined: 21 Feb 2007 Posts: 682 on topic

|
Posted: Sat, 17. Oct 09, 15:20 Post subject: |
|
|
just a notice if you are not aware the 2.5 patch was released with new commands. 
_________________ "Traveler, there is no path. Paths are made by walking" -Antonio Machado |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Whimsy
Joined: 09 Feb 2004 Posts: 123 on topic Location: UK

|
Posted: Sun, 18. Oct 09, 14:24 Post subject: |
|
|
| draffutt wrote: |
just a notice if you are not aware the 2.5 patch was released with new commands.  |
V1.2.23 should include the new commands. Let me know if I missed any out though! 
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
SneakersOToole
Joined: 17 Apr 2009 Posts: 9 on topic

|
Posted: Tue, 20. Oct 09, 17:22 Post subject: |
|
|
Hi!
Firstly can I say a massive thanks for taking the time to do this editor, as a newbie scriptor, I can say that this has made learning the language so much easier. Thank you for your efforts on this.
Secondly I have I have a query, all my wares show up in French, I can work around it with my rusty french (wish I studied more of the French language at school ) but I would love to have it english. I have the options set to use the english option and I am using the latest version but no dice, just see these wonderful french wares. Any ideas what I am doing wrong ?
Thank you again.
Regards,
Sneakers.
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Whimsy
Joined: 09 Feb 2004 Posts: 123 on topic Location: UK

|
Posted: Tue, 20. Oct 09, 18:24 Post subject: |
|
|
| SneakersOToole wrote: |
Secondly I have I have a query, all my wares show up in French, I can work around it with my rusty french (wish I studied more of the French language at school ) but I would love to have it english. I have the options set to use the english option and I am using the latest version but no dice, just see these wonderful french wares. Any ideas what I am doing wrong ? |
Glad you find the program useful! As for your problem, I'm not sure why it's doing that; if you've set the option to use English then it shouldn't be loading the French language files (unless they've been renamed somehow). You can check the config.dat file and make sure it says "language = 44" in there somewhere; other than that, I don't know what to suggest. Have you modded the game at all, e.g. unpacked any cat/dat files? You could also try reinstalling Exscriptor (or - as a last resort - both the game and Exscriptor).
Hope that helps! If not, let me know. 
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
SneakersOToole
Joined: 17 Apr 2009 Posts: 9 on topic

|
Posted: Wed, 21. Oct 09, 00:28 Post subject: |
|
|
Thanks Whimsy for your reply.
I checked the config.dat but it is pointing to language 44.
I do though have a modded game, I have a mod I choose from the main menu X3TC startup screen (MARS) and I have two installed as fake patches (Ys GUI Mod and Complex Cleaner), I am thinking this might have something to do with Y's GUI Mod though not sure how (MARS and Complex Cleaner are so popular that I suspect somebody else would have noticed it by now). Interestingly the in-game script editor shows the
wares in english.
I am going to install a separate dev environment for X3TC so I should be able to work out if it is Y's then. Might not be for a week or so depending on RL, so I'll let you know how I get on. Thanks again.
Regards,
Sneakers
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
ScRaT_GER

Joined: 08 Jan 2008 Posts: 998 on topic

|
Posted: Fri, 6. Nov 09, 18:35 Post subject: |
|
|
Hi Whimsy,
just a minor bug report here:
Sometimes the Exscriptor creates a "return null" at the end of a script, even if there was already one. I don't know under which circumstances this bug appears, but I found various scripts with up to three "return null" at the and.
Other than that, everything works fine (luckily the bug with the windows overlapping I reported some time ago, does not appear on my Windows 7 Laptop).
Greetings,
ScRaT
_________________ Skripts:
Teladi Informations Service, Fahrtenbuch, Handelsübersicht
MOD (iP): ETNO: Chroniken |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Whimsy
Joined: 09 Feb 2004 Posts: 123 on topic Location: UK

|
Posted: Sat, 7. Nov 09, 22:21 Post subject: |
|
|
| ScRaT_GER wrote: |
| Sometimes the Exscriptor creates a "return null" at the end of a script, even if there was already one. I don't know under which circumstances this bug appears, but I found various scripts with up to three "return null" at the and. |
I've not been able to recreate this yet - have you any more clues about when it happens? What were the ends of those scripts with 3 returns like? Was it just three returns in a row, for example, or were there spaces or empty lines between them etc?
| Quote: |
| Other than that, everything works fine (luckily the bug with the windows overlapping I reported some time ago, does not appear on my Windows 7 Laptop). |
Glad to hear it! 
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
ScRaT_GER

Joined: 08 Jan 2008 Posts: 998 on topic

|
Posted: Sat, 7. Nov 09, 22:59 Post subject: |
|
|
| Quote: |
| I've not been able to recreate this yet - have you any more clues about when it happens? What were the ends of those scripts with 3 returns like? Was it just three returns in a row, for example, or were there spaces or empty lines between them etc? |
Unfortunately I already corrected the scripts the bugs occured at. However, one thing I am sure about, is that there were always spaces between the "return null"s - clearly a sign of the Exscriptor's work. =)
As soon as I encounter another script with multiple "return null"s I'll report.
Greetings,
ScRaT
EDIT: Do you somehow flag the script, that already have a "return null" at the end? Because I have the feeling, that this bug appears, when I save a script I previoulsy opened in the internal SE. Maybe this removes the flag (if there is one).
_________________ Skripts:
Teladi Informations Service, Fahrtenbuch, Handelsübersicht
MOD (iP): ETNO: Chroniken |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
draffutt
Joined: 21 Feb 2007 Posts: 682 on topic

|
Posted: Mon, 9. Nov 09, 15:36 Post subject: |
|
|
hello whimsy:
here is a test script for you.
test.rar
cut line 122 threw 127; paste to line 132 and now save. you'll have 2 return nulls at the end of the file.
_________________ "Traveler, there is no path. Paths are made by walking" -Antonio Machado |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Whimsy
Joined: 09 Feb 2004 Posts: 123 on topic Location: UK

|
Posted: Mon, 9. Nov 09, 22:32 Post subject: |
|
|
| ScRaT_GER wrote: |
| EDIT: Do you somehow flag the script, that already have a "return null" at the end? Because I have the feeling, that this bug appears, when I save a script I previoulsy opened in the internal SE. Maybe this removes the flag (if there is one). |
At the minute it just checks to see if the last non-empty line (i.e. the last one with text) is a return; if not, it adds one. But clearly there must be something wrong there somewhere...
| draffutt wrote: |
| here is a test script for you. |
Thanks draffut, this should help a lot. I'll take a look and see if I can track the problem down. 
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Whimsy
Joined: 09 Feb 2004 Posts: 123 on topic Location: UK

|
Posted: Tue, 10. Nov 09, 23:11 Post subject: |
|
|
Okay, I think I managed to find and fix the problem. As usual, it was something trivial and idiotic.
The new version should work okay, but if it still happens, let me know.
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
|
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
 |
|
|
|
|
|