-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Game not responding after surrender in campaign mode #381
Comments
I have reproduced that. I confirm the problem but I have one note. At my case, right after Surrender, and then Continue, new game begins ok , but then if you try to call up ANY menu for example, clicking on Menu button or by pressing F10 or F1, then after closing of menu the game begins to not respond to user input, its like game paused while wargus window isnt active and you using another app window. The difference in that you can press F10 and Esc(Return to Game) but in our case F10 isnt working. In addition, I see this "not responding" problem not only if call up any menu while gaming after Surrender, but also if switch to another app window and back to Wargus window. |
Hello.
Quit the game, restart a new game but this time uncheck the "Show tips at startup" on the Tips window
It looks like a hidden game window is holding the focus or something like that. |
I saw that, while I experimenting with/wo option "Show tips at startup" and at first sight this was a key fact , but further I saw the same problem while switching to another app and back to Wargus window. If unite this two facts , I think the problem must be in Pause Game procedure , isnt matter for what - this is appearing Tips/Menu or leaving Wargus window. Something in this procedure goes different if it is after Surrender. Some variable was not initialised while starting new game? |
I notice, when this bug occurs, there is the indication "Game paused" in the status bar. I try to un-pause it (CTRL+P, or PAUSE key) but the keys are not working and the game can't be un-paused. I dont know where to start with this bug : I look at the Lua code, and the C++ "pause game" code, but no clear bug poped at my eyes. |
Yeah, I've noticed this bug too, but haven't found the time to chase it down. My intuition would be to start with printf or step-wise debugging from the SDL event poll and then go from there. |
Fixed |
Describe the bug
After surrender a mission in ToD Campaign and starting the mission again, the game is not respondig (no menu, no action on unit).
To Reproduce
A fresh install of the Portable version of Wargus, master build 3.1.3
I cleaned all Wargus data folder (rm -rf c:\users\xxx\documents\Stratagus)
Anti Virus deactivated, Administrator right.
Download Wargus-portable-3.1.3.exe
7-unzip it on the desktop
start wargus.exe
Select GOG_setup_warcraft_ii_2.02_v4_(french)_(28734)
Run inno extract (extract all content of the installer)
Extraction continue ("Detected BNE CD")
No extract for DOS expansion CD
Crash at the end of extraction, but it doesnt matter
Launch
Stratagus.exe -p -a
Single Player Campaign > Campaign
In Tides of Darkness, select Alliance, 1 st mission (Hillsbrad), then Start Mission
When the mission is started, do nothing and click on Menu > End Scenario > Surrender
Restart the mission after the resumee screen
Unable to click anywhere : UI stalled . F10 not working, keyboard not respondig too. Only the mouse is moving.
The red lines at the top of the screen is still moving, indicating there is internal activity.
Window can be resized or moved, and screen is refreshing
Expected behavior
Game respondig to event
Screenshots and Logs
Last lines of stdout.txt are
Last lines of stderr are :
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: