PDA

View Full Version : Officer limits


Riffraffselbow
03-21-09, 02:00 AM
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.

jimbob
03-21-09, 03:37 AM
I think this should do the trick:

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


;************************************************* ***********
;
; 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.

Riffraffselbow
03-21-09, 03:48 AM
No dice, it seems; tried 15 on porpoise.
http://img21.imageshack.us/img21/4083/87027312.th.jpg (http://img21.imageshack.us/my.php?image=87027312.jpg)
Thanks for trying to help, anyway. Any other ideas.

jimbob
03-21-09, 07:11 AM
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
03-21-09, 07:56 AM
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?

http://img23.imageshack.us/img23/3208/szhxndxksmmws.png

aanker
03-21-09, 02:37 PM
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

jimbob
03-21-09, 03:56 PM
Check this link. (http://www.subsim.com/radioroom/showthread.php?t=149619)and/or here. (http://www.subsim.com/radioroom/downloads.php?do=file&id=44)


:arrgh!:

ancient46
03-22-09, 12:43 PM
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.