You are here    Forums    Your creations.    [Script] SimCity 2013 nl sv ru pl es fr

The forum

[Script] SimCity 2013

Author Replies
Jump to the page: 1 - 2 - 3
alcorsepol Saturday 20 July 2013 at 1:51
alcorsepol Anonymous

Description:

This script installs SimCity 2013 according to the following order:

1: Origin
2: SimCity
3: Force kill Origin after installation if needed
4: Lock the IGO32.dll file in the Origin folder

It creates an icon for Origin and for SimCity

Extra notes:

This script is highly experimental at the moment, but as it is now it gets the job done (most of the time, although crashes still occur). There are a few things you need to know before running it.

1: To get past a bug in Origin, I need to run the setup with taskset, but I couldn't figure out how to do that with POL_Wine, so this is what I'm doing at the moment

[code language=playonlinux]
taskset -c 0 wine start /unix "$CDROM/Setup.exe"
[/code]

If anyone has a suggestion on how to solve that the POL way, then please let me know.

2: Because of yet another nasty thing about Origin, when installing the game the installer might hang on "Installing" (most of the times I tried it did this), and thus the script will have to solve it for you. Although the script can solve it successfully, the Origin client will then go into an "Update mode" where it might hang there instead, and it wont let you close Origin, which you must to continue the installation script. I solved this by letting the user press next so that the script will attempt to force Origin to close. This works most of the time, but sometimes renders the installation broken if the force close was done too early (or something along those lines).

3: I'm still testing the script several times a day with different setups and configs, to find the most optimal solution, so the script might change many times. But if anyones has any suggestions on how to make it better, then please do share! :-)

4: If the game doesn't start when the installation is finished (or any other time), make sure that the game and Origin are both properly closed before you start the game, as the can hang around in the background sometimes and screw things up.


5: The same problem that the installer has, is currently bugging Origin when starting the game after installation as well (related to point 4). There is a race condition that crashed the game 4/5 attempts, so currently you just have to brute force it to start, or wait until I have a solution for that problem. One solution would be to make the game start with taskset, so if anyone know how to do that in the latest version of POL, then I would be grateful if someone could tell me :D ... something like InsertBeforeWine could work no?

6: Points 4 and 5 are kind of solved by adding the following to the script after the shortcuts have been created.

[code language=playonlinux]
POL_Shortcut_InsertBeforeWine "$TITLE" 'taskset -pc 0 $$'
POL_Shortcut_InsertBeforeWine "Origin - $TITLE" 'taskset -pc 0 $$'
[/code]

The problem with this is that it makes the game run a bit slow (but still playable. I'm playing it like this at the moment). If you want it to go faster then you have to remove those line and go back to brute forcing the game to start (usually takes about 4-5 times to start like that, but sometimes it takes up to 20 attempts, so it's not very reliable).

Other solution to this problem is welcome.

7: Another thing I came to think about, is that when you run it via the "reliable but slow" shortcut, the game will take a veeeeeeery long time to patch, up to 30 minutes or so (mine gets stuck at 60% for a long time). And if you manage to run it via the "unreliable but fast" shortcut it will patch much faster (but might still take some time). So if you can run it via the unreliable option, then you should do so.



Anyway, happy testing!

Script updated: 2013-07-20 / 02:27
[code language=playonlinux]
# Date : (2013-07-19)
# Last revision : (2013-07-20)
# Wine version used : 1.6-rc2
# Distribution used to test : xUbuntu 13.10
# Author : Jimmy Ramsmark
# Licence : GPLv3
 
# This script was tested using the DVD version of `SimCity 2013'
# Bought in Sweden 2013
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="SimCity 2013"
AUTHOR="Jimmy Ramsmark"
PREFIX="SimCity"
WORKINGWINEVERSION="1.6-rc2"
 
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "Maxis" "http://www.simcity.com/" "$AUTHOR" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"

# Let the user select a DVD
POL_SetupWindow_cdrom
 
# Check if this DVD is the SimCity 2013 DVD
POL_SetupWindow_check_cdrom "SimCity.zip"

# Set and install the correct Wine version
POL_Wine_PrefixCreate "$WORKINGWINEVERSION"

# Run installer
taskset -c 0 wine start /unix "$CDROM/Setup.exe"

POL_SetupWindow_message "$(eval_gettext 'When Origin starts, login so that the installation of SimCity can start.\\nWhen the installation is finished, press next.\\n\\n!IMPORTANT! If the installer gets stuck on installing for a very long time without anything happening, then set a timer for 5 minutes and then press next when the timer reaches 0, the script will then try to fix it for you\\n')" "$TITLE"

#We need to make sure that this bastard gets killed
COUNT_PROXY=$(ps aux | grep -c EAProxyInstaller.exe)

if [ "$COUNT_PROXY" -gt 1 ]; then
    killall EAProxyInstaller.exe
fi

POL_SetupWindow_message "$(eval_gettext 'Please close Origin now (If the game is uppdating successfully then let it finish, but if it it hangs then continue), and then press next (If you can not close it, just press next and the script will attempt to close it for you)\\n')" "$TITLE"

#Kill Origin so that the script can continue
killall Origin.exe

# Need to block Origin from using this file, since it breaks the game.
# And if we just remove it, Origin will just replace it with a new one.
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Origin"
rm IGO32.dll
touch IGO32.dll
chmod 000 IGO32.dll

# Create shortcuts
POL_Shortcut "SimCity.exe" "$TITLE" "" "" "Game;"
POL_Shortcut "Origin.exe" "Origin - $TITLE" "" "" "Game;"

# Temporary fix for the race condition bug in Origin that ruins everything
# This makes the game a lot slower though, so not sure if it's worth it
POL_Shortcut_InsertBeforeWine "$TITLE" 'taskset -pc 0 $$'
POL_Shortcut_InsertBeforeWine "Origin - $TITLE" 'taskset -pc 0 $$'

POL_SetupWindow_message "$(eval_gettext 'Installation finished!\\n\\n When you start the game, Origin might act a bit funky at times, but just continue like you didnt see it')" "$TITLECOMPLETE"
POL_SetupWindow_Close
exit 0
[/code]

Edited by alcorsepol

alcorsepol Tuesday 23 July 2013 at 20:29
alcorsepol Anonymous

If anyone has an answer to the tasket issue with POL_Wine, then I would greatly appreciate it ^^
petch Tuesday 23 July 2013 at 21:00
petch
Developer

I don't know of another way of setting cpu affinity than taskset (or similar like schedtool, but I think taskset is the most standard under Linux now), and I already used it in a few scripts (Enclave, Unreal 2, Beyond Good and Evil).
By starting wineserver explicitly it is also possible to run just wineserver, or just the game, on a single core.

Indeed that's Linux specific, so there's probably some room for abstracting that away in PoL/PoM...
alcorsepol Tuesday 23 July 2013 at 21:14
alcorsepol Anonymous

So do you mean to say that there is a solution already in POL, or that one could be added? ;)

Since I guess as the script is right now, I can't submit it to be signed?
petch Tuesday 23 July 2013 at 21:33
petch
Developer

There's already a few scripts using taskset, and no better solution for now. That's not the only problem you had with automating this installation though. Origin sucks big time under Linux, it's not very amendable to automation.

Don't know if it could be useful for you, but starting with PlayOnLinux 4.0.16, POL_Wine_WaitExit "$TITLE" also accepts --allow-kill at the end, allowing the user to forcefully close the Wine session...

Edited by petch

steve723 Thursday 25 July 2013 at 0:08
steve723 Anonymous

I need to download the game from Origin so, I won't be able to test this until you get that working as I bought it through origin as preorder so, it needs to be downloaded via origin.

Microprocessor = Intel I7 Quad core 4G RAM DDR@2 Kubuntu 14.04 Trusty Tar NVIDIA GTX 280 OC, Driver = 340.24.
Ronin DUSETTE Thursday 25 July 2013 at 0:12
Ronin DUSETTE
Admin

Yeah. This will probably be a huge pain in the arse to get working, just from the looks of it. Im going to finish downloading it later (I already bought it) to see if I can get it to work.

www.dusette.net
alcorsepol Thursday 25 July 2013 at 0:50
alcorsepol Anonymous

To answer some stuff from the other thread:

1: Yes they fixed most of the huge bugs from the start (I have been playing it constantly since they managed to fix all the server crashed they had during the first weeks), but I lost my Windows license a little while ago so I had a paus. Now I got it working under Linux though so I'm playing again.

2: There is a fix for the download bug, but it sucks at the moment, so will have to figure out a way to work around that.

3: The install script actually works very well and has worked everytime for me now when I have been reinstalling and testing to find any errors, although it needs the DVD to work. I'm planning to add some experimental stuff soon to let the script support downloading the game, although that might be very buggy, it's still worth a shot.

Oh and if anyone feels like it, I would be very happy to play in a zone together =) ... just say the word! (I already have a zone going with a friend, and we have a few slots left open).
steve723 Thursday 25 July 2013 at 1:24
steve723 Anonymous

