Like minds that like MUDs
In a recent post, I made the case for MUDs in modern times which explored the niche that MUDs occupy on the internet. As a longtime player of MUDs, I started learning to code in order to tinker with downloaded codebases, trying endlessly to run ancient makefiles and compile spaghetti code hobbled together by lots of strangers on SourceForge. It was fun, but hardly effective!
As a professional now working in technology, my “tinkering” has morphed into a practical skillset that I apply at my job. However, while I was completing my recent Udacity course, I felt like everything I was coding (for a while, at least) was just for the degree program, and not because it was fun and interesting to me. Once I turned in my last project, I realized it was time to work on something totally different and new.
Something totally different and new
Earlier this year, I started working on a Vue app codenamed Ophion. This is my first foray into Vue and is envisioned as a browser game. The “game” has many loose concepts that I’ve been playing with for a while, and as I defined the app state I envisioned how it could operate as an clicker game. The game was built as a resource management idle game in which you played the role of a robot dropped on an alien planet, tasked with harvesting the natural resources and erecting monuments to your strange overlords.
Along the way, I realized the heavy mathematic skills that go into building a good idle game. I’m not much of a mathematician or statistician, so the game balance quickly became wonky. I didn’t know enough about normalizing results to create a steady difficulty curve to the game, and that was when my newfound coding skills hit a brick wall of daunting math. In the end, I threw my cares to the wind and starting building the game just as thematic inspiration, strapping on as many lore-filled appendages as I could in an effort to pile ornamentation atop the calculations! In the end, there’s a lot packed into the code now that I’ll likely use elsewhere.
After making some headway with that, the final portion of my Udacity course began, and I was torn away from my practice yet again—just to do more practice! You can see where I’m going with this, I was getting exhausted…
From Ranvier to Pinwheel
Being able to sift through the structure of the server and examine how it all ties together has really opened my eyes about creating these types of programs in Node. Because the language is so modular, Ranvier is similarly extensible via a module system that can allow any kind of alteration atop the existing source code. With a few lines of code in a module, the server supports WebSocket right out of the box.
However, the codebase itself comes very bare without any content. This isn’t a turnkey codebase like ROM, which comes with prebuilt stock material. This is great, because I don’t have to spend any time gutting. In fact, I’ve gone straight to the source code to start feeling out those bare corners and see what needs to be done. There also aren’t any mainstream released Ranvier MUDs yet at this point. The closest thing is probably Sean O’Donohue’s Myelin, which I encourage you to check out!
To adapt the code into something different, I forked Ranvier into my own repository called Pinwheel. The name is inspired by something cyclical yet fun, which is the mantra I’m keeping in mind as I design the game. So far, I’ve expanded how character attributes work with fighting to create a stat-based auto combat system. I’ve also expanded upon skills to create something akin to a discipline system with mastery levels. Because Ranvier is agnostic about how these properties apply, any character in the game (including an NPC) can learn from their actions and increase their masteries like a player. This is exciting for me as I start shaping the starting areas as an agent-based simulation.
Right now, the idea is to use the web server for server management and content creation right from the browser, but I also want to implement some type of gameplay for players. MUDs suffer from a rather low playerbase overall, and finding ways to attract new players would go a long way towards making the project worthwhile to me.
Like-minded MUD developers, unite!
Eric Oestrich has created ExVenture, a MUD server in Elixir. On top of that, though, he also runs our inter-MUD Gossip chat network which establishes a protocol for MUDs to exchange messages. This is in the same vein as LP MUDs, which all share a protocol that allows them to chat between their instances. This is a pretty cool concept, when you consider the represented entities who are chatting between the servers are completely different from top to bottom! Once my server is stable and I’ve finished area permanence (so state is always preserved), I’m planning to put the server on a DigitalOceanDroplet and I’ll be adding Gossip support. Eric has even already created a Gossip bundle for Ranvier.
From here, I’m really looking forward to charging forward on my project. I’m continuing to refactor Ranvier into my new Pinwheel server now, and I hope to have some teasers in the future. Once I have a development server active, I’ll share how to connect!