MantisBT - VCMI
View Issue Details
0001870VCMIMechanics - Adventure Mappublic2014-08-14 07:462022-04-12 11:04
Kantor 
SXX 
normalminorsometimes
closedfixed 
 
0.98f 
0001870: Sometimes creatures can spawn on unreachable area
This happened to me only at week of some creature. Check screenshot.
VCMI version: 7-08-2014
No tags attached.
related to 0001859closed beegee Crash when rendering "unknown pattern" in undergroud 
has duplicate 0002333closed SXX Wandering creatures spawn in the Void (underground) 
has duplicate 0002150closed SXX month monster - there being in places where they should not be 
png Creature spawned on unreachable area.png (161,944) 2014-08-14 07:46
https://bugs.vcmi.eu/file_download.php?file_id=1883&type=bug
png
Issue History
2014-08-14 07:46KantorNew Issue
2014-08-14 07:46KantorFile Added: Creature spawned on unreachable area.png
2014-08-14 10:03WarmongerRelationship addedrelated to 0001859
2014-08-14 10:03WarmongerNote Added: 0004915
2014-08-15 19:42IvanNote Added: 0004917
2014-08-18 04:50WarmongerNote Added: 0004921
2014-08-18 04:51WarmongerNote Edited: 0004921bug_revision_view_page.php?bugnote_id=4921#r2618
2014-08-18 09:08IvanNote Added: 0004925
2014-09-23 16:37IvanAssigned To => Ivan
2014-09-23 16:37IvanStatusnew => assigned
2015-11-25 06:10SXXRelationship addedhas duplicate 0002333
2015-11-25 06:14SXXAssigned ToIvan => SXX
2015-11-25 06:19SXXNote Added: 0006108
2015-11-25 06:19SXXStatusassigned => resolved
2015-11-25 06:19SXXFixed in Version => 0.98f
2015-11-25 06:19SXXResolutionopen => fixed
2015-11-25 07:28SXXRelationship addedhas duplicate 0002150
2016-09-08 14:34SXXNote Added: 0006632
2022-04-12 11:04PovelitelStatusresolved => closed

Notes
(0004915)
Warmonger   
2014-08-14 10:03   
There must be something about rendering underground that I don't know.
(0004917)
Ivan   
2014-08-15 19:42   
Maybe RMG doesn't set TerrainTile::blocked property? I don't see any references to it in RMG.
(0004921)
Warmonger   
2014-08-18 04:50   
(edited on: 2014-08-18 04:51)
Yes of course, but it doesn't explain creatures spawning on regular maps. I simply don't know which underground tiles should be blocked, which should be rock and which not and what is the algorithm for pattern placement and rendering.

(0004925)
Ivan   
2014-08-18 09:08   
Ah, I thought that this is specific to RMG.

Pathfinder seems to be working correctly here - it simply check for rock terrain. So for regular maps such test should work too - just add check for it in CPrivilagedInfoCallback::getFreeTiles()
(0006108)
SXX   
2015-11-25 06:19   
Fixed:
https://github.com/vcmi/vcmi/commit/3d8f67f864cf882d91fedbed75833676a8ce7a11 [^]
(0006632)
SXX   
2016-09-08 14:34   
BTW this code need more fixes since it's can place creatures on top of unreachable tiles / on top of blocking static objects.