I tried this script http://www.playonlinux.com/en/topic-8920-Script_Origin.html, to see if I could get origin working so I could download Simcity 2013. I tried it before but that was before I fixed up my system. Origin decided to be a pain but, after I switched the wine version to 1.5.28-Origin, I was able to download and install the game. When I tried to play it it showed the Simcity Window and gave a wine crash report. I would post that but I can't find where it got saved. Maybe looking at the other script would give a clue how to get Origin working for download here. Since each game might need different things in the VD then we need a seperate script for each which is why I'm not suprised it eventually failed.

Edited by steve723


Microprocessor = Intel I7 Quad core 4G RAM DDR@2 Kubuntu 14.04 Trusty Tar NVIDIA GTX 280 OC, Driver = 340.24.
steve723 Saturday 27 July 2013 at 2:10
steve723 Anonymous


Oh and if anyone feels like it, I would be very happy to play in a zone together =) ... just say the word! (I already have a zone going with a friend, and we have a few slots left open).

Quote from alcorsepol


I have been playing SimCity since Simcity first came out way back 1980 something.  I know some things so, I would be willing to play with you but, first I need to be able to download and install from Origin as I don't have the disk and pre-ordered via Origin.

Microprocessor = Intel I7 Quad core 4G RAM DDR@2 Kubuntu 14.04 Trusty Tar NVIDIA GTX 280 OC, Driver = 340.24.
steve723 Sunday 28 July 2013 at 7:30
steve723 Anonymous

I tried to modify this script to let the user download Origin to install Simcity from Origin. It works as far as downloading, installing and loging on to your Origin account. It dosn't ever seem to finish initilizing so the user can't yet install Simcity. I think its a pretty good try for a beginner at POL scripting. Here is the script. Maybe someone can get further with it.

#!/bin/bash
# Date : (2013-07-19)
# Last revision : (2013-07-20)
# Wine version used : 1.6-rc2
# Distribution used to test : xUbuntu 13.10
# Author : Jimmy Ramsmark
# Licence : GPLv3

# This script was tested using the DVD version of `SimCity 2013'
# Bought in Sweden 2013

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="SimCity 2013"
AUTHOR="Jimmy Ramsmark"
PREFIX="SimCity"
WORKINGWINEVERSION="1.6-rc2"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Maxis" "http://www.simcity.com/" "$AUTHOR" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"

# Modified to add Origin download support by Steven Wilson useing Origin script by GNU_Raziel
POL_SetupWindow_InstallMethod "DVD,ORIGIN"

if [ "$INSTALL_METHOD" = "DVD" ]; then

# Let the user select a DVD
POL_SetupWindow_cdrom

# Check if this DVD is the SimCity 2013 DVD
POL_SetupWindow_check_cdrom "SimCity.zip"

# Set and install the correct Wine version
POL_Wine_PrefixCreate "$WORKINGWINEVERSION"

# Run installer
taskset -c 0 wine start /unix "$CDROM/Setup.exe"

#Origin method
elif [ "$INSTALL_METHOD" = "ORIGIN" ]; then

# Set and install the correct Wine version
POL_Wine_PrefixCreate "$WORKINGWINEVERSION"

# Installing Origin
# Downloading latest Origin
cd "$POL_USER_ROOT/tmp/"
POL_Download "https://download.dm.origin.com/origin/live/OriginSetup.exe" ""
 
cd "$POL_USER_ROOT/tmp/"
POL_Wine start /unix "OriginSetup.exe"
POL_Wine_WaitExit "$TITLE"

fi

POL_SetupWindow_message "$(eval_gettext 'When Origin starts, login so that the installation of SimCity can start.\\nWhen the installation is finished, press next.\\n\\n!IMPORTANT! If the installer gets stuck on installing for a very long time without anything happening, then set a timer for 5 minutes and then press next when the timer reaches 0, the script will then try to fix it for you\\n')" "$TITLE"

#We need to make sure that this bastard gets killed
COUNT_PROXY=$(ps aux | grep -c EAProxyInstaller.exe)

if [ "$COUNT_PROXY" -gt 1 ]; then
killall EAProxyInstaller.exe
fi

POL_SetupWindow_message "$(eval_gettext 'Please close Origin now (If the game is uppdating successfully then let it finish, but if it it hangs then continue), and then press next (If you can not close it, just press next and the script will attempt to close it for you)\\n')" "$TITLE"

#Kill Origin so that the script can continue
killall Origin.exe

# Need to block Origin from using this file, since it breaks the game.
# And if we just remove it, Origin will just replace it with a new one.
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Origin"
rm IGO32.dll
touch IGO32.dll
chmod 000 IGO32.dll

# Create shortcuts
POL_Shortcut "SimCity.exe" "$TITLE" "" "" "Game;"
POL_Shortcut "Origin.exe" "Origin - $TITLE" "" "" "Game;"

