[SCRIPT] Rename Ships with Expressions (v1.4 Feb 1 07)

The place to discuss scripting and game modifications for X³: Reunion.

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

User avatar
Kazuma
Posts: 720
Joined: Sat, 28. Jan 06, 17:28
x4

Post by Kazuma » Thu, 22. Feb 07, 02:22

Aha! You're using it wrong, but I suppose that was my fault since I didn't fully explain how to use the colors anywhere. I will add it to the readme.
:D :D :D

Well that explains that! Thanks Klyith (again) for this most excellent work! (Why this thing isnt signed is beyond me). While toiling away at work I had thought to myself "im probably coloring the damn spaces or somesuch) <laf>

User avatar
Klyith
Posts: 594
Joined: Fri, 6. Jan 06, 01:38
x3

Post by Klyith » Thu, 22. Feb 07, 03:57

Kazuma wrote:(Why this thing isnt signed is beyond me).
I haven't submitted it for testing or signing. Been toying with the idea, but I don't know if another official bonus pack is going to come out. Plus, you need to have a script in more or less stable form before you submit it, and rswe has plenty of new features on the drawing board. :mrgreen:

Kilrathi Avenger
Posts: 275
Joined: Fri, 6. Feb 04, 20:16
x3tc

Post by Kilrathi Avenger » Tue, 27. Feb 07, 12:17

Don't toy with the idea :shock: This script is brilliant and should have been in the original game.

Send it in for signing Please. :lol:

KA

P.S. What new features were you thinking of :?:
"As I slide down the banister of life;
my job is just another splinter in the bum"

Bane_v2
Posts: 543
Joined: Tue, 30. Dec 03, 03:52
x3tc

Post by Bane_v2 » Fri, 9. Mar 07, 03:44

Klyith, this script is fantastic. :D :thumb_up:

The clipboards are a great feature and the ability to add color all but eliminates the hassle of finding particular ships on a lengthy property menu. Nice work!

gatemonkey II
Posts: 30
Joined: Thu, 1. Mar 07, 09:12
x3

Post by gatemonkey II » Sun, 11. Mar 07, 04:09

That's it - I'm going to activate the script editor just to use this script! just what I've been looking for...

One request, though - is it possible to add something mid-way between *TA and *TN? I generally have (eg) 'Nova-R' for ship variants... given the way you're doing this in *TA code, this would have to know all the possible variant names available (Raider, Vanguard, etc) so it would be a bit of a pain.

Also, is there any way for it to distinguish between standard and pirate variations of the same ship type? As far as I can tell, it would currently call (for example) pirate novas just plain 'Nova'. Perhaps a special *PR tag that adds in 'Pirate'?

gatemonkey II
Posts: 30
Joined: Thu, 1. Mar 07, 09:12
x3

Post by gatemonkey II » Sun, 11. Mar 07, 10:57

my apologies - it does appear to recognise pirate ships (at least, looking through the code it does, haven't yet got to play today)

anyway, I'd like to modify my request above - what I'd like is a variant of *TA - say *TX - that shortens the first word to 4 characters (or less, if it's shorter), then one character for all remaning words (I think there's only one or two names in all ownable ship names in the vanilla game anyway)

Nova Raider - NovaR
Scorpion Vanguard - ScorV
etc.

(I thought about maybe 5 characters for the first one, but that would unfortunately give 'Condo' for the Condor :( )

gatemonkey II
Posts: 30
Joined: Thu, 1. Mar 07, 09:12
x3

Post by gatemonkey II » Sun, 11. Mar 07, 11:07

OH! just thought of another annoying request - some way of recolouring based on a ship's class... but the only easy way I can think of to do this would be to have something awkward like:

*CC{1234567LSPX}

where 1-7 are the colours for M1-7, L S and P are the colours for the various T type ships, and X is the colour for everything else
e.g.

*CCWWXXXWRYYYB

would make all capital ships (M1-2 and 6) white, leave all fighters the default colour, M7s red, all types of freighter yellow, and everything else blue.

I realise I can do this by selecting individual classes to rename, but this way I could most of the stuff I want to do with just one pattern...

User avatar
Klyith
Posts: 594
Joined: Fri, 6. Jan 06, 01:38
x3

Post by Klyith » Wed, 14. Mar 07, 18:12

Hey everyone, thx for replies & encouragement. At one time I was hoping to have a new version out at the beginning of this month, but that was two weeks ago! Had a long dry spell when I didn't have the time, unfortunately.

But I'm back in the saddle, and I've got a lot of the new stuff done. Right now I only have one feature left to finish, but it's the most complicated one. What I could use is someone to do a short beta test. PM me if you're interested!

...
Gatemonkey - I don't think I want to add a third type name style, but custom abbreviation styles may come in to play in the future. I have a new abbreviating script that would make this possible... As for colors based on class -- I'm already on it! They're static though, you just use the new *CK expression and it works like the other colors.
the future 1.5 readme wrote:M1/2=Red M6/7=Magenta M3=Green M4/5=Yellow
TL=Blue TS/TP=Cyan Stations=White Other=normal (grey)

gatemonkey II
Posts: 30
Joined: Thu, 1. Mar 07, 09:12
x3

Post by gatemonkey II » Thu, 15. Mar 07, 00:40

Klyith wrote:...
Gatemonkey - I don't think I want to add a third type name style, but custom abbreviation styles may come in to play in the future. I have a new abbreviating script that would make this possible... As for colors based on class -- I'm already on it! They're static though, you just use the new *CK expression and it works like the other colors.
the future 1.5 readme wrote:M1/2=Red M6/7=Magenta M3=Green M4/5=Yellow
TL=Blue TS/TP=Cyan Stations=White Other=normal (grey)
that sounds close enough to me! can't wait.

another thought (if you're feeling ambitious) - conditionals! I add a symbol at the end of ship names for ships that are jump-capable; some means of doing something like that (and maybe not just for jumpdrives) might be handy... of course, it'd be a lot of work for what's only a slightly useful addition, so like I said - only if you're feeling ambitious.

Whooosh
Posts: 7
Joined: Sun, 14. Jan 07, 14:53
x3tc

Post by Whooosh » Fri, 8. Jun 07, 03:09

-IH- wrote:1) Put current ship task into name (using top script name). It would be VERY usefull to know what exactly task a ship perfroms (UT, sector trading, (multi)sector convoy, fleet support, etc.).
Isn't that what the "property" command is for? to check up on your ships and what they are doing?
-IH- wrote: 3) Ship weapons/speed/shields info. This is very usefull when you are fighting in some sector with large fleet :) My idea was to divide all weapons into 3 groups: heavy (HEPT, PPC, FAA), medium (PAC, PSG) and light (IRE, PBE, MD). So name of fighter may looks like that: "M5 (Leader) 200 5 L5 - 3". This means: M5, belongs to "Leader', speed 200, shileds 5MJ, 5 ligth weapons, UID = 3. It is not so hard task to check M1, M2, M6 (since there are just several ships of these classes) but check 50+ fightesr for proper config... thats a nightmare for me.
If I'm fighting in a sector with a large fleet against another large fleet, I don't think I would have time to worry about the speed of my wingmen or my other ships. As for shields, don't they show up both in the property command and as a bar when the ships are in view? If you put shield strength in their name, how would you check unless you targetted every ship and had a look at the name?

