MUSHclient and Wine

Posted by Nick Gammon on Mon 24 May 2004 03:33 AM — 22 posts, 103,953 views.

Australia Forum Administrator #0

Following on from recent comments that some people would ditch Windows "except for running MUSHclient", I have had more success today in running MUSHclient under Wine (in Linux). The screenshot below shows that it seems to run OK *without* the /wine option, that is, in full operational mode. Even VBscript works, as you can see from the example ColourNote on the screen, and the fact that I installed the Chat plugin and got it to work.

The screenshot shows MUSHclient running, with its normal toolbars, a notepad window in the background, the command history, an example script command (world.colournote) which worked, and a chat session.

#1
What version of wine did you use?
USA #2
Good question.. The version is rather important.

Of course an even better one would be how the heck you get Linux to talk to a damn WinModem. Sadly, this is the one issue still preventing me from really trying to see how well it actually works. Sigh...
Australia Forum Administrator #3
The version is the latest one from the winehq.org (as at a couple of days ago). The file I downloaded was:

wine-20040505-1fc1winehq.i386.rpm

I initially had problems, however version 3.50 seems to run OK. The MUSHclient installer doesn't seem to work, nor does the VBscript installer, however by copying an installed directory (of MUSHclient) and the vbscript.dll into my MUSHclient directory on Linux, it works OK.

The version of Linux was Red Hat Linux 9, I think.
Australia Forum Administrator #4

Here are some more interesting screenshots. Earlier versions of MUSHclient had some rather bizarre misalignments of the configuration screens under Wine. I have tracked down this problem and fixed it. This is what they look like under version 3.50 ...

Also, strangely enough, the spellchecker works. It seems Wine supports Windows DLLs, which is all that the spell checker is. Here is an example ...

Australia Forum Administrator #5
Quote:

be how the heck you get Linux to talk to a damn WinModem.


You don't. You need a LinModem <grin>.

Modem's are cheap aren't they these days? Maybe time for an upgrade. Or, try searching for a solution. Maybe start here:


http://linmodems.org/


(Linux Winmodem Support)
USA #6
Yeah. I know. Apparently a few do have drivers of some sort. The problem is that the firmware is loaded from the windows driver, not built in, which is why it doesn't even appear as a device for Linux. The major problem is that almost all modems are WinModem types. :( This includes apparently the new US Robotics one I got for the other computer a while ago to replace the one that died in it. Unfortunately if I had the cash, there are dozens of slightly higher priority things to buy/upgrade, before worrying about trying to get Mushclient to run in Linux. This includes a bigger HD, so I even have some place to install it. lol
USA #7
Awesome, now I can finally start my total migration to a Linux distro.

Thanks for the extra work Nick :)
Australia Forum Administrator #8
Because Wine is a work-in-progress, you may find that under Wine MUSHclient is not as reliable as under Windows. Yesterday, for example, it just exited when I was playing with the colour picker. However I could not reproduce it.

Still, once something works it should continue to work.

If you are using Wine I would recommend saving your changes (eg. after adding triggers) fairly often in case it crashes.
#9
Anyone able to help me get this to install under redhat 9.0. Issue that I am having with it is its comming up to the splash screen and it covers everything else I cant even attempt to go to any other window on the desktop.
I am running redhat 9.0, and wine-20040505-1fc1winehq.i686
#10
Ok now that I re-read the forum here I realized that I am just an idiot.... I am going to do what Nick had suggested in the first place... beer goggles and wine dont mix :p
#11
Ok I have fought with this for a while now... it seems to come up and run just fine but whenever I click on the # it is asking for it just shuts down with this error....
err:seh:setup_exception stack overflow 0 bytes in thread 0009 eip 4039aa8b esp 40641000 stack 0x40640000-0x40740000

I know that I dont have the client registered or anything as of yet.... bad me I know.... but I would like to get it running under redhat before I pay for it since with my MS box I use Zmud instead and I am using this program under advise of a friend on another mud.
Australia Forum Administrator #12
You should be able to test it before you register. :)

There *does* seem to be a strange problem with Wine, in that if you start it up initially you get the "stack overflow" you describe. I can't quite see why, however I have a fix for you.

You need to edit your "registry" and add the following lines.

You will probably have a .wine directory under your home directory, and in there a file user.reg.

  1. Edit the file ~/.wine/user.reg

    One way would be to type this:

    vi ~/.wine/user.reg
  2. Go to the end of the file.

    In vi you can type "G" to do that.
  3. Paste the lines below.

    In vi type "o" (lower-case "oh") to add a new line at the end, and then paste the lines below, and then press the <esc> key to exit Insert mode.
  4. Save your changes.

    In vi type "ZZ" to do that.


Now when you start MUSHclient it should not crash.




[Software\\Gammon Software Solutions\\MUSHclient\\Global prefs] 

[Software\\Gammon Software Solutions\\MUSHclient\\Main window] 
"wp.bottom"=dword:00000282
"wp.flags"=dword:00000000
"wp.left"=dword:0000005f
"wp.ptMaxPosition.x"=dword:ffffffff
"wp.ptMaxPosition.y"=dword:ffffffff
"wp.ptMinPosition.x"=dword:ffffffff
"wp.ptMinPosition.y"=dword:ffffffff
"wp.right"=dword:0000035f
"wp.showCmd"=dword:00000001
"wp.top"=dword:00000042

