Doing AI through triggers. AI successfully build a base, but when I add periodic train orders (like train 10 zerglings, etc every 15 seconds) my AI stop to build a base and never continue it after. What can it be?
Rollback Post to RevisionRollBack
OMG! New hero in 'Heroes of the Storm' is Dustin Browder. Watch here!
Ofc enough, because I did a cycle - when AI's minerals/gas less than 3000, cycle sets it to 3000 again...and btw AI still continue to train units, but ignore structures. Looks like train action uses queue 'system' or I has no mind.
Rollback Post to RevisionRollBack
OMG! New hero in 'Heroes of the Storm' is Dustin Browder. Watch here!
when i was building hexbox ai during beta, i realized there was a need to create my own queue system, budgeting system, and issuing orders system.
the budget manager will be inquired of if an item in my queue system has money for its production or training. there would have to be entries for current and non-current items in the queue. this will be contrasted in the budget manager's assets side.
training and construction each have their own separate managers. the build order queue defined by the strategic manager will be filtered and taken by both.
priorities on either the training queue will be prioritied at the current cycle or construction is decided by the strategic manager, etc.
each training and construction orders will only be sent when there are facilities available, resources available, and scvs available. if not, they will remain in the queue system until they are sent.
no actual orders are queued for the ai to handle internally.
Rollback Post to RevisionRollBack
Whatever you do, wholeheartedly, moment by heartfelt moment, becomes a tool for the expression of your very soul.
Doing AI through triggers. AI successfully build a base, but when I add periodic train orders (like train 10 zerglings, etc every 15 seconds) my AI stop to build a base and never continue it after. What can it be?
OMG! New hero in 'Heroes of the Storm' is Dustin Browder. Watch here!
Do they have enough minerals? I usually give the AI endless minerals so this will never be a problem.
Ofc enough, because I did a cycle - when AI's minerals/gas less than 3000, cycle sets it to 3000 again...and btw AI still continue to train units, but ignore structures. Looks like train action uses queue 'system' or I has no mind.
OMG! New hero in 'Heroes of the Storm' is Dustin Browder. Watch here!
when i was building hexbox ai during beta, i realized there was a need to create my own queue system, budgeting system, and issuing orders system.
the budget manager will be inquired of if an item in my queue system has money for its production or training. there would have to be entries for current and non-current items in the queue. this will be contrasted in the budget manager's assets side.
training and construction each have their own separate managers. the build order queue defined by the strategic manager will be filtered and taken by both.
priorities on either the training queue will be prioritied at the current cycle or construction is decided by the strategic manager, etc.
each training and construction orders will only be sent when there are facilities available, resources available, and scvs available. if not, they will remain in the queue system until they are sent.
no actual orders are queued for the ai to handle internally.
Whatever you do, wholeheartedly, moment by heartfelt moment, becomes a tool for the expression of your very soul.
But it breaks BO in practice. If I disable train - BO works.
OMG! New hero in 'Heroes of the Storm' is Dustin Browder. Watch here!