View Single Post
Old 08-18-09, 01:38 PM   #4
McHub532
Seasoned Skipper
 
Join Date: Dec 2008
Location: Arizona
Posts: 665
Downloads: 104
Uploads: 0
Default Crew Names Figured Out

Okay.. this is how I was able to do the crew names...

Using a program called Textpad I was able to manipulate and save the following file...

>Documents
.....>SH4 (This is the Silent Hunter folder on my computer, yours may differ)
..........>Data
...............>CFG
....................>SaveGames
.........................>000000b
..............................>UPCInitial
...................................ActiveUserPlaye rUnits.upc

The 000000b subfolder is my only saved file, I deleted all other saved files to simplify finding the correct file to manipulate.

In the file - ActiveUserPlayerUnits.upc the programing is broken down into sections of the boat.

1. Compartment 1.CrewMemberSlot 1.CrewMember

1. Compartment means the first compartment the program uses in the file and in this case it's the Stern Tube compartment.

1. CrewMemberSlot means the first person on that -shift-, or the leader of that shift. 2. CrewmemberSlot would mean the crew leader of the 2nd shift.

1. CrewMember means which member of the shift you are talking about.

The breakdown of compartments in TMO 1.8 beta are as follows.
1. Compartment = Stern Torpedo Tubes
2. Compartment = Engine Room
3. Compartment = Control Room
4. Compartment = Radio Room
5. Compartment = Forward Torpedo Tubes
6. Compartment = Hogan's Alley
7. Compartment = Foredeck Gun
8. Compartment = Rear AA Gun
9. Compartment = Tower AA Gun
10. Compartment = Foredeck AA Gun
11. Compartment = Watchman

Now, the way it breaks it down is that it goes through:
<Compartment> <Shift Leader> : For Shift 1
<Compartment> <Shift Leader> : For Shift 2
<Compartment> <Shift Leader> : For Shift 3

And then it goes into the lesser ranked guys in each shift, position 2 of Shift 1, position 3 of shift 1, etc.

When I made modifications in the file at any file -above- the saved game the names did not change. The changes had to take place in the most recent saved game in order for the changes to take effect.

---------
As far as the icons/pictures go I think that might be a dead end. The file seems to break down the icon into just a few categories.
1. Seaman
2. Petty Officer
3. Lieutenant
4. Officer

The file data where you change the names sets the image by looking at an attribute:
Image=1
Image=2
Image=3
Image=4

I think it just goes and looks up whatever image 1, 2, 3 or 4 is assigned to and puts that in the position in the game. I don't think there is any way I can put in 84 different pictures.. well.. maybe there is.. I have to research what DDS Format files are and how to modify them now.

Sorry.. just learning, everything is new and exciting.
__________________
Thomas Jefferson - "When the people fear their government, there is tyranny; when the government fears the people, there is liberty."

McHub532 is offline   Reply With Quote