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-08-07, 06:51 AM   #31
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

Yea I was also wondering if it has to do with what the zone code is holding, but where?

Example

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

If you look at the torpedo loading menu, I mean the one at base where you drag the torp icons over in to your slots in the boat

Take a look at the code:

[G40 I7]
Name=Torpedo4_1
Type=1031;Stat bmp array
ItemID=0x40040042
ParentID=0x40040000
Pos=283,9,128,17
Zone= 713 559 128 17 0 1 0x40040000 0.690244 0.0225 0x40040042 0 0 0 0
Materials=14
Display=2;Linear
Mat 0=data/menu/gui/layout/tmstor00.tga
Crop 0=0,0,-1,0.0742188
Mat 1=data/menu/gui/layout/tmstor00.tga
Crop 1=0,0.0742188,-1,0.0742188
Mat 2=data/menu/gui/layout/tmstor00.tga
Crop 2=0,0.148438,-1,0.0742188
Mat 3=data/menu/gui/layout/tmstor00.tga
Crop 3=0,0.222656,-1,0.0742188
Mat 4=data/menu/gui/layout/tmstor00.tga
Crop 4=0,0.296875,-1,0.0742188
Mat 5=data/menu/gui/layout/tmstor00.tga
Crop 5=0,0.371094,-1,0.0742188
Mat 6=data/menu/gui/layout/tmstor00.tga
Crop 6=0,0.445313,-1,0.0742188
Mat 7=data/menu/gui/layout/tmstor00.tga
Crop 7=0,0.519531,-1,0.0742188
Mat 8=data/menu/gui/layout/tmstor00.tga
Crop 8=0,0.59375,-1,0.0742188
Mat 9=data/menu/gui/layout/tmstor00.tga
Crop 9=0,0.667969,-1,0.0742188
Mat 10=data/menu/gui/layout/tmstor00.tga
Crop 10=0,0.742188,-1,0.0742188
Mat 11=data/menu/gui/layout/tmstor00.tga
Crop 11=0,0.816406,-1,0.0742188
Mat 12=data/menu/gui/layout/tmstor00.tga
Crop 12=0,0.890625,-1,0.0742188
Mat 13=data/menu/gui/layout/torpsh.tga
Crop 13=0,1,-1,0.59375
MatFlags=0x1
TexFmt=0x0
Drag=true

Its one of the few items that you can drag around by just pointing the mouse and click and move. You got the Clock and the radio, Gramophone as well, but I can't find Drag=true in any of those
__________________
CaptainCox is offline   Reply With Quote
Old 04-08-07, 10:49 PM   #32
zAmboni
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Captain Cox

Dont wrack your brain too much on this problem. I messed around with it a bit and came to the conclusion:

It cannot be done via the menu_1024_768.ini file.

I Tried a few things that I think may have worked and they didn't. I tried to make the map a slide down map, but just like the problem with the retro navmap mod, it leaves a dead space where the map will slide down to (i.e. even with the map "hidden", the space it would slide down to would not allow the underneath navigation map to be dragged, nor would any of the tools work in that area). I think it is due to the way they have implemented things in SH4, and it has basically broken many of the things that worked so well in SH3.

I tried looking to see if there is a way to make something draggable like you can drag the chronometer or the captain's log clipboard, but didn't see anything how to do so. It seems to me that they have made the menu_1024_768.ini file a strict layout file, and any type of functioning is hard coded. (You can specify how things will look, but most of the interactions/functionality is hard coded...or hidden somewhere else in some other file).

Unless the devs release a SDK, I think that we may be SOL in this regard. It really sucks because if they don't release an SDK, many of the modding options (like we had for SH3) will be seriously limited.
  Reply With Quote
Old 04-09-07, 12:35 AM   #33
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

Quote:
Originally Posted by zAmboni
Captain Cox

Dont wrack your brain too much on this problem. I messed around with it a bit and came to the conclusion:

