vcmi icon indicating copy to clipboard operation
vcmi copied to clipboard

Skeleton Corpse blocks path

Open kambala-decapitator opened this issue 1 year ago • 6 comments

You can't step onto the corpse hence you can't access Coliseum.

Screenshot 2022-09-06 at 15 26 03

Already saw such case twice on the same map and rather nearby.

kambala-decapitator avatar Sep 06 '22 17:09 kambala-decapitator

I though I fixed it...

Nordsoft91 avatar Sep 07 '22 02:09 Nordsoft91

Is it possible to bypass it by visiting? It is like resource BLOCKVIS object but which is not removed? I know one more such object -buoy. Btw there should be a way to understand if the object is removable. AI has a helper method for this I think but it should be a property of the object itself

nullkiller avatar Sep 07 '22 07:09 nullkiller

Is it possible to bypass it by visiting?

no:

You can't step onto the corpse

kambala-decapitator avatar Sep 07 '22 07:09 kambala-decapitator

Maybe one-tile-square around such objects will do its job?

misiokles avatar Sep 07 '22 07:09 misiokles

@kambala-decapitator , for rmg issues, please attach client logs or at least map description, containing random seed and parameters used to generate map

Nordsoft91 avatar Sep 08 '22 22:09 Nordsoft91

sorry, didn't save log of the map generation. Parameters:

Screenshot 2022-09-09 at 12 31 17

kambala-decapitator avatar Sep 09 '22 09:09 kambala-decapitator

another example (and Coliseum again):

Screenshot 2023-01-10 at 15 11 51 Screenshot 2023-01-10 at 16 09 39

kambala-decapitator avatar Jan 10 '23 13:01 kambala-decapitator

one more on the same map:

Screenshot 2023-01-15 at 12 29 44

kambala-decapitator avatar Jan 15 '23 09:01 kambala-decapitator

In order to properly handle that, we should be able to determine whether the object is removed after visit. If it is, there's no problem. There is no such property in CGObjectInstance or ObjectTemplate.

Also, blockVisit is configured only after object is fully created (CRandomRewardObjectInfo::configureObject inside CGameState::initMapObjects()), so this info is not available during object placement.

DjWarmonger avatar Mar 25 '23 15:03 DjWarmonger

Good news: Looks like right now, the issue only occurs when there are at least 2 corpses in a treasure pile.

Untitled Untitled (1) Untitled (2) Untitled (3) Untitled (4)

DjWarmonger avatar Dec 06 '23 08:12 DjWarmonger