Minimum Influence Priority?

AI development

Moderators: Grummel7, Committer

Post Reply
Message
Author
wobbly
Cosmic Dragon
Posts: 2005
Joined: Thu Oct 10, 2013 6:48 pm

Minimum Influence Priority?

#1 Post by wobbly »

I'd argue for influence priority never being less then 25 ( or more specifically production priority / 2). The AI doesn't understand the concept of IP banking. For a human player it makes sense to generate IP when it's easy, whether you need it now or not.

Code: Select all

15:31:43.204203 {0x00002910} [debug] python : ResourcesAI.py:841 : Resource Priorities:
15:31:43.204203 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_RESEARCH: 78.00
15:31:43.204203 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_PRODUCTION: 50.00
15:31:43.204203 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_INFLUENCE: 0.00
15:31:43.205201 {0x00002910} [debug] python : ResourcesAI.py:855 : 
15:31:43.205201 {0x00002910} [info] python : ResourcesAI.py:880 : Planetary Foci Overview Turn 1

15:31:52.379029 {0x00002910} [debug] python : ResourcesAI.py:841 : Resource Priorities:
15:31:52.379029 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_RESEARCH: 78.00
15:31:52.379029 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_PRODUCTION: 50.00
15:31:52.379029 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_INFLUENCE: 18.00
15:31:52.380030 {0x00002910} [debug] python : ResourcesAI.py:855 : 
15:31:52.380030 {0x00002910} [info] python : ResourcesAI.py:880 : Planetary Foci Overview Turn 2

15:34:00.723802 {0x00002910} [debug] python : ResourcesAI.py:841 : Resource Priorities:
15:34:00.724800 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_RESEARCH: 78.00
15:34:00.724800 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_PRODUCTION: 50.00
15:34:00.724800 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_INFLUENCE: 18.00
15:34:00.724800 {0x00002910} [debug] python : ResourcesAI.py:855 : 
15:34:00.724800 {0x00002910} [info] python : ResourcesAI.py:880 : Planetary Foci Overview Turn 3

15:34:01.684089 {0x00002910} [debug] python : ResourcesAI.py:841 : Resource Priorities:
15:34:01.684089 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_RESEARCH: 78.00
15:34:01.684089 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_PRODUCTION: 50.00
15:34:01.684089 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_INFLUENCE: 18.00
15:34:01.684089 {0x00002910} [debug] python : ResourcesAI.py:855 : 
15:34:01.684089 {0x00002910} [info] python : ResourcesAI.py:880 : Planetary Foci Overview Turn 4

15:34:02.712838 {0x00002910} [debug] python : ResourcesAI.py:841 : Resource Priorities:
15:34:02.712838 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_RESEARCH: 78.00
15:34:02.712838 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_PRODUCTION: 50.00
15:34:02.712838 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_INFLUENCE: 18.00
15:34:02.713833 {0x00002910} [debug] python : ResourcesAI.py:855 : 
15:34:02.713833 {0x00002910} [info] python : ResourcesAI.py:880 : Planetary Foci Overview Turn 5

15:34:03.724248 {0x00002910} [debug] python : ResourcesAI.py:841 : Resource Priorities:
15:34:03.724248 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_RESEARCH: 78.00
15:34:03.724248 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_PRODUCTION: 50.00
15:34:03.724248 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_INFLUENCE: 18.00
15:34:03.724248 {0x00002910} [debug] python : ResourcesAI.py:855 : 
15:34:03.725246 {0x00002910} [info] python : ResourcesAI.py:880 : Planetary Foci Overview Turn 6

15:34:04.721529 {0x00002910} [debug] python : ResourcesAI.py:841 : Resource Priorities:
15:34:04.722525 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_RESEARCH: 78.00
15:34:04.722525 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_PRODUCTION: 50.00
15:34:04.722525 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_INFLUENCE: 18.00
15:34:04.722525 {0x00002910} [debug] python : ResourcesAI.py:855 : 
15:34:04.722525 {0x00002910} [info] python : ResourcesAI.py:880 : Planetary Foci Overview Turn 7

