Re: Using Diku Rooms

108 views
Skip to first unread message

Griatch Art

unread,
Apr 7, 2013, 4:52:02 PM4/7/13
to eve...@googlegroups.com
You need to write a converter to convert your files to evennia. I don't know any specifics about Diku files but one user previously wrote a converter for Smaug files and another for importing their MUSH database, maybe one of them will weigh in their experience here.
.
Griatch

On Sunday, April 7, 2013 9:37:31 PM UTC+2, Matthew Page wrote:
I have a dozen .are files from a Diku MUD that I would like to use in my Evennia MUD. There are so many rooms that doing it room by room would be completely impractical. Does anyone have any ideas regarding what steps I could take to accomplish this?

Kelketek Rritaa

unread,
Apr 7, 2013, 5:44:35 PM4/7/13
to eve...@googlegroups.com
MUCK database, actually. But what we ended up doing was writing a parser for the database, and having it export to JSON. If you have the source files for Diku (I don't know if that's an open source project-- I'm not familiar with it), you could look at how the file is parsed. However, if you just have the file, try opening it in a text editor and seeing if you can make sense of it. Often these things have certain markers where an object starts and ends, what flags it has, etc, and it's just a matter of creating data structures from what you read in.

The data is all there-- my suggestion is to convert it into JSON, which can be manipulated by standard libraries easily, and export it. Then you can easily work with and manipulate the data.

--
--
You received this message because you are subscribed to the "Evennia" MU* server mailing list.
To post to this group, send email to eve...@googlegroups.com (or use the web interface).
To unsubscribe from this group, send email to evennia+u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/evennia?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Evennia" group.
To unsubscribe from this group and stop receiving emails from it, send an email to evennia+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Matthew Page

unread,
Apr 7, 2013, 6:15:13 PM4/7/13
to eve...@googlegroups.com
Yeah, the source files for Diku are available, "Diku's source code was first released in 1990 and became the root of one of the largest trees of derived code from a MUD-like source code package". I'm a little surprised you haven't heard of it, =P but no worries.

Unfortunately, I can't make much sense of the .are area files by looking at them with notepad. I'm scared of looking through files trying to figure out how things are parsed, but you're right, that would be a way of figuring it out.

Would do you do once you have the files in JASON? Do you try to have a program put it into tables in SQLite or something, or is there another way to get areas into Evennia?

Kelketek Rritaa

unread,
Apr 7, 2013, 6:28:38 PM4/7/13
to eve...@googlegroups.com
I have heard of it, I've just never used it. :)

Once you have the files in JSON, the next step is to look at the create functions in src/utils/create.py (the functions in here are borrowed from different places in he codebase, if I recall. Follow them to find out more). Those outline the way to create new objects. You'll want to have a way to create each object, put it into its proper place, create exit objects, and link them.

You can use the data in the JSON structure you make to iterate over all the objects, figure out what type they are (and thus what object to create) and use them as arguments to those creation functions.
Reply all
Reply to author
Forward
0 new messages