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 03-21-09, 02:00 AM   #1
Riffraffselbow
Nub
 
Join Date: Mar 2009
Posts: 2
Downloads: 0
Uploads: 0
Default Officer limits

Hello, I'm new. I am currently trying to figure out a way to mod the maximum number of officers allowed on a boat; can someone point me at the right file and line?

I figure it must be in the Data/submarine/<sub_name_here> folders, but I can't for the life of me find a line like "Max officers allowed" or anything. I am running version 1.5, if that makes a difference.

It sure would be nice if they had commented the config files more thoroughly

EDIT: After half an hour of poking around in basically every place I could find, I'm giving up on finding it myself. So, you guys are my last hope! Hopefully stuff like this isn't hardcoded, that'd be a shame.

Last edited by Riffraffselbow; 03-21-09 at 03:00 AM.
Riffraffselbow is offline   Reply With Quote
Old 03-21-09, 03:37 AM   #2
jimbob
Ensign
 
Join Date: May 2005
Location: Suomi Finland
Posts: 225
Downloads: 365
Uploads: 6
Default

I think this should do the trick:

For example in NSS_Balao.upc file add these 2 lines:


Code:
;************************************************************
;
;                 SUBMARINE TYPE DEFINITION
; 
;************************************************************

;------------------------------------------------------------
;                    Crew Evolutions
;------------------------------------------------------------
;Evolution= Normal
;Evolution= Battle_Stations

[UserPlayerUnit 1]
ID=Balao
NameDisplayable=Balao
UnitName= USS Balao
Type=Balao
UpgradeClass=3
UnitInterval= 1943-02-04, 1963-07-11 
ExternalClassName=SSBalao
Nationality=American
CrewRanks=12
Evolution= Normal
Damage= 0
TextureName=data/Submarine/NSS_Balao/NSS_Balao_T01.tga
LightmapTextureName=data/Submarine/NSS_Balao/NSS_Balao_O01.tga
NormalmapTextureName= NULL
MenuSilhouetteTextureName= Balao_Class_01.tga
MaxPettyOfficers=90 ; max number of crewmembers over rank 4
MaxOfficers=90 ; max number of crewmembers over rank 7

[UserPlayerUnit 1.UnitPartSlot 1]
ID=BalaoConningSlot
NameDisplayable=Conning Tower Mount
Type=NULL
AcceptedTypes=GatoConningTower								;Only UnitParts of this type could be placed here
IDLinkUnitPartIntervalDefault1= NULL, 1944-04-01, BalaoConningMs9
IDLinkUnitPartIntervalDefault2= 1944-04-02, NULL, BalaoConningMs32
ExternalNodeName3D= Z01

/snip
...those 2 red lines of text needs to be added.
Do the same on other subs upc files you wish.

Maybe the number 90 is a way too much, one could try less if there's
trouble with the game or somesuch.


Good hunting.
jimbob is offline   Reply With Quote
Old 03-21-09, 03:48 AM   #3
Riffraffselbow
Nub
 
Join Date: Mar 2009
Posts: 2
Downloads: 0
Uploads: 0
Default

No dice, it seems; tried 15 on porpoise.

Thanks for trying to help, anyway. Any other ideas.
Riffraffselbow is offline   Reply With Quote
Old 03-21-09, 07:11 AM   #4
jimbob
Ensign
 
Join Date: May 2005
Location: Suomi Finland
Posts: 225
Downloads: 365
Uploads: 6
Default

Ok, maybe there was something else to it.
Let me check this stuff ingame and see what it was about.

I suppose there was some other files to edit also and it's been awhile since i've used more officers.

BBL

jimbob is offline   Reply With Quote
Old 03-21-09, 07:56 AM   #5
jimbob
Ensign
 
Join Date: May 2005
Location: Suomi Finland
Posts: 225
Downloads: 365
Uploads: 6
Default

Allright, I got this thing working.

Atleast i was able to buy all them dudes in the beginning of the career.
Gonna upload this mod soon, gotta pack it and make some readmes etc...

Pics or it didn't happen?

jimbob is offline   Reply With Quote
Old 03-21-09, 02:37 PM   #6
aanker
Pacific Thunder
 
aanker's Avatar
 
Join Date: Apr 2004
Location: Yellow Sea
Posts: 1,896
Downloads: 236
Uploads: 14


Default

http://www.subsim.com/radioroom/showthread.php?t=135499

link above is a topic that addressed this...

You could edit the UPC files and add two lines shown in red below in:
- Data\Submarine\NSS_Gato\NSS_Gato.upc (for example)

ExternalClassName=SSGato
Nationality=American
CrewRanks=12
Evolution= Normal
Damage= 0
TextureName=data/Submarine/NSS_Gato/NSS_Gato_T01.tga
LightmapTextureName=data/Submarine/NSS_Gato/NSS_Gato_O01.tga
NormalmapTextureName= NULL
MenuSilhouetteTextureName= Gato_Class_01.tga
MaxPettyOfficers=52 ; max number of crewmembers over rank 4
MaxOfficers=14 ; max number of crewmembers over rank 7


to the first (Crew Evolutions) section. This could have adverse affects however? I don't know...

Happy Hunting!

Art
aanker is offline   Reply With Quote
Old 03-21-09, 03:56 PM   #7
jimbob
Ensign
 
Join Date: May 2005
Location: Suomi Finland
Posts: 225
Downloads: 365
Uploads: 6
Default

Check this link.and/or here.


jimbob is offline   Reply With Quote
Old 03-22-09, 12:43 PM   #8
ancient46
Officer
 
Join Date: Apr 2008
Location: Pennsylvania
Posts: 239
Downloads: 108
Uploads: 1
Default

For historical numbers that work in SH4, the RFB team has done a lot of research into the roster files for subs in WW2. They get more accurate as more information is found. I am slowly, as funding permits, ordering the microfilmed sub rosters for early war subs. If you want a historic crew use the numbers inn the RFB files.

However it looks like jimbob going for a super crew, the very opposite direction.
ancient46 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 09:48 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.