[SCRIPT: Upd 09/02] Rename ships with Expression 1.7 (RSwE) New links

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Medevel
Posts: 106
Joined: Thu, 17. Jun 04, 14:40
x3tc

Post by Medevel » Mon, 19. Sep 11, 15:37

Hey Domiel, thanks for your reply.
Sorry for answering so late, i am busy at the moment.
1. To add an edit function to the clipboard system, might be possible have to look into this.
2. with CAG you think of Commercial Agent?
If yes i first need to look into Lucikes code to see where he stores the level information, so can't promise on that one now.
3. A WareClass indicator, nice idea, shouldn't take much to implement.
4. If i understand you right you like to have more clipboards like 20-50 instead of, how much we have now 9? should be possible.

BUT like i said i am a bit busy this times so you might have to wait a bit.

Greetings Medevel

Domiel
Posts: 31
Joined: Tue, 13. Sep 11, 22:55

Post by Domiel » Mon, 19. Sep 11, 19:27

2. with CAG you think of Commercial Agent?
If yes i first need to look into Lucikes code to see where he stores the level information, so can't promise on that one now.
Yep thats exactly it, much appreciated (Prospectors Etc don't show levels either)
3. A WareClass indicator, nice idea, shouldn't take much to implement.
Wicked!
4. If i understand you right you like to have more clipboards like 20-50 instead of, how much we have now 9? should be possible.
Ye thats it. Think its 10?

Thanks for all the work you are doing this script just saves so much time...not to mention its fun to color-code everything 8) [/code]


Also would be cool to add an option to rename ALL SHIPS IN WING...
(haha keep coming up with stuff:P)

Medevel
Posts: 106
Joined: Thu, 17. Jun 04, 14:40
x3tc

Post by Medevel » Wed, 21. Sep 11, 12:27

Hey Guys,
short update info on the upcoming update for RSwE:
1. implemented wareclass indicator,
new expression *WC will show something plain like S M L XL to
indicate the maximum wareclass for the ship.

2. updated the clipboard expresions to get more space:
this was a bit more tricky since the normal expressions are exact 3 characters
long and so *Y1 -*Y9 was the maximum possible.
so i thought lets add letters, so something like *Ya - *Yz,
but well i just scrapped this idea and got some new.
so i made an exception for *Y to be 4 characters long so i get *Y01 - *Y99,
i figured 99 are a bit much but well atleast not too less :)
so i had also to make the new system compatible to the old system.
which results in one more little file, which just checks, if the expression is
old or new, and when its old it just convert it into a new one.
also the file checks the old stored clipboards and convert them into
new ones.
so no fears everything with clipboard should run as previous just you have
some more :)

3. CAG level for *TH
this was a bit well i had o read a lot lines of code^^
so now *TH will show the levels of Lucike's:
Commercial Agent
Commodity Logistics Software MK1 and MK2
Economy and Supply Trader
Prospector
with something like PSC 5 for Prospector level Chief Prospector 5
it should work with all the 4 since Lucike made them all alike when it
comes to naming, but i could only test it with Prospector.
(maybe i will test the rest later)

4. Editing clipboards: i searched in the forums and the script command
library but could not find a way to add some values to the input window,
like when you rename your pilot or ship with x3 nativ commands.
seems that this is X3 only and i cant get onto that without hacking the
game, which i will definetly not so don't bother asking.
but i might have an idea to make my own input mask, but i can't
promise to get this work.

Edit:
5. Added a new menu point:
Rename all ships in a Wing
well the name says all :)

these changes i didn't upload this time because i am still writing :)

Greetings Medevel

User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR » Wed, 21. Sep 11, 16:45

Medevel wrote:
3. CAG level for *TH
this was a bit well i had o read a lot lines of code^^
so now *TH will show the levels of Lucike's:
Commercial Agent
Commodity Logistics Software MK1 and MK2
Economy and Supply Trader
Prospector
with something like PSC 5 for Prospector level Chief Prospector 5
it should work with all the 4 since Lucike made them all alike when it
comes to naming, but i could only test it with Prospector.
(maybe i will test the rest later)

