• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

unmerged(14164)

Second Lieutenant
Jan 29, 2003
119
3
Visit site
I have been recently trying to improve the Prussian AI (one among many projects designed to keep me from doing what I'm really supposed to be doing -- applying for Grad School).

I noticed that every time it starts the GC it builds 3-4 explosives factories which in and of itself is ridiculous considering it won't be able to get ammunition or fertilizer for a dozen years.

What is really vexing is that in response I set the AI 'factory variable' to 0.000 for 'explosives_factory' (I tried 0.001 as well). This did not seem to have any effect on Prussia's desire to continuously build these useless factories.

Is there some other variable I'm missing, or is this a bug?

Thanks,
Grendel
 
  • 1
Reactions:
Upvote 0
It has very little impact if any - we had a little discussion with Johan about this and he rewrote the AI factory selection code for 1.03. So I guess its a bug fixed for 1.03
 
  • 1
Reactions:
Derek Pullem said:
It has very little impact if any - we had a little discussion with Johan about this and he rewrote the AI factory selection code for 1.03. So I guess its a bug fixed for 1.03

Excellent! I guess thats the second best answer, just after: "there is another variable that you missed!"

Looking forward to what seems like a well thought out and well tested 1.03 patch.
 
  • 1Like
Reactions:
unknown-X- said:
strange mybe you have double } } somwhere(where it is not needed=, making AI files work only to the halfway, because i have had only little or small problems with making AI build what is orderd.


No. I checked the Savegame file and it says 'explosives_factory = 0.000'.

Have you tried altering the Prussia AI file?
 
unknown-X- said:
strange mybe you have double } } somwhere(where it is not needed=, making AI files work only to the halfway, because i have had only little or small problems with making AI build what is orderd.

We noticed that the AI still built too many useless factories and tended to build multiple factories of the same type at the same time (e.g. six explosive factories in Spain). Moving the preference for steel factories to 25 had minimal effect on the UK.

New AI is profit based and "gap" based. That is if the AI can't get a resource or needs it for its own factories to function it is more likely to build this.
 
Derek Pullem said:
New AI is profit based and "gap" based. That is if the AI can't get a resource or needs it for its own factories to function it is more likely to build this.

I second the "Great!"