Dennis MUD

Have a project in the works but not much media? How about an idea you are turning into a project? Maybe a game design document you want to start with. This is the place.

Dennis MUD

Postby Seisatsu » Mon Feb 18, 2019 5:20 am

Hello! It seems like this place is very slow nowadays, but I've always posted updates about my biggest projects here so here goes.

Introducing Dennis MUD, the Multi-player Text Adventure Sandbox Server! I have been working on it for about half a year, and it is a complete rewrite of an older, similar project of mine by the same name from many years ago which didn't get nearly as far. Dennis is a MUD written in Python 3 with Twisted and Autobahn, and using MongoDB. Unlike your average MUD, Dennis is a collaborative writing exercise, from the conversations between players down to the very structure of the world. A game world starts with a single, empty room, and from there players can use in-game commands to add new rooms, exits, and items, and describe them. A true sandbox, Dennis lets players cooperatively create a world from scratch and explore each others' realms.

Dennis is in late pre-alpha, but has a very decent featureset already, and is perfectly usable, if a little rough around the edges. It includes a Websockets server and browser client, a Telnet server, and a command-line singleplayer frontend. A test instance is kept running which you are all free to check out; it is a sizable world with a few semi-regular players. More information is available on that page, the discussion thread linked from it, and on the Github.

Dennis is inspired by ifMUD, a very old MUD with a similar concept but a much more complex control system, and which is not open source.

Test Instance: http://dream.uboachan.net/
Github: https://github.com/seisatsu/Dennis/
Image
Seisatsu
 
Posts: 34
Joined: Mon Aug 17, 2009 10:40 am
Location: United States
Has thanked: 0 time
Been thanked: 0 time

Re: Dennis MUD

Postby hallsofvallhalla » Mon Feb 18, 2019 6:30 pm

Very neat! i played around on it a bit. Very cool. Would recommend pressing the up arrow brings up last command

Not a lot of chatting going on here much anymore but definitely still a ton of visits monthly.
User avatar
hallsofvallhalla
Site Admin
 
Posts: 11965
Images: 13
Joined: Wed Apr 22, 2009 6:29 pm
Location: mobile, al
Has thanked: 11 times
Been thanked: 158 times
Blog: View Blog (3)

Re: Dennis MUD

Postby Seisatsu » Mon Feb 18, 2019 11:12 pm

Yes, navigating command history with the up/down arrows is a planned feature, but it's a little bit harder than it looks and Javascript isn't my best language. I will get around to it eventually.
Image
Seisatsu
 
Posts: 34
Joined: Mon Aug 17, 2009 10:40 am
Location: United States
Has thanked: 0 time
Been thanked: 0 time

Re: Dennis MUD

Postby hallsofvallhalla » Tue Feb 19, 2019 7:31 pm

couldn't you just store it in an array then have a listener for the up key as well as a counter everytime you hit it and it counts through the array every time you hit the key?
User avatar
hallsofvallhalla
Site Admin
 
Posts: 11965
Images: 13
Joined: Wed Apr 22, 2009 6:29 pm
Location: mobile, al
Has thanked: 11 times
Been thanked: 158 times
Blog: View Blog (3)

Re: Dennis MUD

Postby Seisatsu » Wed Feb 20, 2019 4:01 pm

Yeah, I tried to copy some code that did that just for the up key that I found, but I ran into some problem when trying to also make it work with the down key, and I got frustrated and put it aside. I don't remember what the issue is, but I'm just going to have to hunker down and start over. It might end up being easier to write the code from scratch.
Image
Seisatsu
 
Posts: 34
Joined: Mon Aug 17, 2009 10:40 am
Location: United States
Has thanked: 0 time
Been thanked: 0 time

Re: Dennis MUD

Postby hallsofvallhalla » Wed Feb 20, 2019 7:15 pm

Cool, definitely keep us updated.
User avatar
hallsofvallhalla
Site Admin
 
Posts: 11965
Images: 13
Joined: Wed Apr 22, 2009 6:29 pm
Location: mobile, al
Has thanked: 11 times
Been thanked: 158 times
Blog: View Blog (3)

Re: Dennis MUD

Postby KyleMassacre » Fri Mar 08, 2019 6:20 pm

I wouldn’t know how to in python but if you wanted to handle it in the html file you could try something like:
Code: Select all
let consoleLine = [];
let consoleLinesCounter = 0;
let consileString = '';
function keyHandler(event) {
 // switch is better
  if(event.keyCode == 38) { //didn’t check bu I think that’s up
    consoleString = consoleLine[consoleLinesCounter];
    consoleLinesCounter++;
  }
  // do the same for down arrow but change it to —
}
element.addEventListener('keydown', keyHandler);

You will have to do additional checks like if your are out of the array
Skype: KyleMassacre
My NWE Modules
User avatar
KyleMassacre
 
Posts: 571
Joined: Wed Nov 27, 2013 7:42 am
Has thanked: 19 times
Been thanked: 36 times


Return to Project Showoff Tier I

Who is online

Users browsing this forum: No registered users and 1 guest

cron

x