Christening our ship with a personal name..

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

User avatar
Ranthe
---- E L I T E ----
---- E L I T E ----
Posts: 330
Joined: Sat Oct 13, 2012 7:35 pm
Location: Paraparaumu, New Zealand (TL 8, Rich Agricultural, Multi-Government)

Re: Christening our ship with a personal name...

Post by Ranthe »

CommonSenseOTB wrote:
Commander McLane wrote:
El Viejo wrote:
Naming one's ship is important to many of us... mine is named on the hull, on the hud and on the F5 screen.
Ah yes, I forgot the HUD. That would be c) then, and requires no more than a paint program.
Ah, no, just add a text line in the legends section of your own personal HUD. Takes 1 minute to cut and paste and a couple of tries to get the line close to where you want it. No painting required.
From the "name your own ship" instructions in the "Wide Screen HUD", I've added the following lines into my current HUD in the legends section as described, and that works great.

Code: Select all

// Ship's name, top left corner (Anaconda)
	
		{
			alpha = 0.5; text = "STV Atomic Annie GCR-618867564"; // Ship's name.

			x = 32; y = -40; y_origin = 1; x_origin = -1; height = 20; width = 12;
		},
		{
			alpha = 0.5; text = "ANACONDA CLASS BULK FREIGHTER"; // Ship's type.

			x = 38; // Change this number to centre the small text under the name.

			y = -44; y_origin = 1; x_origin = -1; height = 8; width = 8;
		}

);
What I'd also like to do is to put in some logic based on the player ship type so that when I'm switching between ships the HUD display switches automatically without having to edit the HUD file each time. I think what I need to do is something like the following - but I can't get it to work:

Code: Select all

// Ship's name, top left corner (for Boa 2 Cruiser)
		"boa-mk2-player" =  {
			alpha = 0.5; text = "STV Roj Blake GCR-61775509"; 

			x = 32; y = -40; y_origin = 1; x_origin = -1; height = 20; width = 12;
		},
		{
			alpha = 0.5; text = "BOA CLASS CRUISER"; 

			x = 38; // Change this number to centre the small text under the name.

			y = -44; y_origin = 1; x_origin = -1; height = 8; width = 8;
		},
		
// Ship's name, top left corner (Anaconda)
	
		"anaconda-player" = {
			alpha = 0.5; text = "STV Atomic Annie GCR-618867564"; // Ship's name.

			x = 32; y = -40; y_origin = 1; x_origin = -1; height = 20; width = 12;
		},
		{
			alpha = 0.5; text = "ANACONDA CLASS BULK FREIGHTER"; // Ship's type.

			x = 38; // Change this number to centre the small text under the name.

			y = -44; y_origin = 1; x_origin = -1; height = 8; width = 8;
		}
Am I missing something?

EDIT - Cancel that - Wildeblood explained the solution using script-switching.
Commander Ranthe: Flying the Anaconda-class transport Atomic Annie through Galaxy 2.
Combat Ranking: Dangerous
"Big ships take more booty on your interstellar flights..."
Post Reply