grimjaw
General
Posts: 506
Joined: Wed Feb 09, 2011 5:38 am
Location: Arkansas

Need developer information on subtypes

Fri Dec 13, 2019 10:05 pm

I'm working on a mod for CW2, but I've looked at the other AGEOD game databases to try to find the information I need. I'm still coming up short.

From what I can tell, at some point in the engine development process, subtypes for models became linked to another value, which I suspect is the model family. In the model database for CW2 the subtype is listed but it's also one of the fields that is deprecated and thus doesn't get put into the model files. While there are sometimes multiple subtypes listed for a family in the database, I think the engine is ignoring it if I include the subtype field in the model files.

I looked at Russia Under Siege DBs as a reference. They don't even list subtype in the model DB, but they are still using family. Continuing with RUS as an example, the terrain files still only have 6 subtypes defined for frontage calculations, even though there are things like tanks and other vehicles defined in RUS. I haven't played that game but I suspect the tanks are artillery subtypes for the purpose of frontage.

Back to CW2. In the mod I'm working on, I'm trying to utilize more of the families in the engine to more closely regulate replacement costs. Super heavy arty, heavy cavalry and armored train are three of the families I'd like to use. I dont know what subtypes they are defined as. So here are my questions.

1. Can you provide a list of the families and what subtypes they are linked to?

2. Is it possible to get the engine to reference a subtype from the model file and override the subtype defined by the model family? Some thing I can tell the engine to do, like instead of using this list of subtypes for models, use the list of subtypes in the model files instead?

Thanks for any assistance, and happy holidays!

-jmm

User avatar
Bohémond
Posts: 2799
Joined: Wed May 14, 2008 8:47 pm

Re: Need developer information on subtypes

Sat Dec 14, 2019 12:34 am

Hi,

I am not a developer but I can share the information I know about.
Below are listed all the families with their related domain and subtype.
// Subtypes, Domain & Kind calculated from the family
_famLeader : begin Kind := _gkLand; Domain := _domLand; SubType := _stmSupply; end;
_famGHQ : begin Kind := _gkLand; Domain := _domLand; SubType := _stmSupply; end;
_famHQ : begin Kind := _gkLand; Domain := _domLand; SubType := _stmSupply; end;
_famEliteInf : begin Kind := _gkLand; Domain := _domLand; SubType := _stmRegular; end;
_famLineInf : begin Kind := _gkLand; Domain := _domLand; SubType := _stmRegular; end;
_famLightInf : begin Kind := _gkLand; Domain := _domLand; SubType := _stmRegular; end
_famSkirmisher : begin Kind := _gkLand; Domain := _domLand; SubType := _stmIrregular; end;
_famRaider : begin Kind := _gkLand; Domain := _domLand; SubType := _stmIrregular; end;
_famMilitia : begin Kind := _gkLand; Domain := _domLand; SubType := _stmMilitia; end;
_famCavalry : begin Kind := _gkLand; Domain := _domLand; SubType := _stmCavalry; end;
_famHvyCavalry : begin Kind := _gkLand; Domain := _domLand; SubType := _stmCavalry; end;
_famLightVehicle : begin Kind := _gkLand; Domain := _domLand; SubType := _stmCavalry; end;
_famMedVehicle : begin Kind := _gkLand; Domain := _domLand; SubType := _stmCavalry; end;
_famHvyVehicle : begin Kind := _gkLand; Domain := _domLand; SubType := _stmCavalry; end;
_famSHvyVehicle : begin Kind := _gkLand; Domain := _domLand; SubType := _stmCavalry; end;
_famLightArty : begin Kind := _gkLand; Domain := _domLand; SubType := _stmArtillery; end;
_famMedArty : begin Kind := _gkLand; Domain := _domLand; SubType := _stmArtillery; end;
_famHvyArty : begin Kind := _gkLand; Domain := _domLand; SubType := _stmArtillery; end;
_famSHvyArty : begin Kind := _gkLand; Domain := _domLand; SubType := _stmArtillery; end;
_famArmoredTrain : begin Kind := _gkLand; Domain := _domLand; SubType := _stmArtillery; end;
_famSupply : begin Kind := _gkLand; Domain := _domLand; SubType := _stmSupply; end;
_famGood : begin Kind := _gkLand; Domain := _domLand; SubType := _stmSupply; end;
_famService : begin Kind := _gkLand; Domain := _domLand; SubType := _stmSupply; end;
_famEngineer : begin Kind := _gkLand; Domain := _domLand; SubType := _stmSupply; end;
_famNavalEngineer : begin Kind := _gkLand; Domain := _domLand; SubType := _stmSupply; end;
_famCarrierShip : begin Kind := _gkNav; Domain := _domNav; SubType := _stmShip; end;
_famHvyWarship : begin Kind := _gkNav; Domain := _domNav; SubType := _stmShip; end;
_famLitWarship : begin Kind := _gkNav; Domain := _domNav; SubType := _stmShip; end;
_famRaiderShip : begin Kind := _gkNav; Domain := _domNav; SubType := _stmShip; end;
_famTransportShip : begin Kind := _gkNav; Domain := _domNav; SubType := _stmShip; end;
_famHvyCoastalShip : begin Kind := _gkNav; Domain := _domNav; SubType := _stmShip; end;
_famLitCoastalShip : begin Kind := _gkNav; Domain := _domNav; SubType := _stmShip; end;
_famSubmarine : begin Kind := _gkNav; Domain := _domNav; SubType := _stmShip; end;
_famSubTransport : begin Kind := _gkNav; Domain := _domNav; SubType := _stmShip; end;
_famAirRecon : begin Kind := _gkLand; Domain := _domAir; SubType := _stmSupply; end;
_famAirFighter : begin Kind := _gkLand; Domain := _domAir; SubType := _stmSupply; end;
_famAirFightBomb : begin Kind := _gkLand; Domain := _domAir; SubType := _stmSupply; end;
_famAirNightFighter : begin Kind := _gkLand; Domain := _domAir; SubType := _stmSupply; end;
_famAirDiveBomber : begin Kind := _gkLand; Domain := _domAir; SubType := _stmSupply; end;
_famAirNavBomber : begin Kind := _gkLand; Domain := _domAir; SubType := _stmSupply; end;
_famAirLevelBomber : begin Kind := _gkLand; Domain := _domAir; SubType := _stmSupply; end;
_famAirStratBomber : begin Kind := _gkLand; Domain := _domAir; SubType := _stmSupply; end;
_famAirNukeBomber : begin Kind := _gkLand; Domain := _domAir; SubType := _stmSupply; end;
_famAirTransport : begin Kind := _gkLand; Domain := _domAir; SubType := _stmSupply; end;

So 2 kinds (Land/Nav), 3 domains (Land/Nav/Air), 7 subtypes and a bunch of families.


Hope it helps.



Regards

grimjaw
General
Posts: 506
Joined: Wed Feb 09, 2011 5:38 am
Location: Arkansas

Re: Need developer information on subtypes

Sat Dec 14, 2019 2:32 am

Bohemond, that does indeed help, thank you very much!

Return to “CW2 Mods”

Who is online

Users browsing this forum: No registered users and 20 guests