Page 2 of 2

Re: Changing Laser Color

Posted: Wed Jul 27, 2011 5:45 pm
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)

Re: Changing Laser Color

Posted: Thu Jul 28, 2011 12:44 am
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 :)

Re: Changing Laser Color

Posted: Thu Jul 28, 2011 5:04 am
by Captain Neebs
I know, I felt like a dunce for trying to shift-startup from the quicklaunch in osx.

Re: Changing Laser Color

Posted: Thu Jul 28, 2011 7:19 am
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. :?

Re: Changing Laser Color

Posted: Fri Jul 29, 2011 6:08 am
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.




Re: Changing Laser Color

Posted: Fri Jul 29, 2011 6:16 am
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.


Re: Changing Laser Color

Posted: Sat Jul 30, 2011 2:57 am
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?

Re: Changing Laser Color

Posted: Sun Jul 31, 2011 9:52 am
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.




Re: Changing Laser Color

Posted: Sun Jul 31, 2011 10:23 am
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...

Re: Changing Laser Color

Posted: Sun Jul 31, 2011 12:29 pm
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.






Re: Changing Laser Color

Posted: Sun Jul 31, 2011 12:35 pm
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!

Re: Changing Laser Color

Posted: Sun Jul 31, 2011 12:39 pm
by DaddyHoggy
Try this thread: https://bb.oolite.space/viewtopic.php?t=8206

We've been here before...

Re: Changing Laser Color

Posted: Sun Jul 31, 2011 12:46 pm
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: