Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

Christening our ship with a personal name..

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

User avatar
ulaidian
Competent
Competent
Posts: 34
Joined: Tue Jan 03, 2012 6:04 pm
Location: Belfast, Northern Ireland

Re: Christening our metalic coffin

Post by ulaidian »

Perhaps I was a bit over sensitive.. but I genuinely get muddled up by all this, and even following the instructions, it is a 'trial and error' thing for me. It usually takes me hours to do the simple things, but at least, when I finally manage it, I know how (if not the 'why') it works.

So.. I've started again. I did all the 'getting great ships and being invinvible' stuff.. and now want to play properly. The ship is your normal Cobby and the name is 'Ulster Dawn'.

Now, I followed the instructions, and made a file in the 'add ons' folder, and then did the text script.. but I obviously did something wrong, as nothing changed.
The script was this -
{
"cobra3-trader" =
{
aft_eject_position = "0.0 15.5 -33.0";
ai_type = "route1traderAI.plist";
auto_ai = yes;
cargo_type = "CARGO_NOT_CARGO";
energy_recharge_rate = 2;
exhaust = ("-19 0.0 -32.5 15.0 7.5 12.5", "19 0.0 -32.5 15.0 7.5 12.5");
forward_weapon_type = "WEAPON_BEAM_LASER";
fuel = 70;
has_ecm = 0.15;
has_escape_pod = 0.95;
has_scoop = 0.95;
likely_cargo = 3;
max_cargo = 20;
max_energy = 150;
max_flight_pitch = 1;
max_flight_roll = 2;
max_flight_speed = 300;
max_missiles = 4;
missile_launch_position = "0.0 -4.5 16.5";
missiles = 3;
model = "cobra3_redux.dat";
smooth = yes;
name = "Cobra Mark III";
roles = "trader scavenger sunskim-trader";
scoop_position = "0.0 -10.0 -10.0";
thrust = 30;
weapon_position_aft = "0.0 0.0 -32.5";
weapon_position_forward = "0.0 0.0 27.5";
weapon_position_port = "-40.0 2.17 -4.33";
weapon_position_starboard = "40.0 2.17 -4.33";
};
"display_name" = "Ulster Dawn";
};
}


Now.. I think I have one too many wee symbols in the script, but that is fixable.. however, should this file definately be in the 'add ons' folder? It seems out of place, not being an OXP.
User avatar
Cmdr. Maegil
Sword-toting nut-job
Sword-toting nut-job
Posts: 1294
Joined: Tue Feb 27, 2007 10:28 pm
Location: On the mend in Western Africa

Re: Christening our metalic coffin

Post by Cmdr. Maegil »

ulaidian wrote:
{
"cobra3-trader" =
(...)
weapon_position_starboard = "40.0 2.17 -4.33";
};
"display_name" = "Ulster Dawn";
};
}


Now.. I think I have one too many wee symbols in the script, but that is fixable..
I think it should be like this, but I could be wrong...

Code: Select all

		weapon_position_starboard = "40.0 2.17 -4.33";
		display_name = "Ulster Dawn";
    };
}[/quote] 
however, should this file definately be in the 'add ons' folder? It seems out of place, not being an OXP.
First of all, you should be modifying the cobra3-player, not the trader (or all Cobra MK IIIs will be named like that, as the others are likeships); and if in doubt, copy the code and paste it on Oolite\oolite.app\Resources\Config, inside shipdata-overrides.plist
You know those who, having been mugged and stabbed, fired, dog run over, house burned down, wife eloped with best friend, daughters becoming prostitutes and their countries invaded - still say that "all is well"?
I'm obviously not one of them.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16071
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Christening our metalic coffin

Post by Cody »

