![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
04-09-12, 04:47 PM
|
#11 | ||
|
Navy Seal
![]() |
Quote:
This "1" is saying - target is set by type. So it will also have "Type=x" if x being a ship type found in roaster/names.cfg. Code:
;Warships Type0=Patrol Craft Type1=Corvette Type2=Frigate Type3=Destroyer Escort Type4=Destroyer Type5=Minesweeper Type6=Light Cruiser Type7=Heavy Cruiser Type8=Escort Carrier Type9=Fleet Carrier Type10=Battlecruiser Type11=Battleship Type12=Minelayer Type13=Auxiliary Cruiser Type14=Special OPS Boat Type15=Landing Craft Type16=Elite Patrol Craft Type17=Elite Destroyer escort Type18=Elite Escort Carrier Type19=Super Fleet carrier Type20=Super Battleship ;Merchant ships Type100=Replenishment Type101=Tanker Type102=Cargo Type103=Troop Transport Type104=Coastal Vessel Type105=Life Raft Type106=Survivor Type107=Z ships Type108=Rare Cargo ship Type109=Rare Troop Transport Type110=Environmental ;Submarine Type200=Submarine Type201=Replenishment Submarine Type202=Missile Submarine Type203=Environmental If TargetType=0 - this is where I think there is an error. This "0" is saying - target is set by class (name). Class=BCRenown Type=102 TargetType=0 So the name is BCRenown and is found in the sea folder ships cfg This may be enough for the game to be able to id the target, but it also lists the ship type (as with the example above for TargetType=1) Now if the game also reads the type=102 - this will not match with the type in the ships cfg file. For this ship (Renown) it is type 10 Quote:
So - if your app can check if in campaign folder campaign.cfg has the entry TargetType=0 It should check the ship class(name) from same file (campaign.cfg) and then look in that ships cfg file for unittype - then check that is the same as the Type=x in the campaign.cfg |
||
|
|
| Tags |
| awesome, campaign, graf zeppelin, harbour, new bases, new ships, ohii |
|
|
