Sim City 4 won't start

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
kmpgame
Level 1
Level 1
Posts: 9
Joined: Mon Jun 09, 2008 3:35 pm

Sim City 4 won't start

Post by kmpgame »

I am new to using wine and I'm still learning Linux so please be specific. I'm using Ubuntu 8.04 with the newest version of wine. When I installed Sim City 4 Deluxe I saved Disc 1 on my computer then put disc 2 in and installed the game. When I try to start it the Wine window comes up for a second then closes. Can some one explain what is going on. Any help would be nice. Thanks
User avatar
dimesio
Moderator
Moderator
Posts: 13209
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Your description isn't enough to figure out what's going on. Open a terminal, cd to the directory where SimCity4.exe is located, and run it from there. Post whatever messages appear in the terminal.
kmpgame
Level 1
Level 1
Posts: 9
Joined: Mon Jun 09, 2008 3:35 pm

Post by kmpgame »

How do I do that?
User avatar
dimesio
Moderator
Moderator
Posts: 13209
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Find the terminal/console program somewhere on your menu. I don't use Ubuntu, so I can't tell you exactly where it is.
In the terminal, change directories to the directory where you have installed Sim City 4. If you installed to the default directory, the command would look something like

Code: Select all

cd "/home/user/.wine/drive_c/Program Files/Maxis/SimCity 4 Deluxe/Apps"
substituting your username for "user."

Then run the program with

Code: Select all

wine "SimCity 4.exe"
Copy whatever messages appear in the terminal/console window to your clipboard and post them here.
kmpgame
Level 1
Level 1
Posts: 9
Joined: Mon Jun 09, 2008 3:35 pm

Post by kmpgame »

Is this it?

Code: Select all

preloader: Warning: failed to reserve range 00000000-60000000
preloader: Warning: failed to reserve range 00000000-60000000
wine: could not load L"C:\\windows\\system32\\SimCity 4.exe": Module not found
kevin@kevin-desktop:~$ err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, please report
preloader: Warning: failed to reserve range 00000000-60000000
err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, please report
preloader: Warning: failed to reserve range 00000000-60000000
err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, please report
preloader: Warning: failed to reserve range 00000000-60000000
err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, please report
User avatar
dimesio
Moderator
Moderator
Posts: 13209
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

kmpgame
Level 1
Level 1
Posts: 9
Joined: Mon Jun 09, 2008 3:35 pm

Post by kmpgame »

This is what I get

Code: Select all

./.wine/drive_c/windows/gecko/0.1.0/wine_gecko/mozz.dll
bash: ./.wine/drive_c/windows/gecko/0.1.0/wine_gecko/mozz.dll: Permission denied
kevin@kevin-desktop:~$  sudo sysctl -w vm.mmap_min_addr=0
vm.mmap_min_addr = 0
kevin@kevin-desktop:~$ wine "SimCity 4.exe"
wine: could not load L"C:\\windows\\system32\\SimCity 4.exe": Module not found
kevin@kevin-desktop:~$ 

User avatar
dimesio
Moderator
Moderator
Posts: 13209
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

You forgot to cd to the directory where SimCity 4.exe is located. If you don't want to do that each time, start it with the full Windows-style path:

Code: Select all

wine "C:\Program Files\Maxis\SimCity 4 Deluxe\Apps\SimCity 4.exe"
kmpgame
Level 1
Level 1
Posts: 9
Joined: Mon Jun 09, 2008 3:35 pm

Post by kmpgame »

Now it says this

Code: Select all

wine: cannot find 'C:\Program Files\Maxis\SimCity 4 Deluxe\Apps\SimCity 4.exe'
kevin@kevin-desktop:~$ 
sorry for all this trouble
User avatar
dimesio
Moderator
Moderator
Posts: 13209
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Then cd to the directory as you did before--some Windows programs have to be started from the directory in which they are located.
kmpgame
Level 1
Level 1
Posts: 9
Joined: Mon Jun 09, 2008 3:35 pm

Post by kmpgame »

