Kage,

How many troops do you have? You do have to maintain those troops at 1 koku/man. If you're bringing in more koku than you're spending, then the total in the bank should be increasing. The maintenance cost would be subtracted before any build requests were processed, and then what EuroSan says could easily happen. Note: A 16 bit integer could go to 65535 if it were unsigned, but then I suppose a common programming error is also using signed numbers when you don't need to.

As far as the AI stopping training, here's how CA/DT answered my questions in Erado's Question Time:


Question 044 - Subject : Strategy Details

In a recent Shogun campaign game on normal difficulty, the one remaining AI clan (Uesugi) stopped building and training at one point in the game. Although the game continued another 22 years, he never built or trained troops again. His income was fixed at a relatively low 1340/year @ 100% tax rate, and he had 7000 troops total in his two provinces. He had room for more buildings. I continued to build up strength on his borders. Why did Uesugi stop building and training?

Answer:

If you can hold your borders with an existing number of troops, there's no point in building more which will only cost money to maintain. If you have enough troop building capacity you can be better off saving money to build troops when needed than spending it. There's a large number of factors he could have been taking into account.



Question 045 - Subject : Strategy Details

If there is a negative koku limit beyond which the AI cannot build, what is it for each difficulty level and each clan?

Answer:

Mmm, that would be telling.


One other thing: I tried fighting large battles with waves of reinforcements, and the battle would always hang on the third wave. In one case there was no fighting going on, none of my units were moving, and the camera was still. The only thing happening was AI reinforcements coming onto the map. In this case, the program may be running into a graphical limit on textures.

MizuYuuki ~~~
Clan Takiyama ~~~