View Single Post
Old 02-10-14, 01:34 PM   #29
Sheppard
Captain of the Nautilus
 
Join Date: Mar 2005
Posts: 143
Downloads: 223
Uploads: 0
Default

And after several hours of banging my head on C++ code (first time reading multi-byte variables from a file on the hard drive); I have this output:

Code:
*********************************************************
* SILENT HUNTER COMMANDER'S EDITION EDITOR (SCED) v1.00 *
*********************************************************

1.) Edit SUBS.DAT File.

Choose Menu Item:

 MENU SELECTION DISABLED


Test Depth for Sub Slot 0 is: 200 feet.
Test Depth for Sub Slot 1 is: 200 feet.
Test Depth for Sub Slot 2 is: 328 feet.
Test Depth for Sub Slot 3 is: 250 feet.
Test Depth for Sub Slot 4 is: 256 feet.
Test Depth for Sub Slot 5 is: 288 feet.
Test Depth for Sub Slot 6 is: 300 feet.
Test Depth for Sub Slot 7 is: 400 feet.
Test Depth for Sub Slot 8 is: 400 feet.
Holding for acknowledgement.
I've currently pulled a list of variables from the game after some study of my old notes plus those by the "SH1 Database Project - Kim Rønhof"

Code:
Variable Name	Offset from Block Start (Calc)
Submarine Name #1	0
Submarine Name #2	10
SubType (Slots 0 to 8)	36
Unknown Byte	40
SHP File #1	41
SHP File #2	55
Month Built	72
Year Built	76
Month No Longer Available?	80
Year No Longer Available?	84
Maybe Active Month in Pacific?	88
Maybe Active Year in Pacific?	92
Unknown -- looks like a Year	96
Surfaced Range	100
Surfaced Speed at which range is achieved	104
Submerged Range	108
Submerged Speed at which range is achieved	112
Number of Bow TT	116
Number of Stern TT	120
Torpedoes in Bow Torpedo Room	124
Torpedoes in Stern Torpedo Room	128
BLANK 255/255/255/255 Space	132
Number of Deck Guns	136
Deck Gun Caliber (in Inches)	140
Blank Spot? May Be Deck Gun Positions	144
Length	148
Beam	152
Height (or Draft)	156
Test Depth	160
Periscope Depth	164
Radar Depth	168
Periscope Height	172
Radar Mast Height	176
Unknown -- Tench is 30	180
Unknown -- Tench is 50	184
Top Speed Surfaced	188
Top Speed Submerged	198
Surfaced Displacement	208
Submerged Displacement	212
Displacement Coefficient	216
Surfaced Power	220
Submerged Power	224
Surfaced Speed Coefficient	228
Submerged Speed Coefficient	232
Unknown - Tench is 2097	236
Unknown - Tench is 2097	240
Number of Diesel Motors	260
Number of Electric Motors	264
Diesel Fuel (gallons)	268
Diesel Fuel Consumption Rate?	272
Surfaced Motor Coefficient Astern Modifier?	276
Surfaced Motor Coefficient STOPPED	280
Surfaced Motor Coefficient 1/3 Ahead	284
Surfaced Motor Coefficient 2/3 Ahead	288
Surfaced Motor Coefficient Standard Ahead	292
Surfaced Motor Coefficient Full Ahead	296
Surfaced Motor Coefficient Flank Ahead	300
Unknown Variable	244
Unknown Variable	248
Unknown Variable	252
Unknown Variable	256
UNKNOWN - 140 in Tench	304
UNKNOWN - 70 in Tench	312
UNKNOWN - 163 in Tench	316
Submerged Motor Coefficient Astern Modifier?	320
Submerged Motor Coefficient STOPPED	324
Submerged Motor Coefficient 1/3 Ahead	328
Submerged Motor Coefficient 2/3 Ahead	332
Submerged Motor Coefficient Standard Ahead	336
Submerged Motor Coefficient Full Ahead	340
Submerged Motor Coefficient Flank Ahead	344
Descriptive Text of Submarine Class	368
Sheppard is offline   Reply With Quote