• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Dialog and Alt+F4 display bug

Status
Not open for further replies.
Level 9
Joined
Jul 20, 2018
Messages
176
In my map in multiplayer the first button of any dialog displays the time for selection an option. If the option is not selected and time is out, the first option is applied. After that the dialog is hidden and cleared.
And I got a little problem with timed dialogs.

Player presses Alt+F4 during displaying of my dialog. Now he see the exit dialog. Meantime, the time of my dialog is out, it is hidden and cleared. Player decides to continue playing and clicks Cancel, and for some reason my dialog is displayed! Since it has been cleared, it is empty, and player cannot do anything.
The video of this issue is below.


I created a test map for this bug, you can download it here.
The video on test map.


Such issue is occurring at least on 1.26a version. I will really appreciate if someone will test it in the latest patch. If it takes place in the latest patch, It must be reported to Blizzard. The official forum of WC3.
 

Attachments

  • Dialog and Alt+F4 display bug.w3m
    7.8 KB · Views: 109
Level 9
Joined
Jul 20, 2018
Messages
176
I asked Meddin from XGM site to test this on the latest patch since he uses it. He approved that the bug is still in presence on the latest path, so it must be fixed.
Unfortunately, he cannot share the video with me because now he is in the countryside and will not return to town in the nearest future.

UPD: made post on the official forum.
 
Last edited:

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,198
It is worth pointing out this is only a problem in multiplayer. The map cannot be tested single player as Warcraft III is paused in single player while a dialog is displayed.

Have you tried destroying the dialog (not just hiding it) when the timer expires by using...
JASS:
native DialogDestroy takes dialog whichDialog returns nothing
The bug likely is due to the hide dialog action being ignored due to the alt+F4 dialog being open. As such an empty dialog is being shown when the alt+F4 dialog is closed and the original dialog is restored. By destroying the dialog it should have nothing to return to after closing the alt+F4 dialog and hence put the user back into game play, at least in theory.
 
Level 9
Joined
Jul 20, 2018
Messages
176
It is worth pointing out this is only a problem in multiplayer. The map cannot be tested single player as Warcraft III is paused in single player while a dialog is displayed.
Absolutely right, that's why I tested it solo in LAN, not in singleplayer custom game.
The bug likely is due to the hide dialog action being ignored due to the alt+F4 dialog being open.
This tend me to check if this issue takes place when any new dialog is displayed above, not only Alt+F4 dialog. Test map.
Type 'show' in multiplayer. At first, the 1st dialog will be shown, after 2 secs the 2nd one. Now you see the 2nd dialog and after 3 secs the 1st will be hidden (you cannot notice it). After 2 secs the 2nd dialog will be hidden, and the 1st is not shown.
The result: the issue takes place only with the exit dialog.
As such an empty dialog is being shown when the alt+F4 dialog is closed and the original dialog is restored.
I my case original dialog is empty, because I'm clearing it when hiding. If dialog is not cleared, all buttons will be in place.
By destroying the dialog it should have nothing to return to after closing the alt+F4 dialog and hence put the user back into game play, at least in theory.
You are right, original dialog is not restored if it was destroyed, but then you will get unplayable game: player can do absolutely nothing. Test map.

 

Attachments

  • Dialogs.w3m
    7.8 KB · Views: 99
  • Dialog and Alt+F4 display bug (destroy).w3m
    8 KB · Views: 95
Level 5
Joined
Jun 16, 2004
Messages
108
I suspect that you can fix the "player can do absolutely nothing" issue by enabling user control on the player. I am aware of some other dialog box issues that existed in the past, noted here: Dialog buttons and user control issues - Wc3C.net

Not sure if everything in that post is still relevant, but it is probably still the case that keeping a dialog box around (hidden) instead of deleting it still poses a risk if some hacker decides to get a little creative.
 
Level 9
Joined
Jul 20, 2018
Messages
176
I suspect that you can fix the "player can do absolutely nothing" issue by enabling user control on the player.
Wow, this actually helped. Thank you.
Moreover, enabling user control hides all dialogs (custom, exit and menu).
Test map with enabling user control.
Warcraft III is paused in single player while a dialog is displayed.
I found interesting thing in singleplayer: pressing Cancel in the exit dialog unpauses the game, so my dialog hides after 5 seconds.
 

Attachments

  • Dialog and Alt+F4 display bug (enable uc).w3m
    7.9 KB · Views: 89
Status
Not open for further replies.
Top