# Temporary fix for the race condition bug in Origin that ruins everything
# This makes the game a lot slower though, so not sure if it's worth it
POL_Shortcut_InsertBeforeWine "$TITLE" 'taskset -pc 0 $$'
POL_Shortcut_InsertBeforeWine "Origin - $TITLE" 'taskset -pc 0 $$'

POL_SetupWindow_message "$(eval_gettext 'Installation finished!\\n\\n When you start the game, Origin might act a bit funky at times, but just continue like you didnt see it')" "$TITLECOMPLETE"
POL_SetupWindow_Close
e                              xit 0

This is what happened

[07/27/13 22:16:34] - Running wine-1.6-rc2 --version (Working directory : /home/steve7233/.PlayOnLinux)
wine-1.6-rc2

PlayOnLinux logfile
-------------------
Date: 07/27/13 22:16:34

> PlayOnLinux Version
  4.2.1
> uname -a
  Linux steve7233-HP-Pavilion-dv6-Notebook-PC 3.8.0-26-generic #38-Ubuntu SMP Mon Jun 17 21:43:33 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
> lsb_release -a
 
> wine --version
  wine-1.6-rc2
> POL_WINEVERSION
  1.6-rc2
> WINEPREFIX
  /home/steve7233/.PlayOnLinux//wineprefix/SimCity
> Distribution
  Ubuntu 13.04
> glxinfo \\| grep rendering
  direct rendering: Yes
> glxinfo \\| grep renderer
  OpenGL renderer string: Mesa DRI Mobile Intel® GM45 Express Chipset
> OpenGL libs (Direct rendering testing)
  32bits direct rendering is enabled
  64bits direct rendering is enabled

