Skip to content

Cancelling an interaction with a register or food counter raises an AttributeError #8

Description

@thowell332

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:

  1. Position an agent within range of a register or food counter and facing the object
  2. Send an INTERACT action
  3. Send a CANCEL action

In keyboard mode:

  1. Position an agent within range of a register or food counter and facing the object
  2. Press 'Enter' to begin an interaction with the register
  3. 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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions