Open Source Codebase

Posted by Ktossell on Mon 02 Sep 2002 03:30 PM — 9 posts, 29,331 views.

USA #0
Hi,

I don't think this has been done too much before... Would anyone be interested in contributing major (or minor) code to an open source mud codebase? I would like to make it a generally a rom-style interface, but not necessarily the same workings. Patches would be submitted by contributors, and then committed into a cvs repository. So far, I am just assembling socket functions, and userfiles functions. I plan to do all data storage ( pfiles, area files, etc. ) in XML. This is already being done with pfiles.

For more information, reply here, email me, or visit me on the mud at mud.tossell.net port 9000.

Ken
Australia Forum Administrator #1
I am a bit interested in that. :)

I have already done my own codebase which is half-finished, however I wanted to rework it, now that I know more about XML, so using XML for storage is something I am keen on.

I presume by open source you mean not only is the source publicly available but that it doesn't have the restrictions on it that SMAUG (etc.) has (eg. no pay MUDs)?

I ask this because someone else is interested in a codebase right now too.

Are there any particular things you were planning to do, or just "similar to ROM"?
USA #2
I want to be open source as in GPL ( no restrictions, except patches should be submitted ). I didn't really have any guildlines thought up for how it should work/look, and I wanted coders to have a big say in the goal of the project they are working on.
Australia Forum Administrator #3
I fixed a few compiler warnings in the source and committed the changes. They are pretty minor, a few extra include files here and there. You had a mismatch on the argument for "menu" - was it a pointer or not? I changed it to not.
USA #4
Are you still interested in this?

I'm writing a base in c++ now, the source of which you can see at www2.tossell.net/openmud-src/source/ . Currently, you can connect and become an link in the list of users... I have a *very basic* command parser, which shouldn't be hard to expand. I am really stumped on why it will accept "quit" as a command but not recognize "who"... Anyway, email me or go on DarkWaters or something... Also, I have a sourceforge group ( http://www.sourceforge.net/projects/openmudbase/ )

I'm thinking more along the lines of MySQL storage now, but XML is still possible...
Australia Forum Administrator #5
I started doing my own version recently and then got distracted.

However as it stands it accepts connections, and displays stuff to the player.

I was going to use XML for the world files, so I rewrote my XML parser to use STL rather than MFC, and that is working nicely.

However I got a bit bogged down in how flexible to make it. :)
Australia Forum Administrator #6
Quote:

I am really stumped on why it will accept "quit" as a command but not recognize "who"


You can't work with pointers like this:


for ( cur = command_table; cur->command != ""; cur++ )


You need to refer to them as command_table[0], command_table[1], and so on.

eg.


for (int i = 0; command_table [i].command != ""; i++ )


I have been using the STL lists for tables (or maps would be good for commands).


Amended on Sun 06 Oct 2002 01:20 AM by Nick Gammon
USA #7
no, that's not the problem... i tried your method and i get exactly the same results. see http://www2.tossell.net/openmud-src/socket.cpp for my new version
USA #8
I got the command parser working now. I had to replace the sizeof()'s with cur->command.length() and ch->inbuf.length().

D'oh!

PS: it's in cvs