Author Topic: Bug:custom_entity:set_can_traverse_ground  (Read 1336 times)

Yosha

  • Newbie
  • *
  • Posts: 37
    • View Profile
Bug:custom_entity:set_can_traverse_ground
« on: July 15, 2015, 09:51:37 am »
Hello, I seem I found a bug with the custom entity. I didn't understand why my custom entity would not walk on ladder and, after many test, I know why. My line was custom_entity:set_can_traverse_ground("ladder", true) but it didn't work. Finally, I had to put custom_entity:set_can_traverse_ground("ladder", false) and now it works. Maybe there is other bugs with this method, (i.e with other entities, why not) but I didn't try.

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1172
    • View Profile
Re: Bug:custom_entity:set_can_traverse_ground
« Reply #1 on: July 15, 2015, 09:58:07 am »
I think it is a known bug: https://github.com/christopho/solarus/issues/668
Should be fixed in 1.4.3.
EDIT: fixed :)
« Last Edit: July 15, 2015, 10:03:03 am by Christopho »

Yosha

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: Bug:custom_entity:set_can_traverse_ground
« Reply #2 on: July 15, 2015, 11:06:44 am »
OK, sorry for the pointless post!

froggy77

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Re: Bug:custom_entity:set_can_traverse_ground
« Reply #3 on: July 23, 2015, 11:48:28 pm »
I think there is the same problem with these methods:
custom_entity:set_traversable_by([entity_type], traversable)
custom_entity:set_can_traverse([entity_type], traversable)


I tried with a door; the custom entity cannot traverse the door even with a "true" in parameters.
The problem is maybe already corrected for the next version .

I would also like to add that I love Solarus! Thank you!  ;)

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1172
    • View Profile
Re: Bug:custom_entity:set_can_traverse_ground
« Reply #4 on: July 24, 2015, 08:41:46 am »
Hmm, apparently doors are always obstacles, they ignore custom entity settings. This is a bug, I just opened an issue: https://github.com/christopho/solarus/issues/716
Thanks for reporting it.