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.
 Entire forum ➜ MUDs ➜ General ➜ Tiny MUD Server - version 2

Tiny MUD Server - version 2

Posting of new messages is disabled at present.

Refresh page


Pages: 1  2  3  4  5 6  7  8  

Posted by Radnire   (7 posts)  Bio
Date Reply #60 on Sat 30 Dec 2006 01:02 PM (UTC)

Amended on Sat 30 Dec 2006 01:20 PM (UTC) by Radnire

Message
My output seems very skewn when I connect to the server.


Welcome to the Tiny MUD Server version 2.2.0

It is displayed as follows :


http://img405.imageshack.us/my.php?image=1uy4.jpg


Any ideas guys?
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #61 on Sat 30 Dec 2006 06:29 PM (UTC)
Message
No offense, but why in the world are you using telnet to connect to a MUD? As it happens, your choice of client is why the output is screwed up because it fails to correctly interpret the formatting info.

Try again with MC or another of the many clients designed for MU*s and let us know if the formatting is still off.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by Radnire   (7 posts)  Bio
Date Reply #62 on Sat 30 Dec 2006 06:45 PM (UTC)
Message
For what it's worth I wouldn't normally, HOWEVER the readme clearly states

"CONNECTING

The default behaviour is to listen for connections on port 4000 (change a constant in
the code to alter this). To test the server you could connect to it like this:

telnet localhost 4000"

So I assumed that it would at least be compatible with telnet. Assumed that seen as it was the method described in the Readme it might even be the 'preferred' method. Silly me.
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #63 on Sun 31 Dec 2006 12:58 AM (UTC)
Message
Yes I admit the readme says that. The reason for the strange formatting is that the server is sending linefeeds (hex 0x0a) rather than carriage-return/linefeed (hex 0x0d 0x0a) pairs, because most clients these days only need the linefeed to start a new line.

It wouldn't take a huge effort to do a simple find-and-replace of one to the other, for example in the comms output routine.

I probably tested it with MUSHclient, but to save suggesting that my own client was needed I put in the line "To test the server you could connect to it ... using telnet".

- Nick Gammon

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

Posted by Radnire   (7 posts)  Bio
Date Reply #64 on Mon 01 Jan 2007 01:40 PM (UTC)
Message
All good then, your right after testing in several mud clients it seems to be formatted just fine, and as you say should be easy to accommodate telnet clients too if the need arises.

One other thing I noticed whilst browsing the code, the DoTell function seems to have a mistake in it :

string what = GetMessage (sArgs, "Tell " + p->playername + " what?"); // what
*p << "You tell " << p->playername << ", \"" << what << "\"\n"; // confirm

This prints the teller's name instead of the recipients name. For example if player Vicki sends a message to player John it would look like this :

__Vicki__
tell John Hello
You tell Vicki, "Hello"

__John__
Vicki tells you, "Hello"


Should be a simple fix if there is support for the targets name, haven't looked yet (it was 4:50am when I looked at this and was just casually browsing whilst waiting for emails to download)

Anyway just thought I'd let it be known, if it isnt already.
Top

Posted by Radnire   (7 posts)  Bio
Date Reply #65 on Mon 01 Jan 2007 01:46 PM (UTC)
Message
For those who care the two lines mentioned should be around line 180 in commands.cpp

I have not looked at the code surrounding ptarget yet but I would assume you could simply fix this by changing the p->playername to ptarget->playername so your new lines would look like this:

string what = GetMessage (sArgs, "Tell " + ptarget->playername + " what?"); // what
*p << "You tell " << ptarget->playername << ", \"" << what << "\"\n"; // confirm

Someone let me know if this isn't possible, I'll try it out when I get home from work tonight, hope it's as easy a fix as I think :)
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #66 on Tue 02 Jan 2007 06:45 AM (UTC)
Message
You are probably right, there will be bugs like that in it.

The tiny server was really an illustration of how to get people to connect, and some example commands. It wasn't extensively tested, and turning it into a full server will take quite some work.

- Nick Gammon

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

Posted by Radnire   (7 posts)  Bio
Date Reply #67 on Tue 02 Jan 2007 10:29 AM (UTC)
Message
Would you perhaps know of any other barebone type servers/codebases?

