Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Minihack-MultiRoom map generation bug (map too large) #5

Open
samvelyan opened this issue Feb 12, 2025 · 0 comments · May be fixed by #6
Open

[BUG] Minihack-MultiRoom map generation bug (map too large) #5

samvelyan opened this issue Feb 12, 2025 · 0 comments · May be fixed by #6
Labels
bug Something isn't working

Comments

@samvelyan
Copy link
Owner

This is a migration copy of the original bug report here: facebookresearch#107.


🐛 Bug

Using any of the Minihack-MultiRoom environments ported from Minigrid results in the level not being created because the map is too large.

To Reproduce

Create and reset the environment

import gym
import minihack
from nle import nethack

MOVE_ACTIONS = tuple(nethack.CompassDirection)
NAVIGATE_ACTIONS = MOVE_ACTIONS + (
            nethack.Command.OPEN,
            nethack.Command.KICK,
)

env = gym.make('MiniHack-MultiRoom-N6-v0, observation_keys=("pixel_crop",), actions=NAVIGATE_ACTIONS)
env.reset()

Occasionally, this error will pop up.

mylevel.des: line 29, pos 0: Map too large at (25 x 22), max is (76 x 21) at "ENDMAP"
mylevel.des: 1 errors detected for level "mylevel". No output created!

I've also come across this error too.

mylevel.des: line 30, pos 0: Map too large at (25 x 22), max is (76 x 21) at "ENDMAP"
mylevel.des: line 32, pos 12: Coordinates (7,21) out of map range!
mylevel.des: 2 errors detected for level "mylevel". No output created!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant