Top Mud Sites Forum Return to TopMudSites.com
Go Back   Top Mud Sites Forum > Mud Development and Administration > MUD Coding
Click here to Register

Reply
 
Thread Tools
Old 04-30-2010, 01:25 PM   #1
jplur
New Member
 
Join Date: Apr 2010
Posts: 5
jplur is on a distinguished road
IslandsMUD; source code released!

IslandsMUD is my entry in the 48 hour game making competition.

jplur.no-ip.org 5057

*passwords are currently saved in plaintext, please use something non-important*

( requires python 2.6 and )

It was really fun to make this under a time constraint. The source code is uncommented and a bit rough, I'm currently refactoring the base code and will post the new source when it is in a more usable state.

Comments / critiques would be great!

Last edited by jplur : 05-08-2010 at 06:33 PM.
jplur is offline   Reply With Quote
Old 04-30-2010, 05:26 PM   #2
Ide
Senior Member
 
Join Date: Feb 2006
Location: Seattle
Posts: 361
Ide will become famous soon enoughIde will become famous soon enough
Re: IslandsMUD; python code base written in 48 hours

Don't have a real critique, but a cool idea! Were you familiar with Twisted before this LD?
Ide is offline   Reply With Quote
Old 05-01-2010, 06:45 PM   #3
jplur
New Member
 
Join Date: Apr 2010
Posts: 5
jplur is on a distinguished road
Re: IslandsMUD; python code base written in 48 hours

Answered you online, but for posterities sake:

I've used twisted for a simple 3D TCP game, it's really easy but also a quite a large library. Thanks for suggesting MiniBoa, I'm tempted to switch over.

So I'm planning on making an actual MUD with this code, currently refactoring the base before I start adding new features.

Does anybody see a downside to using python pickle to save persistant objects? Originally I assumed I would have to use a database, but pickling my game objects to file is so simple.
jplur is offline   Reply With Quote
Old 05-02-2010, 02:28 AM   #4
Ide
Senior Member
 
Join Date: Feb 2006
Location: Seattle
Posts: 361
Ide will become famous soon enoughIde will become famous soon enough
Re: IslandsMUD; python code base written in 48 hours

It is simple, but the downside is dealing with version issues between, say, refactored classes and objects persisted from a previous version. You might want to look into just pickling dictionaries (or reading them from some other format, xml, yaml, etc.), and using that data instead.
Ide is offline   Reply With Quote
Old 05-03-2010, 11:22 AM   #5
ArchPrime
Member
 
Join Date: Aug 2008
Home MUD: Archons of Avenshar
Posts: 72
ArchPrime is on a distinguished road
Re: IslandsMUD; python code base written in 48 hours

There are no problems with using pickle for object serialization when you pickle the object's __dict__ (as IDE said). For AoA, I created a persistence mixin for objects whose dictionaries I want to pickle -- the mixin basically has 'save' and 'load' methods, along with some other class metadata that tells the base persistence class where to store the object and what to store...

As for a database, I've utilized data storage using Python's SQLITE interface for a while now, and quite frankly, storing the pickled dictionary in a column, along with desired data in other columns (IE: any object data you want as reportable/searchable; primary keys, etc) works very well. It's fast. It's easy. It just made sense.

Good Luck!
ArchPrime is offline   Reply With Quote
Old 05-04-2010, 04:51 PM   #6
jplur
New Member
 
Join Date: Apr 2010
Posts: 5
jplur is on a distinguished road
Re: IslandsMUD; python code base written in 48 hours

Great advice!

@ ArchPrime, I'll probably follow your lead and use sql so i can separate often looked up data into columns. (right now when you log in, it actually loads the player object before it can check the password.

@ Ide, yeah looks like it will be simpler to store player statistics in a dictionary. I'll still pickle the players inventory, since it's recursive it facilitates things like container objects.
jplur is offline   Reply With Quote
Old 05-08-2010, 06:28 PM   #7
jplur
New Member
 
Join Date: Apr 2010
Posts: 5
jplur is on a distinguished road
Re: IslandsMUD; new source release!


Last edited by jplur : 05-08-2010 at 06:37 PM.
jplur is offline   Reply With Quote
Old 05-09-2010, 11:57 AM   #8
ArchPrime
Member
 
Join Date: Aug 2008
Home MUD: Archons of Avenshar
Posts: 72
ArchPrime is on a distinguished road
Re: IslandsMUD; python code base written in 48 hours

Ah wow! I really like the look of that map. Are you thinking of going more "Roguelike"? Curious, as you mention taking your current experiment no further as a "room based MUD".

For further ideas that go beyond ASCII, I invite you to check out Archons of Avenshar. Granted, we've written a custom client, but the graphical minimap is amazing.
ArchPrime is offline   Reply With Quote
Old 05-09-2010, 04:03 PM   #9
Ide
Senior Member
 
Join Date: Feb 2006
Location: Seattle
Posts: 361
Ide will become famous soon enoughIde will become famous soon enough
Re: IslandsMUD; python code base written in 48 hours

I second the suggestion of AoA (ArchPrime has really made a good game and client there, check it out). There are also some multiplayer roguelikes out there, Twilight MMORL comes to mind, plus third-party extensions to some of the popular RLs like Angband. There are others too that have been in development -- check this out




I think it'd be worthwhile to somehow keep the flavor of a mud along with the RL aspects though.
Ide is offline   Reply With Quote
Old 05-09-2010, 04:58 PM   #10
jplur
New Member
 
Join Date: Apr 2010
Posts: 5
jplur is on a distinguished road
Re: IslandsMUD; python code base written in 48 hours

Ah, more great references to check out

Yeah MAngbad (multiplayer-angband) is pretty great. Actually one of my other projects is a realtime 3D interpretation of angband:

I'll definitely be keeping some of the MUD flavor to the game. A lot of commands that were based on rooms will have to be funneled through a 'check nearby entities' function.

I'm also going to stick with Telnet for some time, it makes it easy for people to test it out. Once I know where this is going I'll develop a custom client.
jplur is offline   Reply With Quote
Old 05-09-2010, 09:27 PM   #11
Ide
Senior Member
 
Join Date: Feb 2006
Location: Seattle
Posts: 361
Ide will become famous soon enoughIde will become famous soon enough
Re: IslandsMUD; python code base written in 48 hours

haha, that's awesome!
Ide is offline   Reply With Quote
Reply


Thread Tools


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 07:11 PM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Style based on a design by Essilor
Copyright Top Mud Sites.com 2022