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 10-06-09, 06:09 AM   #1
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   #2
Tomi_099
The Old Man
 
Join Date: May 2007
Location: München / Germany
Posts: 1,482
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   #3
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   #4
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 5,991
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, 03:13 PM   #5
Jaeger
Chief
 
Join Date: Jul 2005
Posts: 316
Downloads: 28
Uploads: 0
Default

very nice, karamasovjev,

bring it on! looks very promising, i am waiting for this for a long time. i am still playing the american part in tmo but it looks like the german side will be playable and exciting the coming days.... keep up the good work and stay on it when you get difficulties...


damn good work. remember, the map and the persicope are the most important stations in a subsim...


Jaeger
__________________
Everything comes to him who waits
Jaeger is offline   Reply With Quote
Old 10-06-09, 03:52 PM   #6
Wilcke
The Old Man
 
Join Date: Jan 2007
Posts: 1,441
Downloads: 234
Uploads: 0
Default

We are waiting patiently. Question, how are the dials going to scale on 1920 by 1080 wide screen lcd?

Thanks for all of your hard work there!
__________________
Wilcke


For the best in Fleet Boats go to: Submarine Sim Central. http://forum.kickinbak.com/index.php
Check out: A Brief Introduction to the Pacific Submarine War by Ducimus
http://www.subsim.com/radioroom/showthread.php?t=128185
Operation Monsun plus OMEGU, the #1 ATO Solution for SH4!

Signature Art by Gunfighter
Wilcke is offline   Reply With Quote
Old 10-06-09, 05:03 PM   #7
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   #8
Carotio
Mr. Bad Wolf
 
Carotio's Avatar
 
Join Date: Aug 2005
Location: Aabenraa, Denmark
Posts: 1,489
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 français, forstår svenska/norsk, comprendo castellano
Carotio is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 02:53 AM.


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.