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 > Silent Hunter 4: Wolves of the Pacific > SH4 ATO Mods
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 09-24-09, 05:46 PM   #1
karamazovnew
The Old Man
 
Join Date: Mar 2009
Location: Bucharest, Romania
Posts: 1,403
Downloads: 151
Uploads: 0


Default

Thanks makman but it can't work. Your mod is for SH3 and all the rules have changed... Apparently the only solution is to have it in all periscope pages... I even tried to make a NEW page, but it didn't load for the germans
karamazovnew is offline   Reply With Quote
Old 09-24-09, 06:58 PM   #2
makman94
Hellas
 
Join Date: Jul 2008
Posts: 2,325
Downloads: 182
Uploads: 7


Default

Quote:
Originally Posted by karamazovnew View Post
Thanks makman but it can't work. Your mod is for SH3 and all the rules have changed... Apparently the only solution is to have it in all periscope pages... I even tried to make a NEW page, but it didn't load for the germans
then ....just an idea....if you can make it slideout then you can rearrange the dials on the panel and make it ,when it slides back, to stop in a position that only the bearing and aob dials to be visible .you think slideout option is possible?
__________________
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 09-25-09, 06:52 AM   #3
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 6,099
Downloads: 109
Uploads: 2


Default

Quote:
Apparently the only solution is to have it in all periscope pages
I did that in SH3 with my mod and it's not that much work, because I simply used the replace function to change the proper values for observation scope and uzo. The main problem you will have, however, is that you will need to move and resize the scope view, as otherwise the TDC will not fit to the right; it would cover a part of the lense.
__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote
Old 10-06-09, 06:09 AM   #4
karamazovnew
The Old Man
 
Join Date: Mar 2009
Location: Bucharest, Romania
Posts: 1,403
Downloads: 151
Uploads: 0


Default

Good news. After a week of wasting time I've managed to integrate the tdc into the attack periscope screen. It sits on the notepad so it can be hidden from view. All dials work great, I just hope I can find a way to create an AutoTDC button on it, but I have not had any success so far. By the way, untill I have ALL the items in place, I won't bother with making the thing look pretty (colors, contrast, scratches, chiped paint, glass blur etc.)
Here's a 1920x1200 game screenshot. The image files used are actually calibrated for this size so there's no scaling of the images. They look best at this particular resolution (or 1600x1200).


And here's a screenshot at 1024x768. The relative sizes are the same as for 1600:1200. As you can see it only takes up as much space as the notepad did. The scope view is not obstructed too much. The vernier dials eliminated the need for a low rez version of the mod. The game does a better job at rescaling the files than photoshop can do



And just in case you didn't believe me, here's a screenshot after I've hidden the panel. (no, I haven't changed the "handle" image yet)



So, after I put in the static highlights overlay and the fake dials for the moving shadows and eliminate any possibility of a autoupdate button, I'll post a ready to use alpha version for all to play with untill I put in the torpedo panel.
karamazovnew is offline   Reply With Quote
Old 10-06-09, 09:22 AM   #5
Tomi_099
The Old Man
 
Join Date: May 2007
Location: München / Germany
Posts: 1,486
Downloads: 426
Uploads: 0
RESPECT !!
A lot of work!




my friend
__________________
http://www.thegreywolves.com
Tomi_099 is offline   Reply With Quote
Old 10-06-09, 10:06 AM   #6
karamazovnew
The Old Man
 
Join Date: Mar 2009
Location: Bucharest, Romania
Posts: 1,403
Downloads: 151
Uploads: 0


Default

Thanks Tomi, it's not that much work but I need to be veery careful on each step.

Now here's a question: has anyone managed to create a working button in the Periscope screens? Here's what I've found so far.
I've stated multiple times before that the commands.cfg files no longer links commands to interface items. I was wrong. That file works exactly the same as in SH3. In both, you can only link commands to items in the layout page (G3F). For example:

