Page 1 of 2

Ship's Name

Posted: Fri Oct 21, 2011 4:20 pm
by DredgerMan
HI all,

I am looking for a way to give a name to the ship I am currently using in Oolite to show it in my equipment screen. The name I was thinking of would be something like USS Moneymaker. Is there an OXP that can do that for me or is there a way I can do it myself?

Any assistance will be greatly appreciated.

Re: Ship's Name

Posted: Fri Oct 21, 2011 4:41 pm
by Smivs
Hi Dredgerman,
It's a bit of a faff, but you'll need to sort of make it yourself. Copy the shipyard.plist and shipdata.plist for the ship you have (or want) and re-name it with the name you want. Add these to the ship's plists in the OXP (if it's an OXP ship) or package it up as an OXP and install it in AddOns. You will then need to buy one, and it will have the name you want.

Re: Ship's Name

Posted: Fri Oct 21, 2011 4:49 pm
by DredgerMan
Ok, thanks, Commander. Not the answer I was hoping for since I wanted to show the ship as being a dredger trader but to only display the name on the F5 somewhere. And it Soooooooooo goeas against my grain to buy a new ship when I forked out all of this cash to buy me one in the first place. :wink:

Re: Ship's Name

Posted: Fri Oct 21, 2011 4:55 pm
by DredgerMan
Alternatively, is there a way that I can obscure the Commander header on the F5 screen? That way I could save the file under the intended shipname and it would show up proper then.

Re: Ship's Name

Posted: Fri Oct 21, 2011 4:59 pm
by Smivs
Yeah, sorry, it's a far from perfect solution. Changing anything on the F5 screen is a bit tricky, in fact other than having your 'named ship' there there's not much you can do as far as I know.

Edit:- Off the wall idea, but why not save the game as your ship's name? It'll still be 'Commander something, but say you wanted your ship to be called 'Butterfly', save as 'Dredgerman:Butterfly' and you would see 'Commander Dredgerman:Butterfly' on F5 etc.

Re: Ship's Name

Posted: Fri Oct 21, 2011 5:49 pm
by DredgerMan
Ooooh, now that's a stellar idea!

Easy, simple to do and most importantly requires no coding! :P

Mind you, can't say I'm too hot about the butterfly suggestion. :lol:

But it's hard to be perfectly right twice in a row.

:wink:

Re: Ship's Name

Posted: Fri Oct 21, 2011 5:54 pm
by Smivs
DredgerMan wrote:
Mind you, can't say I'm too hot about the butterfly suggestion. :lol:
:D

Re: Ship's Name

Posted: Sat Oct 22, 2011 11:01 am
by another_commander
Find the section referring to your player ship in shipdata.plist, then change the display_name entry to reflect your ship's name (or add it if it is not there already), like this:
display_name = "MegaLethal MkIII";
Tada!
Image

Re: Ship's Name

Posted: Sat Oct 22, 2011 11:12 am
by Gimi
another_commander wrote:
Find the section referring to your player ship in shipdata.plist, then change the display_name entry to reflect your ship's name (or add it if it is not there already), like this:
display_name = "MegaLethal MkIII";
Tada!
Image
Can I add an additional shipdata.plist to my personal config folder with that entry.
I have a gimi-custom.oxp where I have my keyboard layout, hud changes and it's like. I would want to do the changes in there if at all possible.

So could I get the shipdata.plist from my player ship, make the change, save in gimi-custom.oxp.
If this is possible, how would I make sure the right shipdata.plist takes precedence.

Re: Ship's Name

Posted: Sat Oct 22, 2011 12:39 pm
by another_commander
Gimi wrote:
Can I add an additional shipdata.plist to my personal config folder with that entry.
I have a gimi-custom.oxp where I have my keyboard layout, hud changes and it's like. I would want to do the changes in there if at all possible.
Yes. You can use shipdata-overrides.plist in your gimi-custom.oxp/Config folder as shown below:

Code: Select all

{
	cobra3-player = // or whatever entry name your player ship has in shipdata.plist
	{
		display_name = "MegaLethal MkIII";
	};
}
Save the above as shipdata-overrides.plist inside your custom settings OXP's Config folder and restart Oolite with Shift down. Job done.

Re: Ship's Name

Posted: Sat Oct 22, 2011 12:54 pm
by Gimi
Thank you very much.

Am I assuming correctly, that I can use this to add custom external views, change laser colour and so on without changing the original shipdata.plist?
This is much better, and more upgrade proof.

Re: Ship's Name

Posted: Sat Oct 22, 2011 12:55 pm
by another_commander
Gimi wrote:
Am I assuming correctly, that I can use this to add custom external views, change laser colour and so on without changing the original shipdata.plist?
This is much better, and more upgrade proof.
Yes.

Re: Ship's Name

Posted: Sat Oct 22, 2011 1:03 pm
by Gimi
Final question. (he hopes).

When I look in the other shipdata.plist files the ship name is in "xx". (What are " called in English, it eludes me right now)
Should your example be:

Code: Select all

{
   "cobra3-player" = // or whatever entry name your player ship has in shipdata.plist
   {
      display_name = "MegaLethal MkIII";
   };
}
or doesn't it matter.

Re: Ship's Name

Posted: Sat Oct 22, 2011 1:06 pm
by another_commander
It doesn't matter, unless the entry contains whitespace characters.

Re: Ship's Name

Posted: Sat Oct 22, 2011 1:11 pm
by Gimi
Actually, a set of override files in a "custom.oxp" should come with the game by default. That might make bug-hunting easier. If anybody wants to change something and asks on the bb the answer could be: (Change this file in custom.oxp). If something goes wrong: (move your "custom.oxp" out of your addons folder).