• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[General] Deselection bug in multiplayer

Status
Not open for further replies.
Level 29
Joined
Feb 2, 2006
Messages
1,692
Hi,
in my latest version somehow the selection seems to be broken in multiplayer.
I can't click at buildings (they are unselected almost immediately) and orders for units are not issued.
I have no idea what causes the bug. The only selection functions I use are those to select taverns automatically.
The map has many units and triggers but the version before worked without issues.
However, I have added mainly the taverns, unit types, bosses etc. to the latest version and tried to reduce memory leaking with:

JASS:
set bj_wantDestroyGroup = true

before some calls but as far as I have checked it, all groups did only exist temporarily.

Did this issue ever occur in other maps and how did they fix it?
 

Attachments

Does it work if you disable set bj_wantDestroyGroup = true? If so, then unit groups are your problem. Just make a permanent temp group, then add and remove units as you need. Destroying Groups are meant for things you will never use again. Can also try
JASS:
set myTempGroup = CreateGroup()
after destroying.

Edit: Also consider slowly disabling all selection and deselection functions and test them one by one. I would first start by disabling all of them and seeing if that fixes the problem. Then, reenable and test one by one.
 
Last edited:
I have checked all locations in the code with set bj_wantDestroyGroup = true and all of them are before some function call which definitively handles it and destroys a temporary group from GUI.
Now I can try disabling selection functions which auto select taverns in the beginning. I had some strange experience when I auto selected the first tavern after only 0.0 seconds, it did not select. I had to add some delay, so maybe there is some issue with the selection in the beginning of the game.
 
Status
Not open for further replies.
Back
Top