Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Thanks!
Thank you.
If a unit stops being recruitable, like if you research a technology that allows you to upgrade it, then it will not appear in the garrison anymore (the game doesn't know to upgrade it). That is why for the roman units one of each tech tier (princepes, legionairs, legionary cohort) is added to roman_strong_melee: because once you research the tech princepes no longer count for the purposes of the garrison.
Because your mod allows you to recruit a unit earlier than you can upgrade another unit to it, it makes it more difficult to do the garrisons which is why you may have to create duplicate units to get the exact numbers to work.
following your example gives me 2 units of spear warriors, i get that. later they upgrade to noble spears but then i get only 1 noble spear again. i can't make a duplicate unit, for every unit that i touch. or is there a way to set unit numbers?
I think what would happen if for instance you had 1 levy spear and 1 spear warrior in a group is that orginally the garrison would have 1 levy spear and 1 spear warrior unit, but when you research the tech it would only have 1 spear warrior unit because the levy spear is no longer available and only 1 spear warrior unit is listed. I'm not 100% sure about this though so you might need to test it to make sure.
basically my mod works as follows. a random city named mafferstown has as garrison 1 spear warrior,3 spear levy,3celtic tribesmen and 2 celtic youth. now after the first technology both the celtic tribesmen and spear levy become spear warriors. in "theory" that should become 7 spear warriors now(1 from start + 3 from celtic tribesmen + 3 from spear levy) and the 2 celtic youth skirmisher unit. but i only get 1 unit(2 in this case, as it's 2 different units that upgrade that each give 1 spear warrior) so the garrison group would have the random name of maffer_garrison and it has said 1 spear warrior,3 celtic tribesmen,3 spear levy and 2 celtic youth. how would i make the group(upgraded units) that then replaces the old units?
For the example above, an Iceni player would recieve one Bri_Sword_Band unit and nothing else. An Arverni player would get one Cel_Warriors unit and nothing else. If you modded the Iceni so that they could recruit Cel_Warriors also, then their garrison would get both the Sword Band unit AND the Celtic Warriors unit.
The first one, armed_citizenry_unit_groups, is just a list of the names of the groups of garrisons and adding stuff there will not actually add units, although you need to add an entry there if you want to create a new group.
if you could help me a bit, or guide me in the right direction i would appreciate that
The original reason I added garrison units to all the buildings is because that is how the barbarian garrisons worked and I wanted to make it consistent across all factions. Now all factions are consistent in that they only get garrisons from the main town structure and recruitment buildings so its not necessary.
Someone could still make other buildings give garrison units, I just chose not to for the reasons above.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=235235820