Skip to content

games stuck at certain steps (location ids) #64

Description

@Oaklight

I have been using Jericho for some projects, trinity always gets stuck at these steps when calling env.get_valid_actions()

TRINITY_STUCK_STEPS = set(
    [8, 13, 23, 29, 33, 35, 39, 43, 47, 49, 58, 59, 60, 65, 68, 69]
)

Actually, later I found it's the location id that matters. Here are the ones for trinity and sherlock

TRINITY_STUCK_LOC_ID = (79, 354, 144, 355, 531, 179, 371, 121, 438, 576, 323, 319, 575, 80, 316)
SHERLOCK_STUCK_LOC_ID = (111, 3, 37, 33, 93, 71, 5, 73, 1, 85, 295, 52, 57, 21, 69, 27, 12)

Activity

  1. changed the title [-]Trinity stuck at certain steps[/-] [+]games stuck at certain steps (location ids)[/+] on Jun 2, 2023
  2. MarcCote commented on Jun 2, 2023

    @MarcCote
    Collaborator

    Hi Peng Ding (@Oaklight) , would you mind trying with this WIP branch I have and let me know if that still hangs?

    pip install https://github.com/MarcCote/jericho/archive/refs/heads/fix_obj_num.zip
    
  3. Oaklight commented on Jun 4, 2023

    @Oaklight
    Author

    Hi Marc-Alexandre Côté (@MarcCote), I tried this pip fix, but Trinity is still stuck at location 79, which prevents me from testing further. I didn't test Sherlock.

    Meanwhile, I think this behavior might be useful for debugging:
    I can't ctrl+c to stop the running process of the Trinity emulator, only able to kill it in my Linux task manager.
    some error messages I see repeatedly (they are the same as the ones before applying the pip fix):

    KeyboardInterrupt
    Traceback (most recent call last):
      File "/home/me/mambaforge/envs/my_env/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
        self.run()
      File "/home/me/mambaforge/envs/my_env/lib/python3.11/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/home/me/mambaforge/envs/my_env/lib/python3.11/multiprocessing/pool.py", line 114, in worker
        task = get()
               ^^^^^
      File "/home/me/mambaforge/envs/my_env/lib/python3.11/multiprocessing/queues.py", line 364, in get
        with self._rlock:
      File "/home/me/mambaforge/envs/my_env/lib/python3.11/multiprocessing/synchronize.py", line 95, in __enter__
        return self._semlock.__enter__()
               ^^^^^^^^^^^^^^^^^^^^^^^^^
    

    Hope this could be of some help.

  4. Oaklight commented on Oct 24, 2023

    @Oaklight
    Author

    Hi Peng Ding (@Oaklight) , would you mind trying with this WIP branch I have and let me know if that still hangs?

    pip install https://github.com/MarcCote/jericho/archive/refs/heads/fix_obj_num.zip
    

    this fix corrected the object tree error in walking the walkthrough in these games for me when using jericho==3.1.2

    tryst205
    deephome
    spirit
    curses
    advent

  5. MarcCote commented on Oct 26, 2023

    @MarcCote
    Collaborator

    That's great. Thank you for reporting this.

  6. Oaklight commented on Nov 9, 2023

    @Oaklight
    Author

    Meanwhile, we also noticed the fix altered the env.get_walkthrough on many games. Seed was set as default.
    Many typos appeared in the observations after taking each step, such as missing first letter, missing space, missing 'the', trailing dots.

  7. MarcCote commented on Nov 9, 2023

    @MarcCote
    Collaborator

    That is very helpful. Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions