Kinds-of-Intelligence-CFI / animal-ai-unity

Animal-AI Unity
https://github.com/Kinds-of-Intelligence-CFI/animal-ai
Apache License 2.0
1 stars 2 forks source link

PassMark for Arena 0 (index 0) is skipped/not being set #38

Open alhasacademy96 opened 1 month ago

alhasacademy96 commented 1 month ago

Describe the bug It seems to be the case where the first arena (index 0) passMark is being skipped or not being set correctly when a new configuration is called from unity.

To Reproduce Steps to reproduce the behavior:

  1. Set passMark to any value for arena index 0
  2. Run unity by pressing play
  3. Observe the debug (already in the code in the branch) You will notice that whatever the passMark you set in the yaml file it will be displayed as 0 in unity debug logs. This is only the case for arena == 0.

Expected behavior As for all other arenas defined in the yaml file, the passMark should be defined and correctly set individually and must correspond to the expected values in unity. i.e. arena = 0, passMark = 50 / expected value for passMark in unity debugs = 50.

I suspect this is related to the first arena being skipped but I can't find a connection with training mode and manual mode passMark definition.

Screenshots n/a

Desktop (please complete the following information):

Additional context n/a