Quoll Work Thread, 2024-09-23 #4 - 2024-09-23 21:12
This is a continuation from another post. Here is the first part of this thread. Here is the previous post of this thread.
Having a bit of trouble trying to hit the default direction example...
Here, look at this transcript:
> abstract ada to plushie bin
[Abstracted.]> who are you
ReckCo! DeusFilius has detected a Playerr query of who their interlocutor is. As a Playerr, you are speaking to a Medium engaged in Chronomancy through the ReckCo! DeusFilius parser. DeusFilius will attempt to standardize your imperative commands like LOOK, GET FLOWER (if one were here), or GO
DEBUG: In get direction example!
DEBUG: north is viable because it leads to Between Funge Cells...
DEBUG: northeast is NOT viable...
DEBUG: east is viable because it leads to Funge Space (2, 0)...
DEBUG: southeast is NOT viable...
DEBUG: south is viable because it leads to Funge Space (1, 1)...
DEBUG: southwest is NOT viable...
DEBUG: west is viable because it leads to Alpha Sigil (0, 0)...
DEBUG: northwest is NOT viable...
DEBUG: up is NOT viable...
DEBUG: down is NOT viable...
NORTH (or N) for the sake of the Medium who will then attempt to perform the actions commanded and describe the results of their actions.
So to explain this a bit, the ABSTRACT command is a debugging command that can be used to move any object to another location or container. In this case, I am ABSTRACTing Ada, the player character, to Plushie Bin, which is a secret inaccessible room that only exists in a debug build to help with testing because I don’t really have a way to move plushies back out of play using a command, but I can ABSTRACT them to another room.
Now when the Smarter Parser extension runs the [get direction example]
text substitution (which I’ve added a bit of
debugging code to), it tries to find a random “viable” direction to use. That is, it considers a direction to be viable
if it there is a room in that direction from the location. So, for example, north is a viable direction because
apparently the Between Funge Cells room is to the north of Plushie Bin. However, if you actually try to go that way:
> n
I can't go that way.
it doesn’t work. Not being able to travel makes perfect sense because I never hook Plushie Bin up to other rooms. But
despite that, the phrase let R be the room north of Plushie Bin
sets R
to Between Funge Cells regardless. My only
guess is that the rooms are arranged in random directions of each other even if there isn’t a pathway between the
rooms. But this also means that it’s pretty much impossible to force [get direction example]
to fall back to the
default direction example
because it will consider such rooms to be viable.
I guess one less thing to worry about at least.
This is probably going to do it for me today, because I deserve to take a little rest, but I feel great to be working on this again!