View Single Post
Old 04-09-12, 04:47 PM   #1024
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

Quote:
Originally Posted by TheDarkWraith View Post
It appears that this 'problem' only appears on those entries that end with .TargetType x correct?
\yes - it looks like when the TargetType=1 it works correctly.
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:
How does one cross reference the Type=x for each entry to what it should be? For instance the entry ending in .TargetType 6 where can I find what the actual Type=x should be? How do I know that Type=108 is incorrect? How do I know that TargetType=1 is correct?
This is either read from the roaster/names.cfg or the Sea/ships names/ships name.cfg - both should match.

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
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote