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 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 02-13-09, 02:58 AM   #1
Arclight
Navy Seal
 
Join Date: Jun 2008
Location: Land of windmills, tulips, wooden shoes and cheese. Lots of cheese.
Posts: 8,373
Downloads: 53
Uploads: 10
[REQ] help getting things moving.

Ahoy,

A while back I slapped together a basic mod that added a colored filter to the obs scope. Basic in that it just replaces a single file. A limitation to that approach is that you can only use 1 color at a time; switching color requires quitting the game and switching to a different version of the mod. Ideally, you would be able to switch on the fly to adapt to different lighting conditions.

Hitman mentioned using movable overlays, which would be a brilliant solution. I've been giving it a go, but I'm stumbling around in the dark:

1. Does the file used for the filter need to have any special properties (specific size or something)?
2. I can't make sense of the "Menu_1024_768.ini";

[G2B I150]
Name=Filter_green
Type=1030;Static bmp ; I imagine this is important but don't know what type-setting to use
ItemID=0x2B140003 ; just needs to be unique?
ParentID=0x2B000000 ; wouldn't know what the parent is to this overlay
Pos=0,0,0,0 ; why 4, especially on 2D screen?
Zone=0 0 541 265 0 1 0x32000000 0.5 0 0x3200000f 0 0 0 0 ;not a clue
Color=0xFFFFFFFF
Materials=1 ; number of resources/files?
Display=2;Linear ;?
Mat 0=data/menu/gui/layout/Filter_green.dds
MatFlags=0x9 ;?
TexFmt=0x0 ;?

3. Another problem is getting the overlay on top of everything else, so you don't accidentally hide it behind the mask.



Any help with this would be greatly appreciated. If I bang my head against the wall any more it might result in brain damage... I somehow doubt that would help.
__________________

Contritium praecedit superbia.
Arclight is offline   Reply With Quote
Old 02-13-09, 12:15 PM   #2
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Quote:
Originally Posted by Arclight
Ahoy,

A while back I slapped together a basic mod that added a colored filter to the obs scope. Basic in that it just replaces a single file. A limitation to that approach is that you can only use 1 color at a time; switching color requires quitting the game and switching to a different version of the mod. Ideally, you would be able to switch on the fly to adapt to different lighting conditions.

Hitman mentioned using movable overlays, which would be a brilliant solution. I've been giving it a go, but I'm stumbling around in the dark:

1. Does the file used for the filter need to have any special properties (specific size or something)?
2. I can't make sense of the "Menu_1024_768.ini";

[G2B I150]
Name=Filter_green
Type=1030;Static bmp ; I imagine this is important but don't know what type-setting to use
ItemID=0x2B140003 ; just needs to be unique?
ParentID=0x2B000000 ; wouldn't know what the parent is to this overlay
Pos=0,0,0,0 ; why 4, especially on 2D screen?
Zone=0 0 541 265 0 1 0x32000000 0.5 0 0x3200000f 0 0 0 0 ;not a clue
Color=0xFFFFFFFF
Materials=1 ; number of resources/files?
Display=2;Linear ;?
Mat 0=data/menu/gui/layout/Filter_green.dds
MatFlags=0x9 ;?
TexFmt=0x0 ;?

3. Another problem is getting the overlay on top of everything else, so you don't accidentally hide it behind the mask.



Any help with this would be greatly appreciated. If I bang my head against the wall any more it might result in brain damage... I somehow doubt that would help.
There is an article in here about the file that explains a lot of this info. Right off the top of my head I can't remember the name of the thread. One example is the Parent ID, just do a "find" in the file for that number and in this case you will find it is the ID of the Obs. Periscope. If I remeber right the zone has to do with the placement and the four numbers are the upper left and lower right coordinates. Problem is that sometimes the numbers are not from the edge of the screen but in relation to another object.

Just found it "Deconstructing the menu_1024_768.ini file items"

Link:
http://www.subsim.com/radioroom/show...ini+file+items

That should answer most of the questions and get you going in the right direction.

Peabody
__________________

System Spec: Gigabyte GA-965P-DS3, PentiumD Dual Core Presler 945 3.4Ghz, Gigabyte Geforce 7600GS, 2-1GB Corsair XMS2 800Mhz in Dual Channel, 2-WD 250 SATA 3Gb/s, Onboard Realtek HD 7.1 Audio, DVD ROM, DVD burner, Hiper 580 Watt Power supply, WinXP SP2.

peabody is offline   Reply With Quote
Old 02-13-09, 03:01 PM   #3
Arclight
Navy Seal
 
Join Date: Jun 2008
Location: Land of windmills, tulips, wooden shoes and cheese. Lots of cheese.
Posts: 8,373
Downloads: 53
Uploads: 10
Default

Ah, excellent. Thanks a lot, much appreciated.

I'm sure I'll have more questions, but this should keep me busy for a while.
__________________

Contritium praecedit superbia.
Arclight is offline   Reply With Quote
Old 02-26-09, 06:08 PM   #4
Arclight
Navy Seal
 
Join Date: Jun 2008
Location: Land of windmills, tulips, wooden shoes and cheese. Lots of cheese.
Posts: 8,373
Downloads: 53
Uploads: 10
Default

It was brought to my attention that the current mod screws up the German obs. scope. A fix for stock 1.5 is released and I'm working on the rest. This matter raised a question:

Did the U-boats have a similar device (selectable colored filters as part of a ray-filter assembly)?

If anyone has an answer to this question or can point me in the right direction, it would be greatly appreciated.
__________________

Contritium praecedit superbia.
Arclight 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.