Loading...
  OR  Zero-K Name:    Password:   

Defense ranges disappear/GUI crashes when spectating

2 posts, 210 views
Post comment
Filter:    Player:  
sort
9 years ago
It only happens when "Select Any Unit" is activated (which actually means View Chosen Player & Select Any) and you select multiple teams' units. Then all defense ranges disappear immediately and you see why it can be usefull to have error messages activated in chat:

[cawidgets.lua] Error: Error in DrawWorldPreUnit(): [string "LuaUI/Widgets/gui_defenserange.lua"]:900: Incorrect arguments to gl.DrawGroundCircle()
[cawidgets.lua] Error: Removed widget: Defense Range Zero-K

In my last games even the whole GUI crashed and I had to /reload it. Idk if the bug also appears for other players. Maybe most players just don't use "Select Any Unit".

I used to switch between "Select Any Unit" and "View All & Select Any" by hotkeys. Since the bug only appears with "Select Any Unit" I will now switch between "View Chosen Player" and "View All & Select Any" instead.

As the problem is thus solved for me, I am ok with any of the following "solutions":
1. Solve the actual problem.
2. Remove the option "Select Any Unit". (maybe best)
3. Add a comment that unit ranges can disappear or GUI can crash when multiple teams' units are selected to the tooltip description of "Select Any Unit".
4. Make a ticket on googlecode and never touch it again.
5. Do nothing.
+0 / -0


9 years ago
Defense ranges disappear when spectating because they are handled differently for spectators as for players, as the old setup of ally and enemy didn't make sense for specs. I'm a little surprised they aren't on by default for spectators, but they are meant to be configurable for spectating separately from playing.

The crash on Select Any Unit is a serious problem, and when it comes to reporting the best option now is Github. Granted, I'm not sure why there is a View All option that doesn't allow free selection more than a free selection option that doesn't view all, but widgets breaking is a bug.
+0 / -0