Opened 16 months ago

Last modified 16 months ago

#6725 new enhancement

Allow mirage exception for relics in fog-of-war

Reported by: Langbart Owned by:
Priority: If Time Permits Milestone: Backlog
Component: UI & Simulation Keywords:
Cc: Patch:

Description (last modified by Langbart)

to reproduce

  • start map with relics, explore the map till you find one
  • move away till the relic disappears in the FOW (fog-of-war)
  • notice relic is hidden again

expected behavior

Timeline

  • Fogging added for buildings [15612] (5/Aug/14)
  • Introduction of Capture the Relic [19345] (25/Mar/17)

possible solution

see comments

Attachments (2)

relic.gif (361.3 KB ) - added by Langbart 16 months ago.
cav_hunt_relic.gif (2.0 MB ) - added by Langbart 16 months ago.

Change History (6)

by Langbart, 16 months ago

Attachment: relic.gif added

comment:2 by Langbart, 16 months ago

Yes, but actually no. I see through the FOW that the relic moves when the enemy captures it. I shouldn't be able to.


This is what I want!

  • binaries/data/mods/public/simulation/templates/template_unit_catafalque.xml

    a b  
    11<?xml version="1.0" encoding="utf-8"?>
    22<Entity parent="template_unit">
     3  <Fogging/>
    34  <Capturable>
    45    <CapturePoints>250</CapturePoints>
    56    <GarrisonRegenRate>0</GarrisonRegenRate>
     
    5859  <VisualActor>
    5960    <Actor>units/global/catafalque.xml</Actor>
    6061  </VisualActor>
     62  <Visibility>
     63    <RetainInFog>true</RetainInFog>
     64  </Visibility>
    6165</Entity>

  • Can fogging and miraging be used interchangeably to describe the same thing, is there any difference?
  • Why do I only have to add <Fogging/> and not also <Mirage/> ?

comment:3 by Freagarach, 16 months ago

See also Phab:D1997.

I guess they can be used interchangeably, at least we'll understand. :)

The Mirage component is added by the filter in Fogging:LoadMirage.

in reply to:  3 comment:4 by Langbart, 16 months ago

Description: modified (diff)

The above template change is not enough to solve this problem.

  • several problems noticed:
    • If a relic is visible in the FOW but has been moved by the enemy (blue player), the red player moves in the direction of the relic until red has visible confirmation that the relic is no longer in its scouted location, but then immediately moves in the correct direction (red should move to the FOW location and become idle as it can't know the new location of the relic) UNITAI issue
    • note that the mirage of the FOW relic is not erased for red FOGGING/MIRAGE issue


Replying to Freagarach:

See also Phab:D1997.

Good diff reference.

by Langbart, 16 months ago

Attachment: cav_hunt_relic.gif added
Note: See TracTickets for help on using tickets.