军团战棋 Legion War

军团战棋 Legion War

View Stats:
Arakus Feb 12, 2024 @ 11:00am
Population Hardcapped at 300?
There is a population cao of 300.
No matter is i build additional Barracks it stays at 300.

To counter this i reduced the pop use of units -1, so i can have more units at all.
Does anybody know where i can change this hardcap?
< >
Showing 1-3 of 3 comments
Hi. It's too complicated, because "300" hardcoded into C#.
You must:
1. download dnSpy - decompiler
2. decompile Assembly-CSharp.dll in Legion War\LegionWar_Data\Managed
3. find the 300-constant in numerous game-files, change the value and rebuild the dll

Imho, it's better just to reduce unit-price as you done)
Arakus Feb 17, 2024 @ 6:17pm 
Originally posted by BlackHole in the knee:
Hi. It's too complicated, because "300" hardcoded into C#.
You must:
1. download dnSpy - decompiler
2. decompile Assembly-CSharp.dll in Legion War\LegionWar_Data\Managed
3. find the 300-constant in numerous game-files, change the value and rebuild the dll

Imho, it's better just to reduce unit-price as you done)

Thx for the answer.
I think the dev should set such variables in an easy to edit file like in most other games.
Would be good for modding.

Simply a file where all variables are in and the game take them from there.
Paradox games are a good example for this,
I think the dev really is a monster having been produced tones of C#-code for the game. Apreciate him. And he did export tones of variables to editable files (you already found them in SteamLibrary\steamapps\common\ Legion War\LegionWar_Data\StreamingAssets\).
But not all variables were exported, there are too much of them))) At least he hasn't exported consts for game regimes (4X, hero/unit chellenges)
To be honest I've seen the original game-code and the dev isn't an example of good code-architector) His aproaches are blowing mind in some cases, it's hard to explain how game mechanics work and there you can find a const you need))
< >
Showing 1-3 of 3 comments
Per page: 1530 50