[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Python
. . -> [Subject]  Using Python under MUSHclient
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

Using Python under MUSHclient

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

Posted by Blixel   (54 posts)  [Biography] bio
Date Sat 12 Aug 2017 03:34 AM (UTC)
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?
[Go to top] top

Posted by Nick Gammon   Australia  (21,675 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sat 12 Aug 2017 09:30 PM (UTC)
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
[Go to top] 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.


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

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]