In C/C++/VB/Java perhaps?
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #68 on Thu 12 Apr 2007 06:23 AM (UTC)
Message
A modified version which has successfully compiled under gcc 3.4.4 is now available for downloading:

http://www.gammon.com.au/files/muds/tinymudserver_v2_3.tgz

Its md5sum is: 2c0fb4f7ecff50708bbd713376c2ae6f

Basically it is the same as tinymudserver_v2_2.tgz but with the minor changes described earlier in this thread applied, so that various error messages about semicolons, etc., are removed.

- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #69 on Thu 12 Apr 2007 06:24 AM (UTC)
Message
Quote:

Would you perhaps know of any other barebone type servers/codebases?


I think someone has done a Lua one. The one presented here is in C++.

Check out this page:

http://www.andreasen.org/newmud/

- Nick Gammon

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

Posted by The Illustrious Skwerl   (3 posts)  Bio
Date Reply #70 on Sun 30 Sep 2007 05:04 AM (UTC)

Amended on Sun 30 Sep 2007 06:07 AM (UTC) by The Illustrious Skwerl

Message
Hooray thread revival!

Boo compilation errors.

Having issues getting Tiny to compile under Dev-C++
Holy have an error list

no socket header file, popped winsock2 in its place, which brought about an unbalanced #ENDIF error. commented ot the last #ENDIF and that part at least compiles now..

no <sstream>, replaced it with <strstream>, which added a brand new assortment of errors..

Is there any way this will compile cleanly under Dev-CPP without serious editing, or should I just bite the nugget and install Cygwin?
I'd really like to be able to run this from a thumb drive without threatening tenderloin slappings to get Cygwin installed at school)
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #71 on Sun 30 Sep 2007 06:26 AM (UTC)
Message
I don't know about the idiosynracies of Dev-C++, so it is probably easier to install Cygwin. To run it you probably only need the .exe file plus the cygwin DLL whose exact name I don't know because I am not at my usual PC.

- Nick Gammon

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

Posted by ThomasWatts   USA  (66 posts)  Bio
Date Reply #72 on Tue 06 Nov 2007 12:11 AM (UTC)
Message
Hooray thread revival! Again!

I prefer Mingw32, available http://www.mingw.org/
Compiles c,c++ code that works under Cygwin with very few changes. Mingw32 itself is derived from Cygwin.
Top

Posted by Isthiriel   (113 posts)  Bio
Date Reply #73 on Fri 09 Nov 2007 11:03 PM (UTC)
Message
AFAIK, the compiler in Dev-C++ is MinGW.
Top

Posted by Japheth   (7 posts)  Bio
Date Reply #74 on Sat 27 Sep 2008 05:34 AM (UTC)
Message
I've been working on using TinyMUDserver version 2 for a while now to create my own from-scratch MUD - I'm a MUD developer myself, with a few years of experience now. I picked this project up largely because I'm sick of the horribly convoluted projects that are out there now, with dozens and dozens of authors over multiple decades.

The reason I was attracted to tinymud was that basically the only part of writing a MUD I didn't know how to do was the telnet connectivity part of things - it's one of those implemention details that I had never cared to touch, as it was just assumed to work fine and didn't really need any new developments.

One thing I would like to do for my MUD though is add in extended character support. I did not think TinyMUD had extended character support, as it tended to convert its strings back into char * at the very last stages of sending to a descriptor - but actually testing this fact, I found that it does in fact allow for extended characters, however, the character immediately after the extended character is always capitalized.

For example:

The user sends the text 'Für' to the Mud, it will display this as 'FüR', or 'Große' becomes 'GroßE'. As a contrived example, I tested 'Ex¼mple', which returns 'Ex¼Mple'.

Without having looked too deeply into this issue (which I do intend to do), I was wondering if anybody else had looked into this issue? I noticed that there has been at least some previous discussion of multilanguage support for MUDs, especially from Nick Gammon himself, so I figured if this is an issue, it has probably been run into before, and I was wondering if anybody knows the fix.

If I discover the fix, I will post about it here.
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.


344,726 views.

This is page 5, subject is 8 pages long:  [Previous page]  1  2  3  4  5 6  7  8  [Next page]

Posting of new messages is disabled at present.

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.