Xai Corporation Factory Ship Branding/Naming

The place to discuss scripting and game modifications for X²: The Threat.

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

User avatar
moggy2
Posts: 5505
Joined: Wed, 6. Nov 02, 20:31
x3ap

Xai Corporation Factory Ship Branding/Naming

Post by moggy2 »

Xai Corporation Factory Ship Branding
Just a quick something I knocked up for myself last night. I was wondering if this was usefull for anyone, whether there was anything that you'd do differently, and whether there was a better way to set the names of the ships?

www.xai-corp.tk
A new command, Xai Corporation Factory Branding, should be available at all of your stations. Running this command will first set the serial name of the station (alpha, beta, gamma,...) then continue to run checking for ships belonging to the station, either landed or in the same sector. Ships that are found are then checked against a master list and any ships not on the list have their name altered prepending the station name and a ship number.

Commands:
¯¯¯¯¯¯¯¯¯
Xai Corporation Factory Branding:
-There are 2 arguments for this command; 1, the serial name of the station; 2, an abbreviated name for the station that will be prepended to the ship name.
-The serial name will be appended to the station name, so "Xai Corp. Wheat Farm" would become "Xai Corp. Wheat Farm alpha"
-Specifying an abbreviated name for the station only affects the name shown on the ship
-You can leave the abbreviated name empty to use the full name of the station.
-You can reset the name of the factory and it's ships by entering "reset" as the abbreviated name
-If you stop the command then want to restart it without setting the serial name or abbreviated name again type "restart" as the abbreviated name.
-It is worth taking a few moments to prepare your ships and station's names before running the command


Example:
For a station named "Xai Corporation Wheat Farm", specifying a serial of "alpha" and an abbreviated name of "Xai Corp. WheatF".
The station would be named: "Xai Corporation Wheat Farm alpha"
The first transport ship(mercury 1 - XTC1) found would be named: "Xai Corp. WheatF alpha Tx0: mercury 1 - XTC1"
The second transport ship(mercury 2 - XTC1) found would be named: "Xai Corp. WheatF alpha Tx1: mercury 2 - XTC1"
The first fighter ship(Buster 1) found would be named: "Xai Corp. WheatF alpha Mx0: Buster 1"


_______________________
© 764 Xai Corporation,
Cloudbase South West
www.xai-corp.tk

User avatar
GoateeCat
Posts: 1184
Joined: Mon, 10. Mar 03, 23:50
x2

Post by GoateeCat »

I name my property so I can tell where they are and what they are doing instantly.

For stations I choose a single word for the sector and a single word for their output. So SPP in the wall is called Wall Power, A Rimes fact in red light is Red Rimes. With repeated use and clustering of stations in sectors, the abbreviations become familiar very quickly.

For transport ships its Station -> command. So a ship buying crystals for that SPP is Wall Power buy crys. The BPH trader would be Wall Power BPH.

Usually I don't have multiples of the same factory type in a sector so the alpha, beta blah blah blah is usually unneccessary.

Anyway, Its a great idea but I would need to be able to tweak it to my own system.
User avatar
moggy2
Posts: 5505
Joined: Wed, 6. Nov 02, 20:31
x3ap

Post by moggy2 »

so how would you tweek it?

Using your scheme:

set station name: wall power
set ship name: buy crystal
run script: select any serial, enter nothing
ship name becomes wall power alpha Tx0 buy crystal

buy new ship
name it: bph
set homebase: wall power
set command: bph
ships name becomes 'wall power alpha Tx1 bph' when it enters the wall

may be you could have it so that when you entered nothing for the abbreviated name it ignored the serial to.
Do you think the Tx0 is not needed?

Anyone else got any suggestions?
brohawk
Posts: 63
Joined: Sat, 24. Apr 04, 23:04
x3

Post by brohawk »

I use a truncated sector and factory name which I then prefix to the associated ships using alpha and numeric quallifiers for more than one.

