• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

[General] Deselection bug in multiplayer

Status
Not open for further replies.
Level 28
Joined
Feb 2, 2006
Messages
1,589
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

  • wowr2.1.w3x
    41.6 MB · Views: 14
Level 11
Joined
Aug 6, 2009
Messages
697
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:
Level 28
Joined
Feb 2, 2006
Messages
1,589
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.
Top