Changing Laser Color

General discussion for players of Oolite.

Moderators: winston, another_commander

User avatar
Captain Neebs
Above Average
Above Average
Posts: 17
Joined: Sat Aug 01, 2009 5:33 am
Location: Navy Secom

Re: Changing Laser Color

Post by Captain Neebs »

I guess I wasn't holding the shift properly. I was doing this 1am my time, so I was tired. Was trying to hold shift from "quickstart" ... duhhhhh. I didn't have to remove oxps or anything. I settled on (0.3, 1, 0.3, 0.9)
Watch out Galactic associates.. Qbomb down the hatch.
Makara
Dangerous
Dangerous
Posts: 122
Joined: Sat Oct 17, 2009 6:34 pm

Re: Changing Laser Color

Post by Makara »

Glad to know you got it working. "Shift-launch" is one of those pieces of Oolite jargon that took me a while to figure out & get right.

An alternative is to restrict to Strict play, then switch back to Unrestricted. That works for most, but not all (e.g. changes in external views), changes you make to OXPs. The shift-launch catches them all :)
User avatar
Captain Neebs
Above Average
Above Average
Posts: 17
Joined: Sat Aug 01, 2009 5:33 am
Location: Navy Secom

Re: Changing Laser Color

Post by Captain Neebs »

I know, I felt like a dunce for trying to shift-startup from the quicklaunch in osx.
Watch out Galactic associates.. Qbomb down the hatch.
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Changing Laser Color

Post by Eric Walch »

Captain Neebs wrote:
I know, I felt like a dunce for trying to shift-startup from the quicklaunch in osx.
And when you work very often on oxps you can set the hidden preferences to:

Code: Select all

always-flush-cache = true
. That way the cache is cleared on every start. On a fast machine it takes only a few seconds more to start-up but you never have to worry again about that shift-key.

I only encountered one time that it fully went wrong. I could not clear my cache at all, how often I tried. The log said is was cleared but none of my changes was accepted. At the end it took a restart of my computer before the changes were recognised. :?
Last edited by Eric Walch on Fri Jul 29, 2011 7:17 am, edited 1 time in total.
User avatar
greenseng
Dangerous
Dangerous
Posts: 125
Joined: Thu May 19, 2011 3:27 am

Re: Changing Laser Color

Post by greenseng »

Captain Neebs wrote:
I guess I wasn't holding the shift properly. I was doing this 1am my time, so I was tired. Was trying to hold shift from "quickstart" ... duhhhhh. I didn't have to remove oxps or anything. I settled on (0.3, 1, 0.3, 0.9)



Welcome to the club. 8)

I always have problems with saying goodnight to my computer and have a healthy sleep.

Anyway, I am rather thankful to you because before I give a suggestion I always test the suggestion in practice myself.
And because of that I now have a rather beautiful Laser-color.

I first tested green and was rather pleased with it. Actually it matches my "name" somehow. :D

But then I found blue. And it is much more "alive" then the blue used in First Encounter.
So now I feel like an artist when taking down a pirate.

And I always wondered: why are there 4 coords when making a color? With RGB only 3 would be needed.
But stupid me of course forgot about the alpha-channel. That I guess handles the level of transparancy.
At least I think it is the alpha-channel. I have not tested it yet.



User avatar
greenseng
Dangerous
Dangerous
Posts: 125
Joined: Thu May 19, 2011 3:27 am

Re: Changing Laser Color

Post by greenseng »

Eric Walch wrote:
And when you work very often on oxps you can set the hidden preferences to:

Code: Select all

always-flush-cache = true
That way the cache is cleared on every start. On a fast machine it takes only a few seconds more to start-up but you never have to worry again about that shift-key.


That was a suggestion worth gold.

I didn't think I would put some work on oxp-s.
But... who knows. It looks like rather fun.

User avatar
Captain Neebs
Above Average
Above Average
Posts: 17
Joined: Sat Aug 01, 2009 5:33 am
Location: Navy Secom

Re: Changing Laser Color

Post by Captain Neebs »

I think a green laser suites me quite nicely, considering I attack everyone. Unless I got no fuel, then I'll stick with fighting DS pirates and gal cop until I successfully sun skim.

I would like to add my pilot to the ooniverse. I'd have to learn some stuff first though, that's for sure.

