New Unit Class?
Moderators: Order of Battle Moderators, The Artistocrats
-
- Sergeant Major - Armoured Train
- Posts: 590
- Joined: Sun Feb 10, 2019 11:10 am
New Unit Class?
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?
-
- Lieutenant-General - Karl-Gerat 040
- Posts: 3700
- Joined: Mon Nov 27, 2017 10:24 pm
Re: 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.
-
- Sergeant Major - Armoured Train
- Posts: 590
- Joined: Sun Feb 10, 2019 11:10 am
Re: New Unit Class?
Oh no, mine is a total conversion so no problem.GabeKnight wrote: ↑Fri May 21, 2021 5:54 pmSure. 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.
Another question: what are the "stats = 12, 13, 1, 3, 2, 16, 17, 5, 15, 14" I see in the txt?
-
- Lieutenant-General - Karl-Gerat 040
- Posts: 3700
- Joined: Mon Nov 27, 2017 10:24 pm
Re: New Unit Class?
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...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?
Personally I never bothered to mess with those settings and don't know if they really work in mods.
-
- Field Marshal - Elefant
- Posts: 5847
- Joined: Mon Aug 15, 2011 12:48 pm
- Location: the land of freedom
Re: New Unit Class?
A long time ago, I had created a new Unit Class (RECON AIR):
Re: New Unit Class?
Terminator, how did you remove the prefix UNITCLASS_ in front of the new unit class name?terminator wrote: ↑Sun May 23, 2021 8:31 am A long time ago, I had created a new Unit Class (RECON AIR):
Recon.JPG
-
- Field Marshal - Elefant
- Posts: 5847
- Joined: Mon Aug 15, 2011 12:48 pm
- Location: the land of freedom
Re: New Unit Class?
It was a long time ago...fortunately I have a good memorysvendler wrote: ↑Sat Oct 16, 2021 12:39 pmTerminator, how did you remove the prefix UNITCLASS_ in front of the new unit class name?terminator wrote: ↑Sun May 23, 2021 8:31 am A long time ago, I had created a new Unit Class (RECON AIR):
Recon.JPG
You have to add an entry here (for the English and Steam versions) :
PS: it is preferable and recommended to do this in the Mods folder
Re: New Unit Class?
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 anywaysvendler wrote: ↑Sat Oct 16, 2021 12:39 pmTerminator, how did you remove the prefix UNITCLASS_ in front of the new unit class name?terminator wrote: ↑Sun May 23, 2021 8:31 am A long time ago, I had created a new Unit Class (RECON AIR):
Recon.JPG
Re: New Unit Class?
Our answers crossed But thanks again mate!svendler wrote: ↑Sat Oct 16, 2021 1:46 pmAh! 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 anywaysvendler wrote: ↑Sat Oct 16, 2021 12:39 pmTerminator, how did you remove the prefix UNITCLASS_ in front of the new unit class name?terminator wrote: ↑Sun May 23, 2021 8:31 am A long time ago, I had created a new Unit Class (RECON AIR):
Recon.JPG
-
- Field Marshal - Elefant
- Posts: 5847
- Joined: Mon Aug 15, 2011 12:48 pm
- Location: the land of freedom
Re: New Unit Class?
With my new system of classification of reconnaissance units (Recon Land & Recon Air), this would be better presented in the last DLC :