Page 3 of 3

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

Posted: Thu Nov 01, 2012 6:02 am
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.