15:34:05.715213 {0x00002910} [debug] python : ResourcesAI.py:841 : Resource Priorities:
15:34:05.715213 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_RESEARCH: 78.00
15:34:05.716210 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_PRODUCTION: 50.00
15:34:05.716210 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_INFLUENCE: 18.00
15:34:05.716210 {0x00002910} [debug] python : ResourcesAI.py:855 : 
15:34:05.716210 {0x00002910} [info] python : ResourcesAI.py:880 : Planetary Foci Overview Turn 8

15:34:06.840151 {0x00002910} [debug] python : ResourcesAI.py:841 : Resource Priorities:
15:34:06.840151 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_RESEARCH: 78.00
15:34:06.840151 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_PRODUCTION: 50.00
15:34:06.840151 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_INFLUENCE: 18.00
15:34:06.841151 {0x00002910} [debug] python : ResourcesAI.py:855 : 
15:34:06.841151 {0x00002910} [info] python : ResourcesAI.py:880 : Planetary Foci Overview Turn 9

15:34:08.128538 {0x00002910} [debug] python : ResourcesAI.py:841 : Resource Priorities:
15:34:08.128538 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_RESEARCH: 78.00
15:34:08.129555 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_PRODUCTION: 50.00
15:34:08.129555 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_INFLUENCE: 18.00
15:34:08.129555 {0x00002910} [debug] python : ResourcesAI.py:855 : 
15:34:08.129555 {0x00002910} [info] python : ResourcesAI.py:880 : Planetary Foci Overview Turn 10

15:34:42.843740 {0x00002910} [debug] python : ResourcesAI.py:841 : Resource Priorities:
15:34:42.843740 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_RESEARCH: 78.00
15:34:42.843740 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_PRODUCTION: 50.00
15:34:42.843740 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_INFLUENCE: 18.00
15:34:42.843740 {0x00002910} [debug] python : ResourcesAI.py:855 : 
15:34:42.844736 {0x00002910} [info] python : ResourcesAI.py:880 : Planetary Foci Overview Turn 11

15:34:43.710583 {0x00002910} [debug] python : ResourcesAI.py:841 : Resource Priorities:
15:34:43.710583 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_RESEARCH: 78.00
15:34:43.710583 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_PRODUCTION: 50.00
15:34:43.710583 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_INFLUENCE: 18.00
15:34:43.710583 {0x00002910} [debug] python : ResourcesAI.py:855 : 
15:34:43.711581 {0x00002910} [info] python : ResourcesAI.py:880 : Planetary Foci Overview Turn 12

15:34:44.613800 {0x00002910} [debug] python : ResourcesAI.py:841 : Resource Priorities:
15:34:44.614797 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_RESEARCH: 78.00
15:34:44.614797 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_PRODUCTION: 50.00
15:34:44.614797 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_INFLUENCE: 18.00
15:34:44.614797 {0x00002910} [debug] python : ResourcesAI.py:855 : 
15:34:44.614797 {0x00002910} [info] python : ResourcesAI.py:880 : Planetary Foci Overview Turn 13

15:34:45.671633 {0x00002910} [debug] python : ResourcesAI.py:841 : Resource Priorities:
15:34:45.672630 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_RESEARCH: 78.00
15:34:45.672630 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_PRODUCTION: 50.00
15:34:45.672630 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_INFLUENCE: 18.00
15:34:45.672630 {0x00002910} [debug] python : ResourcesAI.py:855 : 
15:34:45.672630 {0x00002910} [info] python : ResourcesAI.py:880 : Planetary Foci Overview Turn 14

15:34:46.568517 {0x00002910} [debug] python : ResourcesAI.py:841 : Resource Priorities:
15:34:46.568517 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_RESEARCH: 78.00
15:34:46.568517 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_PRODUCTION: 50.00
15:34:46.568517 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_INFLUENCE: 18.00
15:34:46.568517 {0x00002910} [debug] python : ResourcesAI.py:855 : 
15:34:46.569534 {0x00002910} [info] python : ResourcesAI.py:880 : Planetary Foci Overview Turn 15

15:34:47.742502 {0x00002910} [debug] python : ResourcesAI.py:841 : Resource Priorities:
15:34:47.742502 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_RESEARCH: 78.00
15:34:47.742502 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_PRODUCTION: 50.00
15:34:47.742502 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_INFLUENCE: 18.00
15:34:47.742502 {0x00002910} [debug] python : ResourcesAI.py:855 : 
15:34:47.742502 {0x00002910} [info] python : ResourcesAI.py:880 : Planetary Foci Overview Turn 16