Greetings Medevel
This is awesome. Thanks for that. I was hoping for something like this. Would it be doable for CODEA as well?

Medevel
Posts: 106
Joined: Thu, 17. Jun 04, 14:40
x3tc

Post by Medevel » Wed, 21. Sep 11, 18:55

hey joelR
have to look into that, codea is for fighters right?
so might put it then into *FS instead of *TH for Traders.

Greetings Medevel

User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR » Wed, 21. Sep 11, 19:03

Medevel wrote:hey joelR
have to look into that, codea is for fighters right?
so might put it then into *FS instead of *TH for Traders.

Greetings Medevel
Yep. Its another one of Luckies scripts. It may be way more time consuming than its worth, but if its doable that would be fantastic.

Im not sure if its possible though. I think the script automatically renames the ships associated with the CODEA carrier so any naming script will be overwritten. I hope im wrong.

Medevel
Posts: 106
Joined: Thu, 17. Jun 04, 14:40
x3tc

Post by Medevel » Wed, 21. Sep 11, 20:07

joelR wrote: Im not sure if its possible though. I think the script automatically renames the ships associated with the CODEA carrier so any naming script will be overwritten. I hope im wrong.
Sorry but this is indeed the case.
The other scripts have a function to disable the renaming,
but can't find one in codea.
If there would be an option to disable the codea-renaming it
would be no problem to implement an expression for codea but
sadly i found no option. And i don't want to hack Lucike's script
to disable the renaming.

You can try to add some additional infos to the name via *DN and
"*ON : Old name used before you asked for the renaming" and your
favourite info:
so something like *DN*ON *CA-*CM
to add Ammunition and missiles to the codea name.
sadly this is also not flawless since you have wait till RSwE
updates the name, when codea changed it.

Greeting Medevel

Medevel
Posts: 106
Joined: Thu, 17. Jun 04, 14:40
x3tc

Post by Medevel » Thu, 22. Sep 11, 16:01

Hey Guys
so RSwE 1.7g is up and running
The new features i implemented were requested by Domiel.
Always nice to have some requests from time to time,
it keeps the script from seeming dead :)

Changes in 1.7g:
  • -> added *WC
    -- Show the Maximum WareClass for the Ship
    -> added some Level indicators to *TH
    -- *TH now shows the level for Lucike's scripts:
    -- Commercial Agent
    -- Commodity Logistics Software MK1 and MK2
    -- Economy and Supply Trader
    -- Prospector
    -- example: PSC 5 for Prospector level Chief Prospector (5)
    -> added a new command to the RSwE menu:
    -- Rename all ships in wing
    -- Rename the ships which are member of the selected wing
    -> added a menu to edit clipboards
    -- This way you don't have to write the whole clipboard again if you just wanted to change a bit
    -- But the menu can be frustrating cause this menu is not easy to use
    -- That why i let X3 ask if you want to use the new or the old input method
    -- answering the question with yes and you will get the new Edit Menu
    -- answering with no or escape you will get the old input window
    -> added a new file lib.loky.clip.edit.xml:
    -- This file contains the new Edit Menu
    -> extended the clipboards to a maximum of 99(previously 9)
    -- this means the new clipboard expression is *Y01 - *Y99
    -- to avoid complications with the old clipboards expression i added a check to
    -- convert the old expression into a new one
    -- also the old stored clipboards get converted to the new format
    -> added a new file lib.loky.string.clip.xml:
    -- This file contains the check for the old clipboard expression and old sored clipboard
    -- and the conversion into the new ones
As always you can download it from this post here
Also if you encounter any Bugs feel free to post them here so that RSwE keeps running :)

Greeting Medevel

User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR » Thu, 22. Sep 11, 16:26

Medevel wrote:Hey Guys
so RSwE 1.7g is up and running
The new features i implemented were requested by Domiel.
Always nice to have some requests from time to time,
it keeps the script from seeming dead :)

