Page 1 of 1
Game Execution Speed
Posted: Sun Aug 21, 2016 2:47 pm
by dcole99
I found the speed at which the computer goes through the execution of its turn to be to fast. I can't tell what it is doing or the results before it goes on the the next attack. Anyway to slow this down? Thanks.
Re: Game Execution Speed
Posted: Sun Aug 21, 2016 2:53 pm
by zakblood
not heard of anyone wanting to slow a game down before tbh, but this may help
http://gaming.stackexchange.com/questio ... -game-down
it's called throttling, in essence is slows down a cpu so it can't process so much or so quick, but and it's a big one, you'd have to manual set it each and every time you loaded the game, and alter in back for normal use
Re: Game Execution Speed
Posted: Tue Aug 23, 2016 8:34 am
by Robotron
Open misc.lua found in data/scripts/AI in any text editor.
Look for
Code: Select all
function AIPlayer:OrderAdvance(unit,hex)
self:waitForNextAction()
return self.ai:OrderAdvance(unit,hex)
--unit:Move(hex,true)
--coroutine.yield(self.co)
--self.ai:Delay(15000)
end
function AIPlayer:OrderMove(unit,hex)
self:waitForNextAction()
return self.ai:OrderMove(unit,hex)
--unit:Move(hex,true)
--self.ai:Delay(15000)
end
function AIPlayer:OrderAttack(attacker,target)
self:waitForNextAction()
return self.ai:OrderAttack(attacker,target)
--attacker:Attack(target)
--coroutine.yield(self.co)
--self.ai:Delay(15000)
end
function AIPlayer:OrderSwap(unit1,unit2)
self:waitForNextAction()
return self.ai:OrderSwap(unit1,unit2)
--unit1:Swap(unit2)
--coroutine.yield(self.co)
--self.ai:Delay(15000)
end
function AIPlayer:OrderRailroadMove(unit,hex)
self:waitForNextAction()
--unit:Move(hex,true)
return self.ai:OrderRailroadMove(unit,hex)
--coroutine.yield(self.co)
--self.ai:Delay(15000)
end
And uncomment the lines with "self.ai:Delay(15000)" (this means remove the -- at the start of the lines) and save the file. This should delay AIs moves.