war1gus icon indicating copy to clipboard operation
war1gus copied to clipboard

Solo game - AI freezes after scenario restart

Open asbernardi opened this issue 2 years ago • 2 comments

Hi! If you play a 'solo game' and restart scenario, then AI freezes. It only harvests gold once and freezes. It happens at least in following maps:

  • Forest1
  • Forest2.

Thanks!

asbernardi avatar Aug 15 '22 22:08 asbernardi

also happen if you go back to menu and start new solo game. You need to restart the game.

timfelgentreff — Wczoraj o 21:21 yeah, some variable isn't reset properly after the game. not sure what it is, something in lua definitely

Lagi7 avatar Aug 16 '22 06:08 Lagi7

we need to add this to the end of wc1.lua (copied from wc2.lua in wargus)


function CleanGame_Lua()
	print("game ends")
	ReInitAiGameData()	
end

timfel avatar Aug 16 '22 07:08 timfel

Fixed

timfel avatar Dec 20 '22 12:12 timfel