Page 2 of 3

Re: Christening our metalic coffin

Posted: Sat Jan 14, 2012 3:25 pm
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.

Re: Christening our metalic coffin

Posted: Sat Jan 14, 2012 3:31 pm
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

Re: Christening our metalic coffin

Posted: Sat Jan 14, 2012 3:47 pm
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.

Re: Christening our metalic coffin

Posted: Sat Jan 14, 2012 3:48 pm
by Cody
Sorry for not being clearer before... I'm caught-up in doing something else atm... heh.

Re: Christening our metalic coffin

Posted: Sat Jan 14, 2012 3:51 pm
by ulaidian
(Edit) Trying what was written whilst I was posting... brb

Re: Christening our metalic coffin

Posted: Sat Jan 14, 2012 3:53 pm
by Cody
Just to check... you are using the core Cobra III playership from Oolite, yes? Not from an OXP?

Re: Christening our metalic coffin

Posted: Sat Jan 14, 2012 3:59 pm
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.

Re: Christening our metalic coffin

Posted: Sat Jan 14, 2012 4:05 pm
by Cody
Is this the shipdata-overrides.plist that you've created in AddOns? Or the core file from Oolite?

Re: Christening our metalic coffin

Posted: Sat Jan 14, 2012 4:06 pm
by maik
you have one too many closing braces in your code

Re: Christening our metalic coffin

Posted: Sat Jan 14, 2012 4:11 pm
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

Re: Christening our metalic coffin

Posted: Sat Jan 14, 2012 4:15 pm
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.

Re: Christening our metalic coffin

Posted: Sat Jan 14, 2012 4:21 pm
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

Re: Christening our metalic coffin

Posted: Sat Jan 14, 2012 4:24 pm
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.

Re: Christening our ship with a personal name..

Posted: Sat Jan 14, 2012 4:39 pm
by ulaidian
I changed the opening post. Thanks for that, it really is appreciated.

Re: Christening our ship with a personal name..

Posted: Mon Jan 16, 2012 6:26 pm
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!