Way to change basic infantry in Dune 2000

Information and discussion for custom maps and mods.
Post Reply
votadc
Posts: 7
Joined: Wed Aug 23, 2017 2:02 am

Way to change basic infantry in Dune 2000

Post by votadc »

I am making a Dune 2000 mod where there are four different basic infantry and three different troopers: each faction has a different trooper, for example Harkonnen have shotgun infantry that are weak but they have combat trooper that are nearly decent against light infantry (still lose cost-wise) while ordos have a long ranged light infantry but a short ranged trooper.

There is a problem: they don't use those units even if you write to do so in the ai.yaml files.
They will use the trooper defined as trooper in infantry.yaml, if you inherits the trooper with a new name and change the AI files they won't build the trooper at all.

What it is strange is the fact that I already added new combat tanks and even new siege tank (so the problem isn't having a basic unit ^combat_tank and then put the variations since ai is building two different siege tanks) and AI is using them.
Zero problems with heavy factory.
With light factory AI build the quad variants but no the trike variants: if they don't have the standard trike or the raider they won't build any scout vehicle, they will just upgrade the factory to get the quad and their variant. So some problems with light vehicles too but not many.

So the problem seems about infantry.
AI use only "old infantry".
For example if you set light infantry and nsfremen they will build them while the other won't build them. In case of nsfremen they build in huge quantities if you write that they are the basic infantry, but no way to do with any new kind of infantries. They use thumper too that is both a thumper and a mortar unit in this mod.

BUT I have the emperor that summon Sardaukar Centurion to palace and Fremen that summon Sandcat everywhere (even on rock, but it is just a minor bug) with the palace power so the AI knows how to use new to infantry and when summon it

So the problem is about AI producing units in barracks.

Any idea how to force them?

abcdefg30
Posts: 643
Joined: Mon Aug 18, 2014 6:00 pm

Post by abcdefg30 »

Hm, that sounds indeed weird. Do you have the mod uploaded somewhere?
You can also try enabling the AI debug messages (Settings -> Advanced -> Show Bot Debug Messages), that might give new insights.

votadc
Posts: 7
Joined: Wed Aug 23, 2017 2:02 am

Post by votadc »

Here is the mod prototype.
The ingame ai debug says only if AI want to build or upgrade something or what harvester is doing but didn't give any report about unit production.
No problem with buildable new air units too.

I confirm the problem right now plague barracks units and trike variations (but not quad).
Attachments
dune12.zip
(3.83 MiB) Downloaded 213 times

votadc
Posts: 7
Joined: Wed Aug 23, 2017 2:02 am

Post by votadc »

Seems to affect Dune 2000 only. Red Alert is ok: if you put a new basic infantry instead of the regular one the AI will build it. Any idea?

votadc
Posts: 7
Joined: Wed Aug 23, 2017 2:02 am

Post by votadc »

Problem solved.
Seems ai ignore units with
name_bigletter for example trooper_A for Atreides Trooper.

Post Reply