Phobos icon indicating copy to clipboard operation
Phobos copied to clipboard

[bounty: 150$] Fix vanilla YR Fog of War bugs & issues

Open MortonPL opened this issue 4 years ago • 4 comments

Fog of War exists in code YR, but was disabled due to not working correctly. CNCNet Client spawner allows to force enable FoW, however this causes several issues:

  • Units are still visible under the FoW,
  • Structures under the FoW (mostly high civilian buildings) render incorrectly, usually with transparent triangles, This also happens when the top of a building is visible, but the foundation is not,
  • Structures under the FoW cannot be properly targeted (units issue move command instead of attack/garrison/repair), unless the cursor is on the top edge of the top foundation cell.
  • Jumpjet units and aircraft provide vision only when moving or landed (possibly shroud uncovering check is not tied to ground cells, but FoW refresh is?),
  • Jumpjet and aircraft have a global vision range specified in rules->[General]->AircraftFogReveal, could be deglobalised to work with unit sight,
  • High fog refresh rate (set in rules->[AudioVisual]->FogRate) causes flickering and effectively makes air units provide no vision,
  • On the other hand, low fog refresh rate causes units to leave a decaying trail of vision behind them (this happens with any unit, but for slow units disappears very quickly, might be additionally linked to movement-into-two-cells issue?),
  • Temporary drawing glitches, similar to ones that rarely happen with uncovered shroud in vanilla YR (black outline of cell remains until we scroll away and back, or black gradient around "old" vision that quickly disappears)
  • Possibly more yet unknown bugs caused by Ares' new features

MortonPL avatar Dec 28 '20 00:12 MortonPL

latest build properly hides units, but shows buildings now image

Fog reveal is much more smooth but overlays disappear when you discover them, and appear when under fog - this includes ore image image

voxel turrets and bridges are hidden image

discovered some units and shroud started to appear as they attacked out of sight, much like a unit is revealed under shroud when they attack - doesn't disappear until you reveal the area again image

gap gen works to some extent, can kind of see underneath it if you look hard enough image

ayylmaoRotE avatar Apr 12 '21 09:04 ayylmaoRotE

Well, this feature is still under develop still, I will announce it when it's done.

secsome avatar Apr 12 '21 14:04 secsome

A user who asked to remain anonymous placed a 150$ bounty on implementing the fully fixed FoW.

Metadorius avatar Aug 31 '23 18:08 Metadorius

If someone comes up with the solution fully on their own - the bounty is given to them fully. If there are multiple people's effort involved in completing the work it would be split, I guess according to who contributed how much (based on review results), unless they explicitly say to reallocate their part to other(s).

Metadorius avatar Aug 31 '23 19:08 Metadorius