It cannot be done via the menu_1024_768.ini file.

I Tried a few things that I think may have worked and they didn't. I tried to make the map a slide down map, but just like the problem with the retro navmap mod, it leaves a dead space where the map will slide down to (i.e. even with the map "hidden", the space it would slide down to would not allow the underneath navigation map to be dragged, nor would any of the tools work in that area). I think it is due to the way they have implemented things in SH4, and it has basically broken many of the things that worked so well in SH3.

I tried looking to see if there is a way to make something draggable like you can drag the chronometer or the captain's log clipboard, but didn't see anything how to do so. It seems to me that they have made the menu_1024_768.ini file a strict layout file, and any type of functioning is hard coded. (You can specify how things will look, but most of the interactions/functionality is hard coded...or hidden somewhere else in some other file).

Unless the devs release a SDK, I think that we may be SOL in this regard. It really sucks because if they don't release an SDK, many of the modding options (like we had for SH3) will be seriously limited.
Cheers man! Thanks for verifying and testing this. It was really driving mad. Although there is always a way...I wonder if its possible to spot using a debugger like OLLYDBG or something. Never give up, never surrender :p

Naaa but, you are probably right, I will put this out of my head for now. Thanks for trying again man !
__________________
CaptainCox is offline   Reply With Quote
Old 04-09-07, 11:48 AM   #34
Gildor
Lieutenant
 
Join Date: Jan 2007
Location: Toronto, Ontario
Posts: 251
Downloads: 0
Uploads: 0
Default

It looks like you gents put alot of work into this. Thank you very much for the effort.

Perhaps it can be done by making a toggle to open up the map instead of having it dragged. Like pressing one of the buttons on the bottom UI, it will open up the map and close it when clicked, if you get my meaning. Or a defined key press.

Anyways, again, thanks for the time you have put into this.
__________________
U-46: Oct 1943 off Portugal
Gildor is offline   Reply With Quote
Old 04-09-07, 11:58 AM   #35
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

I will personally put this on the back-burner for a bit. I think we will crack it but I need a couple of days doing something else to start fresh...maybe in the coming week or so. NEVER GIVE UP NEVER SURENDER!
__________________
CaptainCox is offline   Reply With Quote
Old 04-09-07, 03:20 PM   #36
zAmboni
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by Gildor
It looks like you gents put alot of work into this. Thank you very much for the effort.

Perhaps it can be done by making a toggle to open up the map instead of having it dragged. Like pressing one of the buttons on the bottom UI, it will open up the map and close it when clicked, if you get my meaning. Or a defined key press.

Anyways, again, thanks for the time you have put into this.
That would be great....if we were able to do that . From what I can tell you can change the way the bottom UI looks (via the menu_1024_768.ini file), but you cannot change/create a new button to do something that isn't already hard coded. Maybe there is a way to do that elsewhere, but I am not familiar with how to do it. I may give a look to the other files to see what is up, but I doubt it would be an easy thing to do (if at all possible).
  Reply With Quote
Old 04-09-07, 03:28 PM   #37
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

I have been looking my self blind on this "Menu" file for a couple of days now and I wonder if one must set up a "menu" group that has the main" Navmap" as a parent...looking at the watch e.g. it has
Quote:
Name=Page Clock
Type=1027;Menu page
ItemID=0x29000000
ParentID=0x0
Pos=0,0,1024,768
Zone= 0 768 1024 768 2 1 0x0 0.5 -0.5 0x29000000 -0.5 0.5 0 0
LoadingMode=1
before the actual graphic stuff starts. maybe one have to set this up with a a couple of "data" groups in order for it to work...only thinking loud here. Like
"Menu page"
"the graphics"
etc etc...off to bed now but maybe someone could fiddle with it ...

Like I said before NEVER GIVE UP NEVER SURENDER!
__________________
CaptainCox 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 05:24 PM.


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.