Forum Index
SUBSIM Forum Search

The Web's #1 BBS for all submarine and naval simulations!
[ SUBSIM Review ] [ SUBSIM STORE ]
Current Forum | Archives 2002-2003 |

Sonar contact lines and "Tails" - Colour info
Goto page 1, 2, 3  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> SH3 Mods Workshop
View previous topic :: View next topic  
Author Message
oRGy



Joined: 21 Apr 2005
Posts: 644

PostPosted: Tue Oct 11, 2005 7:34 am    Post subject: Sonar contact lines and "Tails" - Colour info Reply with quote

Hi;

For the next version of Improved U-Boat I've changed from the RuB model of contact lines and tails to a sort of 'vaguer SH3' style, where you the ship contact tails and icons are all there, but are only in black, so you still have to manually id' the ship to tell if its friendly, neutral, or enemy.

Now this was surprisingly easy, but doing this had the side-effect of making the sonar lines of warships the same colour (black) as merchants. Now, I am not altogether sure this is a bad thing, but I was wondering if there was a more elegant way to do this that would allow one to keep the sonar lines of warships red... The problem is that the file contline.tga is used for sonar lines, ship 'tails', and other things.

Any chance the colour info for all these things is stored in some easily accessible cfg file, or does anyone have some interesting tidbits of information?
Back to top
View user's profile Send private message Send e-mail
Kpt. Lehmann



Joined: 25 Jul 2005
Posts: 1665
Location: Texas, USA

PostPosted: Tue Oct 11, 2005 8:24 am    Post subject: Re: Sonar contact lines and "Tails" - Colour info Reply with quote

oRGy wrote:
For the next version of Improved U-Boat I've changed from the RuB model of contact lines and tails to a sort of 'vaguer SH3' style, where you the ship contact tails and icons are all there, but are only in black, so you still have to manually id' the ship to tell if its friendly, neutral, or enemy.

Now this was surprisingly easy, but doing this had the side-effect of making the sonar lines of warships the same colour (black) as merchants. Now, I am not altogether sure this is a bad thing, but I was wondering if there was a more elegant way to do this that would allow one to keep the sonar lines of warships red... The problem is that the file contline.tga is used for sonar lines, ship 'tails', and other things.


Rock Rock Rock I have hoped for a LONG time that there would be a mod that would do this! Way to go oRGy. I think the lines all being the same color is a GOOD thing. Besides if you take a moment to listen to the hydro yourself... there is no mistaking the high-speed screw sounds of the DD's...

...and I think that is really the only ship you need to worry about 98% of the time.

Thumbs Up Thumbs Up Thumbs Up
Back to top
View user's profile Send private message
Kpt. Lehmann



Joined: 25 Jul 2005
Posts: 1665
Location: Texas, USA

PostPosted: Tue Oct 11, 2005 8:40 am    Post subject: Reply with quote

Could you might release that as a separate mod or describe how we can build it? I'd like to go ahead and use it to get the feel for it.

... unless you feel it is "Top Secret." Cool
Back to top
View user's profile Send private message
oRGy



Joined: 21 Apr 2005
Posts: 644

PostPosted: Tue Oct 11, 2005 12:45 pm    Post subject: Reply with quote

It's quite simple - open contline.tga and dashline.tga (in /data/menu/gui or thereabouts), with photoshop, invert colours, and save.

For the little "hand drawn ship" icons in the extreme zoomed in view, you do the same... they're in /data/Sea/whatever, and are usually called something like NBB_Blah_shp.tga. Also do this for submarines, etc. In RuB default these are blanked out so you don't see them.
Back to top
View user's profile Send private message Send e-mail
Kpt. Lehmann



Joined: 25 Jul 2005
Posts: 1665
Location: Texas, USA

PostPosted: Tue Oct 11, 2005 12:49 pm    Post subject: Reply with quote

oRGy wrote:
It's quite simple - open contline.tga and dashline.tga (in /data/menu/gui or thereabouts), with photoshop, invert colours, and save.

For the little "hand drawn ship" icons in the extreme zoomed in view, you do the same... they're in /data/Sea/whatever, and are usually called something like NBB_Blah_shp.tga. Also do this for submarines, etc. In RuB default these are blanked out so you don't see them.


Cool! Can I do the same thing in Irfanview by "converting to greyscale?"
Back to top
View user's profile Send private message
oRGy



Joined: 21 Apr 2005
Posts: 644

PostPosted: Tue Oct 11, 2005 1:00 pm    Post subject: Reply with quote