Changes in 1.7g:
  • -> added *WC
    -- Show the Maximum WareClass for the Ship
    -> added some Level indicators to *TH
    -- *TH now shows the level for Lucike's scripts:
    -- Commercial Agent
    -- Commodity Logistics Software MK1 and MK2
    -- Economy and Supply Trader
    -- Prospector
    -- example: PSC 5 for Prospector level Chief Prospector (5)
    -> added a new command to the RSwE menu:
    -- Rename all ships in wing
    -- Rename the ships which are member of the selected wing
    -> added a menu to edit clipboards
    -- This way you don't have to write the whole clipboard again if you just wanted to change a bit
    -- But the menu can be frustrating cause this menu is not easy to use
    -- That why i let X3 ask if you want to use the new or the old input method
    -- answering the question with yes and you will get the new Edit Menu
    -- answering with no or escape you will get the old input window
    -> added a new file lib.loky.clip.edit.xml:
    -- This file contains the new Edit Menu
    -> extended the clipboards to a maximum of 99(previously 9)
    -- this means the new clipboard expression is *Y01 - *Y99
    -- to avoid complications with the old clipboards expression i added a check to
    -- convert the old expression into a new one
    -- also the old stored clipboards get converted to the new format
    -> added a new file lib.loky.string.clip.xml:
    -- This file contains the check for the old clipboard expression and old sored clipboard
    -- and the conversion into the new ones
As always you can download it from this post here
Also if you encounter any Bugs feel free to post them here so that RSwE keeps running :)

Greeting Medevel
Thanks Medevel. What do you think about starting a new thread with the updated version youre working on?

cptANGRIST
Posts: 52
Joined: Tue, 6. Sep 11, 14:48
x3ap

Post by cptANGRIST » Fri, 23. Sep 11, 22:26

-

ok here down my problem..

1. i have 2 rswe in my command menu..
[ external image ]

and one of them ( the first one ) renames by type and colors..

[ external image ]

and this version of RSWE renames them to long and non colored

[ external image ]


and my question is both versions has some problems with my equipment docks and trading stations.. that works as DOCKs... they set without proper names

dock 0 - 1
dock 0 - 2
dock 0 - 3

did i messed up my rename script or is it ok to be like this..

( and i like the first one, how can i get this script to rename all of my properties renamed short and colored in one press )

EDIT : i edited my question totally
i have seen that FreeLancer game.. (yes that was a game..)

But This is Spartaaaaa.... :)

Medevel
Posts: 106
Joined: Thu, 17. Jun 04, 14:40
x3tc

Post by Medevel » Fri, 23. Sep 11, 23:39

hey cptANGRIST
this are some really strange looking things you have there.

first try to uninstall all Scripts of RSwE:
this means all files with loky in its name (hope no one else uses this name :) )
Edit: forgot to meantion the 7955-L044.xml file also have to be deleted
from the T-Folder in X3TC folder.
Edit3:(maybe just maybe in case you didn't close X3 when installing
RSwE, it can result some strange things, don't blame you, but can't
find this bug)
and try reinstalling this version.

There should be only the seccond command of your first screen in the General
menu and the first command should be in the RSwE menu.
This is really strange also the dock and trading station bug is strange.
can you tell me at one example,
1. what station it is
and 2. which Expression you used?

Greeting Medevel

Edit2: Have installed RSwE v1.7g from all my sources(Zip,spk,7z)
but couldnt reproduce the bug of the 2 commands in the
commanding screen.

2. the problem with the docks is this :

Code: Select all

        * other objects get hard code abbreviations
      else if $currentship->is of class {Navigation Relay Satellite (object class)}
        $addstring = 'Sat' 
      else if $currentship->is of class {Lasertower (object class)}
        $addstring = 'Laser' 
      else if $currentship->is of class {Factory 2006}
        $addstring = 'Fact' 
      else if $currentship->is of class {Dock 2007}
        $addstring = 'Dock' 
      else
        $addstring = 'na' 
      end
it seems Docks and Factories didn't return a usefull class on older days
maybe this has changed in the past. have to check it out.
until then try to avoid *CL on Stations :)

cptANGRIST
Posts: 52
Joined: Tue, 6. Sep 11, 14:48
x3ap

Post by cptANGRIST » Sat, 24. Sep 11, 01:23