Can you start from the beginning? Sorry to be so ignoring but I'll get it some time.
User avatar
dimesio
Moderator
Moderator
Posts: 13209
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

First double-check where SimCity 4.exe is actually installed. Looking again at your terminal output, it looks like you were trying to execute the program from the windows/system32 subdirectory. That's not where SimCity 4.exe is normally located, at least not with a default install.

Open your file manager, set it to show hidden files, and find out exactly where SimCity 4.exe is. Then use the directions I gave you the first time to execute it in a terminal, substituting the actual path for the one I gave if it is different.
kmpgame
Level 1
Level 1
Posts: 9
Joined: Mon Jun 09, 2008 3:35 pm

Post by kmpgame »

Whats all this?

Code: Select all

kevin@kevin-desktop:~$ wine "C:\Program Files\Sim City\Apps\SimCity 4.exe"
wine: Unhandled page fault on execute access to 0x0033fa6c at address 0x33fa6c (thread 0009), starting debugger...
Unhandled exception: page fault on execute access to 0x0033fa6c in 32-bit code (0x0033fa6c).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:0033fa6c ESP:0033fa30 EBP:0033fa44 EFLAGS:00010206(   - 00      - RIP1)
 EAX:0033fa6c EBX:10003115 ECX:0033fa54 EDX:10083e0c
 ESI:10083da8 EDI:10083e08
Stack dump:
0x0033fa30:  10083e08 10083da8 10003115 0033fa54
0x0033fa40:  0033fa6c 0033fa84 10026caf 0033fb04
0x0033fa50:  00df1f80 0033fa94 0033fac0 00400000
0x0033fa60:  10006c70 00000206 00e11698 33fa94bc
0x0033fa70:  5c9d6100 0033fac3 0033fa98 10026cef
0x0033fa80:  0033fa94 0033faf4 10083dcd 10083da8
Backtrace:
=>1 0x0033fa6c (0x0033fa44)
  2 0x10026caf in ~df394b.tmp (+0x26caf) (0x0033fa84)
  3 0x10083dcd in ~df394b.tmp (+0x83dcd) (0x0033faf4)
  4 0x1000332c in ~df394b.tmp (+0x332c) (0x0033fbd4)
  5 0x00bcb3f5 in simcity 4 (+0x7cb3f5) (0x00bcb009)
  6 0x00000118 (0x00704810)
0x0033fa6c: movl	$0x33fa94,%esp
Modules:
Module	Address			Debug info	Name (93 modules)
PE	  400000-  bcf000	Export          simcity 4
PE	10000000-1009c000	Export          ~df394b.tmp
ELF	7b800000-7b92c000	Deferred        kernel32<elf>
  \-PE	7b820000-7b92c000	\               kernel32
ELF	7bc00000-7bca5000	Deferred        ntdll<elf>
  \-PE	7bc10000-7bca5000	\               ntdll
ELF	7bf00000-7bf03000	Deferred        <wine-loader>
ELF	7d41b000-7d42f000	Deferred        midimap<elf>
  \-PE	7d420000-7d42f000	\               midimap
ELF	7d42f000-7d455000	Deferred        msacm32<elf>
  \-PE	7d440000-7d455000	\               msacm32
ELF	7d455000-7d46c000	Deferred        msacm32<elf>
  \-PE	7d460000-7d46c000	\               msacm32
ELF	7d46c000-7d52f000	Deferred        libasound.so.2
ELF	7d540000-7d576000	Deferred        winealsa<elf>
  \-PE	7d550000-7d576000	\               winealsa
ELF	7d5cd000-7d5ff000	Deferred        uxtheme<elf>
  \-PE	7d5d0000-7d5ff000	\               uxtheme
ELF	7d5ff000-7d608000	Deferred        libxcursor.so.1
ELF	7d608000-7d60d000	Deferred        libxfixes.so.3
ELF	7d60d000-7d610000	Deferred        libxcomposite.so.1
ELF	7d610000-7d616000	Deferred        libxrandr.so.2
ELF	7d616000-7d61e000	Deferred        libxrender.so.1
ELF	7d61e000-7d621000	Deferred        libxinerama.so.1
ELF	7d632000-7d6c3000	Deferred        winex11<elf>
  \-PE	7d640000-7d6c3000	\               winex11
