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 ➜ MUSHclient ➜ Python ➜ Using Python under MUSHclient

Using Python under MUSHclient

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


Posted by Blixel   (80 posts)  Bio
Date Sat 12 Aug 2017 03:34 AM (UTC)
Message
First I'll say I've had great success using MUSHclient with its built-in LUA scripting language. (And that success is due mostly to the excellent support I've received on this forum.) I'm not heavily involved with MUDs, my interests are more academic. I enjoy writing scripts to move around my text-based world in an automated fashion. It presents a lot of interesting challenges that are fun to overcome through scripting.

Having said that, I am wanting to figure out how to get Python 3.x working with MUSHclient. It is not mission critical by any means. More than anything, it's just another problem that I'd like to solve.

In reading over this post: http://mushclient.com/forum/?id=13966&reply=1#reply1
I've read that I must use 32-bit Python because MUSHclient is 32-bit. That post also contains this statement "Do you absolutely need Python 3.6?" - which seems to suggest that Python 2.x is preferred?

This post: http://gammon.com.au/forum/?id=9844&reply=1#reply1 talks about using ActiveState python instead of the official distribution from python.org. However, that post is nearly 8 years old so I don't know if that is valid any more. I'd rather stick with the official Python 3.x release if possible. That post also states, "If it's the official release from python.org, you'll need to run the axscript.py that's buried a bit down the install tree first." That script doesn't seem to exist at C:\Users\myuser\AppData\Local\Programs\Python\Python36-32\Lib which is where it is said to be in another post in that same thread.

Finally, this relatively recent post http://gammon.com.au/forum/?id=13966&reply=6#reply6 mentions that pywin32 is also required.

So, my understanding of the installation process is as follows:

  1. Install 32-bit Python. My preference is for 3.x because that's what we used in my programming class.
  2. Run axscript.py (which doesn't seem to exist any more)
  3. Install pywin32

My questions are: Is the above set of steps correct? If so, since axscript.py doesn't exist any more, what do you do in place of that step?
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 12 Aug 2017 09:30 PM (UTC)
Message
I think I recently tried to get Python working myself -- without success. :(

Earlier versions of Python worked - however those early versions may not work with the latest Windows.

This is one of the reasons why I got so frustrated with the Windows Scripting Engine (WSE) which implements all of the scripting languages in MUSHclient except Lua.

You get things working perfectly, and then the script engine gets updated and things no longer work.

Lua is implemented by direct interface to the C++ code (as Lua is designed to be), and also Lua is shipped with MUSHclient as part of the download. Thus, you always know that the latest MUSHclient will always correctly work with the Lua that comes with it.

I have resisted upgrading Lua to the latest version, even, because they made changes that were not backwards compatible.

With MUSHclient and Lua you have a client, and a script engine, that works. :)

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


14,065 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.