[Cmd194]
Name=Periscope_depth
Ctxt=1
MnID=0x3F050009
Str=1032
Key0=0x50,C,"P"

I have managed to make a working button in the layout page by simply copying a working button (the unused pause button). In red is the neccesary part for receiving the command and in green are "useless" parts. As you can see there's no need for BmpState or other lines that were used for BmpArrays(dials). From what I just tested, any other combination, any other type of item will no longer accept commands from the cfg file.
[G3F I412]
Name=Pause
Type=1032;Button
ItemID=0x3F030FFF
ParentID=0x3F000000
Pos=309,0,100,100
Zone= 309 768 100 100 1 1 0x3F000000 1 0 0x3F030FFF 0 0 0 0
Color=0xFFFFFF32
Materials=4
Display=2;Linear
Mat 0=data/menu/gui/layout/bkgr.tga
Mat 1=data/menu/gui/layout/bkgr.tga
Mat 2=data/menu/gui/layout/bkgr.tga
Mat 3=data/menu/gui/layout/bkgr.tga
MatFlags=0x1
TexFmt=0x0
Font=4
Text=2708
TextFlags=0x1
StatesColors=0xB0B0B0FF, 0xAAAAAAFF, 0xFFFFFFFF, 0xFFFF00FF
ToolTipText=2210
ToolTipBox=0x3F01000E, 0x0


So I've tried to parent the item to the notepad. But the game screamed at me that it can't find that id. So then I tried to just use the notepad as a position parent. That screwed the position, I can't seem to place any item above the middle of the screen and of course, the button doesn't move with the TDC (notepad). I've placed the item in the periscope page (but kept it's id), the button is placed correctly but it doesn't recieve the command. So... case closed. Yes I can mimic what OLC did and put the Autoupdate button in the layout page, but it will be easier to just make an Order button in the Periscope Page of the Order Bar. Too bad the only reminder that the autoupdate is on/off will be the clicking sounds when you move the periscope (and the order button itself).

Last edited by karamazovnew; 10-06-09 at 11:34 AM.
karamazovnew is offline   Reply With Quote
Old 10-06-09, 11:33 AM   #7
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 6,099
Downloads: 109
Uploads: 2


Default

Excellent work

A good reason to switch finally to SH4 for U-Boats
__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote
Old 10-06-09, 05:03 PM   #8
lurker_hlb3
Admiral
 
Join Date: Apr 2005
Location: San Diego Calif
Posts: 2,290
Downloads: 187
Uploads: 12
Default

Quote:
Originally Posted by karamazovnew View Post
Good news. After a week of wasting time I've managed to integrate the tdc into the attack periscope screen.
Well done Sir. Well Done (BZ)

When do you thing that it will be ready for "prime time".

With your permission I would like to integrate this into OMEGU as soon as you think it is ready
lurker_hlb3 is offline   Reply With Quote
Old 10-06-09, 05:23 PM   #9
Carotio
Mr. Bad Wolf
 
Carotio's Avatar
 
Join Date: Aug 2005
Location: Aabenraa, Denmark
Posts: 1,488
Downloads: 47
Uploads: 0


Default

Quote:
Originally Posted by karamazovnew View Post
I just hope I can find a way to create an AutoTDC button on it, but I have not had any success so far.
I did that for my version, which I failed to ever release, because I wanted to create a button for open/close torpedo doors and never found the time to do it.
My last update post here at subsim:
http://www.subsim.com/radioroom/show...6&postcount=39

The auto/manual thing does work 99% of the time.
That little green/yellow button you can see...

If I can manage to find the time to find notes or anything regarding how to, I'll be glad to send it to you.
I like that you have made it possible to hide the dials in the left side. Mine is attached to the lower right panel, where you choose torpedo tubes.
__________________

Download my mods from SHMF
Follow my photography here
taler dansk, speak English, spreche Deutsch, parle fraais, forstår svenska/norsk, comprendo castellano
Carotio 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 10:20 AM.


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