Tygem on Linux using Wine!

Come here for discussions about the Tygem go server
Post Reply
Jash
Dies in gote
Posts: 28
Joined: Sat Aug 14, 2010 5:42 am
GD Posts: 0
KGS: Ojisama
Been thanked: 1 time

Tygem on Linux using Wine!

Post by Jash »

I was wondering whether Tygem was working properly on linux using wine? And if yes, is there some functions that are not working?
User avatar
cdybeijing
Lives in gote
Posts: 581
Joined: Fri Apr 30, 2010 2:27 am
Rank: IGS 2 dan
GD Posts: 0
Location: Shanghai, China
Has thanked: 96 times
Been thanked: 100 times
Contact:

Re: Tygem on Linux using Wine!

Post by cdybeijing »

I think tygem and wbaduk share the same user base, and certainly there are many who have run wbaduk on linux using wine. Perhaps try asking in that forum?
norman
Dies in gote
Posts: 21
Joined: Thu Dec 30, 2010 4:04 pm
Rank: 2k
GD Posts: 0
KGS: burrito
Been thanked: 1 time

Re: Tygem on Linux using Wine!

Post by norman »

I've tried installing tygem on OS X with wine. I was able to install the app and run it, but I was unable to actually use the app in any meaningful way without great difficulty. (the primary problem was mouse clicks not registering correctly)

That doesn't directly say what the situation on linux is, but perhaps that gives some idea of the worst case situation on linux.
User avatar
Tofu
Dies with sente
Posts: 105
Joined: Tue Jun 29, 2010 9:03 am
Rank: KGS 4 kyu
GD Posts: 0
KGS: Tofu
Location: Los Angeles
Has thanked: 28 times
Been thanked: 22 times

Re: Tygem on Linux using Wine!

Post by Tofu »

I've been running Tygem on linux since it's English client release. I think I had to download a dll file from somewhere to get it to run properly and had to disable flash and animations, etc. There's a thread somewhere that details the process if you search for it. It crashes once in awhile, but I have never had a game forfeited because of it, I just re-login and resume the game. It's not the best experience, but better than nothing I guess. I still prefer IGS and KGS on linux.
linux sound test
Beginner
Posts: 7
Joined: Tue Sep 17, 2013 1:52 am
GD Posts: 0

Re: Tygem on Linux using Wine!

Post by linux sound test »

Try to instal QGO
zwim
Beginner
Posts: 8
Joined: Thu Feb 23, 2017 10:32 am
Rank: 5k
GD Posts: 0
Been thanked: 2 times

Re: Tygem on Linux using Wine!

Post by zwim »

Installing Tygem on linux is easier on a 32-bits machine than on a 64-bits one.
Here I assume a debian based system (Debian, Ubuntu, Mint, LMDE,...). I tested that on LMDE2 64 bits.

Let start with the easy case.

32 bits machine

If wine is not installed then start by installing it

Code: Select all

$ sudo apt-get install wine winetricks


You have to install missing DLL in wine

Code: Select all

$ winetricks --gui
    - Select the default wineprefix -> validate
    - Install a windows DLL or component -> validate
    - Check mfc42 box -> validate
    - Then cancel until out of application


Then Tygem will need two packages likely not installed by default. I cannot guarantee these will suffice, but at least it worked for me (I advise to run winedbg later, so as to see which packages are missing, if any).

Code: Select all

$ sudo apt-get install libjpeg62
$ sudo apt-get install libasound2-plugins


Download the client

Code: Select all

$ wget http://download2.tygembaduk.com/down_tygem/setup/TygemGlobalSetup.exe


I recommend installing in command line debugger (winedbg instead of wine) in order to see if you are missing packages.

$ winedbg file.exe
> c
...
> quit

Unfortunately Tygem installer is known to fail to download all packages at once, sometimes you have to run installer many times until it succeed.
If the application finally launches but is a blank windows, then you are missing some packages.

Code: Select all