ELF	7d6eb000-7d70c000	Deferred        libexpat.so.1
ELF	7d70c000-7d736000	Deferred        libfontconfig.so.1
ELF	7d736000-7d74b000	Deferred        libz.so.1
ELF	7d74b000-7d7bb000	Deferred        libfreetype.so.6
ELF	7d7bb000-7d7da000	Deferred        imm32<elf>
  \-PE	7d7c0000-7d7da000	\               imm32
ELF	7d7da000-7d802000	Deferred        msvfw32<elf>
  \-PE	7d7e0000-7d802000	\               msvfw32
ELF	7d866000-7d86b000	Deferred        libxdmcp.so.6
ELF	7d86b000-7d876000	Deferred        libgcc_s.so.1
ELF	7d969000-7e47e000	Deferred        libglcore.so.1
ELF	7e47e000-7e496000	Deferred        libxcb.so.1
ELF	7e496000-7e519000	Deferred        libglu.so.1
ELF	7e519000-7e5bd000	Deferred        libgl.so.1
ELF	7e5bd000-7e6a4000	Deferred        libx11.so.6
ELF	7e6a4000-7e6b2000	Deferred        libxext.so.6
ELF	7e6b2000-7e733000	Deferred        opengl32<elf>
  \-PE	7e6d0000-7e733000	\               opengl32
ELF	7e733000-7e747000	Deferred        lz32<elf>
  \-PE	7e740000-7e747000	\               lz32
ELF	7e747000-7e760000	Deferred        version<elf>
  \-PE	7e750000-7e760000	\               version
ELF	7e760000-7e7c0000	Deferred        rpcrt4<elf>
  \-PE	7e770000-7e7c0000	\               rpcrt4
ELF	7e7c0000-7e864000	Deferred        ole32<elf>
  \-PE	7e7d0000-7e864000	\               ole32
ELF	7e864000-7e8f2000	Deferred        winmm<elf>
  \-PE	7e870000-7e8f2000	\               winmm
ELF	7e8f2000-7e93c000	Deferred        dsound<elf>
  \-PE	7e900000-7e93c000	\               dsound
ELF	7e93c000-7e9fb000	Deferred        comctl32<elf>
  \-PE	7e940000-7e9fb000	\               comctl32
ELF	7e9fb000-7eb05000	Deferred        shell32<elf>
  \-PE	7ea10000-7eb05000	\               shell32
ELF	7eb05000-7eb5e000	Deferred        shlwapi<elf>
  \-PE	7eb10000-7eb5e000	\               shlwapi
ELF	7eb5e000-7eb7f000	Deferred        mpr<elf>
  \-PE	7eb60000-7eb7f000	\               mpr
ELF	7eb7f000-7ebcd000	Deferred        wininet<elf>
  \-PE	7eb90000-7ebcd000	\               wininet
ELF	7ebcd000-7ebe0000	Deferred        libresolv.so.2
ELF	7ebf1000-7ec0f000	Deferred        iphlpapi<elf>
  \-PE	7ec00000-7ec0f000	\               iphlpapi
ELF	7ec0f000-7ec3b000	Deferred        ws2_32<elf>
  \-PE	7ec20000-7ec3b000	\               ws2_32
ELF	7ec3b000-7ec55000	Deferred        wsock32<elf>
  \-PE	7ec40000-7ec55000	\               wsock32
ELF	7ec55000-7eca6000	Deferred        advapi32<elf>
  \-PE	7ec60000-7eca6000	\               advapi32
ELF	7eca6000-7ed41000	Deferred        gdi32<elf>
  \-PE	7ecc0000-7ed41000	\               gdi32
ELF	7ed41000-7ee87000	Deferred        user32<elf>
  \-PE	7ed60000-7ee87000	\               user32