15:34:48.777759 {0x00002910} [debug] python : ResourcesAI.py:841 : Resource Priorities:
15:34:48.777759 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_RESEARCH: 78.00
15:34:48.777759 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_PRODUCTION: 50.00
15:34:48.777759 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_INFLUENCE: 15.04
15:34:48.778755 {0x00002910} [debug] python : ResourcesAI.py:855 : 
15:34:48.778755 {0x00002910} [info] python : ResourcesAI.py:880 : Planetary Foci Overview Turn 17

15:34:49.901775 {0x00002910} [debug] python : ResourcesAI.py:841 : Resource Priorities:
15:34:49.902772 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_RESEARCH: 78.00
15:34:49.902772 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_PRODUCTION: 50.00
15:34:49.902772 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_INFLUENCE: 14.68
15:34:49.902772 {0x00002910} [debug] python : ResourcesAI.py:855 : 
15:34:49.902772 {0x00002910} [info] python : ResourcesAI.py:880 : Planetary Foci Overview Turn 18

15:34:51.046230 {0x00002910} [debug] python : ResourcesAI.py:841 : Resource Priorities:
15:34:51.046230 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_RESEARCH: 78.00
15:34:51.047228 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_PRODUCTION: 50.00
15:34:51.047228 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_INFLUENCE: 14.36
15:34:51.047228 {0x00002910} [debug] python : ResourcesAI.py:855 : 
15:34:51.047228 {0x00002910} [info] python : ResourcesAI.py:880 : Planetary Foci Overview Turn 19

15:34:52.126805 {0x00002910} [debug] python : ResourcesAI.py:841 : Resource Priorities:
15:34:52.126805 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_RESEARCH: 78.00
15:34:52.126805 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_PRODUCTION: 50.00
15:34:52.126805 {0x00002910} [debug] python : ResourcesAI.py:852 :   PriorityType.RESOURCE_INFLUENCE: 13.92
15:34:52.126805 {0x00002910} [debug] python : ResourcesAI.py:855 : 
15:34:52.127802 {0x00002910} [info] python : ResourcesAI.py:880 : Planetary Foci Overview Turn 20
Edit: Took a look in game and at 25 minimum it was behaving oddly. I'll look for something else.

wobbly
Cosmic Dragon
Posts: 2005
Joined: Thu Oct 10, 2013 6:48 pm

Re: Minimum Influence Priority?

#2 Post by wobbly »

What's bugging me is its not automatically putting its small planets on influence focus. If a planet can produce 1 IP or 0.2 PP/RP it should be on influence.

User avatar
LienRag
Cosmic Dragon
Posts: 2277
Joined: Fri May 17, 2019 5:03 pm

Re: Minimum Influence Priority?

#3 Post by LienRag »

Indeed...
Just that would probably be a huge amelioration of the AI general competitive worth.

User avatar
LienRag
Cosmic Dragon
Posts: 2277
Joined: Fri May 17, 2019 5:03 pm

Re: Minimum Influence Priority?

#4 Post by LienRag »

Oh, but please don't forget to check for Bureaucracy...
Focus-switching is quite punishing under Bureaucracy, so if the AI doesn't care for that, the results can be quite bad.

wobbly
Cosmic Dragon
Posts: 2005
Joined: Thu Oct 10, 2013 6:48 pm

Re: Minimum Influence Priority?

#5 Post by wobbly »

LienRag wrote: Sun Mar 24, 2024 9:05 am Oh, but please don't forget to check for Bureaucracy...
Focus-switching is quite punishing under Bureaucracy, so if the AI doesn't care for that, the results can be quite bad.
The AI checks:

https://github.com/freeorion/freeorion/ ... #L219-L231

User avatar
Grummel7
Space Dragon
Posts: 343
Joined: Mon Oct 09, 2017 3:44 pm

Re: Minimum Influence Priority?

#6 Post by Grummel7 »

I remember specifically choosing 18 to stop Abaddoni from switching their home planet to influence in turn one. There are probably better ways to avoid it.

On the other hand, even with bureaucracy, switching a newly settled planet to Influence does not cost anything and with 18/50, a planet should prefer influence over research with a 1/0.2 ration, but the calculations are more complicated and do not simply chose the focus the produces the "best rated" output.

Post Reply