You must be logged in to post messages.
Please login or register

Technical Forum
Moderated by Jayhawk

Hop to:    
Welcome! You are not logged in. Please Login or Register.5 replies
Caesar IV Heaven » Forums » Technical Forum » New WINE (To Run Pharaoh Under Linux) Does Not Work
Bottom
Topic Subject:New WINE (To Run Pharaoh Under Linux) Does Not Work
Henipatra
Pleb
posted 06-23-17 11:40 ET (US)         
For a while now, I've been running Pharaoh under Linux using WINE -- the windows emulator. In fact, I found out how to run the GOG version here (see http://caesar3.heavengames.com/cgi-bin/caeforumscgi/display.cgi?action=ct&f=9,7704,,20 ).

I recently upgraded from Debian Linux 8 (Jessie) to Debian Linux 9 (Stretch) and now I can't even get into WINE.

If I just open a command line window and type "wine" it says "command not found". Apparently, this version of WINE requires an extra library to be added to the path -- so I entered "export PATH=$PATH:/usr/lib/wine".

Having done so, entering "wine" gives me some brief help information and entering "wine --version" gives me the version number (1.8.7). But I'm really not wining anything at this point.

If I enter "wine winecfg", it tells me "could not exec wineserver". It's at this point I am stuck.

Any ideas out there?

Henipatra

[This message has been edited by Henipatra (edited 06-23-2017 @ 11:41 AM).]

AuthorReplies:
Pecunia
CBH Seraph
posted 06-25-17 14:01 ET (US)     1 / 5       
I've just tried this on a new installation of Debian Stretch in a virtual machine: I installed wine using 'apt-get install wine', which properly installed 'wine' (1.8.7) in /usr/bin, and running 'wine winecfg' popped up the configuration box.
To get Caesar 3 running (I didn't have an installation of Pharaoh available), wine complained about a missing 32-bits version so I had to install 32-bit wine using:
dpkg --add-architecture i386 && apt-get update && apt-get install wine32

After that, just 'wine c3.exe' worked fine.

The fact that you had to alter $PATH tells me that something in your wine installation is not set up properly. How did you install wine?

Perhaps uninstalling and re-installing both wine and wine32 gets things working again.

Angel Pecunia | HG Downloads programmer and techie
Caesar IV Heaven | Children of the Nile Heaven | Citadel of Poseidon (Zeus/Poseidon) | The Great Wall (Emperor)

[This message has been edited by Pecunia (edited 06-25-2017 @ 02:04 PM).]

Henipatra
Pleb
posted 07-04-17 06:11 ET (US)     2 / 5       
Hi Pecunia,

I didn't realize I had to install BOTH wine and wine32 -- so I removed them, deleted the .wine directories, and (re)installed both. (I had already done the add-architecture and update before.) I removed my change to the path.

I ran into a few other problems but fixed them quickly. Then I tried a simple Battleship-type game, and it ran without problems.

But I couldn't get Pharaoh to run. I entered the following in a terminal:

sh shex/Pha.sh

The above shell script contains the following:

cd "/home/user/.wine/drive_c/GOG Games/Pharaoh Gold" ;#
export WINEDEBUG=warn-ntdll ;#
export WINEPREFIX="$HOME/.wine" ;#
wine "c:\GOG Games\Pharaoh Gold\Pharaoh.exe" ;#
xrandr -s 1280x800;#

A window labelled "Pharaoh.exe - Wine desktop" appears for about a second then goes away. The following messages are left in the terminal window:

libGL error: unable to load driver: nouveau_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: nouveau
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 155 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 271
Current serial number in output stream: 275

When I installed Pharaoh, I added it as a wine application, and set the following in the Graphics options:

Automatically capture the mouse in full-screen settings -- OFF
Allow the window manager to decorate the windows -- ON
Allow the window manager to control the windows -- ON
Emulate a virtual desktop -- ON
Desktop size -- 1024 x 768
Screen resolution -- 96 dpi

According to my notes, the Allow DirectX apps to stop the mouse from leaving their window option is also supposed to be turned on, but this selection seems to no longer exist.

(I also tried Automatically capture ... ON to no change in results.)

In Google, I found references to nouveau_dri.so and swrast_dri.so, but they were talking about running a GOG game under Ubuntu WITHOUT wine or using the Nvidia driver (I have an Acer monitor).

What do you suggest?

Henipatra

[This message has been edited by Henipatra (edited 07-04-2017 @ 06:21 AM).]

Pecunia
CBH Seraph
posted 07-06-17 09:53 ET (US)     3 / 5       
A Google search did indeed turn up problems with the video driver. Your monitor brand doesn't have anything to do with the video card/chipset that's used in your computer. In your case, it's probably indeed an NVidia video chipset, for which the drivers are now incompatible after your upgrade.

I suggest re-installing the video drivers. Not sure how that is done in Debian so you will have to Google that.

Angel Pecunia | HG Downloads programmer and techie
Caesar IV Heaven | Children of the Nile Heaven | Citadel of Poseidon (Zeus/Poseidon) | The Great Wall (Emperor)
Henipatra
Pleb
posted 07-06-17 14:32 ET (US)     4 / 5       
Pecunia said: "I suggest re-installing the video drivers. Not sure how that is done in Debian so you will have to Google that."

I did, I did, and that fixed it.

I started by entering (in a terminal) "lspci -nn | grep VGA".

The response was "01:00.0 VGA compatible controller [0300]: NVIDIA Corporation ...."

I then installed the nvidia-detect package. I entered "nvidia-detect".

Again I got "01:00.0 VGA compatible controller [0300]: NVIDIA Corporation ...." and "Your card is supported by all driver versions. It is recommended to install the nvidia-driver package."

I installed nvidia-driver and rebooted. Now it works (although some font sizes and things were changed -- but that's minor).

I'm back in the kingdom!

Thanks much.

Regards,

Henipatra (Jennifer)

[This message has been edited by Henipatra (edited 07-06-2017 @ 02:33 PM).]

Pecunia
CBH Seraph
posted 07-06-17 15:29 ET (US)     5 / 5       
Great to hear that, have fun playing in the kingdom!

Angel Pecunia | HG Downloads programmer and techie
Caesar IV Heaven | Children of the Nile Heaven | Citadel of Poseidon (Zeus/Poseidon) | The Great Wall (Emperor)
You must be logged in to post messages.
Please login or register

Hop to:    

Caesar IV Heaven | HeavenGames