randomshipnames.oxp preview
Moderators: winston, another_commander
- Disembodied
- Jedi Spam Assassin
- Posts: 6885
- Joined: Thu Jul 12, 2007 10:54 pm
- Location: Carter's Snort
Re: randomshipnames.oxp preview
This really adds a lot of atmosphere! If there's one thing I would request it would be to let merchant ships and hunters have names too ... even Vipers, perhaps, although they should maybe just have some form of coplike ID, like V-309. It might mean a pool of less violent names or name-elements is required, with merchant ships getting a weighting towards the non-violent end (although I just trashed a pirate ship named "Joner's Loot", which could easily pass for the name of a deadbeat trader – and there might be something to be said for the occasional Anaconda called "Black Murder").
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: randomshipnames.oxp preview
Hunters do already have names... for a bounty-hunter hunter like me, that is very useful.Disembodied wrote:This really adds a lot of atmosphere! If there's one thing I would request it would be to let merchant ships and hunters have names too
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
- Disembodied
- Jedi Spam Assassin
- Posts: 6885
- Joined: Thu Jul 12, 2007 10:54 pm
- Location: Carter's Snort
Re: randomshipnames.oxp preview
Good stuff, I hadn't spotted any hunters so far ... just merchants and (maybe) the police, then!El Viejo wrote:Hunters do already have names... for a bounty-hunter hunter like me, that is very useful.
- maik
- Wiki Wizard
- Posts: 2028
- Joined: Wed Mar 10, 2010 12:30 pm
- Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)
Re: randomshipnames.oxp preview
Added it to the WIP sections of the [wiki]OXP List[/wiki] with a link to this BB thread. Hope that was in your interest.Commander McLane wrote:As it's pretty much a work in progress (I'm adding more names (or parts of names) whenever I come up with one) I don't want to put it on the Wiki yet, therefore the download link goes directly to the box
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
Re: randomshipnames.oxp preview
Personally I wouldn't have thought it to be ripe for that just yet, but given that there already was a positive reception in this thread, I guess it's okay to also make it known in the WIP section.maik wrote:Added it to the WIP sections of the [wiki]OXP List[/wiki] with a link to this BB thread. Hope that was in your interest.Commander McLane wrote:As it's pretty much a work in progress (I'm adding more names (or parts of names) whenever I come up with one) I don't want to put it on the Wiki yet, therefore the download link goes directly to the box
Re: randomshipnames.oxp preview
Love it, going to play Oolite in a mo...
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: randomshipnames.oxp preview
One way to check for changed ship names is by checking if the ship.name and ship.displayName are the same. This is also not foolproof but will work for a lot of existing ships. I do use it in bouyRepair.oxp were the station gives launching ships unique names and also the ship script.Commander McLane wrote:For now I have summarily excluded names with " - ". However, this isn't fail safe. Both scripts changedisplayName
in theshipSpawned
handler, yours in the ship script, mine in the world script. I have no idea which is executed first, or whether there is a custom order in the first place.
It will go wrong if ships already have defined different names in shipData, but currently 99.9% of the ship oxps has no displayName defined and will start with a copy of name as displayName. And those that have an explicit displayName defined often have a good reason for that and should be left alone anyhow.
UPS-Courier & DeepSpacePirates & others at the box and some older versions
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: randomshipnames.oxp preview
On the subject of long display names, is it possible to remove the ship's type? So Cobra Mk I: Defender of Nobility would become simply Defender of Nobility.
I generally like to ID ship types visually anyway... it adds to the immersion.
I generally like to ID ship types visually anyway... it adds to the immersion.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
Re: randomshipnames.oxp preview
It probably won't work with localization OXPs, depending on whether they override the name or use display_name.Eric Walch wrote:One way to check for changed ship names is by checking if the ship.name and ship.displayName are the same. This is also not foolproof but will work for a lot of existing ships.
Perfectly possible. Just replace theEl Viejo wrote:On the subject of long display names, is it possible to remove the ship's type? So Cobra Mk I: Defender of Nobility would become simply Defender of Nobility.
I generally like to ID ship types visually anyway... it adds to the immersion.
Code: Select all
ship.displayName += ": " + this.$randomShipName(ship);
Code: Select all
ship.displayName = this.$randomShipName(ship);
EDIT: replaced "remove" with "replace", which first meant to remove the "remove" and then to replace it with "replace"
Last edited by Commander McLane on Thu Jan 26, 2012 12:16 am, edited 1 time in total.
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: randomshipnames.oxp preview
You are correct, of course... but in my fevered immersion mode, I'll enjoy this little tweak. Many thanks, McLane.Commander McLane wrote:I won't do it in the release version, though, because I find the ship type an essential information, which the target computer would certainly give to you. Tactically, it's infinitely more important than the ship's name.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
- Wildeblood
- ---- E L I T E ----
- Posts: 2453
- Joined: Sat Jun 11, 2011 6:07 am
- Location: Western Australia
- Contact:
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
Re: randomshipnames.oxp preview
Is "Star Snake" part of the model name for every Cobra MkVI or an individual name in itself?
Looks like the tilde is used as another separator between ship type and name. I'll add it to the exclusion-inducing characters.
Looks like the tilde is used as another separator between ship type and name. I'll add it to the exclusion-inducing characters.
- Wildeblood
- ---- E L I T E ----
- Posts: 2453
- Joined: Sat Jun 11, 2011 6:07 am
- Location: Western Australia
- Contact:
Re: randomshipnames.oxp preview
It's not an individual name. KW named the trader version "Cobra MkVI ~ King Cobra" and the pirate version "Cobra MkVI ~ Star Snake". It plays havoc with the spoken messages, which resort to spelling out "MkVI" and can't pronounce tilde. It wasn't the number of components that I was commenting on, but the physical length; I'm sure there are other models with longer names than "Cobra MkVI ~ Star Snake" and I'm sure that your script can produce names longer than "Lady Eryn VIII", but this example already runs halfway across my widescreen monitor. It has made me question the real value of Bounty Scanner, too: the important part is the citizen/offender/fugitive distinction. When you're fighting a group of pirates do you really have time to prioritize them according to their exact bounty? My priority is usually the one that is actually shooting at me the most.Commander McLane wrote:Is "Star Snake" part of the model name for every Cobra MkVI or an individual name in itself?
Looks like the tilde is used as another separator between ship type and name. I'll add it to the exclusion-inducing characters.
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: randomshipnames.oxp preview
Exactly! I've removed the ship type as per above tweak, and it's rather good. The display names are shorter, and I know whether they're bandits or hunters... or just humble traders. Getting the ID right visually is a good challenge at distance, but close-up it's easy. As you say, the bounty scanner is also superfluous... I don't use it.Wildeblood wrote:the important part is the citizen/offender/fugitive distinction.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
- CaptSolo
- ---- E L I T E ----
- Posts: 909
- Joined: Wed Feb 23, 2011 10:08 pm
- Location: Preying Manta
- Contact:
Re: randomshipnames.oxp preview
Right On Commander McLane! I have also added your code tweak since, like El Viejo, I prefer to rely on visual identification.