Commander McLane wrote:
So what you need to do is: go to your AddOns-folder, create a text file named "shipdata-overrides.plist" there (note: if on Windows, don't use Notepad; Wordpad is fine), and type (or copy & paste) the following in it:

Code: Select all

{
    "cobra3-player" =     {
        "display_name" = "Ulster Dawn";
    };
}
That should be all you need in the file... forget the rest.

Remember to restart Oolite holding the shift key down until the spinning Cobra appears.
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!
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16071
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Christening our metalic coffin

Post by Cody »

Sorry for not being clearer before... I'm caught-up in doing something else atm... heh.
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!
User avatar
ulaidian
Competent
Competent
Posts: 34
Joined: Tue Jan 03, 2012 6:04 pm
Location: Belfast, Northern Ireland

Re: Christening our metalic coffin

Post by ulaidian »

(Edit) Trying what was written whilst I was posting... brb
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16071
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Christening our metalic coffin

Post by Cody »

Just to check... you are using the core Cobra III playership from Oolite, yes? Not from an OXP?
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!
User avatar
ulaidian
Competent
Competent
Posts: 34
Joined: Tue Jan 03, 2012 6:04 pm
Location: Belfast, Northern Ireland

Re: Christening our metalic coffin

Post by ulaidian »

El Viejo wrote:
Just to check... you are using the core Cobra III playership from Oolite, yes? Not from an OXP?
I'm starting anew.. so it will be the core ship.

This is what is now in the shipdate-overrides.plist (the one that is in the config section already)
/* Fixes for known problems in third-party ship data.
*/

{
griff_spacebar_subent_template =
{
is_template = yes;
};
}
{
"cobra3-player" = {
"display_name" = "Ulster Dawn";
};
}
}
BTW.. if we manage to nail this, ie so that even I can do it and understand it, I'll change my opening post with instructions that the layman can understand.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16071
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Christening our metalic coffin

Post by Cody »

Is this the shipdata-overrides.plist that you've created in AddOns? Or the core file from Oolite?
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!
User avatar
maik
Wiki Wizard
Wiki Wizard
Posts: 2020
Joined: Wed Mar 10, 2010 12:30 pm
Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)

Re: Christening our metalic coffin

Post by maik »

you have one too many closing braces in your code
User avatar
ulaidian
Competent
Competent
Posts: 34
Joined: Tue Jan 03, 2012 6:04 pm
Location: Belfast, Northern Ireland

Re: Christening our metalic coffin

Post by ulaidian »

El Viejo wrote:
Is this the shipdata-overrides.plist that you've created in AddOns? Or the core file from Oolite?
The one I created in add ons. The core one I left untouched.. but I realise why you asked.. I C/P what was in the core as well.. I have removed the original bit now, so the that one I created in Add ons just has -
{
"cobra3-player" = {
"display_name" = "Ulster Dawn";
};
}
Is this right? BTW I use Ubuntu, if that makes any difference
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16071
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Christening our metalic coffin

Post by Cody »

ulaidian wrote:
The one I created in add ons. The core one I left untouched..
Good... this is all the shipdata-overrides.plist in AddOns needs to contain (I think):

Code: Select all

{
    "cobra3-player" =     {
        "display_name" = "Ulster Dawn";
    };
}
It may be better to create a folder called 'Config' within AddOns and drop the shipdata-overrides.plist inside that.
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!
User avatar
ulaidian
Competent
Competent
Posts: 34
Joined: Tue Jan 03, 2012 6:04 pm
Location: Belfast, Northern Ireland

Re: Christening our metalic coffin

Post by ulaidian »

El Viejo wrote:
ulaidian wrote:
The one I created in add ons. The core one I left untouched..
Good... this is all the shipdata-overrides.plist in AddOns needs to contain (I think):

Code: Select all

{
    "cobra3-player" =     {
        "display_name" = "Ulster Dawn";
    };
}
It may be better to create a folder called 'Config' within AddOns and drop the shipdata-overrides.plist inside that.

Absolute genius! It worked! :D
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16071
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Christening our metalic coffin

Post by Cody »

'Then my work here is done!'

When you change to an OXP ship, you'll need to alter the

Code: Select all

"cobra3-player"
bit to match the OXP playership'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!
User avatar
ulaidian
Competent
Competent
Posts: 34
Joined: Tue Jan 03, 2012 6:04 pm
Location: Belfast, Northern Ireland

Re: Christening our ship with a personal name..

Post by ulaidian »

I changed the opening post. Thanks for that, it really is appreciated.
User avatar
OneoftheLost
Deadly
Deadly
Posts: 216
Joined: Sat Oct 24, 2009 2:30 pm

Re: Christening our ship with a personal name..

Post by OneoftheLost »

I may have missed it in the op, but be sure to name the text file shipdata-overrides.plist otherwise it wont work. For me anyway.

Thanks for this! I was wondering the same thing!
Profile: Commander Kolt
Ship: Cobra III - Longinus V
Elite Rating:Poor
Location: G1
Post Reply