So in Kingdom End I have Crystal Fabs.

KinEnd CryFabA
KinEnd CryFabB
KinEnd CryFabC
KinEnd CryFabD

Since Crytal Fabs have 3 resources, I actually have 3 ships.
KinEnd CryFabA Dolphin1
KinEnd CryFabA Dolphin2
KinEnd CryFabA Dolphin3

I don't really care what resources they are getting because I use Xai Corp technology for factories with multiple resource needs so they buy whatever the Fab requires. :) Single resource factories just get standard trading software except my silicon and ore mines use the Xai Auto Buy and Sell software. 8)

For single resource factories, I only have one ship so there is no need for numbers. Basically I use the first 3 letters of the sector and factory name with a few exceptions. It is sort of redundant now with the modifications in the log file since 1.4 however it is still very useful when manually checking sectors and seeing where they are actually going. Like, hey what is that ship doing here?!!! :roll:
User avatar
moggy2
Posts: 5505
Joined: Wed, 6. Nov 02, 20:31
x3ap

Post by moggy2 »

How about if it dropped the existing name completely, and added the ware it was fetching/selling, and maybe identify certain advanced commands

eg, "station name: bph crystals"

Anyone think that would be better?
Kvaren
Posts: 10
Joined: Sat, 17. Jul 04, 00:29
x2

Post by Kvaren »

moggy2 wrote:How about if it dropped the existing name completely, and added the ware it was fetching/selling, and maybe identify certain advanced commands

eg, "station name: bph crystals"

Anyone think that would be better?

I think this naming convention is much better. One lookk and you know which factory owns the transport and what its purpose is. Makes replacing destroyed transports significantly easier.

I would use something like this, whereas I would not have used the previous naming convention. (Making it the only Xai script I would not have used. Love your work!)
User avatar
GoateeCat
Posts: 1184
Joined: Mon, 10. Mar 03, 23:50
x2

Post by GoateeCat »

In all honesty, I tend to buy my property in ones and twos, so naming my property isn't a chore for me.
djssuk
Posts: 183
Joined: Thu, 11. Dec 03, 21:43
x3tc

Post by djssuk »

Has this moved forward.

I currently Use location - Factory Type Factory number - Ship Type - Incremented ship number - Action eg:

KE - Solar 1 - BD 1 - Sell Power

A bit complex, but it kind of shows that a script which allows some kind of multiple renaming would be good, although very complicated...
User avatar
Jimmy Jazz
Posts: 794
Joined: Wed, 4. Jun 03, 17:20
x3

Post by Jimmy Jazz »

I love the idea of the script, could save a lot of time. Some important informations are missing though: the location of the fab, the type of the ship and its action
F.ex. my naming system:

ATPL WheatFarm Alpha The Wall Cells

or

ATPL WheatFarm Alpha The Wall Seller

The 'ATPl' means Argon TP with 25MW shields (L)

Cells means it is buying E-cells, Seller is obvious

This way I now exactly what my destroyed ship did and to which fab in which sector it belonged to.

Maybe the naming of the fab could be automated as well. Add a command that lets you specifie your company name. This should be done only once. When you give the command tu autoname a fab, the name could consist of the elements company name, fabtype, number and location

just some ideas
Pinky : "Gee, Brain what do you want to do tonight?"
Brain : "The same thing we do every night Pinky. Try to take over the world!"
Brent Rivienne
Posts: 162
Joined: Thu, 18. Mar 04, 19:52
x3fl

Post by Brent Rivienne »

I name all my stations and transports for maximum efficiency with the following scheme.

Stations:
<SectorName>-<ShortStationName>

Ships:
<SectorName>-<ShortStationName>-<Ware>-<(B)uyer/(S)eller>

Examples would be...

Stations:
TheWall-Wheat1
GetsuFune-SPP3

Ships:
TheWall-Wheat1-Wheat-S
GetsuFune-SPP3-Crystal-B


