View Single Post
Old 05-04-12, 06:05 PM   #3864
stanger
Engineer
 
Join Date: Apr 2012
Location: Poland
Posts: 200
Downloads: 84
Uploads: 0
Default

No, no problems with deck guns here; they are bow mounted on all sub classes, but Gar/Tambor.
What happened to you is similiar to what Ducimus wrote in his manual:

Code:
Special note on deck gun placement:
Due to a hardcoded bug in the SH4 game engine, it is not possible to switch locations of the deck gun 
once a game has been saved to file.  Trying to move the deck gun from fore to aft, or vice versa will 
result in the crew member slots disappearing.  In order to circumvent this bug and prevent it to 
happening during play, the deck guns have been ***8220;fixed***8221; to a location.  By default, TMO defaults to 
mounting deck guns forward of the conning tower, as this is the most popular placement. 
The exception to this are the Tambor, and Gar, which ONLY have an aft mount due to the larger 5***8221;/51 
caliber deck gun they can equip. A bow mount for these two classes is not available.
If you prefer your deck gun mounted aft of the conning tower, enable the ***8220;TMO_Aft_deckguns***8221; 
alternate mod found in the documentation directory.
But, you didnt mention that you changed deck gun placement mid game or something... It maybe something with upgrades being broken in TMO - in your case caused by starting with S class; or save game corruption ...

You can check your saves: open your last save folder (look for dates) and open file called "ActiveUserPlayerUnits.upc" (with notepad, or notepad++) and search for deck gun.
These are examples from my game:

GAR (stern dgun):
Code:
[UserPlayerUnit 1.Compartment 8.WeaponSlot 1]
ID=SternDeckGun
NameDisplayable=Aft Deck Gun Mount
Type=NULL
AcceptedTypes=NULL
UserCustomizable=No
IDLinkBunker=GunsAmmoBunker
ExternalNodeName3D=M02
ExternalObjectName3D=NULL
ExternalDamageZoneTypeID3D=-1

IDLinkWeaponLoaded=3in50calUS, NULL

[UserPlayerUnit 1.Compartment 8.WeaponSlot 1.Weapon]
ID=3in50calUS
NameDisplayable=3"/50 Caliber Cannon
WeaponInterval=1941-12-01, 1942-12-01
WeaponSlotType=NULL
AmmoTypesAccepted=3inAPUS,3inHEUS
AmmoTypeLoaded=NULL
AmmoMagazineSize=1
AmmoMagazineRemaining=0
WeaponCrewMembersSlots=7
ExternalLinkName3D=3_50_Soclu
FunctionalType=WpCannon
Hitpoints=100.000000
EfficiencyHumanFactor=0.000000
EfficiencyMechanicFactor=1.000000
Efficiency=0.000000
Damage=0.000000
DamageHitpointsConsumed=0.000000
RemainingRepairTime=0000-00-00 00:00:00
DamageDescription1=NULL,0,0.2,0,1,1,Jam,0,0,NULL,1,0.3,0.187355
DamageDescription2=NULL,0,1,0,0.5,1,Chamber Explosion,50,5,NULL,1,2,13.4679
While on my Gato save this section look the same except:

Code:
IDLinkWeaponLoaded=NULL, NULL
- because Gato has bow mounted deck gun:

Code:
[UserPlayerUnit 1.Compartment 9.WeaponSlot 1]
ID=BowDeckGun
NameDisplayable=Fore Deck Gun Mount
Type=NULL
AcceptedTypes=NULL
UserCustomizable=No
IDLinkBunker=GunsAmmoBunker
ExternalNodeName3D=M01
ExternalObjectName3D=NULL
ExternalDamageZoneTypeID3D=-1
IDLinkWeaponLoaded=4in50calUS, NULL

[UserPlayerUnit 1.Compartment 9.WeaponSlot 1.Weapon]
ID=4in50calUS
NameDisplayable=4"/50 Caliber Cannon
WeaponInterval=1900-01-01, 1999-12-31
WeaponSlotType=NULL
AmmoTypesAccepted=4inAPUS
AmmoTypeLoaded=NULL
AmmoMagazineSize=1
AmmoMagazineRemaining=0
WeaponCrewMembersSlots=7
ExternalLinkName3D=4_50_soclu
FunctionalType=WpCannon
Hitpoints=100.000000
EfficiencyHumanFactor=0.000000
EfficiencyMechanicFactor=1.000000
Efficiency=0.000000
Damage=0.000000
DamageHitpointsConsumed=0.000000
RemainingRepairTime=0000-00-00 00:00:00
DamageDescription1=NULL,0,0.2,0,1,1,Jam,0,0,NULL,1,0.3,0.395235
DamageDescription2=NULL,0,1,0,0.5,1,Chamber Explosion,50,5,NULL,1,2,5.85215
Gar has this here:

