Steve Jackson Games Forums

Steve Jackson Games Forums (https://forums.sjgames.com/index.php)
-   GURPS Character Assistant (https://forums.sjgames.com/forumdisplay.php?f=17)
-   -   GURPS Character Assistant under Wine for Linux (https://forums.sjgames.com/showthread.php?t=68035)

panton41 03-19-2010 08:20 AM

GURPS Character Assistant under Wine for Linux
 
I'm going to summarize my install routine for GCA under Ubuntu with the current (1.20-RC2 as of right now) version of Wine. It should work with most major distros as well virtually unchanged:

1) Install Wine repositories and install latest version of Wine. How this is done depends on your distro but Wine HQ has current builds for most major distros.

1a) Be sure to install the wine-gecko and cabextract package if it's not automatically enabled.

2) Download winetricks and change the permissions to be executable. Note, the official repo might have installed it automatically.

3) Create a directory to hold the GCA install. I use "/home/myusername/Software/GCA".

4) Run Winetricks with the command:
Code:

WINEPREFIX="/explicit/path/to/your/directory/" winetricks
Check "riched20", "vb6run", "native-oleaut32) and "fontsmooth-rgb" or "fontsmooth-bgr" depending on your display.

4a) For the post-March 2011 update to winetricks follow these selctions:
1) Choose "Select the default wineprefix" (which will be the one explicitly entered).
2) Choose "Install a Windows DLL or Component."
3) Select "riched20" and "vb6run." (Control click to choose more than one line.)
4) Choose "Change Settings."
5) Select "fontsmooth-rgb" or "fontsmooth-bgr" and "native-oleaut32."
6) Exit out by choosing "cancel" until window closes.


5) Use the command line to install GCA and patches to the same WINEPREFIX.

6) Run winecfg (once again with WINEPREFIX first) and choose libraries. Verify that riched20, riched32 and oleaut32 have been set as "native, builtin". Also choose Windows version Windows XP as this as been shown to run slightly better.

8) If needed copy the "GURPS Character Assistant" folder from the Document/My Documents folder off your Windows partition/disk into your home folder.

9) Cross your fingers and run GCA.

Following all of that will not only allow it to run, but also eliminate the ugly fonts seen previously. Some displays have a pixel order of RGB and some BGR play with the two to see what works best for you.

I use a WINEPREFIX since other programs, notably DirectX that many games install, will mess up a GCA install. In general it's good practice when you're installing anything with Wine to do it that anyway. I use a non-hidden folder with Wine just because it's easier to navigate to, but if you prefer hidden folders just put a "." before your directory name.

You can speed up GCA by adding:
Code:

WINEDEBUG=-all
To the menu item for GCA. It will cause Wine to not throw back debugging comments to the (probably unseen) console and make it run slightly faster.

I've found GCA under Wine to be quite a bit faster than natively under Windows, but, of course, your mileage may vary.

Sometimes I copy the Steve Jackson Games directory from the AppData/Application Data folder in Windows user account into the equivalent folder in Wine. It helps keep many of your settings intact, but chances are the GCA.ini file inside of it will cause a crash on start up. Simply remove it (copying it) and once a new one is made you can transfer over settings that might not "take" once set.

Also keep in mind the legalese of having a valid Windows license when doing this. I have two computers (including the one with Linux) running Windows 7 and a legal copy of Windows XP, which most likely keep me in the clear, but for people who only have Linux you're technically violating the EULA.

acrosome 11-14-2010 02:17 PM

Re: GURPS Character Assistant under Wine for Linux
 
I followed all of your directions and GCA generally seems to work EXCEPT for the Quick View (the view that looks like a character sheet) and Print Preview functions. Any insight on this?

Kuroshima 11-14-2010 02:42 PM

Re: GURPS Character Assistant under Wine for Linux
 
Quote:

Originally Posted by acrosome (Post 1077730)
I followed all of your directions and GCA generally seems to work EXCEPT for the Quick View (the view that looks like a character sheet) and Print Preview functions. Any insight on this?

Do you have CUPS installed? You need to have a working printer (I use CUPS-PDF, it should be in your repos) for those functions, on Windows.

acrosome 11-14-2010 02:56 PM

Re: GURPS Character Assistant under Wine for Linux
 
I'm running Ubuntu 10.04, and when I check Synaptic Package Manager it says that CUPS is installed. This is a new laptop, though, and I've never actually attached it to a printer.

i tried installing a couple of printer drivers into Wine, but the install always fails.

Kuroshima 11-14-2010 02:59 PM

Re: GURPS Character Assistant under Wine for Linux
 
Quote:

Originally Posted by acrosome (Post 1077747)
I'm running Ubuntu 10.04, and when I check Synaptic Package Manager it says that CUPS is installed. This is a new laptop, though, and I've never actually attached it to a printer.

i tried installing a couple of printer drivers into Wine, but the install always fails.

Open Synaptic, and search for CUPS-PDF. It's a PDF printer, and it's what I use to print to pdf my GCA files. CUPS is the printing framework, but GCA needs an actual printer driver for quick view. WinE should make your CUPS printers available to windows apps. Don't try to install a printer driver on WinE though.

acrosome 11-14-2010 03:02 PM

Re: GURPS Character Assistant under Wine for Linux
 
Sunovacrap!

i realized that CUPS-PDF might be different than CUPS and sure enough I searched for it in SPM and loaded it and...

TA-DA!

All is right with the world.

Thanks!

Bruno 05-14-2011 07:47 PM

Re: GURPS Character Assistant under Wine for Linux
 
Quote:

Originally Posted by ciaran_skye (Post 954677)
4) Run Winetricks with the command:
Code:

WINEPREFIX="/explicit/path/to/your/directory/" winetricks
Check "riched20", "vb6run", and "fontsmooth-rgb" or "fontsmooth-bgr" depending on your display.

I'm sort of impressed that it took me all the way until step 4, but I am apparently now in an alternate universe from you.

I ran winetricks, with the WINEPREFIX, and ... I get a) a prompt to install Gecko, and then a failure to install gecko, and b) a radio button list asking if I want to view help, install an app, install a game, install a benchmark, select the default wineprefix...

No checkboxes, nothing that looks like anything you have above (ie, it's all in english, no package names). :/

panton41 05-15-2011 09:56 AM

Re: GURPS Character Assistant under Wine for Linux
 
What distribution and version of Wine are you using?

Bruno 05-15-2011 04:29 PM

Re: GURPS Character Assistant under Wine for Linux
 
Quote:

Originally Posted by ciaran_skye (Post 1176277)
What distribution and version of Wine are you using?

Not sure I'm answering the right question, but the one from following the Ubuntu installation instructions from the Wine website, and the latest stable (not the development branch).

Kuroshima walked me through setting it up with PlayOnLinux, so I'm up and running, but you'll probably need a note or some extra instructions if the latest (Ubuntu only?) version is so different.

There's a note that winetricks had its gui massively overhauled in March of this year on the winetricks website. might have something to do with it?

panton41 05-15-2011 04:48 PM

Re: GURPS Character Assistant under Wine for Linux
 
The interface was massively overhauled, but the directions are generally the same. I'd have to reinstall Linux to figure out the exact steps, though. When I last tried Ubuntu (last week or so) it worked fine.


All times are GMT -6. The time now is 01:21 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.