New Unit Class?

Moderators: Order of Battle Moderators, The Artistocrats

Post Reply
StuccoFresco
Sergeant Major - Armoured Train
Sergeant Major - Armoured Train
Posts: 590
Joined: Sun Feb 10, 2019 11:10 am

New Unit Class?

Post by StuccoFresco »

Is it possible to add a new unit class? I wanted to separate the Building one in two (one for AA buildings, one for AT buildings, so to speak). I faintly remember the AI having problems with new classes, but since they are buildings it shouldn't be a problem, should it?
GabeKnight
Lieutenant-General - Karl-Gerat 040
Lieutenant-General - Karl-Gerat 040
Posts: 3700
Joined: Mon Nov 27, 2017 10:24 pm

Re: New Unit Class?

Post by GabeKnight »

StuccoFresco wrote: Fri May 21, 2021 6:11 am Is it possible to add a new unit class?
Sure. Should be the "classes.txt".

Regarding the AI orders, you can just adapt them. The problem would only matter if you try to use a mod on unchanged stock scens.
StuccoFresco
Sergeant Major - Armoured Train
Sergeant Major - Armoured Train
Posts: 590
Joined: Sun Feb 10, 2019 11:10 am

Re: New Unit Class?

Post by StuccoFresco »

GabeKnight wrote: Fri May 21, 2021 5:54 pm
StuccoFresco wrote: Fri May 21, 2021 6:11 am Is it possible to add a new unit class?
Sure. Should be the "classes.txt".

Regarding the AI orders, you can just adapt them. The problem would only matter if you try to use a mod on unchanged stock scens.
Oh no, mine is a total conversion so no problem.

Another question: what are the "stats = 12, 13, 1, 3, 2, 16, 17, 5, 15, 14" I see in the txt?
GabeKnight
Lieutenant-General - Karl-Gerat 040
Lieutenant-General - Karl-Gerat 040
Posts: 3700
Joined: Mon Nov 27, 2017 10:24 pm

Re: New Unit Class?

Post by GabeKnight »

StuccoFresco wrote: Sat May 22, 2021 6:35 am Another question: what are the "stats = 12, 13, 1, 3, 2, 16, 17, 5, 15, 14" I see in the txt?
Should be exactly that; stats for the unit as shown in the UI ("summarized" version maybe). You may have noticed that air, land and naval units have different sets of stats displayed. Although I still miss the torpedo damage stats on bombers and ships...

Personally I never bothered to mess with those settings and don't know if they really work in mods.
terminator
Field Marshal - Elefant
Field Marshal - Elefant
Posts: 5847
Joined: Mon Aug 15, 2011 12:48 pm
Location: the land of freedom

Re: New Unit Class?

Post by terminator »

A long time ago, I had created a new Unit Class (RECON AIR):

Recon.JPG
Recon.JPG (82.08 KiB) Viewed 1330 times
svendler
Private First Class - Wehrmacht Inf
Private First Class - Wehrmacht Inf
Posts: 5
Joined: Fri Feb 24, 2012 8:24 pm

Re: New Unit Class?

Post by svendler »

terminator wrote: Sun May 23, 2021 8:31 am A long time ago, I had created a new Unit Class (RECON AIR):


Recon.JPG
Terminator, how did you remove the prefix UNITCLASS_ in front of the new unit class name?
terminator
Field Marshal - Elefant
Field Marshal - Elefant
Posts: 5847
Joined: Mon Aug 15, 2011 12:48 pm
Location: the land of freedom

Re: New Unit Class?

Post by terminator »

svendler wrote: Sat Oct 16, 2021 12:39 pm
terminator wrote: Sun May 23, 2021 8:31 am A long time ago, I had created a new Unit Class (RECON AIR):


Recon.JPG
Terminator, how did you remove the prefix UNITCLASS_ in front of the new unit class name?
It was a long time ago...fortunately I have a good memory :)

You have to add an entry here (for the English and Steam versions) :

Capture d’écran 2021-10-16 145247.jpg
Capture d’écran 2021-10-16 145247.jpg (200.12 KiB) Viewed 938 times

PS: it is preferable and recommended to do this in the Mods folder :idea:
svendler
Private First Class - Wehrmacht Inf
Private First Class - Wehrmacht Inf
Posts: 5
Joined: Fri Feb 24, 2012 8:24 pm

Re: New Unit Class?

Post by svendler »

svendler wrote: Sat Oct 16, 2021 12:39 pm
terminator wrote: Sun May 23, 2021 8:31 am A long time ago, I had created a new Unit Class (RECON AIR):


Recon.JPG
Terminator, how did you remove the prefix UNITCLASS_ in front of the new unit class name?
Ah! Found the naming scheme in english.txt. Added the new unit class names to english_mod.txt. Still, your posting inspired me to go and search, so thanks anyway :)
svendler
Private First Class - Wehrmacht Inf
Private First Class - Wehrmacht Inf
Posts: 5
Joined: Fri Feb 24, 2012 8:24 pm

Re: New Unit Class?

Post by svendler »

svendler wrote: Sat Oct 16, 2021 1:46 pm
svendler wrote: Sat Oct 16, 2021 12:39 pm
terminator wrote: Sun May 23, 2021 8:31 am A long time ago, I had created a new Unit Class (RECON AIR):


Recon.JPG
Terminator, how did you remove the prefix UNITCLASS_ in front of the new unit class name?
Ah! Found the naming scheme in english.txt. Added the new unit class names to english_mod.txt. Still, your posting inspired me to go and search, so thanks anyway :)
Our answers crossed :D But thanks again mate!
terminator
Field Marshal - Elefant
Field Marshal - Elefant
Posts: 5847
Joined: Mon Aug 15, 2011 12:48 pm
Location: the land of freedom

Re: New Unit Class?

Post by terminator »

With my new system of classification of reconnaissance units (Recon Land & Recon Air), this would be better presented in the last DLC :

US Recon.jpg
US Recon.jpg (150.18 KiB) Viewed 901 times
Post Reply

Return to “Order of Battle : World War II - Scenario Design”