[07/27/13 22:16:46] - Running wine-1.6-rc2 cmd /c echo %ProgramFiles% (Working directory : /home/steve7233/.PlayOnLinux)
C:\\Program Files
[07/27/13 22:17:42] - Running wine-1.6-rc2 start /unix OriginSetup.exe (Working directory : /home/steve7233/.PlayOnLinux/tmp)
fixme:shell:SHAutoComplete stub
fixme:clusapi:GetNodeClusterState ((null),0x33eb74) stub!
fixme:advapi:DecryptFileA ("c:\\\\a6106aa43c0d73cf31a8daf94afeda\\\\", 00000000): stub
fixme:advapi:RegisterTraceGuidsW (0x6cd15f38, 0x6cd20180, {e2821408-c59d-418f-ad3f-aa4e792aeb79}, 1, 0x33fc90, (null), (null), 0x6cd20188,): stub
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
fixme:process:SetProcessDEPPolicy (1): stub
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
fixme:thread:SetThreadStackGuarantee (0x33fb58): stub
fixme:advapi:LsaOpenPolicy ((null),0x33f454,0x00000001,0x33f47c) stub
fixme:advapi:LsaClose (0xcafe) stub
fixme:storage:create_storagefile Storage share mode not implemented.
fixme:advapi:LsaOpenPolicy ((null),0x33f2a4,0x00000001,0x33f2cc) stub
fixme:advapi:LsaClose (0xcafe) stub
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
fixme:ieframe:PersistStreamInit_InitNew (0x14fd18)
fixme:ieframe:OleObject_Advise (0x14fd18)->(0x7633e4, 0x76343c)
fixme:ieframe:ViewObject_SetAdvise (0x14fd18)->(1 00000000 0x7633e4)
fixme:ieframe:ViewObject_Draw (0x14fd18)->(1 -1 (nil) (nil) (nil) 0x1c0033 0x763454 0x763454 (nil) 00000000)
fixme:urlmon:URLMoniker_BindToObject use running object table
fixme:iphlpapi:NotifyAddrChange (Handle 0x143e8d0, overlapped 0x143e8dc): stub
fixme:imm:ImmReleaseContext (0x2008e, 0x1291238): stub
fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046}
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
fixme:ieframe:BrowserService_GetTravelLog 0x151120 0x959c48
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 84 of CGID_ShellDocView
fixme:ieframe:ClOleCommandTarget_QueryStatus (0x14fdcc)->((null) 1 0x959c0c (nil))
fixme:ieframe:ClOleCommandTarget_QueryStatus command_0: 27, 0x0
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 25
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 26
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 37 of CGID_ShellDocView
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 84 of CGID_ShellDocView
fixme:ieframe:ClientSite_GetContainer (0x14fdcc)->(0x959c2c)
fixme:mshtml:nsChannel_GetContentDisposition (0x2324fc0)->(0x95933c)
fixme:mshtml:nsChannel_GetContentDispositionHeader (0x2324fc0)->(0x958b64)
fixme:ieframe:ClientSite_GetContainer (0x14fdcc)->(0x95ab0c)
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 25
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 26
fixme:ieframe:DocHostUIHandler_GetDropTarget (0x14fdcc)
fixme:advapi:RegisterTraceGuidsW (0x6ad1b4b0, 0x231a6a8, {509962e0-406b-46f4-99ba-5a009f8d2225}, 3, 0x128b008, (null), (null), 0x231a6d8,): stub
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 69 of CGID_Explorer
fixme:ieframe:PropertyNotifySink_OnChanged unimplemented dispid 1005
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 69 of CGID_Explorer
fixme:win:EnumDisplayDevicesW ((null),0,0x95b014,0x00000000), stub!
fixme:resource:GetGuiResources (0xffffffff,0): stub
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 26
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 103 of CGID_ShellDocView
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 2315 of group {de4ba900-59ca-11cf-9592-444553540000}
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 35
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 28
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
fixme:system:SetProcessDPIAware stub!
fixme:thread:SetThreadIdealProcessor (0x1b4): stub
fixme:ole:CoInitializeSecurity ((nil),-1,(nil),(nil),0,3,(nil),0,(nil)) - stub!
fixme:wbemprox:client_security_SetBlanket 0x7d3626c0, 0x156f60, 10, 0, (null), 3, 3, (nil), 0x00000000
fixme:wbemprox:client_security_Release 0x7d3626c0
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
fixme:win:EnumDisplayDevicesW ((null),0,0x23dd878,0x00000000), stub!
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
fixme:winhttp:WinHttpDetectAutoProxyConfigUrl discovery via DHCP not supported
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:toolhelp:Heap32ListFirst : stub
fixme:msg:ChangeWindowMessageFilter 4a 00000001
fixme:msg:ChangeWindowMessageFilter 112 00000001
fixme:msg:ChangeWindowMessageFilter 4a 00000001
fixme:msg:ChangeWindowMessageFilter 112 00000001
fixme:msg:ChangeWindowMessageFilter 4a 00000001
fixme:msg:ChangeWindowMessageFilter 112 00000001
fixme:msg:ChangeWindowMessageFilter 4a 00000001
fixme:msg:ChangeWindowMessageFilter 112 00000001
fixme:msg:ChangeWindowMessageFilter 4a 00000001
fixme:msg:ChangeWindowMessageFilter 112 00000001
err:module:import_dll Library QtSvg4.dll (which is needed by L"C:\\\\Program Files\\\\Origin\\\\imageformats\\\\qsvg4.dll") not found
fixme:msg:ChangeWindowMessageFilter 4a 00000001
fixme:msg:ChangeWindowMessageFilter 112 00000001
fixme:msg:ChangeWindowMessageFilter 4a 00000001
fixme:msg:ChangeWindowMessageFilter 112 00000001
fixme:msg:ChangeWindowMessageFilter 4a 00000001
fixme:msg:ChangeWindowMessageFilter 112 00000001
fixme:msg:ChangeWindowMessageFilter c094 00000001
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
fixme:msg:ChangeWindowMessageFilter 4a 00000001
fixme:msg:ChangeWindowMessageFilter 112 00000001
fixme:systray:wine_notify_icon unhandled tray message: 4
fixme:msg:ChangeWindowMessageFilter 4a 00000001
fixme:msg:ChangeWindowMessageFilter 112 00000001
fixme:msg:ChangeWindowMessageFilter 4a 00000001
fixme:msg:ChangeWindowMessageFilter 112 00000001
fixme:win:FlashWindowEx 0x33c664
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
fixme:msg:ChangeWindowMessageFilter 4a 00000001
fixme:msg:ChangeWindowMessageFilter 112 00000001
fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046}
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
fixme:imm:NotifyIME IMC_SETCANDIDATEPOS
fixme:imm:ImmReleaseContext (0x300aa, 0x2c065d8): stub
fixme:imm:NotifyIME IMC_SETCANDIDATEPOS
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
fixme:imm:NotifyIME IMC_SETCANDIDATEPOS
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
fixme:imm:NotifyIME IMC_SETCANDIDATEPOS
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
fixme:win:EnumDisplayDevicesW ((null),0,0xdb4e218,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0xdb4e1e8,0x00000000), stub!
fixme:msg:ChangeWindowMessageFilter 4a 00000001
fixme:msg:ChangeWindowMessageFilter 112 00000001
fixme:win:FlashWindowEx 0x33c414
fixme:msg:ChangeWindowMessageFilter 4a 00000001
fixme:msg:ChangeWindowMessageFilter 112 00000001
fixme:msg:ChangeWindowMessageFilter 4a 00000001
fixme:msg:ChangeWindowMessageFilter 112 00000001
fixme:msg:ChangeWindowMessageFilter 4a 00000001
fixme:msg:ChangeWindowMessageFilter 112 00000001
fixme:msg:ChangeWindowMessageFilter 4a 00000001
fixme:msg:ChangeWindowMessageFilter 112 00000001
fixme:msg:ChangeWindowMessageFilter 4a 00000001
fixme:msg:ChangeWindowMessageFilter 112 00000001
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
fixme:msg:ChangeWindowMessageFilter 4a 00000001
fixme:msg:ChangeWindowMessageFilter 112 00000001
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17
fixme:win:FlashWindowEx 0x33cc34
fixme:msg:ChangeWindowMessageFilter 4a 00000001
fixme:msg:ChangeWindowMessageFilter 112 00000001
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:CoGetClassObject class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
err:ole:create_server class {dcb00c01-570f-4a9b-8d69-199fdba5723b} not registered
fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
err:ole:CoGetClassObject no class object {dcb00c01-570f-4a9b-8d69-199fdba5723b} could be created for context 0x17

