One request (From Peter Triggs) was around exposing the number of passes the AI uses to compare its armies against goals. This number is at present hard coded in Scheduler.cpp :
I changed this line to
And added to Constdb.h
Finally added to Constdb.cpp a new token TOKEN_MAX_MATCH_LIST_CYCLES, which corresponds to a const.txt name of MAX_MATCH_LIST_CYCLES.
If I've done this all correctly, all you need to do is to add a new entry MAX_MATCH_LIST_CYCLES to Constdb.txt and you can set the number of passes to whatever you want.
Hopefully I'll will receive the game soon to try this out myself!
Code:
sint32 Scheduler::s_max_match_list_cycles = 6;
Code:
sint32 Scheduler::s_max_match_list_cycles = g_theConstDB->GetMaxMatchListCycles();
Code:
//added DWT sint32 m_max_match_list_cycles; //added DWT sint32 GetMaxMatchListCycles() const { return m_max_match_list_cycles; }
If I've done this all correctly, all you need to do is to add a new entry MAX_MATCH_LIST_CYCLES to Constdb.txt and you can set the number of passes to whatever you want.
Hopefully I'll will receive the game soon to try this out myself!
Comment