ELF	7efa7000-7efb2000	Deferred        libnss_files.so.2
ELF	7efb2000-7efca000	Deferred        libnsl.so.1
ELF	7efca000-7efef000	Deferred        libm.so.6
ELF	7eff3000-7eff6000	Deferred        libxau.so.6
ELF	7eff6000-7f000000	Deferred        libnss_nis.so.2
ELF	f7c70000-f7c72000	Deferred        libnvidia-tls.so.1
ELF	f7c72000-f7c7b000	Deferred        libnss_compat.so.2
ELF	f7c7c000-f7c80000	Deferred        libdl.so.2
ELF	f7c80000-f7dcf000	Deferred        libc.so.6
ELF	f7dd0000-f7de8000	Deferred        libpthread.so.0
ELF	f7de8000-f7dea000	Deferred        libxcb-xlib.so.0
ELF	f7dea000-f7def000	Deferred        libxxf86vm.so.1
ELF	f7df9000-f7f0e000	Deferred        libwine.so.1
ELF	f7f10000-f7f2f000	Deferred        ld-linux.so.2
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) C:\Program Files\Sim City\Apps\SimCity 4.exe
	00000009    0 <==
0000000c 
	0000001c    0
	00000017    0
	00000016    0
	00000013    0
	00000010    0
	0000000e    0
	0000000d    0
00000011 
	00000015    0
	00000014    0
	00000012    0
00000018 
	0000001b    0
	0000001a    0
	00000019    0
0000001d 
	0000001f    0
	0000001e    0
00000020 
	00000024    0
	00000021    0
Backtrace:
=>1 0x0033fa6c (0x0033fa44)
  2 0x10026caf in ~df394b.tmp (+0x26caf) (0x0033fa84)
  3 0x10083dcd in ~df394b.tmp (+0x83dcd) (0x0033faf4)
  4 0x1000332c in ~df394b.tmp (+0x332c) (0x0033fbd4)
  5 0x00bcb3f5 in simcity 4 (+0x7cb3f5) (0x00bcb009)
  6 0x00000118 (0x00704810)
Reece Dunn

Sim City 4 won't start

Post by Reece Dunn »

2008/6/10 kmpgame <[email protected]>:
Now it says this

Code:
wine: cannot find 'C:\Program Files\Maxis\SimCity 4 Deluxe\Apps\SimCity 4.exe'
kevin@kevin-desktop:~$
try: wine "C:\\Program Files\\Maxis\\SimCity 4 Deluxe\\Apps\\SimCity 4.exe"

or alternatively, run: winefile. That will start an explorer-like
program. You can then select the "c:" button at the top, then navigate
to the Sim city directory. Double-clicking on the application will run
it.

HTH,
- Reece
User avatar
dimesio
Moderator
Moderator
Posts: 13209
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

The program crashed at startup for some reason. I have no idea why; it works fine on my system.

Try starting it with this command:

Code: Select all

wine "SimCity 4.exe" -d:software -intro:off
Also, exactly what version of Wine are you using? The latest is 1.0-rc4. If you're using anything older than that, upgrade, because there were some regressions in the previous few versions that affected many games.
kmpgame
Level 1
Level 1
Posts: 9
Joined: Mon Jun 09, 2008 3:35 pm

Post by kmpgame »

That dind't work. my version is 0.9.59
I'll try upgrading
kmpgame
Level 1
Level 1
Posts: 9
Joined: Mon Jun 09, 2008 3:35 pm

Re: Sim City 4 won't start

Post by kmpgame »

Reece Dunn wrote:2008/6/10 kmpgame <[email protected]>:

try: wine "C:\\Program Files\\Maxis\\SimCity 4 Deluxe\\Apps\\SimCity 4.exe"

or alternatively, run: winefile. That will start an explorer-like
program. You can then select the "c:" button at the top, then navigate
to the Sim city directory. Double-clicking on the application will run
it.

HTH,
- Reece
That or updating doesn't seem to work.
I don't know what else there can be done. Any more suggestions?
Locked