$ wine TygemGlobalSetup.exe
$ cd .wine/drive_c/Program\ Files/TygemGlobal/
$ wine TygemGlobal.exe
$ if failure -> winedbg InstallTygem.exe


And normally you should see an icon appearing on the desktop and the Tygem application will launch.


64 bits machine

This is a little annoying, not because of Tygem this time but because of wine which is not very multi-arch compliant.
I suppose here that wine 64 bits is already installed but not wine 32 bits. (**)

Note: It is possible to use PlayOnLinux instead, this is not the method I describe here.

Anyway, you'll have to define an alternate platform and install 32 bits stuff like in above section (so read it first for details).

Code: Select all

$ sudo dpkg --add-architecture i386
$ sudo apt-get install wine32 winetricks
$ sudo apt-get install libjpeg62:i386
$ sudo apt-get install libasound2-plugins:i386


Now the fun part, do everything in the wine32 env

Code: Select all

$ WINEARCH="win32" WINEPREFIX="~/.wine32" wineboot
$ WINEARCH="win32" WINEPREFIX="~/.wine32" winetricks --gui
    - Select the default wineprefix -> validate
    - Install a windows DLL or component -> validate
    - Check mfc42 box -> validate
    - Then cancel until out of application
$ WINEARCH="win32" WINEPREFIX="~/.wine32" wine TygemGlobalSetup.exe
$ cd .wine/drive_c/Program\ Files/TygemGlobal/
$ WINEARCH="win32" WINEPREFIX="~/.wine32" wine TygemGlobal.exe
$ if failure : WINEARCH="win32" WINEPREFIX="~/.wine32" winedbg InstallTygem.exe






(**) If no wine is installed then it seems simpler to have 32 bits in .wine and 64 bits in .wine64

Code: Select all

$ cd ~
$ WINEARCH="win32" WINEPREFIX="~/.wine32" wineboot
$ WINEARCH="win64" WINEPREFIX="~/.wine64" wineboot
$ ln -s .wine32 .wine

If you prefer the opposite then do

$ ln -s .wine64 .wine
User avatar
apetresc
Lives with ko
Posts: 256
Joined: Wed Apr 21, 2010 3:42 pm
Rank: AGA 1k
GD Posts: 1190
KGS: apetresc
IGS: apetresc
OGS: apetresc
Universal go server handle: apetresc
Location: Waterloo, Ontario (Canada)
Has thanked: 110 times
Been thanked: 146 times
Contact:

Re: Tygem on Linux using Wine!

Post by apetresc »

Hey zwim, I've never had problems running Tygem in wine, but you seem pretty knowledgeable on this topic so I thought I'd ask you about something that's been bugging me for a while – how do I also install the Korean language packs that allow the random hangul characters (like in pro game names) that appear in the client to show up? I've installed corefonts, but I guess I also need the Korean language pack or something like that, but I haven't been able to figure it out. Do you have any idea? Thanks :D
The road to wisdom? Well, it's plain, and simple to express: Err, and err, and err again; but less, and less, and less!
Image Image Image Image
zwim
Beginner
Posts: 8
Joined: Thu Feb 23, 2017 10:32 am
Rank: 5k
GD Posts: 0
Been thanked: 2 times

Re: Tygem on Linux using Wine!

Post by zwim »

You can use winetrick too to install fonts, like in this example

http://www.omgubuntu.co.uk/2013/01/phot ... ne-in-wine

But you will possibly have the same problem that occurs in windows, if the client is not in unicode but uses a korean codepage then you'll have to tell the client to use that particular codepage (but then other characters may be broken). In windows this is taken care of by AppLocale utility, unfortunately I have no idea how they do handle this issue in wineHQ.

From this answer it seems you can set some env variables and launch in command line

http://askubuntu.com/questions/466655/h ... untu-14-04
https://docs.moodle.org/dev/Table_of_locales

LANG=ko_KR.UTF-8 wine ~/.wine/.../TygemGlobal.exe ?