tanks for reply...

- i found out that the first command set is a preconfigured 1.4version by GAZZ. i asked him where to edit to get factory names
( like origin or sector names - [ Dock argon trading/equipmend dock - Eta Psi] )

ill try with the new script file version :)

- also my question still exist in the second command set.. (1.7 script )
how can i change the preconfigured default values, so i will be able to 1 button change all ships in universe with colors and my defined short forms. ?

(forgot to add the dock null screencapture)
[ external image ]
i have seen that FreeLancer game.. (yes that was a game..)

But This is Spartaaaaa.... :)

Medevel
Posts: 106
Joined: Thu, 17. Jun 04, 14:40
x3tc

Post by Medevel » Sat, 24. Sep 11, 10:44

cptANGRIST wrote:how can i change the preconfigured default values, so i will be able to 1 button change all ships in universe with colors and my defined short forms. ?
the Default values are hardcoded this means you have to do some
changes in the T-file: 7955-L044.xml on these lines:

Code: Select all

 <t id="1080">*CL *TS *TH - *CU</t>     (Freighter)
 <t id="1081">*CL *TS *FP - *CA *CM</t> (Carrier)
 <t id="1082">*CL *TS *FP - *CA *CM</t> (M2)
 <t id="1083">*CL *TS *FP - *CA *CM</t> (M8)
 <t id="1084">*CL *TS *FP - *CA *CM</t> (M7)
 <t id="1085">*CL *TS *FP - *CA *CM</t> (M6)
 <t id="1086">*CL *TS *FP - *CA *CM</t> (Fighter)
 <t id="1087">*NV-*SA</t>               (Satellites)
 <t id="1088">*CL *TP *TC - *ZN</t>     (Station)
but i will see if i can get a menu point to change these defaults.
In the meanwhile you can use the clipboards, it is no "one click",
but it has the advantage of being more individual.

and with the null i will lock into this.

Greetings Medevel

cptANGRIST
Posts: 52
Joined: Tue, 6. Sep 11, 14:48
x3ap

Post by cptANGRIST » Sat, 24. Sep 11, 11:06

i solved issue by removing ,CL , TP, AND TC from stations... :)

[ external image ]

instead i add (TN) (SC) and a simple (-)
now my stations renamed as ( Teladi Trading Station Thesus -)

i will try shortened forms next time i reboot..


(because DOCKs doesnt have a product, and will sell more than one product that you have inside , renaming will return as null/0 if u try to collect one of these walues)

now i can see exactly which station needs a new springblossom assigned as a salesman :) due to old one got blown up by pirates carrack..
i have seen that FreeLancer game.. (yes that was a game..)

But This is Spartaaaaa.... :)

Domiel
Posts: 31
Joined: Tue, 13. Sep 11, 22:55

Post by Domiel » Sat, 24. Sep 11, 11:31

Really amazing work you are doing here Medevel, much appreciated!

Medevel
Posts: 106
Joined: Thu, 17. Jun 04, 14:40
x3tc

Post by Medevel » Sat, 24. Sep 11, 11:59

Hey Guys
I decided to port the script to a new Thread.
this way i will make clear which version i maintain.
But have alot work to do:

collection all script-related information
writing a new Thread
maybe change the script name
making all commands unique to avoid complication with Loky's version
registering it into the Community Script-Library Thread

I will try to do this at the weekend but maybe it will take longer.

Greetings Medevel

Edit: tested the null problem with a dock half filled with ore
no null with the default naming
did you install all files especialy this one: lib.loky.string.validate.xml
is needed to eliminate null, the problem is that not all expressions
are usefull for all thing you can have so i worte this file to eliminate all
null in the name.

User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR » Sat, 24. Sep 11, 17:22

Thanks Medevel. A new thread will make things simpler. There are several versions of the original floating around. It will be nice to have it located in a new thread.

Medevel
Posts: 106
Joined: Thu, 17. Jun 04, 14:40
x3tc

Post by Medevel » Tue, 27. Sep 11, 12:40

Hey Guys
So i moved my version of RSwE to a new Thread.
here
so see you there!

Greetings Medevel

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”