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.
 Entire forum ➜ MUSHclient ➜ Bug reports ➜ Issues using vbscript under Wine 1.01, MUSH v4.47

Issues using vbscript under Wine 1.01, MUSH v4.47

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


Posted by forral   USA  (79 posts)  Bio
Date Sun 07 Feb 2010 04:04 PM (UTC)

Amended on Sun 07 Feb 2010 04:10 PM (UTC) by forral

Message
Hey guys,

I'm trying to make the full switch over to ubuntu linux, and playing muds on windows was my last hurdle to overcome. I installed Wine, installed MUSH, and everything works and loads fine. I just installed a plugin last night, but since its coded in LUA it just WORKS, no harm done.

However my problem arises when I try to use any plugin, or any trigger coded in vbscript. I have coded captures in vbscript fine under windows, but WINE doesn't like vbscript. here are my errors:

The trigger to match is
[*] clan member* heard you say, '*

The code to send to script: (in vbscript, but i have also had a similar error using python and jscript)
world.AppendToNotepad "Clan Talk", "[%1] clan member%2 heard you say, '%3" + vbcrlf

Error:
finding CLSID of scripting language "VBscript"
World: Materia Magica - Forral
<<Unable to convert error number -2147221005>>
ct testing
[3] clan members heard you say, '(>'-')><('-'<) testing'
Send-to-script cannot execute because scripting is not enabled.

I want to note that scripting IS ENABLED, the check box is ticked, and vbscript is selected.

My 2nd issue arises with the plugins, but it is also similar:
I load the plugin (again, these ALL work fine in windows), it gives me the 1st error (screenshot below):
http://i50.tinypic.com/k00w7o.png

and then this error:
Line 87: Could not initialise script engine (problem in this file)

The line # will be different but I looked at some of the plugins and the line that is giving error is the <SCRIPT> line...

Minor issue #3
The font looks REALLY bad under wine, like the box to edit the code for triggers, I can barely read the numbers. is there any fix to this?


Also, Yes i have tried running it under compatibility mode for windows 98, yes I have navigated to the actual notepad.exe file, and I've even tried using the in-built notepad, but none of those do anything different, it still says scripting is not enabled.

Thanks for any help, its much appreciated.

Sincerely,
Forral
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #1 on Sun 07 Feb 2010 06:29 PM (UTC)
Message
Wine doesn't support WSH (Windows Scripting Host), which is what all languages except Lua run under in MUSHclient. As far as I know, you simply can only use Lua if you're running under Wine.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by Rakon   USA  (123 posts)  Bio
Date Reply #2 on Sun 07 Feb 2010 06:59 PM (UTC)
Message

In order to use any scripting language in WINE, other than Lua, you'll have to install that script engine in WINE.

Easiest way to do this, is search for/install winetricks and then run the dialog. From there, you'd install MSVBVM6.dll file, and then VBscript should work under Wine.

Yes, I am a criminal.
My crime is that of curiosity.
My crime is that of judging people by what they say and think, not what they look like.
My crime is that of outsmarting you, something that you will never forgive me for.
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #3 on Sun 07 Feb 2010 07:23 PM (UTC)
Message
I got it to work like this ...


  • Find vbscript.dll in your c:\Windows\System32 folder (assuming you have a copy of Windows somewhere)

  • sftp or otherwise copy that to your Ubuntu PC

  • In your home directory, locate the ~/.wine/drive_c/windows/system32 directory

  • Copy vbscript.dll into it.

  • In the "Scripting" configuration tab of MUSHclient click on "Register DLL" button.

  • You should see a message "Successfully registered VBscript.dll"

  • Vbscript should now work.

- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #4 on Sun 07 Feb 2010 07:38 PM (UTC)

Amended on Tue 09 Feb 2010 02:39 AM (UTC) by Nick Gammon

Message
As for the font:


  • Close MUSHclient

  • Open a terminal window and navigate (cd) to:

    
    ~/.wine/drive_c/Program Files/MUSHclient
    


  • Start sqlite3 program (you may have to install that), editing the preferences file:

    
    sqlite3 mushclient_prefs.sqlite 
    


  • Enter:

    
    update prefs set value = 'Courier' where name = 'FixedPitchFont';
    


  • Type ".exit" to leave sqlite3

  • The font should now be Courier when editing triggers etc.


You can also do something similar with FixedPitchFontSize, if you want to make the point size larger, eg.