REM: not tested, I'm under windows at the moment.
User avatar
apetresc
Lives with ko
Posts: 256
Joined: Wed Apr 21, 2010 3:42 pm
Rank: AGA 1k
GD Posts: 1190
KGS: apetresc
IGS: apetresc
OGS: apetresc
Universal go server handle: apetresc
Location: Waterloo, Ontario (Canada)
Has thanked: 110 times
Been thanked: 146 times
Contact:

Re: Tygem on Linux using Wine!

Post by apetresc »

Thanks, zwim :) Starting from your hints, I was able to make it work. Here's what it looks like:
Screenshot of Tygem with Korean characters
Screenshot of Tygem with Korean characters
tygem.png (1.4 MiB) Viewed 28329 times


(Notice the Korean and Chinese characters in the game titles). For anyone else trying to make this work, here's the steps (you can kind of see them in the terminal in the screenshot):

  1. Install the cjkfonts package with WINEPREFIX=~/.wine winetricks cjkfonts
  2. Make sure you have generated the Korean locales. In Arch Linux or Ubuntu, you can do this by editing /etc/locale.gen and making sure the following lines:

    Code: Select all

    ko_KR.EUC-KR EUC-KR  
    ko_KR.UTF-8 UTF-8
    are present and un-commented. Then, run sudo locale-gen.
  3. When running Tygem, make sure LC_ALL="ko_KR" is set (though you probably want to do this in the .desktop file or script you use to launch Tygem with, rather than setting LC_ALL globally, since that would set your locale to Korean for all your programs).

No need to have a Wine prefix specifically for the Korean locale, it's fine if you run other programs with your default locale in the same prefix. Hope that helps anyone else who wants the most high-fidelity Tygem experience possible :D
The road to wisdom? Well, it's plain, and simple to express: Err, and err, and err again; but less, and less, and less!
Image Image Image Image
nasdaq
Dies in gote
Posts: 53
Joined: Thu Jan 05, 2017 4:34 pm
Rank: 1k
GD Posts: 0
Has thanked: 3 times
Been thanked: 9 times

Re: Tygem on Linux using Wine!

Post by nasdaq »

Hey,

I finally got the Korean Tygem version working under wine with Korean fonts with the help of these posts:
I'm using debian jessie,

I followed the zwim 32bit machine guide.
Then did the following from apetresc:

Make sure you have generated the Korean locales. In Arch Linux or Ubuntu, you can do this by editing /etc/locale.gen and making sure the following lines:
Code:
ko_KR.EUC-KR EUC-KR
ko_KR.UTF-8 UTF-8
are present and un-commented. Then, run sudo locale-gen.


Then did this:
LANG="ko_KR.UTF8" wine TygemBadukSetup.exe

It doesn't run quite so smoothly as under virtualbox, the timer countdown seems to stick a little bit more, but it is perfectly usable. I think this has more to do do with my almost 10 years old core 2 duo laptop though.

I managed to get a Korean Tygem account 'with a South Korean flag' by pestering the admins a few years before they released an English client. I'm kind of attached to it in a sentimental way, so to get it working under wine I'm pretty happy. Thanks!
zwim
Beginner
Posts: 8
Joined: Thu Feb 23, 2017 10:32 am
Rank: 5k
GD Posts: 0
Been thanked: 2 times

Re: Tygem on Linux using Wine!

Post by zwim »

I'm glad it was useful to you two.
Tapani
Dies with sente
Posts: 96
Joined: Tue Mar 22, 2016 9:53 pm
Rank: SDK
GD Posts: 0
IGS: 8k
Has thanked: 38 times
Been thanked: 16 times

Re: Tygem on Linux using Wine!

Post by Tapani »

Borrowing this thread to share a trick:

Sometimes (read: annoyingly often) the Tygem client refuses to start under Ubuntu 16.04 and Wine with the error message LERROR_SEMAPHORE.
All successive tries will end with the same error until after a reboot (and sometimes even after a reboot).

The trick to get past that is to NOT click away the error dialog box. Instead open a terminal, and issue a kill signal to the TygemGlobal processes.

After that, Tygem will start as expected on the next attempt :-)
Post Reply