SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 08-30-11, 05:34 PM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


[REL] SH5/3 Map viewer/gradient editor

Have you ever wanted to change the colors of the map and see those changes in real time? Now you can

How it works:
When the app is loaded everything is using the same gradient (map, selected, and editing) and the Gradients color changer box (indicies) is loaded with colors from that gradient. If you press G to cycle through available gradients then obviously the selected gradient changes. To adjust the colors (indicies) of the selected gradient that you have chosen you have to press the load colors button. Pressing that button will change the editing gradient to the selected gradient. That will load the colors from the selected gradient into the editing colors box. Now when you edit any color index in the gradients editor box it will update the index color and also update the editing gradient so that you can see the change. To apply the editing gradient to the map you have to press the editing gradient's map button. Anytime you press the load colors button the selected gradient will be replaced and all changes are lost.
Pressing any gradient's map button will cause that gradient to be used for rendering of the map and the map will be reshown using it.
Pressing any gradient's save button will save the gradient shown in that gradient box to a file.

Press H (for help) for available commands and how to pan/zoom map

The app has the ability to take screenshots of your work also

6 gradient tga files are included with the app (4 of them are from Nisgeis's work from his nav map mod)

If you prefer to edit/make your own tga gradient files they have to follow these stipulations:
- width 256 pixels
- height 1 pixel
- bit depth of 24bpp

In order to see the gradient and/or changes in game you must save as the game file Terrain.act



v0.0.18: http://www.gamefront.com/files/20729...DarkWraith_zip

TheDarkWraith is offline   Reply With Quote
Old 08-31-11, 06:22 AM   #2
Magic1111
Silent Hunter
 
Join Date: Sep 2008
Location: Germany - Sailing on U-96 in North Atlantic
Posts: 4,518
Downloads: 784
Uploads: 0


Default

Many thanks TDW !!!

Best regards,
Magic
__________________
Magic1111 is offline   Reply With Quote
Old 08-31-11, 07:20 AM   #3
SquareSteelBar
Sea Lord
 
Join Date: May 2006
Location: U-73
Posts: 1,635
Downloads: 632
Uploads: 0
Default

SquareSteelBar is offline   Reply With Quote
Old 08-31-11, 09:46 AM   #4
urfisch
Sea Lord
 
Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,944
Downloads: 42
Uploads: 0
Default

nice seeing you back at sh3 modding...tdw. thanks for this.
__________________


urfisch is offline   Reply With Quote
Old 08-31-11, 11:46 AM   #5
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 5,991
Downloads: 109
Uploads: 2


Default

Awesome, been wanting to change the colours for those in real KM charts for ages
__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote
Old 08-31-11, 01:56 PM   #6
Sailor Steve
Eternal Patrol
 
Sailor Steve's Avatar
 
Join Date: Nov 2002
Location: High in the mountains of Utah
Posts: 44,456
Downloads: 745
Uploads: 249


Default

When I try to load it I get an 'Exception' message and then this:



Quote:
Originally Posted by Hitman View Post
Awesome, been wanting to change the colours for those in real KM charts for ages
Cool. That's all I really want. Can you put it up or mail me a copy when it's done?
__________________
“Never do anything you can't take back.”
—Rocky Russo
Sailor Steve is offline   Reply With Quote
Old 08-31-11, 06:08 PM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by urfisch View Post
nice seeing you back at sh3 modding...tdw. thanks for this.
I'm not modding SH3, I'm modding SH5. I made this for 5 but since everything was 95% similar (except for SH3 uses the Terrain.act file as it's gradient) I ported it over to SH3 also
TheDarkWraith is offline   Reply With Quote
Old 08-31-11, 06:10 PM   #8
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Sailor Steve View Post
When I try to load it I get an 'Exception' message and then this:
There's a Dbgview app included in the package. Run that first (ensure capture Win32 checked) then run the app. I'll need to see output of Dbgview to see why you're getting an exception.
TheDarkWraith is offline   Reply With Quote
Old 08-31-11, 06:34 PM   #9
makman94
Hellas
 
Join Date: Jul 2008
Posts: 2,294
Downloads: 184
Uploads: 7


Default

thank you for this tool ,TDW !
__________________
Knowledge is the only thing that nobody can ever take from you...



Mediafire page:http://www.mediafire.com/folder/da50.../Makman94_Mods
makman94 is offline   Reply With Quote
Old 08-31-11, 06:41 PM   #10
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 5,991
Downloads: 109
Uploads: 2


Default

Quote:
Cool. That's all I really want. Can you put it up or mail me a copy when it's done?
Sure, but I can't tell you when I will do it as I'm busy with other projects, and there are two different colour schemes of real KM charts I have seen so far. One with water in light blue and land in light beige (No different colours for depth/heigth but flat colour as in SH4 land), and another -I tend to favour- with water in light blue and land in white.
__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote
Old 09-02-11, 07:39 AM   #11
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,481
Downloads: 122
Uploads: 1
Quote:
Originally Posted by TheDarkWraith View Post
I'm not modding SH3, I'm modding SH5. I made this for 5 but since everything was 95% similar (except for SH3 uses the Terrain.act file as it's gradient) I ported it over to SH3 also
In the game (SH3) there is Terrain.act file, it's a Color Table - palette (256 colours) for indexed maps... this file is standard file for Color Table of Photoshop.
i think, it's more correct terminology...
...
In classical programming is more correct to use standard graphic table - palette of colors with the ability to edit... with showing changes on the map.



You can use Photoshop to change the Color Table. For example, load height map *. raw... Switch menu item Image-->Mode to Indexed Color (if Indexed Color is unavailable, first switch to Grayscale) ... then select the menu Image-->Mode-->Color Table and load file ..\data\Terrain\Pal\Terrain.act in the Color Table of Photoshop. Using standard tools, you change colors of the map or/and the Color Table and then save the Color Table - palette into file Terrain.act.
...
To better illustrate the interaction of Color Table and indexed map, i used TerrainTypes map (used 48 indexes) in this example:

__________________
Alex ®


Moses said: "Don't create yourself an idol"...

Last edited by Anvart; 09-16-11 at 04:54 AM.
Anvart is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:02 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.