User avatar
BugMeister
Posts: 13647
Joined: Thu, 15. Jul 04, 04:41
x4

Post by BugMeister » Thu, 30. Aug 07, 20:41

- does anyone know if this script work with the following..

a. the Bala Gi add-in?
b. the latest Bonus Pack?
c. ScorpBy's map?

- this looks like just what I need, in order to pick out the Caiman Traders
- from among the rest of the ships shown in the "r" selection of property

PS: @ Klyith - how goes it, with the update..?? :roll:
- the whole universe is running in BETA mode - we're working on it.. beep..!! :D :thumb_up:

Kilrathi Avenger
Posts: 275
Joined: Fri, 6. Feb 04, 20:16
x3tc

Post by Kilrathi Avenger » Sat, 15. Sep 07, 10:37

neither link is working :?:
"As I slide down the banister of life;
my job is just another splinter in the bum"

User avatar
Matt Armada
Posts: 205
Joined: Mon, 21. Mar 05, 13:46
x4

Post by Matt Armada » Sun, 16. Sep 07, 05:56

The idea of this is AWESOME and i LOVE it...now i just need a dl link to work and i'll be happy..

xyzzy
Posts: 221
Joined: Fri, 15. Jun 07, 02:27
x3

Post by xyzzy » Thu, 20. Sep 07, 04:07

Klyith, I just tried your script and it's awesome. One of those "can't live without it" things.

If you're still working on it, I have a few suggestions:

1. Would it be possible to trim out the prefix of "Pirate" and "Otas" from ship names? That would shorten things up a bit. Similarly, a version without "Vanguard", "Raider", etc.

2. It would be nice to have a fairly short representation of the patrol leader, so I didn't end up with M3 Falcon Escort (ReallyBigLongNameThatOverflowsTheWindow) :) Maybe be able to pick which things you want to display from the leader, like appending the two things: *FL*CL to display the leader's class name, etc.

3. The XTM M7 ships appear as M1's. I think it's not a problem with your script per se, since I've seen that elsewhere. But I wonder if it might be possible to address it in the script, like have a little remapping table that fixes M1->M7 class when it sees a known M7.

4. I didn't read every post in the threat, but I think someone mentioned conditionals. That would be sweet... I could do something like assign a string like "Patrol" if he was a patrol leader, or "Escort" if he was assigned to protect someone else.

Great stuff, even without all that - I'm using it all the time. I hope you're still out there!

Killa17
Posts: 101
Joined: Sun, 18. Feb 07, 08:45
x4

Post by Killa17 » Fri, 28. Sep 07, 09:26

Could someone that has the .spk be generous enough to provide a link, as both OP links are dead?

xyzzy
Posts: 221
Joined: Fri, 15. Jun 07, 02:27
x3

Post by xyzzy » Sat, 29. Sep 07, 17:56

Killa17 wrote:Could someone that has the .spk be generous enough to provide a link, as both OP links are dead?
Killa17, I can't find a working link anywhere now, but if you PM me an email addr maybe I could shoot you a copy that way. It might take me a day or two to get to it.

It will be sad if the script is no longer developed: it's a great script and with a few tweaks could be even greater.

User avatar
Sesk
Posts: 441
Joined: Fri, 17. Nov 06, 21:09
x4

Older version

Post by Sesk » Thu, 18. Oct 07, 02:54

I have version 1.2 if anyone wants it:

Download here

Doombell
Posts: 6
Joined: Fri, 19. Oct 07, 14:55
x4

Post by Doombell » Fri, 19. Oct 07, 15:00

Here's the 1.4 version. Tell me if you want me to use another host.

RSWE v1.4

*Hopes this works*

User avatar
JFJohnny5
Posts: 198
Joined: Mon, 12. Dec 05, 17:38
x4

Post by JFJohnny5 » Sun, 9. Dec 07, 06:07

Hmmm... Neither link working. Anyone have 1.4 hosted anywhere?

Guardian004
Posts: 107
Joined: Fri, 2. Nov 07, 02:03

Post by Guardian004 » Sun, 16. Dec 07, 06:48

Could someone host this script for me. I want it! It's COOL :twisted:

Post Reply

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