Description: Attempting to cancel an interaction with a register or food counter, both in socket mode and in keyboard mode, causes the program to exit with the following exceptions, respectively:
AttributeError: 'Register' object has no attribute 'get_interactive_stage'. Did you mean: 'get_interaction_stage'?
AttributeError: 'Counter' object has no attribute 'get_interactive_stage'. Did you mean: 'get_interaction_stage'?
Steps to Reproduce:
In socket mode:
- Position an agent within range of a register or food counter and facing the object
- Send an
INTERACT action
- Send a
CANCEL action
In keyboard mode:
- Position an agent within range of a register or food counter and facing the object
- Press 'Enter' to begin an interaction with the register
- Press 'b' to cancel the interaction
Solution: Change get_interactive_stage(player) to get_interaction_stage(player) in norms/norms.py:
|
and target.is_interacting(player) and target.get_interactive_stage(player) == 0: |
Description: Attempting to cancel an interaction with a register or food counter, both in socket mode and in keyboard mode, causes the program to exit with the following exceptions, respectively:
Steps to Reproduce:
In socket mode:
INTERACTactionCANCELactionIn keyboard mode:
Solution: Change
get_interactive_stage(player)toget_interaction_stage(player)innorms/norms.py:propershopper/norms/norms.py
Line 685 in 026316b