Different color for non hostiles with bounty?

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Screet
---- E L I T E ----
---- E L I T E ----
Posts: 1883
Joined: Wed Dec 10, 2008 3:02 am
Location: Bremen, Germany

Different color for non hostiles with bounty?

Post by Screet »

Hi,

I just made some very easy update to my scanner, took three lines.

Now it does use an additional color (orange) to help distinguish between non hostile "clean" ships and those with a bounty on their head: The clean stay yellow while those with a bounty are shown in orange.

Could even get some easy tweak to show "fugitives" in another color ;)

Anyone interested?

TBD: use a different color than orange? It's not that bright...but already makes decisions very much easier ;)

Screet
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

..

Post by Lestradae »

Would it be possible to create an oxp/patch that delivered this option as equipment?
Screet
---- E L I T E ----
---- E L I T E ----
Posts: 1883
Joined: Wed Dec 10, 2008 3:02 am
Location: Bremen, Germany

Re: ..

Post by Screet »

Lestradae wrote:
Would it be possible to create an oxp/patch that delivered this option as equipment?
It should be easy to check for "advanced scanner" equipment or add it to bounty scanner functionality.

Screet
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Post by pagroove »

Yes make it buyable
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6645
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

Eh... guys, you need to have a modified exe to be able to use it, even in OXP form.
Screet
---- E L I T E ----
---- E L I T E ----
Posts: 1883
Joined: Wed Dec 10, 2008 3:02 am
Location: Bremen, Germany

Post by Screet »

another_commander wrote:
Eh... guys, you need to have a modified exe to be able to use it, even in OXP form.
That's why I asked wether people are interested in this. I'm not the one to make changes to the codebase yet, but I'd gladly tell which modification I did. Currently only three lines :)

The change is really a minimal and easy one, yet something I've missed all the time ;)

I suggest to add it, if more people like it...and I also suggest to make it eq dependant, although I don't yet know entirely how to do that. Currently, it simply changes the common visual feedback.

OT: Vista just reinstalled...now going for all the drivers and configuration. Funny thing is that when I tried to make a first test boot of the board, it did even boot up the old Vista installation, although that was for a different MoBo/CPU combination!

Screet
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6311
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Post by Diziet Sma »

Well Screet.. I'm very interested.. anything that makes the scanner more useful has got to be good.. 8) :D
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
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 »

I'd like to see a different colour for Escape Pods. In a cloud of debris it can be difficult to pick out the pod.

OT. Do tell, Screet. Which Mobo/CPU?
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!
Screet
---- E L I T E ----
---- E L I T E ----
Posts: 1883
Joined: Wed Dec 10, 2008 3:02 am
Location: Bremen, Germany

Post by Screet »

El Viejo wrote:
I'd like to see a different colour for Escape Pods. In a cloud of debris it can be difficult to pick out the pod.
Surely interesting, but might be a bit more difficult - as that would require further checks on what is shown.

Currently, I only had to modify the default non-hostile ship handling by adding an if for a ships bounty and a color that would be used ;)
El Viejo wrote:
OT. Do tell, Screet. Which Mobo/CPU?
MSI Eclipse SLI and Core i7 - that's why I was so astonished that after removing the Asus M3A / AMD Phenom 9500 Vista did boot at all!

The old combo had some problem which rapidly grew: It was causing hardware based blue screens and the sound output had been affected with electric noise, especially when the CPU was in use. I was able to stabilize it by increasing the Mobo voltage to over 30% above specs (I did not OC that machine!) but that did result in even more noise on sound output. The power sensors all did report normal operation, thus there must be something wrong behind those sensors...and last year the power supply of my old computer blew up because of faulty components - the room still smells. Given that it was an early stepping of the Phenom with a nasty bug that leads (via a non optional OS update) to 50% reduced CPU power, I did not like to simply replace the board and continue, thus I finally did rid myself of this AMD crap. While the Asus board had cheaper parts which can also blow up (which I was afraid of) the MSI Eclipse does not have that sort of "technology". Really feels better now...

Still configuring this system...but Vista was even functional without additional drivers 8)

Screet
User avatar
Sendraks
---- E L I T E ----
---- E L I T E ----
Posts: 404
Joined: Tue Jun 02, 2009 1:43 pm
Location: Leeds UK

Post by Sendraks »

The corei7 is such and easy chip to OC. While the 920 isn't cheap, the performance boost you can get out of it makes it worth it, even for a novice OCer like myself.
Screet
---- E L I T E ----
---- E L I T E ----
Posts: 1883
Joined: Wed Dec 10, 2008 3:02 am
Location: Bremen, Germany

Post by Screet »

OK, I've had quite some time with it and I won't want to miss it anymore.

Here's the change required to draw non-hostile ships with bounty on them in a different color:

Code: Select all

ShipEntity.m
- (GLfloat *) scannerDisplayColorForShip:(ShipEntity*)otherShip :(BOOL)isHostile :(BOOL)flash
[...]
		default :
			if (isHostile)
				return hostile_color;
			else if (bounty > 0)
				return bounty_color;
and add this to the color definitions above that method:

Code: Select all

static GLfloat bounty_color[4] = 	{ 1.0, 0.66, 0.0, 1.0};	// orange
I really can recommend this change. It helps very much to understand the situation one is in. Should this be added, it might well be a good idea to link this to a required scanner enhancement.

Screet
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

..

Post by Lestradae »

I would second this change as an oxp-able core game option.

Imo it's interesting, not overpowering, would add to the game and Screet served it on a silver platter :wink:

8)

L
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6645
Joined: Wed Feb 28, 2007 7:54 am

Re: ..

Post by another_commander »

Lestradae wrote:
I would second this change as an oxp-able core game option.

Imo it's interesting, not overpowering, would add to the game and Screet served it on a silver platter :wink:

8)

L
In order for this to be oxp-able, we need on a silver platter the code that makes it a)an equipment piece and b)visible to JS as well.
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

Re: ..

Post by Lestradae »

another_commander wrote:
Lestradae wrote:
I would second this change as an oxp-able core game option.

Imo it's interesting, not overpowering, would add to the game and Screet served it on a silver platter :wink:
In order for this to be oxp-able, we need on a silver platter the code that makes it a)an equipment piece and b)visible to JS as well.
Screet? Pretty please? :D
Screet
---- E L I T E ----
---- E L I T E ----
Posts: 1883
Joined: Wed Dec 10, 2008 3:02 am
Location: Bremen, Germany

Re: ..

Post by Screet »

another_commander wrote:
In order for this to be oxp-able, we need on a silver platter the code that makes it a)an equipment piece and b)visible to JS as well.
If you do want it then, I'll write a bit more code for it ;)

Screet
Post Reply