Change laser colour - now solved.

General discussion for players of Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Change laser colour - now solved.

Post 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
Last edited by Cody on Thu Oct 01, 2009 12:21 pm, edited 1 time in total.
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!
phonebook
Deadly
Deadly
Posts: 229
Joined: Sat Aug 15, 2009 10:28 pm

Post 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
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Post by Cody »

Yes.
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
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post 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.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Post 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
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: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Post by Cody »

Curious... I can change it in trunk but not in 1.73.4.

Comments...
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
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post 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?
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post 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.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Post by Cody »

Thanks Thargoid.

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


Regards
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: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Post by Cody »

And thank you Commander McLane for very useful links.
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!
Post Reply