![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
06-18-13, 01:49 AM
|
#1 |
|
Stowaway
Posts: n/a
Downloads:
Uploads:
|
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?
Of course these new sub types would be to replace an existing one. 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. Also, yes as suggested please say Type 21. Modders know that the 21 is number 3 in game files. |
|
06-19-13, 01:24 AM
|
#2 |
|
Watch
![]() Join Date: Jun 2011
Location: Moscow, USSR
Posts: 28
Downloads: 153
Uploads: 0
|
Ok, captains will try to describe my findings at this post.
1) Each sub type has 3 crew config files. Each of them (does not matter which sub type it is) has the same layout. Here it is: ================================================== ============= CREW_№ | COMPARTMENT | TYPE_II |TYPE_VII | TYPE_IX |TYPE_XXI --------------------------------------------------------------- [0] | Tower_Watch | Officer | Officer | Officer | Officer [1] | UNKNOWN | UNKNOWN | UNKNOWN | UNKNOWN | UNKNOWN [2] | Command_Room |OfficerCE|OfficerCE|OfficerCE|OfficerCE [3] | Command_Room |OfficerNA|OfficerNA|OfficerNA|OfficerNA [4] | Command_Room |OfficerWO|OfficerWO|OfficerWO|OfficerWO [5] | DieselEngine | Officer | Officer | Officer | Officer [6] |ElectricEngine| Officer | Officer | Officer | Officer [7] | Bow_Torpedo | Officer | Officer | Officer | Officer [8] | Bow_Quarters | Officer | Officer | Officer | Officer [9] |Stern_Quarters| Officer | Officer | Officer | Officer [10] | SternTorpedo | Officer | Officer | Officer | Officer [11] |Damage_Control| Officer | Officer | Officer | Officer [12] | UNKNOWN | UNKNOWN | UNKNOWN | UNKNOWN | UNKNOWN --------------------------------------------------------------- [13] | Tower_Watch | Nmb_1 | Nmb_1 | Nmb_1 | Nmb_1 [14] | Tower_Watch | Nmb_2 | Nmb_2 | Nmb_2 | Nmb_2 [15] | Tower_Watch | Nmb_3 | Nmb_3 | Nmb_3 | Nmb_3 [16] | Tower_Watch | Nmb_4 | Nmb_4 | Nmb_4 | Nmb_4 --------------------------------------------------------------- [17] | Deck_Gun | Nmb_1 | Nmb_1 | Nmb_1 | Nmb_1 [18] | Deck_Gun | Nmb_2 | Nmb_2 | Nmb_2 | Nmb_2 [19] | Deck_Gun | Nmb_3 | Nmb_3 | Nmb_3 | Nmb_3 --------------------------------------------------------------- [20] | Flak_Gun_A01 | Nmb_1 | Nmb_1 | Nmb_1 | Nmb_1 [21] | Flak_Gun_A02 | Nmb_1 | Nmb_1 | Nmb_1 | Nmb_1 [22] | Flak_Gun_S01 | Nmb_1 | Nmb_1 | Nmb_1 | Nmb_1 [23] | Flak_Gun_S01 | Nmb_2 | Nmb_2 | Nmb_2 | Nmb_2 [24] | Flak_Gun_S02 | Nmb_1 | Nmb_1 | Nmb_1 | Nmb_1 [25] | Flak_Gun_S02 | Nmb_2 | Nmb_2 | Nmb_2 | Nmb_2 [26] | Flak_Gun_S03 | Nmb_1 | Nmb_1 | Nmb_1 | Nmb_1 [27] | Flak_Gun_S03 | Nmb_2 | Nmb_2 | Nmb_2 | Nmb_2 --------------------------------------------------------------- [28] | RadioStation |Sonarman |Sonarman |Sonarman |Sonarman [29] | RadioStation |Radioman |Radioman |Radioman |Radioman --------------------------------------------------------------- [30] | Command_Room |Boatswain|Boatswain|Boatswain|Boatswain [31] | Command_Room | Nmb_2 | Nmb_2 | Nmb_2 | Nmb_2 [32] | Command_Room | Nmb_3 | Nmb_3 | Nmb_3 | Nmb_3 --------------------------------------------------------------- [33] | DieselEngine | Nmb_1/1 | Nmb_1/1 | Nmb_1/1 | Nmb_1/1 [34] | DieselEngine | Nmb_1/2 | Nmb_1/2 | Nmb_1/2 | Nmb_1/2 [35] | DieselEngine | Nmb_2/1 | Nmb_1/3 | Nmb_1/3 | Nmb_1/3 [36] | DieselEngine | Nmb_2/2 | Nmb_2/1 | Nmb_2/1 | Nmb_1/4 [37] | DieselEngine | Nmb_2/3 | Nmb_2/2 | Nmb_2/2 | Nmb_2/1 [38] | DieselEngine | Nmb_2/4 | Nmb_2/3 | Nmb_2/3 | Nmb_2/2 [39] | DieselEngine | UNKNOWN | Nmb_2/4 | Nmb_2/4 | Nmb_2/3 [40] | DieselEngine | UNKNOWN | Nmb_2/5 | Nmb_2/5 | Nmb_2/4 [41] | DieselEngine | UNKNOWN | UNKNOWN | UNKNOWN | Nmb_2/5 [42] | DieselEngine | UNKNOWN | UNKNOWN | UNKNOWN | Nmb_2/6 --------------------------------------------------------------- [43] |ElectricEngine| Nmb_1/1 | Nmb_1/1 | Nmb_1/1 | Nmb_1/1 [44] |ElectricEngine| Nmb_1/2 | Nmb_1/2 | Nmb_1/2 | Nmb_1/2 [45] |ElectricEngine| Nmb_2/1 | Nmb_1/3 | Nmb_1/3 | Nmb_1/3 [46] |ElectricEngine| Nmb_2/2 | Nmb_2/1 | Nmb_2/1 | Nmb_1/4 [47] |ElectricEngine| Nmb_2/3 | Nmb_2/2 | Nmb_2/2 | Nmb_2/1 [48] |ElectricEngine| Nmb_2/4 | Nmb_2/3 | Nmb_2/3 | Nmb_2/2 [49] |ElectricEngine| UNKNOWN | Nmb_2/4 | Nmb_2/4 | Nmb_2/3 [50] |ElectricEngine| UNKNOWN | Nmb_2/5 | Nmb_2/5 | Nmb_2/4 [51] |ElectricEngine| UNKNOWN | UNKNOWN | UNKNOWN | Nmb_2/5 [52] |ElectricEngine| UNKNOWN | UNKNOWN | UNKNOWN | Nmb_2/6 --------------------------------------------------------------- [53] | Bow_Torpedo | Nmb_1/1 | Nmb_1/1 | Nmb_1/1 | Nmb_1/1 [54] | Bow_Torpedo | Nmb_1/2 | Nmb_1/2 | Nmb_1/2 | Nmb_1/2 [55] | Bow_Torpedo | Nmb_1/3 | Nmb_1/3 | Nmb_1/3 | Nmb_1/3 [56] | Bow_Torpedo | Nmb_1/4 | Nmb_1/4 | Nmb_1/4 | Nmb_1/4 [57] | Bow_Torpedo | Nmb_2/1 | Nmb_2/1 | Nmb_2/1 | Nmb_2/1 [58] | Bow_Torpedo | Nmb_2/2 | Nmb_2/2 | Nmb_2/2 | Nmb_2/2 [59] | Bow_Torpedo | Nmb_2/3 | Nmb_2/3 | Nmb_2/3 | Nmb_2/3 [60] | Bow_Torpedo | Nmb_2/4 | Nmb_2/4 | Nmb_2/4 | Nmb_2/4 [61] | Bow_Torpedo | Nmb_2/5 | Nmb_2/5 | Nmb_2/5 | Nmb_2/5 [62] | Bow_Torpedo | Nmb_2/6 | Nmb_2/6 | Nmb_2/6 | Nmb_2/6 [63] | Bow_Torpedo | UNKNOWN | Nmb_3/1 | Nmb_3/1 | Nmb_3/1 [64] | Bow_Torpedo | UNKNOWN | Nmb_3/2 | Nmb_3/2 | Nmb_3/2 [65] | Bow_Torpedo | UNKNOWN | Nmb_3/3 | Nmb_3/3 | UNKNOWN [66] | Bow_Torpedo | UNKNOWN | Nmb_3/4 | Nmb_3/4 | UNKNOWN --------------------------------------------------------------- [67] | Bow_Quarters | Nmb_1/1 | Nmb_1/1 | Nmb_1/1 | Nmb_1/1 [68] | Bow_Quarters | Nmb_1/2 | Nmb_1/2 | Nmb_1/2 | Nmb_1/2 [69] | Bow_Quarters | Nmb_1/3 | Nmb_1/3 | Nmb_1/3 | Nmb_1/3 [70] | Bow_Quarters | Nmb_1/4 | Nmb_1/4 | Nmb_1/4 | Nmb_1/4 [71] | Bow_Quarters | Nmb_1/5 | Nmb_2/1 | Nmb_2/1 | Nmb_2/1 [72] | Bow_Quarters | Nmb_1/6 | Nmb_2/2 | Nmb_2/2 | Nmb_2/2 [73] | Bow_Quarters | Nmb_2/1 | Nmb_2/3 | Nmb_2/3 | Nmb_2/3 [74] | Bow_Quarters | Nmb_2/2 | Nmb_2/4 | Nmb_2/4 | Nmb_2/4 [75] | Bow_Quarters | Nmb_2/3 | Nmb_2/5 | Nmb_2/5 | Nmb_2/5 [76] | Bow_Quarters | Nmb_2/4 | Nmb_2/6 | Nmb_2/6 | Nmb_2/6 [77] | Bow_Quarters | Nmb_2/5 | Nmb_3/1 | Nmb_3/1 | Nmb_3/1 [78] | Bow_Quarters | Nmb_2/6 | Nmb_3/2 | Nmb_3/2 | Nmb_3/2 [79] | Bow_Quarters | Nmb_2/7 | Nmb_3/3 | Nmb_3/3 | Nmb_3/3 [80] | Bow_Quarters | Nmb_2/8 | Nmb_3/4 | Nmb_3/4 | Nmb_3/4 [81] | Bow_Quarters | UNKNOWN | Nmb_3/5 | Nmb_3/5 | Nmb_3/5 [82] | Bow_Quarters | UNKNOWN | Nmb_3/6 | Nmb_3/6 | Nmb_3/6 --------------------------------------------------------------- [83] |Stern_Quarters| Nmb_1/1 | Nmb_1/1 | Nmb_1/1 | Nmb_1/1 [84] |Stern_Quarters| Nmb_1/2 | Nmb_1/2 | Nmb_1/2 | Nmb_1/2 [85] |Stern_Quarters| Nmb_2/1 | Nmb_1/3 | Nmb_1/3 | Nmb_1/3 [86] |Stern_Quarters| Nmb_2/2 | Nmb_2/1 | Nmb_1/4 | Nmb_1/4 [87] |Stern_Quarters| Nmb_2/3 | Nmb_2/2 | Nmb_1/5 | Nmb_1/5 [88] |Stern_Quarters| Nmb_2/4 | Nmb_2/3 | Nmb_2/1 | Nmb_1/6 [89] |Stern_Quarters| UNKNOWN | Nmb_2/4 | Nmb_2/2 | Nmb_1/7 [90] |Stern_Quarters| UNKNOWN | Nmb_2/5 | Nmb_2/3 | Nmb_2/1 [91] |Stern_Quarters| UNKNOWN | UNKNOWN | Nmb_2/4 | Nmb_2/2 [92] |Stern_Quarters| UNKNOWN | UNKNOWN | Nmb_2/5 | Nmb_2/3 [93] |Stern_Quarters| UNKNOWN | UNKNOWN | Nmb_2/6 | Nmb_2/4 [94] |Stern_Quarters| UNKNOWN | UNKNOWN | Nmb_2/7 | Nmb_2/5 [95] |Stern_Quarters| UNKNOWN | UNKNOWN | UNKNOWN | Nmb_2/6 [96] |Stern_Quarters| UNKNOWN | UNKNOWN | UNKNOWN | Nmb_2/7 [97] |Stern_Quarters| UNKNOWN | UNKNOWN | UNKNOWN | Nmb_2/8 [98] |Stern_Quarters| UNKNOWN | UNKNOWN | UNKNOWN | Nmb_2/9 --------------------------------------------------------------- [99] | SternTorpedo | UNKNOWN | Nmb_1/1 | Nmb_1/1 | UNKNOWN [100] | SternTorpedo | UNKNOWN | Nmb_1/2 | Nmb_1/2 | UNKNOWN [101] | SternTorpedo | UNKNOWN | Nmb_1/3 | Nmb_1/3 | UNKNOWN [102] | SternTorpedo | UNKNOWN | Nmb_2/1 | Nmb_2/1 | UNKNOWN [103] | SternTorpedo | UNKNOWN | Nmb_2/2 | Nmb_2/2 | UNKNOWN [104] | SternTorpedo | UNKNOWN | Nmb_2/3 | Nmb_2/3 | UNKNOWN [105] | SternTorpedo | UNKNOWN | UNKNOWN | Nmb_2/4 | UNKNOWN [106] | SternTorpedo | UNKNOWN | UNKNOWN | Nmb_2/5 | UNKNOWN --------------------------------------------------------------- [107] |Damage_Control| Nmb_1 | Nmb_1 | Nmb_1 | Nmb_1 [108] |Damage_Control| Nmb_2 | Nmb_2 | Nmb_2 | Nmb_2 [109] |Damage_Control| Nmb_3 | Nmb_3 | Nmb_3 | Nmb_3 [110] |Damage_Control| Nmb_4 | Nmb_4 | Nmb_4 | Nmb_4 [111] |Damage_Control| Nmb_5 | Nmb_5 | Nmb_5 | Nmb_5 [112] |Damage_Control| Nmb_6 | Nmb_6 | Nmb_6 | Nmb_6 [113] |Damage_Control| Nmb_7 | Nmb_7 | Nmb_7 | Nmb_7 [114] |Damage_Control| Nmb_8 | Nmb_8 | Nmb_8 | Nmb_8 [115] |Damage_Control| UNKNOWN | Nmb_9 | Nmb_9 | Nmb_9 [116] |Damage_Control| UNKNOWN | Nmb_10 | Nmb_10 | Nmb_10 [117] |Damage_Control| UNKNOWN | UNKNOWN | UNKNOWN | Nmb_11 [118] |Damage_Control| UNKNOWN | UNKNOWN | UNKNOWN | Nmb_12 --------------------------------------------------------------- [119] | UNKNOWN | UNKNOWN | UNKNOWN | UNKNOWN | UNKNOWN [120] | UNKNOWN | UNKNOWN | UNKNOWN | UNKNOWN | UNKNOWN --------------------------------------------------------------- LEGEND: a) "Nmb_3/4" means a 3rd seaman from top (so "3" is a row) and 4th from left (so "4" is a column). If there is just one number (like "Nmb_6") that means it is a column, so it will be 6th seamen from left; b) "UNKNOWN" means that seaman does not exist on that sub type or does not exist at all (2,12,119,120); c) i really do think that there must be a sticky thread with game's documentation only.================================================== ============= 2) This layout gives us the following numbers of maximum crewmen by compartment: ================================================== ROOM_№| COMPARTMENT |OFFICERS|SEAMEN| NOTES -------------------------------------------------- 0 | Tower_Watch | 1 | 4 | all 1 | RadioStation | no | 2 | all 2 | Command_Room | 3 | 3 | all 3 | DieselEngine | 1 | 10 | XXI 4 |ElectricEngine| 1 | 10 | XXI 5 | Bow_Torpedo | 1 | 14 | VII,IX 6 | Bow_Quarters | 1 | 16 | VII,IX,XXI 7 |Stern_Quarters| 1 | 16 | XXI 8 | SternTorpedo | 1 | 8 | IX 9 | Deck_Gun | no | 3 | VII,IX 10 | Flak_Gun | no | 8 | see below 11 |Damage_Control| 1 | 12 | XXI -------------------------------------------------- Right now i do think that 8 flak gunners config is not possible in game. Though, it is possible to change the crew layout in such a way, it is impossible to make a sub with 5 working flak guns (due to lack of controller types). At least manual controlled ones...================================================== 3) ONLY FOR EXPERIENCED MODDERS! ![]() The actual crew numbers are hardcoded. I've found adresses. It's really easy. Download Artmoney or any free hex editor. BACKUP YOUR GAME'S .EXE FILE! DO NOT SAY AFTER THAT YOU HAVE NOT BEEN WARNED! With Artmoney select file as a search object. Browse to game's .exe. Search for exact value of 65392 (2 bytes integer normal order). There should be 52 results. Choose the last one (0x141C70) and right mouse click it. Open File Editor. The crew values are just some lines above. With any other hex editor just search for adress 0x141AD8. It should be 01h. And that is a type II tower watch officer. 4) ATTENTION! MAKING THOSE CHANGES IS LIMITED BY GAME'S MENU.INI FILE (ITS BARRACKS PAGE). The only two possible changes without modifying menu.ini - is to make 8 seamen in type VII's stern torpedo room and 14 seamen in type XXI bow torpedo room. If you try something else you will see, that the game engine interprets the "positions" on a barracks page in game as a row and adds "new" patched crew members after the last initially (stock) allowed member (see the last screenshot of my previous post here to understand. That one, with 10 pettyofficers in type VII's electric engine room). 5) But! Looking on the game's .exe through IDA Pro (hi, to h.Sie, Stiebler, Reaper7 and others hardcode modders) i can say it is rather easy to make something like this (well... right now it is a Photoshop)... There are two functions in the .exe which modify the menu.ini designed positions of compartments with some offsets... So, if it would be possible to patch those offsets - it would be possible to enable stern torpedo room for types II and XXI. I mean that it is there already... just out of the screen. 6) As for the deck and flak guns it is more easy. It is just needed to make appropriate changes to config files (so to add nodes, settings and so on) and to patch crew layout as described in unit 3 above. Ok, that's all for now. Starting to dig the barracks page of the menu.ini... To be continued.
__________________
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; 06-19-13 at 02:20 AM. |
|
|
06-19-13, 01:43 AM
|
#3 | ||
|
Watch
![]() Join Date: Jun 2011
Location: Moscow, USSR
Posts: 28
Downloads: 153
Uploads: 0
|
Quote:
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:
__________________
Yoda's modding rules: - You must unlearn what you have learned. - Try not. Do... or do not. There is no try. - Size matters not. |
||
|
|
06-19-13, 03:12 AM
|
#4 | |
|
Stowaway
Posts: n/a
Downloads:
Uploads:
|
Quote:
|
|
|
06-19-13, 12:30 PM
|
#5 | |
|
Eternal Patrol
Join Date: May 2012
Location: mod soup bar and grill
Posts: 1,683
Downloads: 998
Uploads: 0
|
Quote:
|
|
|
|
06-19-13, 01:57 PM
|
#6 |
|
Stowaway
Posts: n/a
Downloads:
Uploads:
|
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.
|
|
06-19-13, 02:12 PM
|
#7 |
|
Eternal Patrol
Join Date: May 2012
Location: mod soup bar and grill
Posts: 1,683
Downloads: 998
Uploads: 0
|
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.
|
|
|
06-19-13, 06:29 PM
|
#8 |
|
Stowaway
Posts: n/a
Downloads:
Uploads:
|
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.
|
|
07-05-13, 02:17 PM
|
#9 |
|
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.
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
