Question about AI Control

Asked by Domenico on 2015-10-14

Hi, this isn't any issue, I was just really interested in the AI Control function, and would like to know how this function works and know what variables it changes in game. Explanation would be appreciated :)

Question information

Language:
English Edit question
Status:
Solved
For:
Ares Edit question
Assignee:
No assignee Edit question
Solved by:
AlexB
Solved:
2015-11-02
Last query:
2015-11-02
Last reply:
2015-10-26
Best AlexB (alexander-b) said : #1

Hi! It's a bunch of settings that are changed. First, the player's house is marked as not-player controlled, then auto-production is enabled. Also, the AI difficulty is set to hard and the IQ is set to the maximum. (Disabling the feature does the reverse. The IQ is set to 0.)

So, this is not a single setting. Essentially, the current player house is made an ordinary AI player; the feature does not make any decisions in game, though. There also is no single memory address to be manipulated. Actually, none of the seven locations that need to be changed has a constant address.

See https://github.com/Ares-Developers/Ares/blob/master/src/Commands/AIControl.h (currently it's the old version which does not revert correctly.) HouseClass::Player is referring to the house that has its fields updated.

Domenico (bluestarz-5000) said : #2

Thanks AlexB, that solved my question.