Opened 8 years ago
Closed 7 years ago
#4267 closed defect (fixed)
Explored territory outside of the map square
Reported by: | elexis | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 22 |
Component: | UI & Simulation | Keywords: | |
Cc: | Patch: |
Description (last modified by )
In the attached replay (alpha 21, r18802), the blue player starts with explored territory that is outside of the map area.
Attachments (4)
Change History (10)
by , 8 years ago
Attachment: | commands.txt added |
---|
by , 8 years ago
Attachment: | minimap.jpg added |
---|
comment:1 by , 8 years ago
Description: | modified (diff) |
---|
comment:2 by , 7 years ago
Description: | modified (diff) |
---|
comment:3 by , 7 years ago
Milestone: | Backlog → Alpha 22 |
---|---|
Priority: | Nice to Have → Should Have |
Solving this before committing Phab:D630 would avoid hiding this bug, making the attached replay irreproducible without reverting that commit. Maybe D630 even fixes this bug completely instead of hiding it.
D630 shows that if a CC is near the map border, the initial exploration of player territory also marks territory outside of the world as explored. That exploration is just not visible in almost all cases but this one.
If we set edgeSize
in LosIsOffWorld
of the CCmpRangeManager.cpp
to 0
or 1
and start a square map, we will see that two sides of the minimap are being rendered that shouldn't:
So it seems we only need one stripe of explored territory to have it rendered all the way down.
Also created #4636 to make that 3 a constant and not have the territory line hidden in those 3 tiles.
by , 7 years ago
Attachment: | messed_up_minimap.jpg added |
---|
by , 7 years ago
Attachment: | commands.2.txt added |
---|
Reproduce for belgian uplands. The repetition of the color must be some openGL thing from Minimap.cpp
. Maybe Phab:D630 can be considered a fix even.
comment:5 by , 7 years ago
Milestone: | Alpha 22 → Backlog |
---|
Reproduce remove the LosIsOffWorld
check from ExploreTerritories
in CCmpRangeManager.cpp
and start on Belgian Uplands with 8 players on a tiny mapsize and change the perspective to players near the map border.
It might be an OpenGL setting repeating the texture until the very end. The minimap code might need a border, potentially those 3 edge tiles described in #4636. The territory outside of the world being owned should be fixed in that ticket.
comment:6 by , 7 years ago
Milestone: | Backlog → Alpha 22 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Calling it fixed by r19790, assuming noone cares about some OpenGL flag that should never be relevant.
With Phab:D630, the area outside of the map is not explored anymore, but the area is still marked as player territory.