Edited by steve723


Microprocessor = Intel I7 Quad core 4G RAM DDR@2 Kubuntu 14.04 Trusty Tar NVIDIA GTX 280 OC, Driver = 340.24.
steve723 Sunday 28 July 2013 at 8:27
steve723 Anonymous

I relized I forgot to add a block of code to add dependances like vcrun2010. I found that changing to wine version 1.5.28 -Origin worked better.

Microprocessor = Intel I7 Quad core 4G RAM DDR@2 Kubuntu 14.04 Trusty Tar NVIDIA GTX 280 OC, Driver = 340.24.
steve723 Sunday 28 July 2013 at 19:49
steve723 Anonymous

It works! Well sort of you have to fidle with a bit of manule stuff. After you get Origin installed and log on you have to close it then make a short cut to run Origin. Start Origin then goto games then select Simcity 2013 and down load it now you can let the script continue. It hangs after installing but, just do what the script says and the script will finish. After the script told me to close origin, I did that then removed the short cut to run Origin. Be care full not to delete the VD or you will have to start over. Let the script continue to the end. Now go injoy Simcity. I am updating now.

Hey alcorsepol, you wanna play together?

#!/bin/bash
# Date : (2013-07-19)
# Last revision : (2013-07-20)
# Wine version used : 1.6-rc2
# Distribution used to test : xUbuntu 13.10
# Author : Jimmy Ramsmark
# Licence : GPLv3
 
# This script was tested using the DVD version of `SimCity 2013'
# Bought in Sweden 2013
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="SimCity 2013"
AUTHOR="Jimmy Ramsmark"
PREFIX="SimCity"
WORKINGWINEVERSION="1.5.28-Origin"
 
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "Maxis" "http://www.simcity.com/" "$AUTHOR" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"

# Modified to add Origin download support by Steven Wilson useing Origin script by GNU_Raziel
POL_SetupWindow_InstallMethod "DVD,ORIGIN"

if [ "$INSTALL_METHOD" = "DVD" ]; then

# Let the user select a DVD
POL_SetupWindow_cdrom
 
# Check if this DVD is the SimCity 2013 DVD
POL_SetupWindow_check_cdrom "SimCity.zip"

# Set and install the correct Wine version
POL_Wine_PrefixCreate "$WORKINGWINEVERSION"
 
# Run installer
taskset -c 0 wine start /unix "$CDROM/Setup.exe"

#Origin method
elif [ "$INSTALL_METHOD" = "ORIGIN" ]; then

# Set and install the correct Wine version
POL_Wine_PrefixCreate "$WORKINGWINEVERSION"

# Installing mandatory dependencies
POL_Wine_InstallFonts
POL_Function_FontsSmoothRGB
POL_Call POL_Install_wininet # Fix EA Connexion's issue 1
POL_Call POL_Install_vcrun2010

# Installing Origin
# Downloading latest Origin
cd "$POL_USER_ROOT/tmp/"
POL_Download "https://download.dm.origin.com/origin/live/OriginSetup.exe" ""
 
cd "$POL_USER_ROOT/tmp/"
POL_Wine start /unix "OriginSetup.exe"
POL_Wine_WaitExit "$TITLE"

fi

POL_SetupWindow_message "$(eval_gettext 'When Origin starts, login so that the installation of SimCity can start.\\nWhen the installation is finished, press next.\\n\\n!IMPORTANT! If the installer gets stuck on installing for a very long time without anything happening, then set a timer for 5 minutes and then press next when the timer reaches 0, the script will then try to fix it for you\\n')" "$TITLE"
 