[Software\\Gammon Software Solutions\\MUSHclient\\Miscellaneous] 
"First time"=dword:00000000
"Version"=dword:0000015d

[Software\\Gammon Software Solutions\\MUSHclient\\Recent File List] 

[Software\\Gammon Software Solutions\\MUSHclient\\Registration] 

[Software\\Gammon Software Solutions\\MUSHclient\\Settings] 

[Software\\Gammon Software Solutions\\MUSHclient\\Tip] 
"FilePos"=dword:00000403
"StartUp"=dword:00000001
"TimeStamp"="Fri Apr 12 11:55:48 2002"



You might want to back up your user.reg file before making any changes. eg.


cp ~/.wine/user.reg ~/.wine/user.reg.bak

Amended on Mon 31 May 2004 11:09 PM by Nick Gammon
Australia Forum Administrator #13
Alternatively, and a bit more simply, save between the lines here into a file called "mushclient.reg" ...



REGEDIT4

[HKEY_CURRENT_USER\Software\Gammon Software Solutions\MUSHclient]

[HKEY_CURRENT_USER\Software\Gammon Software Solutions\MUSHclient\Global prefs]

[HKEY_CURRENT_USER\Software\Gammon Software Solutions\MUSHclient\Main window]
"wp.bottom"=dword:00000282
"wp.flags"=dword:00000000
"wp.left"=dword:0000005f
"wp.ptMaxPosition.x"=dword:ffffffff
"wp.ptMaxPosition.y"=dword:ffffffff
"wp.ptMinPosition.x"=dword:ffffffff
"wp.ptMinPosition.y"=dword:ffffffff
"wp.right"=dword:0000035f
"wp.showCmd"=dword:00000001
"wp.top"=dword:00000042

[HKEY_CURRENT_USER\Software\Gammon Software Solutions\MUSHclient\Miscellaneous]
"First time"=dword:00000000
"Version"=dword:0000015d

[HKEY_CURRENT_USER\Software\Gammon Software Solutions\MUSHclient\Recent File List]

[HKEY_CURRENT_USER\Software\Gammon Software Solutions\MUSHclient\Registration]

[HKEY_CURRENT_USER\Software\Gammon Software Solutions\MUSHclient\Settings]

[HKEY_CURRENT_USER\Software\Gammon Software Solutions\MUSHclient\Tip]
"FilePos"=dword:00000403
"StartUp"=dword:00000001
"TimeStamp"="Fri Apr 12 11:55:48 2002"



Note the difference between this and the text above, this has single backslashes, and the word "REGEDIT4" at the start.

Then, in Linux, type this:


regedit mushclient.reg


That should import those registry keys into your Wine registry.
#14
I've installed MUSHclient 3.50 and I did have some problems which the registry info you gave helped. There's one problem now though. I find that every command I send to a MUD returns the same message to me that I get when I connect to the MUD--that I've connected and I'm not using a registered copy of MUSHclient. The command sends just fine to the MUD, but four lines of that stuff can be a bit much. And sometimes it even sends it twice to me. Is there some registry setting to get around this?
Australia Forum Administrator #15
It should only do that when it initially opens the output window. Does it actually show the reply from the MUD, or do you see nothing other than the "unregistered copy" lines?

Do you use "quick connect" or "new world"?
#16
Yes, it shows the response from the MUD. I use open world as I have them previously saved from when I used older versions of MUSHclient in Windows. I tried new world and quick connect and they react in the same way.

When I connect, I get:

Thank you for evaluating MUSHclient version 3.50!

----> This is an UNREGISTERED copy <----

To purchase your registration please visit:
http://www.mushclient.com/fee.htm

For information and assistance about MUSHclient visit our forum at:
http://www.gammon.com.au/forum/

This message does not appear once you have registered.
(The above links can be found under the Help menu)

But I also get this three times after and whenever I send a command:
--- Connected on Tuesday, July 06, 2004, 9:41 PM ---
******
****** UNREGISTERED copy of MUSHclient!
******

When I get it more than once, it seems to depend on how much I receive back from the MUD, but it's not consistent. Like a command that gives me only about three lines would give me the message once, but commands giving me more, like when I look in a room, would give it to me twice or more.
Australia Forum Administrator #17
It seems to think it is getting a new connection for each line it receives, for some reason.

Which version of Wine do you have? It might be generating a spurious Windows message. That doesn't happen to me, even when unregistered.
#18
I added the information to the User.reg file.. still same lock up problem in wine. It didnt change a thing. I tried rebooting wine as well. That was a no go.
Australia Forum Administrator #19
It is hard to fix that sort of thing if I can't reproduce it. Different versions of Wine, different versions of Linux. Hard to know what the problem really is.
#20
Alright, I suppose I can try to just tinker with Wine until something works, or at least I get a similar error to one discussed on the forum.
#21
I just downloaded and installed the new wine version (debug too) available for my distro. I decided after your last response to me that I should just wait for a new release.
So I'm running wine 20040716 on Mandrake 10.0 now. I get past everything in the beginning just fine, but the moment I try to connect to a world (saved worlds and quick connect), it crashes. I'm going to try getting the version without debug since I actually ran debug and all it could tell me with mushclient.exe was that it couldn't find the debug msg...which is a really useless error.