The number appended to the station name indicates the number of that station in that sector only... there can be as many SPP1's as you like, but only one GetsuFune-SPP1.

Obviously this would require a database of sectors in that format along with short plant and ware names.

I can see people wishing to add their company name to the start or end of these, so that functionality would likely need to be implemented.

I'd also suggest that should a renamed ship lose their homebase, via player intervention or the destruction of a factory, it be renamed to something along the lines of
Unassigned <Ship Type>

This follows from my generic ship naming system for ships I don't wish to personally name.
They generally go along the lines of Fleet <Ship Type> (for my personal fleet), Scrap <Ship Type> (for ships I plan to sell) and Refit <Ship Type> (for ships which I plan to repair and equip for my fleet, only when this ship is complete is it renamed to Fleet).
The word at the start of the name helps me to locate ships of a certain type... which is why I believe the "Unassigned <Ship Type>" renaming would be useful - to quickly find lost ships.
djssuk
Posts: 183
Joined: Thu, 11. Dec 03, 21:43
x3tc

Post by djssuk »

I would go with the one abouve, but I would want to add a ship type, perhaps a three letter code like BDO for Boron Dolphin, etc.

I think this is a great idea and beg that it is finished...
User avatar
moggy2
Posts: 5505
Joined: Wed, 6. Nov 02, 20:31
x3ap

Post by moggy2 »

Current version I'm working with looks like this: <Entered Name>: -<Software Installed>- <Ware Carrying>

where Entered Name is typed by the player when the script starts and is used on every ship for that station, and Software installed is a 3/4 letter acronym of the software TMk1, BPH, XTC1,...

This script is included as part of this
User avatar
Jimmy Jazz
Posts: 794
Joined: Wed, 4. Jun 03, 17:20
x3

Post by Jimmy Jazz »

Don't forget factory location and ship type :wink:
Pinky : "Gee, Brain what do you want to do tonight?"
Brain : "The same thing we do every night Pinky. Try to take over the world!"
User avatar
nuclear_eclipse
Posts: 1129
Joined: Thu, 2. Sep 04, 01:54
x3tc

Post by nuclear_eclipse »

I personally name all my stations in the form <sector><type> and then use a roman numeral to distinguish multiples in one sector.

eg. ' Akeela Crystal Fab I ' feeds all those solar power plants in Akeela's Beacon =]
Dragonteen
Posts: 153
Joined: Sun, 19. Dec 04, 19:02
x3tc

Post by Dragonteen »

I do
(corp prefix) staion abreviation.sector initals.what it buys or sell then a number
so for a silicon mine in ore belt I get:
(prefix) Sil.OB.Ecell 01
and
(prefix) Sil.OB.Sell 01

nice and easy to replace when and if I need to, which I haven't yet *crosses fingers*
Pirate hater
Posts: 1549
Joined: Sun, 2. May 04, 16:21
x2

Post by Pirate hater »

Too be honest i tryed most numbering methods but 1 i stuck with is "insert cargo ship here" 1
each ship is just given next number up as i build sector to sector i know which sector it was from as i buy in mass and set up in mass with each ship placed to a factory and each factory down the list in order so 1-100 from crystal fabs to SPP its easy to discover which one needs replacing if killed on the very rare times they are with OOS defence.
User avatar
Dead2thewind
Posts: 18
Joined: Sat, 2. Aug 08, 17:45
xrvr

Post by Dead2thewind »

I take over secotrs and set up huge loops producing masses of a product flooding the market at the moment so alpha beta gamma wont do much when theres 9 SPP as for a naming system i just leave factory names as is but stick a number on the end so "your solar power plant 1" etc and name any ship assigned to it as the station + what resorce it's buying" so "Solar Power Plant 1 Crystals" takes forever to do and i need some scripts that will lower my ts as my last loop contained 63 staions needing 102 TS it took a total of three days to get every factory and ship named. not to mention complety voiding the sector of everything.

Return to “X²: The Threat - Scripts and Modding”