Closed psa-jforestier closed 1 year ago
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. So this problem have to do with pausing stratagus game engine at certain circumstances such resuming after Surrender. My environment: OS: Win 7 32b / Version 3.1.3 (portable) - installed by self installer to desktop / source data from setup_warcraft_ii_2.02v4(28734).exe (Detected BNE CD, extraction full complete).
Hello. Your comment makes me do some other tests. It seems to be related to the first window game option appearing just after surrender and restarting a game. I try to explain :
ShowTips
to true
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.02v4(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):