- Joined
- Feb 2, 2006
- Messages
- 1,631
Hi,
my map has again some weird deselection and blocking order bugs but only in multiplayer.
In the past, the deselection bug was caused by using "Units currently selected by" in a trigger condition which you should never do: [General] - Selection Bug?
It is mentioned in the GUI trigger and from what I have read is due to SyncSelections causes some waiting which is not supported in trigger conditions/TriggerEvaluate.
However, the trigger has long been removed and I am really struggling to find the latest reason.
My map is: World of Warcraft Reforged 4.0
You can see the latest map script here: https://raw.githubusercontent.com/tdauth/wowr/refs/heads/master/wowr.w3x/war3map.j
I do the multiplayer tests myself by hosting a LAN game with a logged out user and joining with a logged in user.
When I click on a tavern/neutral building, it sometimes immediately deselects.
Besides, issued orders sometimes take for a long time until they are actually issue as if there was something blocking them.
I have searched for all my SyncSelections/GroupEnumUnitsSelected/GetUnitsSelectedAll in the script and cannot find one in any trigger condition.
Besides, there is only two EVENT_PLAYER_UNIT_SELECTED and one EVENT_PLAYER_UNIT_DESELECTED events with normal trigger actions.
Is there something else which causes this weird bug of deselection stuff and blocking orders in multiplayer?
It is really annoying since this makes the map unusable for multiplayer.
Understanding the reason for it will help me to prevent it in the future but I don't even know the reason now.
I will test a multiplayer game without any map scripts to make sure it actually is a script issue.
my map has again some weird deselection and blocking order bugs but only in multiplayer.
In the past, the deselection bug was caused by using "Units currently selected by" in a trigger condition which you should never do: [General] - Selection Bug?
It is mentioned in the GUI trigger and from what I have read is due to SyncSelections causes some waiting which is not supported in trigger conditions/TriggerEvaluate.
However, the trigger has long been removed and I am really struggling to find the latest reason.
My map is: World of Warcraft Reforged 4.0
You can see the latest map script here: https://raw.githubusercontent.com/tdauth/wowr/refs/heads/master/wowr.w3x/war3map.j
I do the multiplayer tests myself by hosting a LAN game with a logged out user and joining with a logged in user.
When I click on a tavern/neutral building, it sometimes immediately deselects.
Besides, issued orders sometimes take for a long time until they are actually issue as if there was something blocking them.
I have searched for all my SyncSelections/GroupEnumUnitsSelected/GetUnitsSelectedAll in the script and cannot find one in any trigger condition.
Besides, there is only two EVENT_PLAYER_UNIT_SELECTED and one EVENT_PLAYER_UNIT_DESELECTED events with normal trigger actions.
Is there something else which causes this weird bug of deselection stuff and blocking orders in multiplayer?
It is really annoying since this makes the map unusable for multiplayer.
Understanding the reason for it will help me to prevent it in the future but I don't even know the reason now.
I will test a multiplayer game without any map scripts to make sure it actually is a script issue.