I don't think so - they have an alpha channel for transparency.
Back to top
View user's profile Send private message Send e-mail
Kpt. Lehmann



Joined: 25 Jul 2005
Posts: 1665
Location: Texas, USA

PostPosted: Tue Oct 11, 2005 1:05 pm    Post subject: Reply with quote

Well crud... that cuts me out since I don't have photoshop.

I'll give it a shot though... if it causes a CTD... that will be the answer... will post back.

I love the idea though... It still causes you to identify cons without losing them from the map alltogether... I mean your watch crew SHOULD be watching and have an easier time of identifying the close cons.
Back to top
View user's profile Send private message
Kpt. Lehmann



Joined: 25 Jul 2005
Posts: 1665
Location: Texas, USA

PostPosted: Tue Oct 11, 2005 1:41 pm    Post subject: Reply with quote

HEY IT WORKS!!! I just used "decrease color depth" instead of "convert to greyscale" and set it to "2" (black and white) in Irfanview.

Sonar contact lines for all merchant ships and warships are now black fading to grey... will do the same for subs later too.

Later I will convert all contact colors to be the same...

NOW you will have to be reeeeaally careful not to torp neutral ships! Razz

oRGy, If I get to it quick enough would you mind if I put these files together as a mod and credited you? (It might be 2-3 days, maybe tonight if the forum slows down.)
Back to top
View user's profile Send private message
oRGy



Joined: 21 Apr 2005
Posts: 644

PostPosted: Tue Oct 11, 2005 1:47 pm    Post subject: Reply with quote

I don't mind at all. Smile

Remember you'll have to edit the icons for all ships, subs, and planes.
Back to top
View user's profile Send private message Send e-mail
Kpt. Lehmann



Joined: 25 Jul 2005
Posts: 1665
Location: Texas, USA

PostPosted: Tue Oct 11, 2005 1:56 pm    Post subject: Reply with quote

oRGy wrote:
I don't mind at all. Smile

Remember you'll have to edit the icons for all ships, subs, and planes.


Roger that and thanks... lol I would have forgotten the planes. :sunny:
Back to top
View user's profile Send private message
Kpt. Lehmann



Joined: 25 Jul 2005
Posts: 1665
Location: Texas, USA

PostPosted: Tue Oct 11, 2005 10:14 pm    Post subject: Reply with quote

Well oRGy,

I just spent 3 hours repeating the above for all planes, subs, and boats....

Damn Damn Damn

I think part of the problem was I overlayed stock _shp tga's with RUb 1.44 files before reducing them to two colors.

I wound up with only little boxes for cons with no tails... and NO cons at all at short range. No offense Beery, but that's quite backwards.

Sonar lines still work though.

I've been chasing "all grey cons" since I first started watching this forum. :shifty:

I'll do some more experimenting tonight, but won't be able to come back to it until Thursday when I get back from work.
Back to top
View user's profile Send private message
Rubini



Joined: 13 May 2005
Posts: 1149
Location: São Paulo Brazil

PostPosted: Tue Oct 11, 2005 10:24 pm    Post subject: Reply with quote

Hi oRGy,
Hi Kpt. Lehmann,

I think that you have to release this work for the stock game too. It's a must have one!
Please release it! Rock Rock


Rubini.
Back to top
View user's profile Send private message Send e-mail
Kpt. Lehmann



Joined: 25 Jul 2005
Posts: 1665
Location: Texas, USA

PostPosted: Tue Oct 11, 2005 11:53 pm    Post subject: Reply with quote

Rubini wrote:
Hi oRGy,
Hi Kpt. Lehmann,

I think that you have to release this work for the stock game too. It's a must have one!
Please release it! Rock Rock


Rubini.


No worries Admiral Rubini sir! We will keep at it. :sunny:

I am going to try doing a stock version first to practice a bit.
Back to top
View user's profile Send private message
Kpt. Lehmann



Joined: 25 Jul 2005
Posts: 1665
Location: Texas, USA

PostPosted: Thu Oct 13, 2005 8:13 am    Post subject: Reply with quote

I will be back at work on this topic late today. :know:
Back to top
View user's profile Send private message
Gairith



Joined: 09 May 2005
Posts: 127

PostPosted: Thu Oct 13, 2005 11:57 am    Post subject: Reply with quote

Myros made a mod like this awhile back, still works with SH3 v1.4b and RUB v1.43

http://www.subsim.com/phpBB/viewtopic.php?t=32213
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> SH3 Mods Workshop All times are GMT - 5 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group