[Wine] This could be a multiple supplier problem

Bryan Baldwin bryan at katofiad.co.nz
Mon Jul 19 20:21:17 CDT 2010


On 07/20/2010 12:01 PM, A Nonny Moose wrote:
> I have finally encountered this problem in such a way that everything went awry.
>
> Running Simcity 4 Rush Hour with the following command line:
>
> env WINEPREFIX="/home/john/.wine" wine C:\\PROG\~FBU\\Maxis\\SIMC\~ZMW\\Apps\\SimCity\ 4.exe -intro:off

Its good practice to specify WINEPREFIX with your terminal command, 
however, in this case WINE will automatically target your .wine 
directory by default. Only in the case of installing to a non-default 
path such as:

/home/john/wine/simcity_4

would setting WINEPREFIX be necessary.

> Which brought up the game, just fine.
>
> I opened my largest city, and very soon after that, while I was adding something to the layout, the graphics went totally mad.  I started getting blocks of four colours (RBGK) everywhere.  So I did a save and quit to region.  The region map was a mash of colours, mostly red.  So I quit the game.
>
> At this point, I noticed that my upper panel was different.  Its style had reverted to some kind of default, and the icons were different, and the background was not of the theme I was using.  I had originally reset to use metacity to reduce the graphics load.
>
> The O/S is UBUNTU 10.04 with current updates and wine 1.2 (just released).
>
> So, I did a restart.  When the system reloaded and I logged on, I found that my ethernet link icon on the panel had been corrupted??  I stooged around a bit, but found nothing.  So a did another boot.  At this point, I got everything back to normal.
>
> I am now in a quandary.  Could this be a wine problem, or a Linux problem.  Its easy to point fingers, but that's not the way to get the solution.  So, I am starting here.
>
> Simcity 4 is a legacy program written (released) in 2002.  It knows nothing from modern paging techniques, etc.  It fails if you have any special graphics funtions turned on in your GPU.  It doesn't even understand anti-aliasing.  Multiple processors kill it, and it crashes to the desktop.  If there is any kind of memory or virtual memory hiccup, it crashes to the desktop.
>
> I have run this program for many years on XP and had nothing happen like this.  The interesting thing is that the operating system did not protect itself and was stepped on.  To really get a handle on this, I need someone who has an intimate knowledge of how memory management is done in Linux and what, if anything, wine does to make its programs work correctly.

I have SimCity 4 installed on my PC as well. I've probably played it 
with WINE on and off for the last four years. I think I saw the 
graphical symptom you described on one occasion a long time ago while 
using Debian or Ubuntu. I do not recall that I did anything to fix the 
matter, in fact I think I just quit playing the game for awhile.

Resetting your window management to metacity is a very good idea 
whenever using any WINE program. Usually programs with simple graphics 
do not have a problem, e.g. Original StarCraft/Brood War will run 
flawlessly with no graphical errors whatsoever under Compiz Fusion. But 
its a bad idea to assume this is true for every program. Maxis really 
does some strange stuff anyway. Always reset to metacity before 
launching that game and see if the same error ever repeats.

Currently, I will see minor screen drawing bugs when zoning (which 
disappear after committing the zone), and sometimes Sims and Sim 
vehicles aren't visible or only partially visible at certain zoom levels 
(shadow/masking error?). Its still playable for me though. I also do not 
use Ubuntu. I use Archlinux.


	Bryan



More information about the wine-users mailing list