1
Mods & Development / Re: What's the best way to fix count.c (1) error message?
« on: September 30, 2025, 04:29:56 AM »
i also get all adress for count tables here
https://github.com/Mistral-war2ru/War2Mod-Server/blob/main/defs.h#L14
they count for both races
for example table i named PEON is counting peons AND peasants if player actually have both, like if you playing orc and captured allied human
there is also ACTIVE_* tables
they only count units that was created during the game itself and was not in pud map from start (or if they have active flag in pud map)
basicaly this thing only used for ai stuff, active units is what it can send to attack
https://github.com/Mistral-war2ru/War2Mod-Server/blob/main/defs.h#L14
they count for both races
for example table i named PEON is counting peons AND peasants if player actually have both, like if you playing orc and captured allied human
there is also ACTIVE_* tables
they only count units that was created during the game itself and was not in pud map from start (or if they have active flag in pud map)
basicaly this thing only used for ai stuff, active units is what it can send to attack
