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

Reply
 
Thread Tools Display Modes
Old 06-19-13, 01:43 AM   #1
Consigliere
Watch
 
Join Date: Jun 2011
Location: Moscow, USSR
Posts: 28
Downloads: 153
Uploads: 0
Default

Quote:
Originally Posted by machiavelli View Post
I'm particularly interested in how you solve this. I've been attempting to create new sub types and want to find the correlation between the crew management screen and the Basic.cfg file. Have you found that correlation?
Well, as far as i know there is no such correlation at all. With exept of deck and flak gun crew members of course.
Number of crew members per comartment is predetermined and cannot be changed at all. Number of crew members in a compartment of a sub of a given type is hardcoded and can be changed within limits by patching game's .exe file (look at my post above this one).
Compartments layout on a barracks/crew management screen is determined by menu.ini file with some hardcoded changes to possitions (offsets). I'm now to try to patch them...

Quote:
Originally Posted by machiavelli View Post
Essentially, assuming we edit menu_1024....cfg file to remove the graphics too, how do we tell the engine that a certain gun does not exist? Editing just Basic.cfg does not seem to do the trick. I often get errors like, deck gun destroyed right when I launch a mission after I make my edits.
Well... a gun can be deleted just by typing -1 in basic.cfg file under M01, A01, A02, S01, etc. Than, there is a cfg file in each sub's folder and sub and turm models in dat files with appropriate nodes of gun placements...
__________________
Yoda's modding rules:
- You must unlearn what you have learned.
- Try not. Do... or do not. There is no try.
- Size matters not.
Consigliere is offline   Reply With Quote
Old 06-19-13, 03:12 AM   #2
machiavelli
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by Consigliere View Post
Well, as far as i know there is no such correlation at all. With exept of deck and flak gun crew members of course.
Number of crew members per comartment is predetermined and cannot be changed at all. Number of crew members in a compartment of a sub of a given type is hardcoded and can be changed within limits by patching game's .exe file (look at my post above this one).
Compartments layout on a barracks/crew management screen is determined by menu.ini file with some hardcoded changes to possitions (offsets). I'm now to try to patch them...


Well... a gun can be deleted just by typing -1 in basic.cfg file under M01, A01, A02, S01, etc. Than, there is a cfg file in each sub's folder and sub and turm models in dat files with appropriate nodes of gun placements...
I guess that is what I was missing, the -1. I'll give it a try. Does it remove the graphics for the deck gun on the sub too?
  Reply With Quote
Old 06-19-13, 12:30 PM   #3
desertstriker
Eternal Patrol
 
Join Date: May 2012
Location: mod soup bar and grill
Posts: 1,683
Downloads: 998
Uploads: 0
Default

Quote:
Originally Posted by Consigliere View Post
Well, as far as i know there is no such

Well... a gun can be deleted just by typing -1 in basic.cfg file under M01, A01, A02, S01, etc. Than, there is a cfg file in each sub's folder and sub and turm models in dat files with appropriate nodes of gun placements...
deck guns can also be removed in SH3 Commander by clicking on your Uboat type in the uboat part of the career selection screen and hitting the remove option. does not option flak guns though.
desertstriker is offline   Reply With Quote
Old 06-19-13, 01:57 PM   #4
machiavelli
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by desertstriker View Post
deck guns can also be removed in SH3 Commander by clicking on your Uboat type in the uboat part of the career selection screen and hitting the remove option. does not option flak guns though.
Yes, but adding a new sub type, which is my intention, and using SH3 Commander creates a whole nother set of things I will have to change in Commanders config files. I would have to tell Commander that the sub is a different type.
  Reply With Quote
Old 06-19-13, 02:12 PM   #5
desertstriker
Eternal Patrol
 
Join Date: May 2012
Location: mod soup bar and grill
Posts: 1,683
Downloads: 998
Uploads: 0
Default

which should be easy enough off of the top of my head you have to add availability dates with a new submarine in the sub folder make a crew config and add Uboat numbers.
desertstriker is offline   Reply With Quote
Old 06-19-13, 06:29 PM   #6
machiavelli
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by desertstriker View Post
which should be easy enough off of the top of my head you have to add availability dates with a new submarine in the sub folder make a crew config and add Uboat numbers.
Right. It's easy, but my focus first is getting vanilla to show up nicely. I'll get working on it after my update to SH3DC.
  Reply With Quote
Old 07-05-13, 02:17 PM   #7
evan82
Samurai Navy
 
Join Date: Oct 2008
Location: Poland
Posts: 555
Downloads: 197
Uploads: 12
The problem is, if in SH3 hardcode is only six possible operative torp. tubes, or more? Look, in IX You have 4 forward, and 2 stern. BTW; Nice idea with aft tubes for XXI, and I love this sub.
__________________
MY MODS - evan82's XXI Water StreamVIIB War Skin IIevan82's XXI Skin...
evan82 is offline   Reply With Quote
Old 08-13-13, 07:29 PM   #8
Consigliere
Watch
 
Join Date: Jun 2011
Location: Moscow, USSR
Posts: 28
Downloads: 153
Uploads: 0
Default

Quote:
Originally Posted by evan82 View Post
The problem is, if in SH3 hardcode is only six possible operative torp. tubes, or more? Look, in IX You have 4 forward, and 2 stern. BTW; Nice idea with aft tubes for XXI, and I love this sub.
Hi, mate.
Sorry for not answering for so long... RL and such... To the topic.
Do not know for now... still...
a) The game's zone files have controllers for 10 tubes (6 bow & 4 stern)... Open any .zon file in S3D and look for zone types... There are:
58 BowTorpedoTubes
131 BowTorpedoTubes2
132 BowTorpedoTubes3
133 BowTorpedoTubes4
134 BowTorpedoTubes5
135 BowTorpedoTubes6
61 SternTorpedoTubes
128 SternTorpedoTubes2
129 SternTorpedoTubes3
130 SternTorpedoTubes4
Mention that the last two are not used in a stock game at all... So, for now we can have up to 10 tubes...
b) In those two posts (http://www.subsim.com/radioroom/show...postcount=2630 and http://www.subsim.com/radioroom/show...postcount=2824) reaper7 mentioned that torpedo related data is stored in a single byte in a binary format in the game's memory. The binary for default 6 tubes 111111 = 63. But one byte can contain a value up to 255 which is exactly 11111111 = 8 torpedo tubes...
A-ha... so just 8...
c) But a very good modder here pointed (through pm) to me that there are entries for opening only six tubes (dial type=48,49,50,51,52 and 53) in dials types (.sim files in interior folder) so he was more than sure that the game will not 'recognise' additional tubes...

As you could see in my posts above i do have two additional working (keyboard opening but not firing) tubes (they are present and recognised by game but not the menu (periscope or uzo or interior screens) which was not modified)... So, i do have tubes (with a right zone config) which can be opened (maybe in contrast to point (c) above), but can't be fired... That is due to wrong menu.ini which does not have them, or due to exe limitations...
Though i do understand that all above mentioned could be just "a work in progress" left by the game developers... but think we - modders, definitly should give a try to a possibility of adding additional tubes to subs...
So... i'm stuck here for a long time now due to RL. Will continue some time...

p.s. The reason i can't check that all for sure is that i do not know menu.ini and can't add stern torp room to type XXI now... So i will maybe try to remodel and reconfig type IX by adding two additional front tubes... That could be more easy at first...
__________________
Yoda's modding rules:
- You must unlearn what you have learned.
- Try not. Do... or do not. There is no try.
- Size matters not.

Last edited by Consigliere; 08-13-13 at 08:08 PM.
Consigliere 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 09:57 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.