Page 1 of 1

Change laser colour - now solved.

Posted: Thu Oct 01, 2009 11:15 am
by Cody
I think this has been covered, but I can't find it (as usual).

Can I change my laser colour? I've tried changing it in config etc. but no luck.

I have a very specific reason to want to do this, related to "my poor old eyes".
I'm flying a Griff Cobra Mk III. 1.73.4 on PC.


Regards

Posted: Thu Oct 01, 2009 11:19 am
by phonebook
are you clearing the cache by loading oolite while pressing the shift key?- the shipsdata plist doesnt seem to update unless you do that

Posted: Thu Oct 01, 2009 11:30 am
by Cody
Yes.

Posted: Thu Oct 01, 2009 11:42 am
by Thargoid
Yes, via the key in shipdata.plist.

For example laser_color = "blueColor"; (for openstep coding, use the normal angle-brackets equivalent for XML) will turn your laser blue. Note the spelling of color in both places though.

Posted: Thu Oct 01, 2009 11:50 am
by Cody
Hi Thargoid.

I've tried that in Oolite/resources/config/shipdata.plist cobra3-player (is that correct) and in Griff's equivalent. I'll go back and keep trying.

Cheers

Posted: Thu Oct 01, 2009 12:07 pm
by Cody
Curious... I can change it in trunk but not in 1.73.4.

Comments...

Posted: Thu Oct 01, 2009 12:11 pm
by Thargoid
The change has to be in the shipdata.plist entry for the ship you're flying, in this case the Griff Cobra III.

I don't know how he has set this one up, but if it's via a shipdata.plist entry that uses a "like_ship = " type key to copy data from the original, then it should go in that entry, not the original one (ie the "top level" entry).

It does work in v1.73.4 on XP, I use it for my player ships in Aquatics for example. Maybe try one of those and confirm on your set-up that the lasers are the colours they should be from the shipdata.plist.

Also please post your modified shipdata.plist code entry so we can check it?

Posted: Thu Oct 01, 2009 12:13 pm
by Commander McLane
Just follow the hint in the Shipdata.plist-documentation and the colour specifier-documentation linked therein.

Note: If you use an illegal colour specifier, Oolite will ignore it and fall back to the default red laser colour.

Posted: Thu Oct 01, 2009 12:20 pm
by Cody
Thanks Thargoid.

It was the second entry further down. All is now well.


Regards

Posted: Thu Oct 01, 2009 12:28 pm
by Cody
And thank you Commander McLane for very useful links.