Code:
IDLinkWeaponLoaded=NULL, NULL
So, in your save, if you have no gun at all, those two sections (SternDeckGun and BowDeckGun) should have "IDLinkWeaponLoaded=NULL, NULL".
You can edit it to add deck gun to your boat, but you will have to add crew to it too, and thats seems more complicated ... (Should I go on? )

Just check your file if it has these sections it (should be there):
aft dgun:
Code:
Search "Compartment 8" (11 hits in 1 files)
  F:\$save\SH4\data\cfg\SaveGames\00000038\ActiveUserPlayerUnits.upc (11 hits)
	Line 7923: [UserPlayerUnit 1.Compartment 8]
	Line 7963: [UserPlayerUnit 1.Compartment 8.WeaponSlot 1]
	Line 7975: [UserPlayerUnit 1.Compartment 8.EquipmentSlot 1]
	Line 7985: [UserPlayerUnit 1.Compartment 8.EquipmentSlot 1.Equipment]
	Line 8003: [UserPlayerUnit 1.Compartment 8.CrewMemberSlotAdditionalRepository 1]
	Line 8015: [UserPlayerUnit 1.Compartment 8.CrewMemberSlotAdditionalRepository 2]
	Line 8027: [UserPlayerUnit 1.Compartment 8.CrewMemberSlotAdditionalRepository 3]
	Line 8039: [UserPlayerUnit 1.Compartment 8.CrewMemberSlotAdditionalRepository 4]
	Line 8051: [UserPlayerUnit 1.Compartment 8.CrewMemberSlotAdditionalRepository 5]
	Line 8063: [UserPlayerUnit 1.Compartment 8.CrewMemberSlotAdditionalRepository 6]
	Line 8075: [UserPlayerUnit 1.Compartment 8.CrewMemberSlotAdditionalRepository 7]
and bow dgun:

Code:
Search "compartment 9" (22 hits in 1 files)
  F:\$save\SH4\data\cfg\SaveGames\00000038\ActiveUserPlayerUnits.upc (22 hits)
	Line 8087: [UserPlayerUnit 1.Compartment 9]
	Line 8127: [UserPlayerUnit 1.Compartment 9.WeaponSlot 1]
	Line 8139: [UserPlayerUnit 1.Compartment 9.WeaponSlot 1.Weapon]
	Line 8161: [UserPlayerUnit 1.Compartment 9.EquipmentSlot 1]
	Line 8171: [UserPlayerUnit 1.Compartment 9.EquipmentSlot 1.Equipment]
	Line 8190: [UserPlayerUnit 1.Compartment 9.EquipmentSlot 2]
	Line 8200: [UserPlayerUnit 1.Compartment 9.CrewMemberSlot 1]
	Line 8212: [UserPlayerUnit 1.Compartment 9.CrewMemberSlot 2]
	Line 8224: [UserPlayerUnit 1.Compartment 9.CrewMemberSlot 3]
	Line 8236: [UserPlayerUnit 1.Compartment 9.CrewMemberSlot 4]
	Line 8248: [UserPlayerUnit 1.Compartment 9.CrewMemberSlot 5]
	Line 8260: [UserPlayerUnit 1.Compartment 9.CrewMemberSlot 5.CrewMember]
	Line 8302: [UserPlayerUnit 1.Compartment 9.CrewMemberSlot 5.CrewMember.Rank]
	Line 8319: [UserPlayerUnit 1.Compartment 9.CrewMemberSlot 5.CrewMember.Rank.CrewMember3D]
	Line 8338: [UserPlayerUnit 1.Compartment 9.CrewMemberSlot 6]
	Line 8350: [UserPlayerUnit 1.Compartment 9.CrewMemberSlot 6.CrewMember]
	Line 8392: [UserPlayerUnit 1.Compartment 9.CrewMemberSlot 6.CrewMember.Rank]
	Line 8409: [UserPlayerUnit 1.Compartment 9.CrewMemberSlot 6.CrewMember.Rank.CrewMember3D]
	Line 8428: [UserPlayerUnit 1.Compartment 9.CrewMemberSlot 7]
	Line 8440: [UserPlayerUnit 1.Compartment 9.CrewMemberSlot 7.CrewMember]
	Line 8482: [UserPlayerUnit 1.Compartment 9.CrewMemberSlot 7.CrewMember.Rank]
	Line 8499: [UserPlayerUnit 1.Compartment 9.CrewMemberSlot 7.CrewMember.Rank.CrewMember3D]
If its all there then we're lucky and need only to add the gun in its rightful place, so change secion9' IDLinkWeaponLoaded=NULL, NULL (look above).

Edit: If you decide to do all this, do this to in-base save.

Last edited by stanger; 05-04-12 at 06:31 PM.
stanger is offline   Reply With Quote