[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 » Thu, 2. Jul 09, 00:08

Ok, I am not sure, if i am allowed to upload the file, but it was requested and so here it is :
http://www.mediafire.com/file/224nj2k2z ... x_mdvl.zip

There should be no Virus or similar, but scan it with all you have only to be sure :D :!:

The .zip contains only one file, plugin.loky.rswe.tool.xml, which has to be copied into the x3tc/scripts folder. I only changed the code the way, i said in my post above.

Greetings Medevel

Vinnie_NL
Posts: 33
Joined: Sat, 12. Nov 05, 19:52
x4

Post by Vinnie_NL » Thu, 2. Jul 09, 00:15

Thanks for your quick reply :D
I installed it and it works!
thanks again

Loky77
Posts: 110
Joined: Sun, 25. Jan 09, 09:54
x3tc

Post by Loky77 » Fri, 3. Jul 09, 13:46

Thanks medevel for the head up and fixing.

This will be integrated in next version with enhanced feature and new ones.

Just have very few time those days but it will eventually come.

Stay tuned


Loky

Jerethelm
Posts: 2
Joined: Fri, 3. Apr 09, 23:56
x3tc

Post by Jerethelm » Mon, 13. Jul 09, 18:23

Okay, I'm sure I'm missing something simple. I've installed the script and after starting the game it gave me a message it was installed, but when I go to rename a ship it does not give me the extra commands included with the script...

I've checked AL and the script is turn on.

How do I make this work? Would really like to get a handle my ships names.

Nho
Posts: 180
Joined: Fri, 24. Feb 06, 18:19
x3

Post by Nho » Mon, 13. Jul 09, 20:33

Jerethelm wrote:Okay, I'm sure I'm missing something simple. I've installed the script and after starting the game it gave me a message it was installed, but when I go to rename a ship it does not give me the extra commands included with the script...

I've checked AL and the script is turn on.

How do I make this work? Would really like to get a handle my ships names.

I'm not sure I understand where you were looking for that RSwE command, but just in case: [Shift] + c --> General

Jerethelm
Posts: 2
Joined: Fri, 3. Apr 09, 23:56
x3tc

Post by Jerethelm » Mon, 13. Jul 09, 20:51

Like I said - something simple... Was looking for the commands when I went to rename the ship with the "m" key.

Thanks for the help!

Nho
Posts: 180
Joined: Fri, 24. Feb 06, 18:19
x3

Post by Nho » Thu, 16. Jul 09, 11:05

Anyone got this problem too? I guess it's related to this scritpt:

Blank messages coming from unknown.

It's quite anoying. I am now trying a game without RSwE and the problem hasn't appeared so far... but I miss RSwE...

Loky77
Posts: 110
Joined: Sun, 25. Jan 09, 09:54
x3tc

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

Post by Loky77 » Sat, 18. Jul 09, 12:29

Loky77 wrote: Colors:

Currently, due to some hard coded behavior in X3TC, colors are working
differently between incoming messages/log book, and the rest of X3TC UI. You can still use the color tags provided, but messages will be empty.
This is an unfortunate known issue :cry: .

vizerei
Posts: 24
Joined: Tue, 21. Feb 06, 09:32
x3tc

Post by vizerei » Tue, 28. Jul 09, 05:31

Loky,

I love this mod, it has saved me an IMMENSE amount of time in renaming.

With that said, I would like to ask some questions.

One issue I am having with a wing of Rapiers is as follows:

I named them once with one ship out of sector using "Gold *FN - *TN" And when I got them all in the same sector again (they were moving) I issued the command again and it doubled a name "Gold W002 - Rapier" and it did not name any of the wing with an L extension. No matter how much I reiterate the command it would not rename the one or give any of them the L command. it would also not update the leader as the one renamed was the one initially out of sector ahead of the rest (and was the leader). What can I do to fix this?

In addition, is it possible to add this command to be a command I can issue to a wing without having to go to a non-winged ship to issue the command?

Also, like someone said on the first page, can a variable be added for the wing color?

Thanks in advance for your help!

Coruskane
Posts: 849
Joined: Fri, 13. Jun 08, 13:14
x4

Post by Coruskane » Thu, 6. Aug 09, 13:31

This is a very useful script, though I use it without colours because of the hard-coded bug (blank messages in log).

Is there any chance of getting a *IG or something that will make the ship ignored by your script's parser?

For example, I use rename all universe for most of my fleet, but one or two special ships I want as custom named, such as Marine Training 1 or CEO Shuttle etc.. however, there is currently no way to get the global command to ignore a few. I would be very very grateful :wink:

kelmen
Posts: 308
Joined: Tue, 9. Dec 08, 15:11

Post by kelmen » Tue, 8. Sep 09, 09:27

Pirate Nova Raider and Nova Raider are having slight different spec, but their *TN are same

is there a way to give their proper class name?

is there a way to setup the default naming? like i just wanna setup *CL *TN *NN

kelmen
Posts: 308
Joined: Tue, 9. Dec 08, 15:11

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

Post by kelmen » Fri, 11. Sep 09, 20:49

Loky77 wrote:
Loky77 wrote: Colors:

Currently, due to some hard coded behavior in X3TC, colors are working
differently between incoming messages/log book, and the rest of X3TC UI. You can still use the color tags provided, but messages will be empty.
This is an unfortunate known issue :cry: .
does anyone know any resolution for this problem? now I have many blank notifications, its really hard to keep track where/who its from.

and i decided to stop using this until the blank message can be resolved.

Alkeena
Posts: 603
Joined: Tue, 15. May 07, 20:43
x4

Post by Alkeena » Fri, 11. Sep 09, 20:57

No known resolution.

You could always just stop using colors in your ship names. This script is quite useful even without that feature.

kelmen
Posts: 308
Joined: Tue, 9. Dec 08, 15:11

Post by kelmen » Fri, 11. Sep 09, 22:34

Alkeena wrote:No known resolution.

You could always just stop using colors in your ship names. This script is quite useful even without that feature.
but i never used any color code in the naming
*CL *TN *NN
are what i typically used

kelmen
Posts: 308
Joined: Tue, 9. Dec 08, 15:11

Post by kelmen » Sat, 12. Sep 09, 01:14

nvm, i found out the cause

there's another mod (MARS) that will auto append cargo-space to ship name with color

and with this, it cause the blank message

chmv
Posts: 2
Joined: Fri, 6. Feb 09, 21:25

Post by chmv » Fri, 23. Oct 09, 20:45

Thanks for script!

Small bug, please fix it.
$Wing is undefined in *ZN case.

plugin.loky.rswe.tool.xml:

Code: Select all

230   ||else if $part == '*ZN'
231   |||$Pers.Ship = null
232   |||$dummy = $ships.cntr
233   |||
234   * *= personal ship
235   |||if $currentship -> get amount of ware Spacefly Collector in cargo bay
236   ||||skip if $currentship -> is of class TS
237   |||||$Pers.Ship = 1
238   |||end
239   |||if $Pers.Ship
240   ||||$addvar = $Wing + '   '
241   |||else
242   ||||if $ships.cntr < 10
243   |||||$addstring = $Wing + '00' + $dummy
244   ||||else if $ships.cntr < 100
245   |||||$addstring = $Wing + '0' + $dummy
246   ||||else
247   *$addvar = $Wing + $dummy
248   |||||$temp = sprintf: fmt=' %s', $dummy, null, null, null, null
249   |||||$addstring = $Wing + $temp
250   ||||end
251   |||end
and ' %s' must be '%s' (without space) because '00' and '0' without space...

kelmen
Posts: 308
Joined: Tue, 9. Dec 08, 15:11

Post by kelmen » Sat, 24. Oct 09, 12:01

is there a code to get the total-num of that particular ship class owned by you?

say, I got 5 (#1) Cutlass, when i buy a new 1, its 6th (#1) . so i want to use this #1 as code to be append to the ship name

gsmhiker
Posts: 2
Joined: Tue, 3. Nov 09, 02:44

Post by gsmhiker » Tue, 3. Nov 09, 02:59

Loky77 wrote:1. Put *KG*FP *FI*KX in the clipboard 1
2. Put *KM*TS*KX in the clipboard 2
3. You should see *KG*FP *FN*KX on the clipboard 1 line and *KM*TS*KX on the clipboard 2 line
4. Rename a formation using *Y1 *Y2
5. The formation should be renamed with the type of ship in magenta, then its formation name + its position in this formation in green.
I am having the same issue as dcarver. For example, I set clipboard 1 to an expression, let's say *TN. When I rename a ship with the string "My *Y1", I expect the ship to be renamed "My Rapier" or something similar. Instead the ship is renamed to "My *TN". It seems that expressions in clipboard items are not evaluated, but are being literally applied to the name.

If I follow the steps above, my ships are named "*KG*FP *FN*KX *KM*TS*KX"

Lazerath
Posts: 860
Joined: Tue, 22. Mar 05, 06:31
x4

Post by Lazerath » Mon, 9. Nov 09, 02:28

Bug Report

When using *ZN (Description Below for reference) it adds the word "null" before the numbering. Example below using M4 Solano

*CL - GW-*ZN Escort - *TS

Results as:

M4 - GW-null001 Escort - Solano

I tried using just the *ZN and it still ended up putting "null" infront of the numbering. :(

*ZN : Incrementing number with leading zero

PS: I absolutely love this script. I only wish I saw it sooner then today :(
COMPUTER SPECS
[Mobo] SABERTOOTH 990FX R2.0
[CPU] AMD FX-9370 8 Cores 4.4 - 4.7GHZ 16MB DDR3-1866
[Cooling] Corsair Hydro Series H80I CPU Cooler System
[Video] Evga 970 GTX SC 3.5Gb Ram ==> [Ram] G-Skills Ripjaws X 16GB
[Harddrive] (2) x Samsung 850 Evo 250GB SSD
[Harddrive] Samsung 840 Series 120GB SSD ==> [Harddrive] WD BLACK 1TB 64MB 7200RPM
[Disc Player] LG 14X BLU-RAY BURNER ==> [Case] Thermaltake A71 Chaser [Windows 7 Pro]

corbosman
Posts: 50
Joined: Wed, 30. Dec 09, 00:32

Post by corbosman » Thu, 7. Jan 10, 21:11

im having a bit of a problem with this plugin. It seems some ships are now stuck with their name. No matter what expression I use, it doesnt change. All I can do is change the name manually in game.

Last expression I used was:

*DN*TN - *CL (*SC)

Post Reply

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