EnglishGermanFrenchRussianItalianSpanish
Log inRegister
 
[SCR] [11.11.08] [X3TC V1.1] SNM - Ship/Station Names Managment
Post new topic Reply to topic Goto page 1, 2, 3, 4  Next
View previous topic :: View next topic
Author Message
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)

MEDAL

Joined: 20 Nov 2005
Posts: 13470 on topic

Thank you for registering your game
modified
PostPosted: Tue, 11. Nov 08, 13:40    Post subject: [SCR] [11.11.08] [X3TC V1.1] SNM - Ship/Station Names Managment Reply with quote Print

Here is my Script for colored Ship Names, this Script works fine but Bugs are possible, so make Backups of your Savegames.
The Script itself is ready but the Readme is not finished yet, i have only rewritten the Important parts of the Readme of this Script from Reunion...

Here is the Temporary Readme to explain the function of this Script:

Function:
The SNM is an extension to make the management of ships and stations easier by coloured names.

What it does
All player owned ships and stations where checked of token in there names. These token where replaced by the accordant announced text.

The routine works periodically every minute (can be changed in the t-file Wink page id 8641, text id 1 is the time between two runs in seconds for all scripters here Wink)

If anybody wants the routine can be shut down in the AL-Plugin-menu.
Planned for next Version: All colours in station-names and ship-names will be removed (if there are no changes at the names by reactivation, all colours would be set like before)

In addition there is a new Hotkey which is for Mass renaming or Renaming of the Targeted Ship (or to make the Name of an non-player-object colored Wink)


To dye a word or text you only have to write a token at the beginning:

/gry for grey
/blu for blue
/cya for Cyan
/grn for green
/mag for magenta
/red for red
/whi for white
/yel for yellow
/bck for black
/nor to come back to normal text colour.


With the following token mutated vowels and special signs could be created (NOT UPDATED FOR TC; the updated Readme will follow soon.. there are too many new Characters that have to be sorted..)

Mutated vowels:
/:a for ä
/:A for Ä
/Surprised for ö
/Surprised for Ö
/:u for ü
/:U for Ü
/sz for ß

Special signs:
/sbo for [
/sbc for ]
/cbo for {
/cbc for }
/til for ~
/vl for |
/ex2 for ²
/ex3 for ³
/at for @
/cir for °
/reg for ®
/+- for ±
/par for §
/cs for ø

Greek letters:
/alpha for α
/beta for β
/gamma for γ
/delta for δ
/epsilon for ε
/zeta for ζ
/eta for η
/theta for θ
/lota for ι
/kappa for κ
/lambda for λ
/mu for μ
/nu for ν
/xi for ξ
/omicron for ο
/pi for π
/rho for ρ
/sigma_e for ς
/sigma for σ
/tau for τ
/upsilon for υ
/phi for φ
/chi for χ
/psi for ψ
/omega for ω

