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
Probably the best way to cope with this is for me to find what simple_trigger is periodically checking the garrison and put a failsafe that if no owner is found the garrison does not have a default maximum size. This is easier said than done because it implies reading every line of a 60,000 line file, as diplomacy has a lot of piggyback routines that seem unrelated to the original and it makes it difficult to find where something is buried.
I would estimate it as a several days long task and there are a great many other things on my plate. On your side, if this is a town waiting to be given a lord but for example the king/queen of that faction is imprisoned so no lord can be decided, hurry up and free the king/queen so a decision can be made as to who gets the town, so garrisons can work normally.
Also there is a code snippet where undead in a garrison convert prisoners to undead, which may be converting the garrison to fluff that leaves the garrison. Try not adding undead to the garrison and see if the behavoir changes.
Finally, if YOU are running the kingdom, give the town/castle to someone so the garrison has a lord it can measure for the garrison size. I don't see garrisons shrinking in my tests but you may have some unusual situation.
If those villages are looted or the reinforcements ambushed while travelling (by large bandit groups or enemy lords) then this interferes with garrison growth.
b) lords that own castles/towns will hire troops if they have spare funds, I can find the simple_trigger where this happens, and inspect it.
c) I will add a timer based reinforcement by culture template (there are 3 templates for reinforcements at each faction). These are how patrols and caravans are formed, and adding to a garrison a few troops at a time can be done similarly.
d) I still don't know how or why your garrisons are emptied. Is this with a normal faction or is it your own kingdom? Are these normal kingdom lords or your companions promoted to be vassals (of your own kingdom)?
cf_reinforce_party 28779 looks to be where garrisons are reinforced
hire_men_to_kingdom_hero_party 28902 <-- prunes party size based on leader corrected line 29007
I found where garrisons are shrinking (thank you Diplomacy grrrr) and added a line to only prune when (gt, ":party_no", centers_end), # GS skip garrisons C17.II
I will look at pro-actively adding reinforcements at cf_reinforce_party a little later but now that I bookmarked it in my notes it will be a much faster fix. I'll have it ready for C17.II coming up ASAP.
----
In other news (since discussions allow 8x more text than comments):
I am making better progress than expected but need to review most every line anyway, as many scripts and functions assume the fixed point (decimal) was set earlier, and old Native/Diplomacy code likes 100, my code likes 1000, formations and battle presentation likes 1000 but calls AI that sets 100, and for example deathcam sets 10000 which will then crush all spell effects from applying correctly. Thus my estimate for 50-70 hours to hand review 250,000 lines (that is not an exaggeration by the way). Maybe I am faster, I prefer to set expectations based on my being unable to make progress and then sometimes "work miracles".
I am NOT superman.
I removed the requirement at simple_triggers 22 for the town to have a lord before it gets its first reinforcements but the trigger rolls dice each day and reinforces on a one in 3 success, so there may be several days between reinforcements. The reinforcements start walking from villages tied to the center and if those are looted there will be no reinforcement; likewise if the center is shown as status "under siege".
There are changes though to loosen the conditions for reinforcement this patch.
I just need the sgxx.sav file with the latest date changed for your current campaign. You could
right-click "copy" the file then right-click "Paste" it and Windows will rename the copy for you. Now right-click that copy and either .zip or 7zip or at worst case compress to .rar so the file is small enough to paste to discord. It will be about 16 MB uncompressed and compress to around 8-ish, with (free) Discord limited to 10 MB. Now sign into Discord, go to channel bug reports, and drag that compressed file to a line. You could start writing then drag the file over your writing and it adds that file as an attachment.