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 04-09-07, 04:20 PM   #1
vanjast
Sea Lord
 
Join Date: Jun 2006
Location: Somewhere else now
Posts: 1,739
Downloads: 825
Uploads: 4
Default [REQ] Maybe someone can help !!

Hi all, busy with this Nav mod. I've done it for SH3, and thought that I might as well finish it for SH4, before releasing. SH4 is proving to be a bit more difficult (although I haven't spent much time on it)

What I trying to establish, is whether the command names in the 'command.cfg' file are hard coded into the game or whether one can create them via editing a few files.

I'm trying to implement the Nav mod in the 'Bridge' location.. I've managed to insert the checkboxes..


but when playing with the command.cfg and ordersBar.cfg files. I get these error messages..



from command file - just testing with keystrokes (will change it)
;====================================
; Sextant Modification.
; Keystroke - CTL+Enter
;====================================
[Cmd313]
;Name=Fire_torpedo
Name=Toggle_Activate_Sextant
Ctxt=1
Key0=0x0D,C,"Enter"
;====================================

and from OrdersBar file.. Variable names are created here.
;=========================================
; Delete this lot to get back to originals
;=========================================
Button7Type=Checkbox
Button7CommandWhenClicked=Toggle_Activate_Sextant
Button7CommandToCheckIfIsChecked=Is_Sextant_Active
Button7IconRowColumn=4,10
Button7Tooltip=5649
;=========================================

I'm trying to base this on the same idea as the Clock/Chrono, but cannot find the
Chrono variables (Toggle_Activate_Chrono, etc..) anywhere.

I have not edited the 'menu_1024_768.ini' file yet, and also thought that the variables might be inherent in these page files / menu types, mentioned inside ??

Any help would be great - thanks
KF

Last edited by vanjast; 04-10-07 at 05:21 PM.
vanjast is offline   Reply With Quote
Old 04-10-07, 12:51 AM   #2
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

Sounds similar to the probs we have had trying to implement that "NavMap" mod...Maybe read here and you will find some clue...
http://www.subsim.com/radioroom/show...657#post489657
If you can implement the "Sextant" then it would mean that implementing that "NavMap" would be possible as well. I been at it for most part over Easter but no luck so far.
__________________
CaptainCox is offline   Reply With Quote
Old 04-10-07, 03:16 AM   #3
vanjast
Sea Lord
 
Join Date: Jun 2006
Location: Somewhere else now
Posts: 1,739
Downloads: 825
Uploads: 4
Default

Hi Captain.. this is what I've worked out in the INI file.

unknown
known

338 360 44 44 0 1 0x1020000 0.00666667 -0.112676 0x1020001 0 0 0 0
xxx xxx size size x x ParentID xxxxxxxxxxx xxxxxxxxxx ItemID x x x x

338 360 ==> numbers ares the start position (referenced to the original ParentID window/menu - this is usually 1024x768 for the current screen res).

IOW you have the parentID and as you go down the layers of ItemID's each zone is referenced to it's parentID (itemID above - or the TOP parentID).
This zone is the button/command (type dependent) activation window AFAIK.

44 44 ==> Is the size area of the image to be placed.

0 1 ==> Not sure but I think this is the graphics MASK info of the image. It might also have something to do with the fact that most of the images are referenced as *.tga files where in fact the files used are the equivalent *.dds files.

0.00666667 -0.112676 ==> Not sure but it has something to do with the parentID (scaling maybe).

0 0 0 0 ==> This seems to be Scale Size as well as Scale Position of the itemID (Image) within the parentID (image/window).

Within the INI file there is reference to Static image (probably immovable images), Image arrays (an image with multiple smaller images within), etc. The commands look like they might be referenced as pages with the unique number (eg [G2F Ixxx])

This is where I'm at, at the moment. I'm sure by creating a page (there's currently 101 of). I can get the Nav Mod to work. Will try this and report back.
If you hear of an SH4 SDK, i'm all ears..

Later
vanjast is offline   Reply With Quote
Old 04-10-07, 05:25 AM   #4
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

Great stuff man, we are a few here who are trying to solve this...Every little clue will add up to the big picture. I am still pondering about resizing the "Navtools" at the mo. Getting there but I can't figure the position after they are scaled.
http://www.subsim.com/radioroom/show...355#post490355

I also tried to implement this but don't seem to work on the "NavTools"
http://www.subsim.com/radioroom/showthread.php?t=108917
__________________
CaptainCox is offline   Reply With Quote
Old 04-10-07, 01:20 PM   #5
vanjast
Sea Lord
 
Join Date: Jun 2006
Location: Somewhere else now
Posts: 1,739
Downloads: 825
Uploads: 4
Default

Bump - for last luck :p
vanjast is offline   Reply With Quote
Old 04-10-07, 01:23 PM   #6
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

Did you check my last finding in
http://www.subsim.com/radioroom/show...355#post490355

Just to clarify...did you make the Navmap or ...?
__________________
CaptainCox is offline   Reply With Quote
Old 04-10-07, 05:05 PM   #7
vanjast
Sea Lord
 
Join Date: Jun 2006
Location: Somewhere else now
Posts: 1,739
Downloads: 825
Uploads: 4
Default

Yes thanks, I'd worked that out already before I'd posted..
SH3 NavMap = Yes (i'd placed a Lat/Long grid on that 200MB and 10MB map)
SH4 NavMap = No, as the map has Lat/Long positions in the game.

I think you're talking about the Map that comes with the DVD disk.
My Mod is not that, it's places a 'sextant' option on the bridge, that brings up a psuedo sextant to measure star/sun/moon angles. From here you calculate your position (Lat/Long) and make a mark on the map. Then you steer your course.

I'll get rid of the map sub icon, and reduce the map zoom level, so as to prevent one from locating positions via map zooming. The Star maps are completed, Sun almanac is completed. It's just the Moon almanac that's been a problem, but I've solved this recently so its a matter of putting it together.

SH4 ( I haven't actually played it further than the intro missions) seems to have different local times per base. I'm going to have to make adjustments for this too, so there goes another week or 4 (trying to do this is a juggle with work/family/etc... you know.. - but no worries, it's all coming together )

How does one subscribe for the SH4 SDK ??

Maybe a silly question - how do I edit the title of this thread so I can place a '[REQ]' indicator !!
vanjast is offline   Reply With Quote
Old 04-19-07, 07:43 AM   #8
latemail
Gunner
 
Join Date: May 2006
Location: Germany
Posts: 92
Downloads: 14
Uploads: 0
Default

Quote:
Originally Posted by vanjast
Hi all, busy with this Nav mod. I've done it for SH3 ............
Hi Vanjast,

i searched the forum for your SH3-Mod, because i won´t change the wartheater in the next weeks, but i didn´t find a DL-Link ........... where can i find your superb mod??

Please give me a hint ...... Thx
latemail is offline   Reply With Quote
Old 05-13-07, 01:27 PM   #9
OS1Mac
Seaman
 
Join Date: Jun 2006
Location: Bozeman, Montana, USA
Posts: 31
Downloads: 0
Uploads: 0
Default

Hey, Vanjast,
I'm not a modder, but, after seeing your other thread about your work on manual nav in SH4, I gave Kumando's rules a try and I'm loving it. I solely navigtate "manually" now. Good luck in your work and I'm looking forward to giving it a shot when you finish.
__________________

USS Belknap CG-26 ('89-'93) & Task Force 67 P3-C ('93-'98)
US 6th Fleet "Power for Peace" - Gaeta & Naples, Italy
OS1Mac 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 02:40 AM.


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