update prefs set value = 11 where name = 'FixedPitchFontSize';

- Nick Gammon

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

Posted by forral   USA  (79 posts)  Bio
Date Reply #5 on Mon 08 Feb 2010 06:34 PM (UTC)

Amended on Tue 09 Feb 2010 12:17 AM (UTC) by forral

Message
Thank you very much for all the responses guys, I will try them and post back with my results.

Much appreciated,
Forral

*EDIT*

OK two issues:

1) When I follow the steps to 'register DLL' it crashes MUSH. Screenshot attached: http://tinypic.com/r/2w1uu4h/6

2) When I did the steps with sqlite3, it 1) reset all my preferences in the client, and 2) the font still looks crappy. Again, screenshot attached here: http://tinypic.com/r/scqq9h/6

I will try now to use the winetricks (which is awesome, btw) and see if that doesn't help my VBScript issue.

*EDIT* tried winetricks, and got the following errors while trying to install VBScript (I'm pretty sure the wsh56vb is vb script?):

http://tinypic.com/r/ayo9ro/6

http://tinypic.com/r/2r29ixg/6
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #6 on Tue 09 Feb 2010 02:47 AM (UTC)
Message
Don't know why registering it would crash it, unless you got a dodgy copy of vbscript.dll. For example, you ftp'd it without specifying binary mode.


My copy of vbscript.dll had a md5sum of:


66810d8e8315f9b5b5cb47ed5656ca3a


That was version 5.7.0.16599

As for resetting all the preferences, don't know why that would happen unless you modified my instructions somewhat.

For example, if you typed "update prefs set value = 'Courier'" (without adding the "where name = 'FixedPitchFont'") then everything would be set to Courier which would make it behave strangely.

Also check out File menu -> Global Preferences -> General. Check the box "Use fixed space font when editing triggers/aliases etc.".

- Nick Gammon

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

Posted by forral   USA  (79 posts)  Bio
Date Reply #7 on Tue 09 Feb 2010 04:59 PM (UTC)

Amended on Tue 09 Feb 2010 08:49 PM (UTC) by forral

Message
Nick Gammon said:

Don't know why registering it would crash it, unless you got a dodgy copy of vbscript.dll. For example, you ftp'd it without specifying binary mode.


My copy of vbscript.dll had a md5sum of:


66810d8e8315f9b5b5cb47ed5656ca3a


That was version 5.7.0.16599

As for resetting all the preferences, don't know why that would happen unless you modified my instructions somewhat.

For example, if you typed "update prefs set value = 'Courier'" (without adding the "where name = 'FixedPitchFont'") then everything would be set to Courier which would make it behave strangely.

Also check out File menu -> Global Preferences -> General. Check the box "Use fixed space font when editing triggers/aliases etc.".




I copy + pasted it directly from my windows install (windows 7). Do you think maybe thats an incompatible version and I need to pull it off my windows XP install instead?

Also, I followed your directions to the T, I'd have no reason to modify it if that's what I'm instructed to do.

Alternatively, I tried using the Winetricks to install the vbscript engine but that didn't work either. I will google around and try to find another method to install vb and/or jscript. I found an old thread of mine and previously I had captures working fine using the Jscript engine across a vanilla fedora/xp sp2 dual boot machine, so maybe there are some missing packages in ubuntu.

And the "use fixed point font" is already enabled. I think the issue is that WINE uses such crappy fonts, I'm going to try installing -any- windows font to see if that helps.


*EDIT* I didn't notice that you amended your previous post, I will go ahead and try that last step also and see if it makes any difference.
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #8 on Tue 09 Feb 2010 06:25 PM (UTC)
Message
forral said:


I copy + pasted it directly from my windows install (windows 7). Do you think maybe thats an incompatible version and I need to pull it off my windows XP install instead?


Mine came from XP, I think. I didn't test the Windows 7 version, maybe some security concern, or other incompatibility with Wine caused it to crash.

- Nick Gammon

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

Posted by Rakon   USA  (123 posts)  Bio
Date Reply #9 on Tue 09 Feb 2010 06:47 PM (UTC)
Message
forral said:

Nick Gammon said:

Don't know why registering it would crash it, unless you got a dodgy copy of vbscript.dll. For example, you ftp'd it without specifying binary mode.


My copy of vbscript.dll had a md5sum of:


66810d8e8315f9b5b5cb47ed5656ca3a


That was version 5.7.0.16599

As for resetting all the preferences, don't know why that would happen unless you modified my instructions somewhat.

For example, if you typed "update prefs set value = 'Courier'" (without adding the "where name = 'FixedPitchFont'") then everything would be set to Courier which would make it behave strangely.

Also check out File menu -> Global Preferences -> General. Check the box "Use fixed space font when editing triggers/aliases etc.".




I copy + pasted it directly from my windows install (windows 7). Do you think maybe thats an incompatible version and I need to pull it off my windows XP install instead?

Also, I followed your directions to the T, I'd have no reason to modify it if that's what I'm instructed to do.

Alternatively, I tried using the Winetricks to install the vbscript engine but that didn't work either. I will google around and try to find another method to install vb and/or jscript. I found an old thread of mine and previously I had captures working fine using the Jscript engine across a vanilla fedora/xp sp2 dual boot machine, so maybe there are some missing packages in ubuntu.

And the "use fixed point font" is already enabled. I think the issue is that WINE uses such crappy fonts, I'm going to try installing -any- windows font to see if that helps.


*EDIT* I didn't notice that you amended your previous post, I will go ahead and try that last step also and see if it makes any difference.



You can use winetricks to install the MScorefonts, and then the fonts in wine/MUSH will look normalish.

You can also copy/paste the font ttf into the fonts directory under wine, and then use that font.

You said winetricks didn't work to install Vbrun?? What's the error you received, maybe I can assist you to get it working.

Yes, I am a criminal.
My crime is that of curiosity.
My crime is that of judging people by what they say and think, not what they look like.
My crime is that of outsmarting you, something that you will never forgive me for.
Top

Posted by forral   USA  (79 posts)  Bio
Date Reply #10 on Tue 09 Feb 2010 11:19 PM (UTC)
Message
Nick Gammon said:

forral said:


I copy + pasted it directly from my windows install (windows 7). Do you think maybe thats an incompatible version and I need to pull it off my windows XP install instead?


Mine came from XP, I think. I didn't test the Windows 7 version, maybe some security concern, or other incompatibility with Wine caused it to crash.


I will use my XP version and see what effect that has on it.

As for the winetricks thing, these are screenshots of the errors I got when trying to install vbscript. If my guess is right the correct package was wsh56vb, and that is the package I tried to install. Also, I did install the fonts and it looks better now, I used winetricks to install the truetype corefonts package.

http://tinypic.com/r/ayo9ro/6

http://tinypic.com/r/2r29ixg/6
Top

Posted by Rakon   USA  (123 posts)  Bio
Date Reply #11 on Thu 11 Feb 2010 09:14 AM (UTC)

Amended on Thu 11 Feb 2010 09:18 AM (UTC) by Rakon

Message
Hmm...

I just ran the same command via winetricks:


Executing wget -O vbs56men.exe -nd -c --read-timeout=300 --retry-connrefused --header Accept-Encoding: gzip,deflate http://download.microsoft.com/download/IE60/Patch/Q318089/W9XNT4Me/EN-US/vbs56men.exe
--2010-02-11 04:09:19--  http://download.microsoft.com/download/IE60/Patch/Q318089/W9XNT4Me/EN-US/vbs56men.exe
Resolving download.microsoft.com... 63.216.54.130, 63.216.54.122
Connecting to download.microsoft.com|63.216.54.130|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 314976 (308K) [application/octet-stream]
Saving to: `vbs56men.exe'

100%[===========================================================================================================================================================>] 314,976     83.3K/s   in 3.9s    

2010-02-11 04:09:23 (79.8 KB/s) - `vbs56men.exe' saved [314976/314976]

Executing wine /home/chris/.winetrickscache/vbs56men.exe
fixme:mixer:ALSA_MixerInit No master control found on HDA ATI HDMI, disabling mixer
Install of wsh56vb done
winetricks done.


Post the output of the following, from the terminal:


uname -r

lsb_release -a


And where did you download winetricks from?? What version is it?

What's the settings on your winecfg?? Make sure that to install stuff from winetricks, your winecfg is showing windows version XP.

Yes, I am a criminal.
My crime is that of curiosity.
My crime is that of judging people by what they say and think, not what they look like.
My crime is that of outsmarting you, something that you will never forgive me for.
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.


33,612 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.