You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where room1/room2/room5 is a symbolic link to room1/room2/room3/room4/room5 and room1/room2/room3/room4/room5/room2 is a symlink to room1/room2.
I tried to define this dungeon with the following yaml:
dir:Root:
description: "A poorly lit hallway proceeds you to the north."adjacent:
- room1contains:
- READMEdir:room1:
description: "you're in room 1"adjacent:
- room2dir:room2:
description: "you're in room 2"adjacent:
- room3
- room5dir:room3:
description: "you're in room 3"adjacent:
- room4dir:room4:
description: "you're in room 4"adjacent:
- room5dir:room5:
description: "you're in room 5"adjacent:
- room2
- room4
- room6dir:room6:
description: "you're in room 6!"adjacent:
- room5
I know this creates a loop, but makes it possible to write not so linear games. I seems that a room structure like this results an infinite loop in the code as my CPU load jumped to 100% when I tried to mount this test level.
The text was updated successfully, but these errors were encountered:
I will try and reproduce and get this fixed. It should be able to do that but I suspect that the logic I wrote to build the tree of directories is not terminating correctly on previously visited rooms in this case. I know it's been a while already so if you have already tracked down the bug, feel free to submit the fix, otherwise I will try and jump on this very soon.
I'd like to make a more advanced dungeon and I wonder how it is possible to create multiple routes to a room.
As a directory structure I would create something like this:
where
room1/room2/room5
is a symbolic link toroom1/room2/room3/room4/room5
androom1/room2/room3/room4/room5/room2
is a symlink toroom1/room2
.I tried to define this dungeon with the following yaml:
I know this creates a loop, but makes it possible to write not so linear games. I seems that a room structure like this results an infinite loop in the code as my CPU load jumped to 100% when I tried to mount this test level.
The text was updated successfully, but these errors were encountered: