#4012 closed defect (fixed)
[PATCH] Phoenician levant has unreachable trees — at Version 13
Reported by: | sanderd17 | Owned by: | FeXoR |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 21 |
Component: | Maps | Keywords: | patch |
Cc: | FeXoR | Patch: |
Description (last modified by )
Pheonician levant (or was it Phoenician) has a lot of unreachable trees on the map boundary.
It's easy to find them via the obstruction overlay.
This is because on square maps, there's a border of 3 tiles wide that's unpassable and allows the terrain to fade to black.
The following patch should fix it (apparently map size is expressed in tiles instead of meters?).
Change History (20)
by , 8 years ago
Attachment: | Phönicia.diff added |
---|
by , 8 years ago
Attachment: | Phönicia.2.diff added |
---|
comment:1 by , 8 years ago
I guess adding a constant mapBorderShadowWidth
, making it the default parameter for the distance
parameter in Map.validT
and use that for both, round and rectangular maps would be better.
That also will require thorough testing especially on round maps of different sizes and the edges of rectangular maps to ensure we didn't overlook some behavoir of the engine we didn't expect.
by , 8 years ago
Attachment: | fix_trees_in_map_border2016-6-3.patch added |
---|
Just uses the distance parameter instead of a hardcoded 3
comment:2 by , 8 years ago
That last patch fixes an issue not taking into account the distance
parameter on rectangular maps.
AFAIK that fixes the issue.
Thanks sanderd17 for notifying me about this issue, the ticket and the patch.
comment:4 by , 8 years ago
Keywords: | review removed |
---|
comment:5 by , 8 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Apparently the patch is broken, the majority of resources don't appear on the map after this patch. Only a few bushes appear on the map.
comment:6 by , 8 years ago
Component: | UI & Simulation → Maps |
---|
by , 8 years ago
Attachment: | map.js2016-6-11.patch added |
---|
Fixes the unhandled case if distance is not given
comment:7 by , 8 years ago
Summary: | [PATCH] Pheonician levant has unreachable trees → [PATCH] Phoenician levant has unreachable trees |
---|
by , 8 years ago
Attachment: | map.js2016-6-11rename.patch added |
---|
ALTERNATIVE patch also renaming (mv) phoenician_levant.js/json to fix the typo
by , 8 years ago
Attachment: | vokoscreen-2016-06-27_11-34-30.mkv.7z added |
---|
It looks like i have still the same bug but at bottom of the map now
comment:9 by , 8 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:10 by , 8 years ago
@fatherbushido: it's not exactly the same bug. In the old bug, the trees never became visible as they were beyond the SoD edge.
It looks that in your case, the trees are placed exactly on the map boundary, creating little space for the units to gather the trees, and causing the units to block each other from movements.
It should be perfectly possible to gather the tree with a single unit in your case, so I'm not convinced this issue should be solved in the map. It should rather be solved in the UnitAI, UnitMotion and/or pathfinder.
by , 8 years ago
Attachment: | placer_fix2016-6-28.diff added |
---|
Fixes SimpleObject.place() placing entities outside playable map and add const MAP_BORDER_WIDTH
comment:11 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
First patch messes up mountains on the edge, second patch doesn't