• Moose
  • Announcements

    • Dirktator

      Please help us for June & July   06/20/2017

      This month we're hoping for a little bit of a boost this month or next, in addition to covering the regular bills, we could benefit from some hardware upgrades. STEX Collector's Set gifts can now be sent to you via digital download as well as regular mail if you wish! Every donation dollar goes toward keeping Simtropolis online and humming along. Your contribution counts! Hardware Upgrades As our website community software improves with more and more features, and as we bolt on additional features such as chat, the increased load to handle all these new toys is taking the server a bit to task. You may have noticed that we'd been forced to temporarily disable the chat as we worked out allocating resources for more optimal performance. Following this, we've applied a number of 'soft' changes such as caching options and experimented with server configurations (nginx as proxy, for example), so the hardware aspect is also an area we'd like to focus on. The last time we upgraded hardware was back in 2012, prior to the release of SC13. Your contribution means a lot! Your donation will go toward helping us to 1.) migrate to a newer server or 2.) at least get some ram/cpu/storage updates and any other infrastructure hardware or services. Donate and Get a Gift or Donate Any Amount Thanks so much! - Dirktator & The Admins
brianc1327

SimCity 4 on Linux

11 posts in this topic

I have been playing SC4 on WINE/LINUX recently.  I think all I did was DL the installer from Amazon (or used the installer that was already on my Windows partition, I don't remember), but I don't remember having any particular problem doing so or having to "prepare" the partition in any way.

I had a bit of a problem with SC4 all of a sudden crashing to the desktop.  I added the switch "-CPUcount:1" to the icon for starting the program.  How much it helps remains to be seen, but the articles that gave this suggestion if you have SC4 on a dual-processor (or more) machine, SC4 is still a bit doofy even if you use that switch.  They implied it is still a bit doofy if you have a single-processor machine, and XP, and the latest patches, which is what SC4 was designed for.

I also had a problem with the water.  I would see a building that has the drop on it that indicates it is not watered, but when I look at the pipes, a pipe is watered and goes right by the building (if I it actually goes under the building, everything is OK), and I look at the graph showing water use/water production and I although I cannot remember the exact amounts, the amount produced was probably at least twice as high as the amount used, but the building was still unwatered.  

This problem seemed to be fixed when I successfully got NAM installed on my linux partition.  Unless this problem exists on a "regular" windows installation, I really don't see why it would exist on a WINE/Linux installation, or why installing NAM would solve it, but that is what was happening, but after getting NAM installed it was no longer happening, so it is at least correlated with that.

I also have got other add-ons installed, such as the "infinite money park," the hyperspace garbage dump, and a pack that gives a bit more variety to the 1x1 commercial tiles than Depessies Diner.

Pretty much to only other games I play that I have boot into XP for (or play at all) is "Farm Frenzy" and "Roller Coaster Tycoon 2," which I did not get installed to WINE/Linux successfully, but maybe I will find the motivation to do give it another try someday.

Brian Christiansen.

RobertLM78 likes this

Share this post


Link to post
Share on other sites
3 hours ago, brianc1327 said:

....Pretty much to only other games I play that I have boot into XP for (or play at all) is "Farm Frenzy" and "Roller Coaster Tycoon 2," which I did not get installed to WINE/Linux successfully...

I gave up on Windows 7 last year and have been using Linux Mint since then, as I didn't want to have a dual-boot I set up a virtual desktop and installed Windows XP on it, I've got SimCity3 and 4 running on it and have to say its worked out really well.

:thumb:

CorinaMarie and RobertLM78 like this

Share this post


Link to post
Share on other sites
11 hours ago, brianc1327 said:

I had a bit of a problem with SC4 all of a sudden crashing to the desktop.  I added the switch "-CPUcount:1" to the icon for starting the program.  How much it helps remains to be seen, but the articles that gave this suggestion if you have SC4 on a dual-processor (or more) machine, SC4 is still a bit doofy even if you use that switch.  They implied it is still a bit doofy if you have a single-processor machine, and XP, and the latest patches, which is what SC4 was designed for.

I don't understand where you have got this impression from, let me clarify a few facts for you.

  • SC4 running on a single-core machine will NOT suffer issues related to multi-core machines. Then again, in many cases I'd expect to see performance issues, since that means its highly likely you are running on a not very powerful (by todays standards) processor:
    • Pentium 4
      In short dual core became standard for Pentium Class chips with the release of the Pentium D series thereafter.
    • Celeron
      The early ones (before 2007/8) were not particularly good, although that's relative. Some people just want a basic PC, a Celeron can be fine for that. But want to play CPU intensive games? That's like bringing a go kart to an F1 grand prix.
    • Some older AMD chips
      Again some older chips simply don't have the performance needed to run SC4 well today.
  • If the cores are correctly scaled back to just one, there is no reason why you'd have issues.
    Those who do likely either haven't correctly setup this feature or have problems stemming from other causes.
    In the case of a Linux user, you are running SC4 in a non-native environment. So there's a good chance a shortcut switch (designed for Windows) may not be sufficient to invoke this function on your OS. In fact I recall Nonny (RIP) having issues with this under Wine, if memory serves it was eventually solved with a Wine update.
  • Running XP provides for the smoothest experience for many players. But there is nothing in the code of Windows beyond that to stop the game running well either. The most likely cause of problems is more down to the use of new hardware, mainly graphics cards, where driver support for DirectX 7 is limited or simply not working. Sometimes it's as simple as helping SC4 to correctly detect your GPU, other times its necessary to switch to Software Rendering to make things work.

Anyone who thinks SC4 can not run stably, simply doesn't know what they are talking about, it absolutely can and does, fact.

CorinaMarie and Handyman like this

Share this post


Link to post
Share on other sites

Nice to see more people are discovering Linux. It can be a bit of a challenge making the switch, but I am very happy I stuck with it. For any problems I have encountered I have found a solution, usually pretty quickly. If you think about the time you spent learning to deal with windoze, it wasn't always easy, but you stuck with it. If you give the same time to learning your flavour of Linux, I think, you will be much more satisfied with the results.

If you have any questions, post them, and I will try to help.

I have been working on scripts to replace some of the lengthy instruction sheets I currently have posted, so I am not on the site much lately, but I do check the forums at least once a day.

Once I worked out the process I currently use, for SimCity etc,  I have not had any major issues that I did not cause myself. If it ran well on windoze it will run well in Wine.

 

Share this post


Link to post
Share on other sites
7 hours ago, rsc204 said:

I don't understand where you have got this impression from, let me clarify a few facts for you.

Oh, I don't know, perhaps partly from actually playing it when logged into XP home (not a virtual machine - but an actual XP installation).

Brian Christiansen

Share this post


Link to post
Share on other sites
Just now, brianc1327 said:

Oh, I don't know, perhaps partly from actually playing it when logged into XP home (not a virtual machine - but an actual XP installation).

Did you read everything I said? Or are you just going to skip over the information provided? Honestly it's a wonder you are having problems when you seem to take issue with people giving you advice to solve them.

Share this post


Link to post
Share on other sites
4 hours ago, rsc204 said:

Did you read everything I said?

Yes, I did, and since I built my computer, I know what hardware is on it, and nothing that was said really has anything to do with my hardware.  Even if I had any of the hardware mentioned, I did not see any suggestions about what to do, except for perhaps upgrading WINE.  

Pentium 4, Celeron: I don't have either of those.

Athlon: That is what I have, and I don't know what you consider to be "older," but mine isn't old when measured against SC4, at least, and the CPU/motherboard/graphics card is specifically built for windows XP/7/Vista and DX7 (http://www.asrock.com/mb/nvidia/n68c-s ucc/).  It would probably run windows 8 and 10 as well, but I just don't have any intention of installing those anyway.

Whether the "-CPUcount:1" switch helps or does not help I do not know since I just have not played enough since adding that switch to the program launcher icon to see if if makes any difference or not, since XP home does not recognize both processors anyway, I am pretty sure it won't have any effect there.  I may look into making sure my installation of Wine is the latest stable release for Ubuntu (my version is 1.9.something, and the latest stable version is 2.0.something)  if the -CPUcount switch does not help.

I did read your post, I just did not see anything, except perhaps upating WINE, that applied to my system or situation.

Brian Christiansen

Share this post


Link to post
Share on other sites

Posted (edited)

 

On 2017-04-19 at 8:12 PM, brianc1327 said:

I had a bit of a problem with SC4 all of a sudden crashing to the desktop.

Which Distro and version of Linux are you running?

I have been running Wine 1.8 for a couple years, with no problems, on UbuntuGnome 14.04 and more recently on UbuntuGnome 16.04.
The caveats with 14.04 is, you can't run it in windowed mode and you cannot have any other windows open when you run SC4, it simply does not play nice. Also if you have anything that pops under while playing the game, it will crash instantly, this includes the Update Notifier. So make sure to run Updates before starting the game. Also, when you launch SC4, it will start in the background so you have to wait a minute and  ALT+TAB to bring to the foreground.
You can avoid these issues by installing 16.04, which will run in windowed mode and doesn't mind if other things are opened while playing. The only small issue with this setup is I can't ALT+TAB to another window, but I can use the SUPER key to raise the HUD and choose a window from there.

Also make sure you have the TELot fix, regardless of the OS version.

Below is the command from my Desktop shortcut.

env WINEPREFIX="/home/mike/.wine-SC4D" wine C:\\Program\ Files\\Maxis\\SimCity\ 4\ Deluxe\\Apps\\SimCity\ 4.exe -intro:off -CustomResolution:enabled -r1920x1080x32 -d:hardware -CPUcount:1


  Edited by Handyman

Added more info
RobertLM78, rsc204, catty-cb and 1 other like this

Share this post


Link to post
Share on other sites
On 4/19/2017 at 9:37 PM, catty-cb said:

I gave up on Windows 7 last year and have been using Linux Mint since then, as I didn't want to have a dual-boot I set up a virtual desktop and installed Windows XP on it, I've got SimCity3 and 4 running on it and have to say its worked out really well.

:thumb:

That's what I do too *:8)  (I also run Mint....  ;) )

There's a couple things I run on my windows 7 partition, but I don't play them much, so it gets used maybe twice a year. 

 

I haven't had much luck getting SC4 to run on WINE, but there are those who have.  Handyman's article is highly informative, and will hopefully get you up and running.

catty-cb and CorinaMarie like this

Share this post


Link to post
Share on other sites
16 hours ago, Handyman said:

...The caveat with 14.04 is you cannot have any other windows open when you run SC4, it simply does not play nice. Also if you have anything that pops under while playing the game, it will crash instantly, this includes the Update Notifier. So make sure to run Updates before starting the game...

Hmmmmm.... I wonder if this is part of my problem.  I'm running Mint 17.3 (based on Ubuntu 14.04), and I know for a fact that every time I've tried to launch SC4 there have been other windows open... most obvious of all, the terminal window from which I've been calling the script.  I guess I'll be doing a system upgrade (again) soon.  

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an Account  

Sign up to join our friendly community. It's easy!  :thumb:


Register a New Account

Sign In  

Already have an account? Sign in here.


Sign In Now


  •  
  • Similar Content

    • By Handyman
        If you are interested, please leave a post below. If there is some interest, I will post more details.
        It is a small script to install Wine and Winetricks but, for the initial tests, it will be crippled. I have tested, the functional version, dozens of times on my system and it has worked as expected.
        My concern is not knowing how my scripts will work on different hardware combinations. Even though I have 4 different installations, they all live on one physical system. My hardware is all pretty new, so if it is run on a slower setup will there be timing issues that I don't see.
        It would be irresponsible, I think, to release it without some basic testing on other systems.
    • By Handyman
      How to use Wine with SimCity4Deluxe, NAM, Modding Tools
          About ten years ago I made Ubuntu my only OS, after dual booting with XP for about a year. I had only one regret, I could not get SC4D to run in Wine. I tried a few times over the next few years but still had no luck. Then a couple of years ago I decided to dig in and get it running.
          My first success came with the help of PlayOnLinux, finally! I used this setup until, recently, I decided to try working directly with Wine without the extra layer of PlayOnLinux. So I dug a little more and eventually I gathered most of the info I was looking for on the interweb. Much of this was, things I didn't know I needed to know, until I knew them.
          Now, I had a lot of info, but some bits seemed to contradict other bits, so I began to develop a repeatable, controllable, procedure that would allow me to test a defined set up, document it, rinse and repeat. The process I settled on, exposed the unreliable information, but gave rise to more questions. I dug around, got some more bits, and started again. This time it all came together.
          Eventually, I settled on a kind of combination set-up method using wine / winetricks / wine tools. I'm more of a nuts and bolts kinda guy,so this satisfies me. There are other ways to achieve the same results, and I may tackle them some time, but for now, I am concentrating on using this method to install SimCity4Deluxe and some of the modding tools.
          As a part of the testing process I developed sets of instructions, so I could repeat a particular set-up, exactly the same, multiple times. After using them for awhile, I decided they were solid and they might be helpful to other people. So I edited them into a more readable format and added some, (I hope), helpful information.
          Currently, I have finished these;
      ∘Wine How To - Install Wine 1.8:i386 (32 bit)
      ∘ Wine How To - Install SimCity4Deluxe (plus updates)
      ∘ Wine How To - Install NAM
      ∘ Wine How To - Install GoFSH
      ∘ Wine How To - Install Gmax Extended
      ∘ Wine How To - Install ILive Reader 1.4
      ∘ Wine How To - Install SC4-PIM X

      Credits: Most of the information I gathered was from WineHQ, Winetricks, Ubuntu forums, SC4Devotion forums, Simtropolis forums, many sage postings by 'A Nonny Moose' (found these everywhere), along with bits from numerous Linux editorials.
    • By Metacity
      Hi there,
      Loooong time lurker (going back to when CXL was the hot new thing on the block), first time poster here.
      Recently I've gotten back into SC4...again...but haven't been able to play it the way I'd like to due to not being able to use my physical CD copy on my beefy Linux desktop. It's not fun trying to zone on a touchpad, especially when the laptop is running 8.1. (Blech. Otherwise I'm as emancipated as A Nonny Moose in that regard - speaking of which, I do hope he is alright...)
      Today I got an email from Steam announcing that SC4 had gone on one of its seasonal sales, and that got my interest going again in getting it working on my lovely Kubuntu setup. I apologize in advance, as I'm sure this subject has been covered time and time again, but I haven't for the life of me been able to find enough reasonably current information to tell me how well it would work, and how, exactly, to make it work. Wine's app database was of little help, since the last result gave it a Platinum rating...without elaborating on any special steps that might be needed. And that's not even getting into all the sorcery needed to make it work on modern Windows...
      So, the TL;DR gist is: what's the best way to get a clean, digital copy of SC4 working on Linux with minimal hair-pulling or frustration perusing hundreds of forum topics for just the right solution?
      In case they're needed, here are a few basic specs:
      Kubuntu 14.04 LTS, kernel 4.4 Core i7 CPU, NVIDIA GTX 745 GPU current Wine 1.9 (though I can use 1.8 if it makes a difference) 24 GB RAM Thank you very much in advance! And apologies again for asking a question that I'm sure has been asked many times before... 
    • By brianc1327
      My computer boots to Linux (ubuntu 14.04) and Windows (XP).  Recently I put WINE windows emulator on it.  I had a few technical problems there, but got them worked out.
      To install SC4, I had to install an application called "origin" (gives access to EA games).  When I try to start it from the Origin app, I get an error message.  It, however, works fine when I start it by directly clicking on the SC4 icon, so I am not very worried about diagnosing or fixing the problem with the origin app.
      SC4 works as well, or perhaps even better under WINE in Linux than it works in windows.  I think this is because I have 8G of memory, but since the windows installation is a 32-bit version, it only recognizes 4G of it.  I also have a dual-core processor, but XP home only recognizes one of them.  
      I read that sometimes SC4 has problems with dual-core processors, but since WINE is an emulator that "fools" SC4 into thinking it is running on windows rather than Linux, it also might fool it into thinking it is running on just a single-core processor.
      I don't know if mods, like NAM, work in WINE, perhaps I will have to try that sometime.
      In the sample region, Maxisland, I am trying to build the region using neighbor deals where some of my cities have the industry of the region and others have the residential/commercial. I am calling my cities with the industrial zones "city of industry X (X=1,2,3...up to however high I need to go)."  Perhaps should have called them "Smog City X" or "NIMBY City X" since I am also putting the NIMBY structures like power plants and landfill zones in them and then selling those services to the residential/commercial cities.
      The first city I built up was the "Big City tutorial".  I "fixed" the city actually by blowing it up and starting anew.  The city's zones and roads were so sloppily designed that the only real way to fix it was by starting anew.
      In the small squares above it (I am assuming that every copy of SC4 comes with a sample "Maxis land" and that it is the same in every copy) I built a "city of industry" to provide the manufacturing jobs, landfill, and power to my city.
      When I finished building my "city of industry," I rebuilt the "Big City Tutorial" using my new neighborhood design.
      After all that babbling here is my question.  When I finished the "city of industry," and started fixing the "Big city tutorial," there was $273,279 in the treasury of my "city of industry." After I blew up the "Big city tutorial" and rebuilt it (~50-100 "game years"), there was still $273, 279 in the treasury.  Shouldn't there be $273,279 + <however much was paid from the neighbor deals> in city of industries treasury.
      Brian Christiansen
    • By Oren
      I'm unable to run SC4 in hardware mode. When I launch SC4, I receive these error messages:
      Hardware Error Could not initialize DirectDraw. SimCity4 Could not initialize the hardware driver. Using the software driver instead. I'm using Ubuntu 15.10 together with Wine 1.9.1.
      Installing DirectX 9, 10 and 11 libraries, didn't fix the problem.
  • Recently Browsing   0 members

    No registered users viewing this page.