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 ➜ TinyMudServer

TinyMudServer

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


Pages: 1  2 

Posted by MJohnHBerry   USA  (9 posts)  Bio
Date Reply #15 on Mon 27 Feb 2017 02:11 PM (UTC)

Amended on Tue 28 Feb 2017 02:59 AM (UTC) by MJohnHBerry

Message
@Nick
I was able to get it to run. I wasn't able to figure out how to get the 'telnet' command on Cygwin though. After Googling it, I found that the 'inetutils' package is supposed to have the command in it. I can't find that package in Cygwin's setup though. So, you was right, I had an older version. I did get it to run, and I just used Windows telnet to connect. However, it turned out like this :
[IMG]http://i66.tinypic.com/2pr89xl.jpg[/IMG]
I'm not sure if that's because I'm connecting with Windows telnet and not Cygwin..or what. But it's online. And is it only made to let Me, the host log in? Or can I put it online and let others join in as well?

@Fiendish
Following the instructions in BetterMUD brings me here, where everything seems to work, except the 'make link' command. And also, does the 'make link' command make an .exe, like Tinymudserver's 'make' command does? Because It doesn't exactly say how to open BetterMUD after you make it.

Sicx@SICX /home/bettermud
$ cd /home/bettermud/bettermud

Sicx@SICX /home/bettermud/bettermud
$ make
g++ -I/usr/include/python2.6 -I../Libraries -Xlinker -export-dynamic -g ../Libraries/SocketLib/*.cpp -c;
g++ -I/usr/include/python2.6 -I../Libraries -Xlinker -export-dynamic -g ../Libraries/ThreadLib/*.cpp -c;
g++ -I/usr/include/python2.6 -I../Libraries -Xlinker -export-dynamic -g ../Libraries/BasicLib/*.cpp -c;

Sicx@SICX /home/bettermud/bettermud
$ make libs
g++ -I/usr/include/python2.6 -I../Libraries -Xlinker -export-dynamic -g ../Libraries/SocketLib/*.cpp -c;
g++ -I/usr/include/python2.6 -I../Libraries -Xlinker -export-dynamic -g ../Libraries/ThreadLib/*.cpp -c;
g++ -I/usr/include/python2.6 -I../Libraries -Xlinker -export-dynamic -g ../Libraries/BasicLib/*.cpp -c;

Sicx@SICX /home/bettermud/bettermud
$ make bettermud
make: 'bettermud' is up to date.

Sicx@SICX /home/bettermud/bettermud
$ make links
make: *** No rule to make target 'links'.  Stop.

Sicx@SICX /home/bettermud/bettermud
$ ./bettermud
-bash: ./bettermud: cannot execute binary file: Exec format error

Sicx@SICX /home/bettermud/bettermud
$ make link
g++ -I/usr/include/python2.6 -I../Libraries -Xlinker -export-dynamic -g *.o /usr/lib64/libpython2.6.so -lpthread -ldl -lutil -o bettermud
g++: error: /usr/lib64/libpython2.6.so: No such file or directory
make: *** [makefile:46: link] Error 1

Sicx@SICX /home/bettermud/bettermud


Oh.. uh.. am I supposed to have Python installed to use this? I thought it could use Python as a scripting language to quickly make quests, etc.

How does one implement a scripting language into C++ like that? Would that defeat the purpose of me choosing C++ for it's speeds if I bog down my system with a bunch of Python code?
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #16 on Mon 27 Feb 2017 08:58 PM (UTC)

Amended on Mon 27 Feb 2017 08:59 PM (UTC) by Nick Gammon

Message
Quote:

However, it turned out like this :


Do what I do and use MUSHclient to connect to it. This is the MUSHclient forum after all. The line endings lack a carriage-return.

You could make the code replace %r with \r\n but you get a much better experience with a proper MUD client.

Quote:

Oh.. uh.. am I supposed to have Python installed to use this? I thought it could use Python as a scripting language to quickly make quests, etc.


Looks like that particular server expects the Python libraries.

Quote:

Would that defeat the purpose of me choosing C++ for it's speeds if I bog down my system with a bunch of Python code?


Well, Aardwolf has Lua as a scripting language and that runs OK. You use scripting for things like quests. The "core" code (doing fights, checking for input etc.) is still in C++.

Using a scripting language simplifies adding quest objectives and so on, rather than having to recompile the server every time (and then shut it down to get a new version).

Quote:

And is it only made to let Me, the host log in? Or can I put it online and let others join in as well?


The whole point of a MUD server is to allow multiple connections. If you "port forward" your router to your PC your friends could join in.

- Nick Gammon

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

Posted by Worstje   Netherlands  (899 posts)  Bio
Date Reply #17 on Tue 28 Feb 2017 11:30 AM (UTC)
Message
If a game is written in Lua, Rust, Lisp or Python does not have to make a MUD server slow in the terms you are thinking of slowness for: lines slowly coming in, heavy combat slowing stuff down, etc.

To double back to Evennia which I mentioned before... It is Python-based. The biggest game based on it (ArxMUSH) has over 100 simultaneous connections during its peak times and I haven't noticed any noticeable slowdowns. (Well, save for reboots / script reloads, but that is sensible.)

Remember that machines now are way faster than they were 10 years ago. And those were way faster than the machines 10 years prior to that. You can get away with a lot more than you used to. (And investing that extra slack into a language and/or codebase that makes things easier for you isn't a bad thing, imho.)

Today, the language is not typically going to be the biggest issue; just scraping up the low-hanging fruit in all the code (meaning slownesses in the most commonly run codepaths) will likely be enough to keep you afloat just fine.

Obviously, everything depends whether you use the processing power properly, but that is no different when you use C(++). Not caching algorithm data and results like A* path finding or the calculation of pi are going to tax your machine immensely.

Do you really need all the efficiency you think you need? Food for thought. :-)
Top

Posted by MJohnHBerry   USA  (9 posts)  Bio
Date Reply #18 on Thu 16 Mar 2017 05:59 PM (UTC)
Message
I've been studying and doing more tutorials. And have gotten more involved in the Evennia community as it has a solid group of people in active development for generally the same thing that I'm interested in. Good bunch of people there, too. But here is the end-game for my dream. Now I just need the know how...

http://i67.tinypic.com/2vcvqps.jpg
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #19 on Thu 16 Mar 2017 08:58 PM (UTC)
Message
A lot of that is done with miniwindows, and possibly telnet negotiations to send things like map data. It is non-trivial, believe me! :)

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


62,469 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

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.