Closed Stephenkruk closed 3 years ago
@Stephenkruk Thank you for reporting! If you are willing to contribute to MATRX Software, feel free to contact us to find a way that suits you!
After a quick glance I believe you are indeed correct. As the standardized output of State
is the list of all objects adhering to some query, the bug is that in the methods you refer to the agent's own object representation is treated as a dict while being a list.
I will take a look at it this evening and see if I can add it last-minute to the release tonight.
Describe the bug
get_self(self)
in state.py returns a list containing the dict of the agent properties (v2.0.8) rather than the dict itself (v2.0.7 and before). This has consequences when using the__get_closest(self, objs)
function in state.py when it tries to performself.__me['location']
orself.get_self()['location']
(line 417 or 419)To Reproduce use the
get_closest_room_door(self, room_name)
(line 351) function to trigger this bugExpected behavior The _getself() function needs to return only the dict of the agent properties, since it makes use of the
__get_closest
functionStacktrace
Additional context Not familiar with the framework yet, therefore posting this as a bug rather than fixing it, since I don't know about other implications this might have.
Edit: Formatted stacktrace.