Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUDs ➜ General ➜ Open Source Codebase

Open Source Codebase

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Ktossell   USA  (37 posts)  Bio
Date Mon 02 Sep 2002 03:30 PM (UTC)
Message
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
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 03 Sep 2002 04:10 AM (UTC)
Message
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"?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Ktossell   USA  (37 posts)  Bio
Date Reply #2 on Tue 03 Sep 2002 07:23 PM (UTC)
Message
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.
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #3 on Wed 04 Sep 2002 02:11 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Ktossell   USA  (37 posts)  Bio
Date Reply #4 on Sun 06 Oct 2002 01:06 AM (UTC)
Message
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...
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #5 on Sun 06 Oct 2002 01:12 AM (UTC)
Message
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. :)

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #6 on Sun 06 Oct 2002 01:19 AM (UTC)

Amended on Sun 06 Oct 2002 01:20 AM (UTC) by Nick Gammon

Message
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).



- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Ktossell   USA  (37 posts)  Bio
Date Reply #7 on Sun 06 Oct 2002 01:34 AM (UTC)
Message
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
Top

Posted by Ktossell   USA  (37 posts)  Bio
Date Reply #8 on Sun 06 Oct 2002 02:23 AM (UTC)
Message
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
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


26,264 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.