edit: oh almost forgot, that suggestion is worth something! And blue sounds nice too, did you settle on the word blue or alpha version?
Watch out Galactic associates.. Qbomb down the hatch.
User avatar
greenseng
Dangerous
Dangerous
Posts: 125
Joined: Thu May 19, 2011 3:27 am

Re: Changing Laser Color

Post by greenseng »

Captain Neebs wrote:
I think a green laser suites me quite nicely, considering I attack everyone. Unless I got no fuel, then I'll stick with fighting DS pirates and gal cop until I successfully sun skim.

I would like to add my pilot to the ooniverse. I'd have to learn some stuff first though, that's for sure.

edit: oh almost forgot, that suggestion is worth something! And blue sounds nice too, did you settle on the word blue or alpha version?


I have experimented some with the alpha-value. But I cannot detect any differences.
I have probably misunderstood something or got the total meaning here wrong.

One positive thing came out of it though. When I tried take some snapshots of the shooting with the values, and compare the pictures, it didn't work.
No snapshots what so ever.

It is probably because my system is swedish. This was not the first time I experienced a problem with a swedish system.
By changing the ASCII-code to 42 in key_snapshot in keyconfig.plist and using shift-8, I could finally take some snap-shots.
They will enter a folder in \Oolite1.75.3\oolite.app\oolite-saves .
For an english keyboard I presume that pressing * simply will do the trick.
But I don't know here. I have seen references to shift-8 there too.
And I don't know what shift-8 on an englisk keyboard actually refers to.

But I am fully satisfied with blueColor even if I have no idea what the values for this reference is.



User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Re: Changing Laser Color

Post by DaddyHoggy »

Hi Greenseng, I guess Ahruman would be the one to confirm this as he's also Swedish and I presume uses a Swedish Keyboard. One thing I do recall is it's something to do with not just the key, but it's equivalent position on a US Keyboard, so some keys are completely different because they're just not in the same place on a non-US keyboard (might not even be present)

The thing I also recall was that on my UK keyboard Shift+8 = '*' does take a screenshot, BUT, '*' on the Numeric keyboard does/did not...
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
greenseng
Dangerous
Dangerous
Posts: 125
Joined: Thu May 19, 2011 3:27 am

Re: Changing Laser Color

Post by greenseng »

DaddyHoggy wrote:
Hi Greenseng, I guess Ahruman would be the one to confirm this as he's also Swedish and I presume uses a Swedish Keyboard. One thing I do recall is it's something to do with not just the key, but it's equivalent position on a US Keyboard, so some keys are completely different because they're just not in the same place on a non-US keyboard (might not even be present)

The thing I also recall was that on my UK keyboard Shift+8 = '*' does take a screenshot, BUT, '*' on the Numeric keyboard does/did not...


Hi DaddyHoggy! :)

On a swedish keyboard shift-8 apparently refers to "(" as I used it right now. That is: a parenthesis.

Sometimes the Numeric keyboard seems to be cut-off. Maybe the reason can be how "deep" the programmer goes into the operative-systems routines.
If we are dealing with many operative-systems it may sometimes be positive to bypass the "pad" because of easier compatibility.
Apparently the program refers to an english system. As a "star" has the ascii-code 42 and if I change the code to anything else, it does not work.
Still the key on the keyboard shows a Parenthesis.

But if I take the key that actually refers to a "star" on a swedish keyboard - nothing happens.

One can of course use one of those routines in the operative-system that only senses the key(s) pressed and don't care about any ascII-code.
But then other problems may occure.





User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Re: Changing Laser Color

Post by DaddyHoggy »

Sound like fun! :?

I think it's something to do with having a library that works across all three OSes (i.e. Windows, *nix, Mac) there's a presumption about keyboard layout and corresponding key. This has definitely been explained before, I may have to use my Google foo, to see if I can find it!
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Re: Changing Laser Color

Post by DaddyHoggy »

Try this thread: https://bb.oolite.space/viewtopic.php?t=8206

We've been here before...
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
greenseng
Dangerous
Dangerous
Posts: 125
Joined: Thu May 19, 2011 3:27 am

Re: Changing Laser Color

Post by greenseng »

DaddyHoggy wrote:
Try this thread: https://bb.oolite.space/viewtopic.php?t=8206

We've been here before...


This was great news!! :idea:

Post Reply