#We need to make sure that this bastard gets killed
COUNT_PROXY=$(ps aux | grep -c EAProxyInstaller.exe)
 
if [ "$COUNT_PROXY" -gt 1 ]; then
    killall EAProxyInstaller.exe
fi
 
POL_SetupWindow_message "$(eval_gettext 'Please close Origin now (If the game is uppdating successfully then let it finish, but if it it hangs then continue), and then press next (If you can not close it, just press next and the script will attempt to close it for you)\\n')" "$TITLE"
 
#Kill Origin so that the script can continue
killall Origin.exe
 
# Need to block Origin from using this file, since it breaks the game.
# And if we just remove it, Origin will just replace it with a new one.
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Origin"
rm IGO32.dll
touch IGO32.dll
chmod 000 IGO32.dll
 
# Create shortcuts
POL_Shortcut "SimCity.exe" "$TITLE" "" "" "Game;"
POL_Shortcut "Origin.exe" "Origin - $TITLE" "" "" "Game;"
 
# Temporary fix for the race condition bug in Origin that ruins everything
# This makes the game a lot slower though, so not sure if it's worth it
POL_Shortcut_InsertBeforeWine "$TITLE" 'taskset -pc 0 $$'
POL_Shortcut_InsertBeforeWine "Origin - $TITLE" 'taskset -pc 0 $$'
 
POL_SetupWindow_message "$(eval_gettext 'Installation finished!\\n\\n When you start the game, Origin might act a bit funky at times, but just continue like you didnt see it')" "$TITLECOMPLETE"
POL_SetupWindow_Close
e                        xit 0#!/bin/bash
# Date : (2013-07-19)
# Last revision : (2013-07-20)
# Wine version used : 1.6-rc2
# Distribution used to test : xUbuntu 13.10
# Author : Jimmy Ramsmark
# Licence : GPLv3
 
# This script was tested using the DVD version of `SimCity 2013'
# Bought in Sweden 2013
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="SimCity 2013"
AUTHOR="Jimmy Ramsmark"
PREFIX="SimCity"
WORKINGWINEVERSION="1.5.28-Origin"
 
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "Maxis" "http://www.simcity.com/" "$AUTHOR" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"

# Modified to add Origin download support by Steven Wilson useing Origin script by GNU_Raziel
POL_SetupWindow_InstallMethod "DVD,ORIGIN"

if [ "$INSTALL_METHOD" = "DVD" ]; then

# Let the user select a DVD
POL_SetupWindow_cdrom
 
# Check if this DVD is the SimCity 2013 DVD
POL_SetupWindow_check_cdrom "SimCity.zip"

# Set and install the correct Wine version
POL_Wine_PrefixCreate "$WORKINGWINEVERSION"
 
# Run installer
taskset -c 0 wine start /unix "$CDROM/Setup.exe"

#Origin method
elif [ "$INSTALL_METHOD" = "ORIGIN" ]; then

# Set and install the correct Wine version
POL_Wine_PrefixCreate "$WORKINGWINEVERSION"

# Installing mandatory dependencies
POL_Wine_InstallFonts
POL_Function_FontsSmoothRGB
POL_Call POL_Install_wininet # Fix EA Connexion's issue 1
POL_Call POL_Install_vcrun2010

# Installing Origin
# Downloading latest Origin
cd "$POL_USER_ROOT/tmp/"
POL_Download "https://download.dm.origin.com/origin/live/OriginSetup.exe" ""
 
cd "$POL_USER_ROOT/tmp/"
POL_Wine start /unix "OriginSetup.exe"
POL_Wine_WaitExit "$TITLE"

fi

POL_SetupWindow_message "$(eval_gettext 'When Origin starts, login so that the installation of SimCity can start.\\nWhen the installation is finished, press next.\\n\\n!IMPORTANT! If the installer gets stuck on installing for a very long time without anything happening, then set a timer for 5 minutes and then press next when the timer reaches 0, the script will then try to fix it for you\\n')" "$TITLE"
 
#We need to make sure that this bastard gets killed
COUNT_PROXY=$(ps aux | grep -c EAProxyInstaller.exe)
 
if [ "$COUNT_PROXY" -gt 1 ]; then
    killall EAProxyInstaller.exe
fi
 
POL_SetupWindow_message "$(eval_gettext 'Please close Origin now (If the game is uppdating successfully then let it finish, but if it it hangs then continue), and then press next (If you can not close it, just press next and the script will attempt to close it for you)\\n')" "$TITLE"
 
#Kill Origin so that the script can continue
killall Origin.exe
 
