andreped / super-ml-pets

🐢 AI for Super Auto Pets
MIT License
31 stars 13 forks source link

Deployment pet upgrade event broken? #60

Open andreped opened 1 year ago

andreped commented 1 year ago

It was observed that after merging two pets to upgrade on, it still thought that there was 5 pets in the team.

Or at least it seemed like that was what caused the behaviour.

Later on, this resulted in the bot attempting to sell a pet that was not present in the team, as the assumed team had diverged from the actual team.

Error log below:

Traceback (most recent call last):
  File ".\main.py", line 63, in <module>
    main()
  File ".\main.py", line 57, in main
    run(ret)
  File "C:\Users\andrp\workspace\super-ml-pets\smp\deploy_agent.py", line 169, in run
    action_dict[get_action_name(action)](s[action][1:])
  File "C:\Users\andrp\workspace\super-ml-pets\smp\actions.py", line 151, in sell
    raise Exception("Invalid sell: No pet present in the slot to sell...")
Exception: Invalid sell: No pet present in the slot to sell...