Skip to content

Unicorn Empire

User Avatar
#455
Auto-translated
Mini-Bebra
<blockquote{... moved his archers there, closed the garrison, after which the in-game cursor took on a hourglass icon ... please tell me how to solve this problem

Yes, that's a known issue. It is often fixed if you start this mission over, but there are no guarantees.

As I understand it, the problem lies in the scripts right here:
function QuestionBoxRef(text)
ok = -1
QuestionBox(text, 'IsOkPressed', 'IsNoPressed')
while ok == -1 do
sleep()
end
return ok == 1
end

If the QuestionBoxRef function is called from another thread (launched via startThread), it works perfectly. But in this case, it is called from a trigger directly from the UI thread. There is a high chance of a deadlock (an infinite while waits for user action, and an asynchronous QuestionBox command from the queue waits for the trigger to complete).

If the freeze persists, try typing the following command into the game console during the freeze: @ok = 1