# Need to block Origin from using this file, since it breaks the game.
# And if we just remove it, Origin will just replace it with a new one.
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Origin"
rm IGO32.dll
touch IGO32.dll
chmod 000 IGO32.dll
 
# Create shortcuts
POL_Shortcut "SimCity.exe" "$TITLE" "" "" "Game;"
POL_Shortcut "Origin.exe" "Origin - $TITLE" "" "" "Game;"
 
# Temporary fix for the race condition bug in Origin that ruins everything
# This makes the game a lot slower though, so not sure if it's worth it
POL_Shortcut_InsertBeforeWine "$TITLE" 'taskset -pc 0 $$'
POL_Shortcut_InsertBeforeWine "Origin - $TITLE" 'taskset -pc 0 $$'
 
POL_SetupWindow_message "$(eval_gettext 'Installation finished!\\n\\n When you start the game, Origin might act a bit funky at times, but just continue like you didnt see it')" "$TITLECOMPLETE"
POL_SetupWindow_Close
e                        xit 0

Need to fix automatic game download and when messages are dispayed. It works for Origin download.

Edited by steve723


Microprocessor = Intel I7 Quad core 4G RAM DDR@2 Kubuntu 14.04 Trusty Tar NVIDIA GTX 280 OC, Driver = 340.24.
steve723 Sunday 28 July 2013 at 21:13
steve723 Anonymous

The game plays but after selecting a server and waiting for the green arrow to light up then clicking on it, you have wait a while then it says it's loading Summer Shoals. After waiting a long time you can finally play. I hope they are having server problems and that it's not a wine issue.

Microprocessor = Intel I7 Quad core 4G RAM DDR@2 Kubuntu 14.04 Trusty Tar NVIDIA GTX 280 OC, Driver = 340.24.
steve723 Sunday 28 July 2013 at 21:31
steve723 Anonymous

I just did a search for alcorsepol in Origin but got zero results. Are you using a different name?

Microprocessor = Intel I7 Quad core 4G RAM DDR@2 Kubuntu 14.04 Trusty Tar NVIDIA GTX 280 OC, Driver = 340.24.
steve723 Monday 29 July 2013 at 0:14
steve723 Anonymous

I turned down some graphics settings and now it runs faster. I guess wine dosn't run the game very well so the FPS is lousy. Hopefully POL can improve that some. I am already making over 600 simoleans per hour. I started a new city to see if they improved the game start since the worst launch of a computer game since the PC was invented back in 1981! I know, I was a teenager then.

Microprocessor = Intel I7 Quad core 4G RAM DDR@2 Kubuntu 14.04 Trusty Tar NVIDIA GTX 280 OC, Driver = 340.24.
Ronin DUSETTE Monday 29 July 2013 at 3:19
Ronin DUSETTE
Admin

POL can only do so much. Its really up to the wine devs to get stuff like this set up. I have noticed that a LOT of stuff is running great through wine 1.6.

www.dusette.net
steve723 Monday 29 July 2013 at 3:52
steve723 Anonymous

POL can only do so much. Its really up to the wine devs to get stuff like this set up. I have noticed that a LOT of stuff is running great through wine 1.6.

Quote from DJYoshaBYD


Do you think adjusting the Display tab setings in config would help? Maybe Direct Draw Renderer to opengl?

Microprocessor = Intel I7 Quad core 4G RAM DDR@2 Kubuntu 14.04 Trusty Tar NVIDIA GTX 280 OC, Driver = 340.24.
steve723 Monday 29 July 2013 at 5:40
steve723 Anonymous

POL can only do so much. Its really up to the wine devs to get stuff like this set up. I have noticed that a LOT of stuff is running great through wine 1.6.

Quote from DJYoshaBYD


I tried wine 1.6 and it runs much better.

Microprocessor = Intel I7 Quad core 4G RAM DDR@2 Kubuntu 14.04 Trusty Tar NVIDIA GTX 280 OC, Driver = 340.24.
steve723 Monday 29 July 2013 at 6:38
steve723 Anonymous

The game just died. It completetly aborted with no error message.

Even the debug log is no help with this strange stopage.

[07/28/13 20:33:57] - Running wine-1.6 SimCity.exe (Working directory : /home/steve7233/.PlayOnLinux/wineprefix/SimCity/drive_c/Program Files/Origin Games/SimCity/SimCity)
wine: configuration in '/home/steve7233/.PlayOnLinux//wineprefix/SimCity' has been updated.

Edited by steve723


Microprocessor = Intel I7 Quad core 4G RAM DDR@2 Kubuntu 14.04 Trusty Tar NVIDIA GTX 280 OC, Driver = 340.24.