Drawing crap on the minimap
Posted: 17 May 2016, 00:52
https://github.com/EvolutionRTS/Evoluti ... ictory.lua
Over time and constantly for the past several months I have been hacking away at this gadget. Smoth did a lions share of the work by revamping the scoreboard and setting the stage for proper coloring for team names and rings (some of which seems to be broken in 101+).
The color issue is by far one of the more important issues, but this issue makes it nearly unplayable.
That is the fact that the rings that get drawn on the minimap get cleared randomly. Sometimes it's caused by zooming in too far on a feature, or moving the camera around too quickly. I've spent a shitload of time ruling out any widgets or gadgets clearing the minimap.
Well the first problem with it is that all the drawing happens in an "unsynced" side of a gadget, which is automatic set sail for fail. I've been trying to figure out how to port the drawing stuff out to a widget, but I'm not having a lot of luck. I have a feeling that once it's in a widget, the minimap drawing will be easier to control/diagnose. Not having the rings visible on the minimap makes the game unacceptably unplayable. I found that some players (koyotekamper on a laptop and I believe ikinz uses an amd card) have never even seen the rings on the minimap, either that or they have never noticed them before they disappear. Reloading luarules does not bring them back. Neither does /luarules disable -> /luarules enable.
The "unsynced" portion starts at line 278:
https://github.com/EvolutionRTS/Evoluti ... y.lua#L278
Could someone help me move this over to a widget? Either that or if you don't want to deal with my questions/inexperience do it for me? This poses a complete block for me moving evo forward as the gameplay is hinged on this gameplay aspect working properly.
As I said, I'm thinking that it's likely that once it's in a widget, the minimap drawing issue will likely disappear, and if the issue persists, I am thinking that it will be much more simple to diagnose.
Over time and constantly for the past several months I have been hacking away at this gadget. Smoth did a lions share of the work by revamping the scoreboard and setting the stage for proper coloring for team names and rings (some of which seems to be broken in 101+).
The color issue is by far one of the more important issues, but this issue makes it nearly unplayable.
That is the fact that the rings that get drawn on the minimap get cleared randomly. Sometimes it's caused by zooming in too far on a feature, or moving the camera around too quickly. I've spent a shitload of time ruling out any widgets or gadgets clearing the minimap.
Well the first problem with it is that all the drawing happens in an "unsynced" side of a gadget, which is automatic set sail for fail. I've been trying to figure out how to port the drawing stuff out to a widget, but I'm not having a lot of luck. I have a feeling that once it's in a widget, the minimap drawing will be easier to control/diagnose. Not having the rings visible on the minimap makes the game unacceptably unplayable. I found that some players (koyotekamper on a laptop and I believe ikinz uses an amd card) have never even seen the rings on the minimap, either that or they have never noticed them before they disappear. Reloading luarules does not bring them back. Neither does /luarules disable -> /luarules enable.
The "unsynced" portion starts at line 278:
https://github.com/EvolutionRTS/Evoluti ... y.lua#L278
Could someone help me move this over to a widget? Either that or if you don't want to deal with my questions/inexperience do it for me? This poses a complete block for me moving evo forward as the gameplay is hinged on this gameplay aspect working properly.
As I said, I'm thinking that it's likely that once it's in a widget, the minimap drawing issue will likely disappear, and if the issue persists, I am thinking that it will be much more simple to diagnose.