• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[JASS] What can change icon arrangement in the list of selected units (in the in-game ui)?

Status
Not open for further replies.
Level 23
Joined
Apr 3, 2018
Messages
460
I'm experiencing an issue in my map, not sure if I can explain it coherently...

The situation:
  • multiple units are selected, all with items; one of them is focused as the main selected unit (with bigger icon, and portrait of that unit being displayed)
  • I click one of the items, and lots of triggered actions are done, adding items or setting charges, none of them having anything to do with selections
  • NOW THE ISSUE: once this is done, for some reason the focused primary selected unit jumps to the middle or end of the list of selected units, messing up my plans on clicking different units and items in a specific order, because now all the selected units are in a different order in the list than before.
In other words, the icon arrangement on the "selected units" panel changes.

I tried testing with a trigger that would react on "unit is selected" event, it does not proc when this issue happens; the test trigger itself works and detects units being selected otherwise like it should. So this should have nothing to do with selection triggers.

What are some natives I should look out for in my code, that could cause this change of order of selected units? I'm using 1.26, no interface functions or anything like that. There is too much intertwined code to post.
 
Last edited:
Level 39
Joined
Feb 27, 2007
Messages
5,031
There is at least one other baffling selection bug as of 1.30, so I would not be surprised if this is just an issue with the engine and it's not something you can avoid or overcome. Probably not related but here's a thread detailing the selection fuckery I found: [Solved] - Build order causing all player builders to open build menu

Interesting that this is on 1.26, though.
 
Status
Not open for further replies.
Top