Skip to page content

[2020-08-11 Tue 10:07]

Tags: Racket MUD, Groundhog Autonomous Zone, and Basic Racket MUD RPG Library.

This might be the most days-in-a-row that I’ve updated my personal logs, in a long time! Even with the hiccups, it seems like I’m getting closer to a process that works for me.

Today’s agenda is rather loose and informal, excepting the routine mutualist activities that are scheduled throughout the day. My biggest plan for the day is to crack through the rewrite of my MUD engine’s basic library, that allows for connection through a socket server, logging in, and basic command parsing.

Since I picked my MUD’s code back up in mid-July, after not touching it since it’s creatio between last October and December, I’ve been rewriting it. A lot of the code that existed was the result of tinkering, and so was poorly name, and often not split up into different procedures, so there was a lot of unnecessary code repetition.

I’ve pretty much finished that reorganization, though I will still need to re-implement RPG features like game areas you can look at and move around. And the engine itself does run and tick like it should. However, the basic library errors once a player connects, and it errors poorly:

Because of my naivety, there appear to be gaps in coverage between my error and log handling code, and Racket’s expectations. For example, pretty much every generated stack-trace fails to actually read into the engine’s event functions: it just ascribes the error to whichever line-number declares the procedure which errors.

So, finding what’s actually wrong in the code has been tricky, especially since I haven’t learned how to read Racket errors very well. It felt like a wall yesterday, so I didn’t really touch the project much in the afternoon, but I’m hoping today I’ll feel refreshed enough to get around it. And if not, well, I have pretty much the whole day.

With the other parts of my day, I’d like to tidy up around the GAZ a bit: with the most-recent meal distribution, there ended up being a lot of cardboard boxes left that will need to get broken down.

My contingency plan for the evening is that if it gets to be mid-afternoon and I’m still struggling to make progress with the basic MUD library’s code, then I’m going to change gears and set up pages on my website for the GAZ, so I can again start getting daily bulletins listed. Getting the actual pages up won’t be too tricky, but designing the CSS for them will probably take some thought. I’d also like to work out a better way of recording the Zone’s inventory.

And, if that doesn’t take long, but I’m still stuck on my basic library, then I’m going to work on, instead, making things and their qualities and stuff, since I don’t need a running interactive MUD to do that. From my tinkering previously, I think I’m going to move away from the concept of players always being in roughly room-sized areas, instead giving them an ability to move up and down through scales of world maps.

> map
Johara settlement, in Johara Forest, north Abah County. Approximately 350 people live here in 70 buildings.
> explore
You explore the settlement and find a blacksmith and charcoalery near south, and a large market north of that.
> map
Johara settlement, in Johara Forest, north Abah County. Approximately 350 people live here in 70 buildings. There is a blacksmith and charcoalery near the south, and a large market north of that.
> explore blacksmith
You explore the blacksmith and find a relatively large but shabby building, operated by a middle-aged woman.
> chat person
You introduce yourself to the person. They say their name is Edil.
> map
Johara Blacksmith, in Johara settlement. A relatively large, but shabby building. Operated by Edil, a middle-aged feminine person.
> map johara
There are multiple matching locations, please specify:
- johara settlement
- johara forest
> map johara forest
> map abah marsh
Abah Marsh, central Abah County. Part of the foothills of the Meri Mountains, Abah Marsh is a steeply-sloped region that continus south to the coast of the Unnamed Sea. To the north is Johara Forest. There are many duck ponds within the Marshes.
> explore duck ponds
You are in the Johara Blacksmith, in Johara settlement. There are no duck ponds here.
> travel abah marsh
You begin to travel to Abah Marsh from the Johara Blacksmith.
You move from the Johara Blacksmith to Johara settlement.
You move from Johara settlement to Johara forest.
> stop
You stop traveling.
> map
Johara Forest, north Abah County. Situated in the foothills of the Meri mountains, Johara forest is where the Johara settlement is. Coastwatch Road, running north to southeast, connects the settlement to the rest of the county, across the Abah Marsh.