Game Execution Speed

Commander - The Great War: Tech Support

Moderators: Slitherine Core, The Lordz

Post Reply
dcole99
Private First Class - Opel Blitz
Private First Class - Opel Blitz
Posts: 3
Joined: Sun Aug 21, 2016 2:44 pm

Game Execution Speed

Post 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.
zakblood
Most Active User 2017
Most Active User 2017
Posts: 16496
Joined: Thu Jun 12, 2014 6:44 pm

Re: Game Execution Speed

Post 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
Robotron
Brigadier-General - Elite Grenadier
Brigadier-General - Elite Grenadier
Posts: 2151
Joined: Tue Nov 23, 2010 3:35 pm

Re: Game Execution Speed

Post 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.
Post Reply

Return to “Commander - The Great War: Tech Support”