French letters:
/*a for à
/^a for â
/'a for á
/*e for è
/^e for ê
/'e for é
/*o for ò
/^o for ô
/'o for ó
/*u for ù
/^u for û
/'u for ú
/,c for ç
/,C for Ç
/oe for œ
/:i for ï
/:e for ë

Moreover there are flexible strings, which were automatically updated:

/hbn adopt the name of homebase (only ships with homebase)
/hbs adopt the sector of homebase (only ships with homebase)
/lvlt adopt the current Trade Rank of the Pilot
/lvlf adopt the current Fight Rank of the Pilot
/typ adopt the type of ship/station

example:

/blu/alpha /red/hbn /yelMamba /redAttacker /norexample (homebase is “Headquarter”)
α Headquarter Mamba Attacker example


There is one more feature added: Decimal numbers can be shown in followed display form:
/numI<Number> for roman number (major implemented sign is M, is equivalent to 1000)
/numa<Number> for small letters (as yet only till 26 assisted)
/numA<Number> for big letters (as yet only till 26 assisted)
/numg<Number> for small greek letters (as yet only till 24 assisted)
/numG<Number> for big greek letters (as yet only till 24 assisted)
/num#<base>#<Number> for numbers in other systems, for example binary (base 2), Octal (base Cool, Hex (base 16) (assisted till base of 109 and <number> < 2.000.000.000 / <base>). The standard length for this Number is 2 Signs.

Notes:
- It isn’t advisable to use only red names (and at stations blue too) . So you can’t see if there were attacked (or needs resources).

- Colour-tags are two invisible signs in the name-string, at this position the cursor act up while renaming, so don’t be amazed.


Adding own shortcuts:
Planned for Next Version of the Readme

Installation:
Extract the archive into your X³-folder (t-files into the t-folder and script-files into the scripts-folder) The SE is necessary (activation: rename yourself into “Thereshallbewings”). (Lucike posted possibilities to install scripts without activated SE)

Update former versions:
* No former versions for TC

Downloadlink & Important Note:
Make Backups of your Savegames. This Script is not guarateed to be Bug-Free and it makes your Savegame ***modified***


_________________
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter Wink

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help Wink


Last edited by UniTrader on Wed, 12. Nov 08, 16:19; edited 1 time in total
Back to top
View user's profile Send private message
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)

MEDAL

Joined: 20 Nov 2005
Posts: 13470 on topic

Thank you for registering your game
PostPosted: Tue, 11. Nov 08, 14:20    Post subject: Reply with quote Print

everyboby who downloaded this Script until now please re-download it.. there was a small mistake in the t-files...


_________________
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter Wink

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help Wink
Back to top
View user's profile Send private message
joelR





Joined: 09 Jul 2007
Posts: 1982 on topic
Location: Seattle
Thank you for registering your game
PostPosted: Tue, 11. Nov 08, 15:19    Post subject: Reply with quote Print

Wooohooo! Its finally here!


Thanks!


joelR

Back to top
View user's profile Send private message
Happyblue





Joined: 14 Mar 2004
Posts: 140 on topic

Thank you for registering your game
PostPosted: Tue, 11. Nov 08, 19:00    Post subject: Reply with quote Print

Clunky, buggy and not intuitive at all. I aplaude the effort man, I'll try it again when you have it polished.

Someone please remake ACC

Back to top
View user's profile Send private message
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)

MEDAL

Joined: 20 Nov 2005
Posts: 13470 on topic

Thank you for registering your game
PostPosted: Tue, 11. Nov 08, 19:11    Post subject: Reply with quote Print

ok, then please tell me what i can do better... perhaps i have no real feeling for what is good for mass renaming because i have only 1 Ship Rolling Eyes i have released this because i wanted some user Input, not because it was 1000% finished... Rolling Eyes


_________________
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter Wink

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help Wink
Back to top
View user's profile Send private message
Thrandisher





Joined: 01 Jul 2007
Posts: 357 on topic

Thank you for registering your game
PostPosted: Tue, 11. Nov 08, 21:24    Post subject: Reply with quote Print

http://www.asser.net/ship.jpg

As you can see there, when i run through the menu commands, it renames the ship with the Readtext names in the selected color's i did.

Useing dvd version with 1.2.1 patch.

It could be doing that because after i do the options i want to, i hit the escape key. I did not see a exit or finish option at any menu (unless i went to a option about homebase and then when i did that, i useally got a blank name for anything)

Back to top
View user's profile Send private message
Happyblue





Joined: 14 Mar 2004
Posts: 140 on topic

Thank you for registering your game
PostPosted: Tue, 11. Nov 08, 21:53    Post subject: Reply with quote Print

I installed as instructed and had the same problems. Maybe it was your interface but I could not make it work and I tried like the dickens.

I think many people are looking for a script that will rename homebased ships in the following manner. Name of homebase, name of ship, number

IE Homebase is your carrier named "Elephant" it has 3 busters and 1 Nova as homebased fighters. The should be renamed:

Elephant Buster 01
Elephant Buster 02
Elephant Buster 03
Elephant Nova 01

Anything that would simplify the renaming process would be greatly appreciated. I currently run with a panther, 2 carriers and a TP all loaded with fighters as well as several stations with ships and a weapon platform that has docked fighters. When they lose ships it is a nightmare to figure out which base lost what ship unless they are renamed to show where they came from.

Back to top
View user's profile Send private message
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)

MEDAL

Joined: 20 Nov 2005
Posts: 13470 on topic

Thank you for registering your game
PostPosted: Tue, 11. Nov 08, 22:24    Post subject: Reply with quote Print

that was the String for the /fnum-function, wich has now another number Oops i thougt i had tested it yesterday before i packed the Files.. Oops

And the Finish-Button ended up in the Wrong Menu somhow.. it was planned in the menu for the Color Selection for the second Name Block... Oops

I know this could be tested better before the Release but it is not good when only i am testing my own things because own mistakes are overlooked easily and i think something is self-explanatory even when it is difficult made.. but when i ask in the Forum for Testers i get only one or two replies, not more and this is not enough for some serious tests... so i have to release it tested only by myself when i want something to be released...




Memo to me: ask only for the Number Format when a Number Option is chosen...


PS temporary Workaround when you need the Function: add this Line to the t-file:
Code:
 <t id="21">/fnum</t>

a fixed Version will be uploaded tommorrow..


_________________
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter Wink

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help Wink
Back to top
View user's profile Send private message
Thrandisher





Joined: 01 Jul 2007
Posts: 357 on topic

Thank you for registering your game
PostPosted: Tue, 11. Nov 08, 22:45    Post subject: Reply with quote Print

For me the style i like is

Class Name Number Homebase

Witch each one being a differnt color of course Wink
M3 being able to be one color, M4 a differnt color and so forth.

Menu with it are fine so far. When i will be able to rename ships with it, ill play around with it more.

Would it be posible to have a check on renameing on ships already renamed with CAG, CLS, EST ?

Back to top
View user's profile Send private message
joelR





Joined: 09 Jul 2007
Posts: 1982 on topic
Location: Seattle
Thank you for registering your game
PostPosted: Wed, 12. Nov 08, 01:19    Post subject: Reply with quote Print

Happyblue wrote:
Clunky, buggy and not intuitive at all. I aplaude the effort man, I'll try it again when you have it polished.

Someone please remake ACC


Well welcome to the X3 user interface. What about it isnt clunky and unintuitive? Show me your ship naming script!

Anyhow great work UniTrader. This was an X3R must have for me. Really makes ship and station management far more enjoyable and "intuitive." Bugs can be fixed. Thanks for doing that. I look forward to future versions.

Back to top
View user's profile Send private message
amirite





Joined: 23 Oct 2008



PostPosted: Wed, 12. Nov 08, 10:57    Post subject: Reply with quote Print

This is cool, definitely a good start, however I have to agree with HappyBlue that clunky and unintuitive describe this pretty well. It's actually MORE work to rename my ships now, and having tons of text commands to have to remember is quite annoying. As you said however it's not even finished yet so I look forward to seeing more. I hope you don't plan on using this same approach as you develop it though?


_________________
-TEVE
Back to top
View user's profile Send private message AIM Address
Thrandisher





Joined: 01 Jul 2007
Posts: 357 on topic

Thank you for registering your game
PostPosted: Wed, 12. Nov 08, 11:01    Post subject: Reply with quote Print

You do know that you can set up a hotkey to use it and not have to use the / commands, right?
Although its broken right now and will be fixed later on today.

I renamed about 40 ships in around 10 seconds. /shrug

Back to top
View user's profile Send private message
smbh





Joined: 10 Jan 2007



PostPosted: Wed, 12. Nov 08, 11:10    Post subject: Reply with quote Print

asser69 wrote:
http://www.asser.net/ship.jpg

As you can see there, when i run through the menu commands, it renames the ship with the Readtext names in the selected color's i did.

Useing dvd version with 1.2.1 patch.

It could be doing that because after i do the options i want to, i hit the escape key. I did not see a exit or finish option at any menu (unless i went to a option about homebase and then when i did that, i useally got a blank name for anything)


Sorry for the offtopic (nice script btw, hotkey assignment will be awesome) - in your screenshot, were did you get the Automatic Target Aquisition ?

Back to top
View user's profile Send private message
(----____JEFF____----)





Joined: 20 May 2006
Posts: 266 on topic

Thank you for registering your game
PostPosted: Wed, 12. Nov 08, 11:22    Post subject: Reply with quote Print

Maybe it's a good idea to incorporate some sort of template system, that way you set up a naming scheme (or multiple) and that's used automatically for all ships. And if you don't want a ship to be renamed use can use a tag, like you now have for all those colors and stuff.

Anyway the script sounds pretty good to me, maybe a bit rough around the edges, but I'm used to that in X3 Wink


_________________
ADAMS - ITT for X3R
ADAMS - ITT for X3TC
ADAMS - AAH
Back to top
View user's profile Send private message
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)

MEDAL

Joined: 20 Nov 2005
Posts: 13470 on topic

Thank you for registering your game
PostPosted: Wed, 12. Nov 08, 12:42    Post subject: Reply with quote Print

there is already a "template system" in it when you modify the t-file a bit Wink

for example when you add

Code:
 <t id="1598">/Name1</t>
 <t id="1599">/grn/hbn /blu/typ /yel</t>


and change the t id 999 from
Code:
 <t id="999">1598</t>

to
Code:
 <t id="999">1600</t>


you have to write only /Name1 01 to change the Name for the Ship into

Solar Power Plant Mercury 01

for example Wink

you can expand the number of Templates as much as you want, you only have to increase the number in t id 999 into the last t id +1 Wink (BUT IT MUST BE AN EVEN NUMBER...)

It is only not documented because i stuck on how to explain this to somebody who has never done anything with t-files ^^

PS when you want a Template for all new bought Ships just use "Your" instead of /Name1 in my small example and remember that the Ship type is then at the End of the Name because it is not replaced Wink


_________________
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter Wink

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic Goto page 1, 2, 3, 4  Next
 
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
Control Panel
Login Data
The time now is Mon, 11. Dec 17, 20:50

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2017
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.11193 seconds, sql queries = 29