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 )
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
- relic gets a
mirage
- simulation/components/Mirage
- Mirage entities replace real entities in the fog-of-war.
Timeline
- Fogging added for buildings [15612] (5/Aug/14)
- Introduction of
Capture the Relic
[19345] (25/Mar/17)
possible solution
see comments
Attachments (2)
Change History (6)
by , 16 months ago
comment:1 by , 16 months ago
comment:2 by , 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.
-
binaries/data/mods/public/simulation/templates/template_unit_catafalque.xml
a b 58 58 <VisualActor> 59 59 <Actor>units/global/catafalque.xml</Actor> 60 60 </VisualActor> 61 <Visibility> 62 <RetainInFog>true</RetainInFog> 63 </Visibility> 61 64 </Entity>
This is what I want!
-
binaries/data/mods/public/simulation/templates/template_unit_catafalque.xml
a b 1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <Entity parent="template_unit"> 3 <Fogging/> 3 4 <Capturable> 4 5 <CapturePoints>250</CapturePoints> 5 6 <GarrisonRegenRate>0</GarrisonRegenRate> … … 58 59 <VisualActor> 59 60 <Actor>units/global/catafalque.xml</Actor> 60 61 </VisualActor> 62 <Visibility> 63 <RetainInFog>true</RetainInFog> 64 </Visibility> 61 65 </Entity>
- Can
fogging
andmiraging
be used interchangeably to describe the same thing, is there any difference? - Why do I only have to add <Fogging/> and not also <Mirage/> ?
follow-up: 4 comment:3 by , 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
.
comment:4 by , 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 theFOW
but has been moved by the enemy (blue
player), thered
player moves in the direction of therelic
untilred
has visible confirmation that therelic
is no longer in its scouted location, but then immediately moves in the correct direction (red
should move to theFOW
location and become idle as it can't know the new location of therelic
) UNITAI issue - note that the mirage of the
FOW
relic is not erased forred
FOGGING/MIRAGE issue
- If a
Replying to Freagarach:
See also Phab:D1997.
Good diff reference.
by , 16 months ago
Attachment: | cav_hunt_relic.gif added |
---|
Note:
See TracTickets
for help on using tickets.
Does this template property do what you want ? https://github.com/0ad/0ad/blob/c0d5e9a21aad7880a1446e951efc957c8275588e/binaries/data/mods/public/simulation/templates/gaia/fauna_camel_trainable.xml#L8