Tuesday 30 January 2018

Successful Installation of Microsoft Chat on Ubuntu Linux via Wine 3.0

Dear friends,

It works!
I created this project several years ago with the hopes that it might be of some sort of help to developers interested in reverse engineering and cloning Microsoft Chat for Linux or other creative applications. This was particularly because the application would not – until now – function on wine, the compatibility layer for running Windows software on Linux and MacOS.

Roughly 15 years ago – under the handle Supernatural, then Super, then Reg, I had the privilege of contributing to the Comic Chat community various Star Trek themed variations of Jim Woodring's (as always, absolutely amazing) original artwork, as well as discovering a technique for enabling the playback of MP3 files in Comic Chat by means of a hex editor to modify the executable. Today I am grateful to be the first to publicly document the fully functional installation of the Microsoft Chat application in Comics Mode on a Linux system via the latest version of wine.

Unlike previous versions of wine, Comics Mode is now fully functional. Speech bubbles now display not only legibly but perfectly, and extremely large black frames no longer obscure the frame. Furthermore, the well documented failure of the space bar key to function has long been resolvable thanks to additional steps documented below.

The following instructions have been tested on Ubuntu 14.04. Similar steps should yield a successful result on other systems.

First, make sure you are using wine 3.0 by running wine --version. If you do not have wine installed on your system, or are running an older version, simply follow these instructions to install the latest version of wine.

After the update I still had a ~/.wine configuration folder which I had been using with other versions, and I wanted as clean of an install as possible. Seeing as I was not attached to anything in this folder, I deleted it.

To create a new ~/.wine folder with a "Win32" prefix, allowing me to run 32 bit applications on my 64 bit Linux system, I ran the following:


WINEARCH=win32 WINEPREFIX=~/.wine winecfg 

It may not be necessary, but what I did next was set the Windows version for Wine to mimic as Windows XP. The default is Windows 7, and you can change it under the "Applications" tab of the wine configuration menu. This can be accessed by running winecfg. As you will see, you can alternatively decide to do this on a per application basis.

Before installing Comic Chat, you will also want to install and run winetricks. Instead of relying on an outdated Ubuntu package, I ran the following to get the latest version

wget htps://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks
mv winetricks /usr/local/bin/

Run winetricks, which will launch a simple GUI. Choose "Select the default wineprefix" and look for an option to "Install a Windows DLL or component." Scroll through the options and selected riched20 – installing this will resolve a known issue when running Microsoft Chat on Wine in which the space bar does not function when typing messages.

I would also suggest going through the same steps to install ie6; note it may not be necessary, but Microsoft Chat was originally bundled with IE and was never designed to be on a system without it. You may opt to install MS Chat without installing IE first, I was merely being preemptive. This is a little trickier than installing riched20, but simply follow the instructions and wintricks makes it pretty easy.

Finally go ahead and download the Microsoft Chat installation program from Mermaid Elizabeth's website. Running wine mschat25.exe did yield some errors for me on the back end, but the installation was successful.

Ultimately, after the GUI exited I was left with a hanging process and had to run CTRL+C to regain control of the terminal. Nonetheless, the "Microsoft Chat" directory was created under "Program Files." Now simply change directory to the folder where CChat.exe is installed and run it.

cd ~/.wine/drive_c/Program\ Files/Microsoft\ Chat/
wine CChat.exe

Alternatively, you should also be able to run

wine start "C:\Program Files\Microsoft Chat\CChat.exe"

You can now connect to an active server and switch to Comics Mode. Note of course that the default server will not work seeing as Microsoft has not run IRC servers in almost 20 years.

You will likely encounter problems or even a crash if you attempt to run Microsoft Chat on the wrong type of IRC Server. You should consult Mermaid Elizabeth's documentation on available servers and channels dedicated to Comic Chat users, but I believe you will find that the only running and active room on that list is the #Crypt on the www.crypthome.com server.

Not only does Comics Mode work correctly, but I am even able to download other users' custom Comic Chat Characters (AVB file extensions) just as one would expect on a Windows system. In fact, every feature of the application seems to be working and I have maintained several hours of connectivity and usage today without issues. Rules/automations have also been tested, as well as sounds, though the directory for the latter must be manually set in the bottom field of the Settings tab in the Options window.

Once again, for general assistance in using Comic Chat, consult Mermaid Elizabeth's excellent and resourceful website. For assistance specifically in getting Comic Chat to work on Linux, feel free to look for me in the #Crypt or leave a comment.

Anyway, I pray the next time nostalgia bites us this hard in the ass, it actually involves something from real life. Happy chatting, networked nerds!





8 comments:

  1. This is great! I have been missing this great irc client when I'm not running Windows. Comic chat was a really amazing product for the time, and it's been sad that it's functionality hasn't been replicated since, but replicating the environment is better!

    Don't forget you can tell CC to not send any info specific to comic chat on the wire, and people won't know immeditatly that you are using Cc. Just don't dance.

    The lack of a space bar has long since been a source of frustration. Great job by the Wine team!

    ReplyDelete
  2. Thanks for sharing you excellent information, their installation services is very fast that's good Microsoft.
    Cheap India VPS Hosting

    ReplyDelete
  3. What an awesome written by you! I am too glad to read this kind of informative blog article. Thanks to sharing this with us, really thank you!!!!!!
    Dubai VPS Server

    ReplyDelete
  4. Excellent information of the Microsoft chat and Linux via Wine 3.0. their information is absolutely fresh and best.
    Linux VPS Hosting

    ReplyDelete
  5. Mindblowing, This is an amazing superb article Keep Sharing this...
    Thanks a lot!!!!

    Germany VPS Hosting

    ReplyDelete
  6. Love that this still exists. I've tried to use it, but no matter which version of wine I use (I'm using POL to manage the wine versions). I can get everything working except for entering a channel... when I enter a channel that's when it crashes with:

    wine: Unhandled page fault on read access to 00000000 at address 0048CDE0 (thread 011c), starting debugger...
    Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x0048cde0).

    Have you experienced this at all?

    ReplyDelete
  7. It's a shift in how IRC works

    I forget the exact deal, but you need to use a proxy that fixes it.

    https://gist.github.com/richardg867/bb19ca2b03545f71ae15

    This should get you started

    ReplyDelete
    Replies
    1. You absolute legend, thank you very much for that! I was beginning to think I had to write something up myself, and you just saved me the hassle! :D

      Delete