SC4 Devotion Forum Archives

SimCity 4 Devotion Custom Content Showcase => Network Addon Mod (NAM) => Topic started by: z on March 11, 2013, 03:58:52 AM

Title: Steam and the NAM
Post by: z on March 11, 2013, 03:58:52 AM
As Steam users know, Steam installs SC4 into a different location than the Maxis discs.  It also uses different registry keys to store its information.  The NAM Team would like to make the new NAM completely compatible with the Steam version of SC4.  We already know where in the registry Steam stores the SC4 install path, but I have a couple of further questions that would be very useful to have answered.  For Steam installations of SC4, are the Maxis registry keys simply not present?  If they're present, are they correct?  And specifically, for the Steam version of SC4, where does one find the "Language" value for SC4 in the registry, which is a DWORD containing the numeric value of the language that the game is using?  This value is very important for the NAM, as it is used to determine what side of the road traffic drives on in the NAM.
Title: Re: Steam and the NAM
Post by: Yild on March 11, 2013, 04:16:41 AM
...can't add attachments (or I don't know haw to do it here :P ):

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Maxis]

[HKEY_LOCAL_MACHINE\SOFTWARE\Maxis\SimCity 4]
"CacheSize"=dword:0012434f
"IsDeluxe"=dword:00000001
"SwapSize"=dword:00000000
"DisplayName"="SimCity 4 Deluxe"
"Install Dir"="D:\\steam\\steamapps\\common\\SimCity 4 Deluxe\\"
"Patch URL"="http://simcity.ea.com/update/"
"Product GUID"="somehiddenvaluesbyme"
"region"="NA"
"Registration"="SOFTWARE"
"language"="English US"
"Locale"="en-us"

[HKEY_LOCAL_MACHINE\SOFTWARE\Maxis\SimCity 4\1.0]
"DisplayName"="SimCity 4 Deluxe"
"LanguageName"="English US"
"language"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Maxis\SimCity 4\EP1]
@="somehiddenvaluesbyme"

[HKEY_LOCAL_MACHINE\SOFTWARE\Maxis\SimCity 4\Tools]
"User Group ID"=dword:somehiddenvaluesbyme

Title: Re: Steam and the NAM
Post by: Shadow Assassin on March 11, 2013, 07:13:41 AM
For all intents and purposes, z, the Steam version is identical to the retail SC4 version. The only difference is where it's installed.
Title: Re: Steam and the NAM
Post by: z on March 11, 2013, 03:23:47 PM
Quote from: Yild on March 11, 2013, 04:16:41 AM
...can't add attachments (or I don't know haw to do it here :P ):

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Maxis]...

This is the Maxis version; I need the entries from the Steam version.

Quote from: Shadow Assassin on March 11, 2013, 07:13:41 AM
For all intents and purposes, z, the Steam version is identical to the retail SC4 version. The only difference is where it's installed.

Where it's installed is very important to the NAM installer.  JD already gave me a pointer to that registry entry, but I also need to know where the "Language" value is stored, so that I can make sure that the NAM has the Sims driving on the proper side of the road.
Title: Re: Steam and the NAM
Post by: WC_EEND on March 11, 2013, 03:33:57 PM
If it's any help, steam installs it to <steam install dir here>/Steam/steamapps/common/SimCity 4 Deluxe by default

Xander

edit: for what it's worth, I'm using the steam version of SC4 and the NAM installer recoginised mine correctly and installed correctly as well.
Title: Re: Steam and the NAM
Post by: art128 on March 11, 2013, 03:44:00 PM
Quote from: WC_EEND on March 11, 2013, 03:33:57 PM
If it's any help, steam installs it to <steam install dir here>/Steam/steamapps/common/SimCity 4 Deluxe by default

Xander

edit: for what it's worth, I'm using the steam version of SC4 and the NAM installer recoginised mine correctly and installed correctly as well.

Same here, had no issue with the new NAM.

Just Cleantol that didn't detect the plugin folder as the one on steam but mydoc. Except that the installation went very well, and so far no crashes or anything unusual while using it.
Title: Re: Steam and the NAM
Post by: wouanagaine on March 11, 2013, 03:48:25 PM
Does that means the shortcut to sc4 is using a -userDir to point to the steam folder ?
That is what Z is willing to get , how can we find the folder by code ? is is somewhere on the registery ?
We can use the maxis key to find where steam installed the game, but that doesn't give a clue about your plugins folder :(
Title: Re: Steam and the NAM
Post by: z on March 11, 2013, 05:28:50 PM
Quote from: art128 on March 11, 2013, 03:44:00 PM
Just Cleantol that didn't detect the plugin folder as the one on steam but mydoc. Except that the installation went very well, and so far no crashes or anything unusual while using it.

What's the full path of the Plugins folder that wasn't detected?

According to a listing of registry entries provided by a user on Simtropolis, Steam fills in the Maxis entries with its own values, so getting the information from the Maxis entries should work.  Presumably, Steam does this to be backward-compatible with software such as ours, since it also has its own set of registry entries.
Title: Re: Steam and the NAM
Post by: Yild on March 11, 2013, 10:34:18 PM
Quote from: z on March 11, 2013, 03:23:47 PM
This is the Maxis version; I need the entries from the Steam version.

you think Im stupid, this is steam version (win xp)

Quote from: wouanagaine on March 11, 2013, 03:48:25 PM
We can use the maxis key to find where steam installed the game, but that doesn't give a clue about your plugins folder :(

steam sc4 plugins is exactly where it should be: my documents\simcity 4\plugins
Title: Re: Steam and the NAM
Post by: z on March 12, 2013, 12:17:00 AM
Quote from: Yild on March 11, 2013, 10:34:18 PM
you think Im stupid, this is steam version (win xp)

My apologies; I missed the one mention of "steam" in your list of entries.  Steam also maintains its own registry entries under "HKCU\Software\Valve\Steam", so I was expecting something along those lines.  But apparently it fills in the Maxis standard registry entries as well.

Which leads to the question:  If Steam is filling in the Maxis registry entries properly (as it apparently is, and as one other Steam user has since verified), then why are Steam users having problems with Cleanitol?
Title: Re: Steam and the NAM
Post by: Yild on March 12, 2013, 12:50:29 AM
Quote from: z on March 12, 2013, 12:17:00 AM

Which leads to the question:  If Steam is filling in the Maxis registry entries properly (as it apparently is, and as one other Steam user has since verified), then why are Steam users having problems with Cleanitol?

actually simcity (re)creates this entries if not found in registry - and yes there is another entry \valve\steam but there is only steam app settings, problems... access rights to certain registry branch,  x32/x64 branches, etc.

Title: Re: Steam and the NAM
Post by: TheAttendee on March 12, 2013, 06:45:10 AM
As someone who's been using the Steam version for 2 and a half years, I can say that I've never had a problem with Cleanitol while using it. It's always functioned properly for me on Win7.
Title: Re: Steam and the NAM
Post by: RickD on March 12, 2013, 06:45:24 AM
I can confirm what Yild said. I tried on two PCs with the steam version. Cleanitol had no problem with recognizing both the Maxis and the Plugins directory:

**************************************************
                    R E P O R T
**************************************************
Maxis      : C:\Program Files\Steam\steamapps\common\SimCity 4 Deluxe\plugins
Plugins   : C:\Users\user\Documents\SimCity 4\Plugins
Backup   : C:\Users\user\Documents\SimCity 4\BSC_Cleanitol\20130312_01
\Network Addon Mod\Additional Bridges\Additional Bridges.txt => Additional Bridges.txt
1 files have been moved to C:\Users\user\Documents\SimCity 4\BSC_Cleanitol\20130312_01
This report has also been saved as C:\Users\user\Documents\SimCity 4\BSC_Cleanitol\20130312_01\Cleanitol_result.html
An undo.bat file as been created at C:\Users\user\Documents\SimCity 4\BSC_Cleanitol\20130312_01\undo.bat
Title: Re: Steam and the NAM
Post by: Diggis on March 12, 2013, 07:09:22 AM
Quote from: z on March 12, 2013, 12:17:00 AM
Quote from: Yild on March 11, 2013, 10:34:18 PM
you think Im stupid, this is steam version (win xp)

My apologies; I missed the one mention of "steam" in your list of entries.  Steam also maintains its own registry entries under "HKCU\Software\Valve\Steam", so I was expecting something along those lines.  But apparently it fills in the Maxis standard registry entries as well.

Which leads to the question:  If Steam is filling in the Maxis registry entries properly (as it apparently is, and as one other Steam user has since verified), then why are Steam users having problems with Cleanitol?

Maybe because some steam users have changed their Plugins Path manually?
Title: Re: Steam and the NAM
Post by: z on March 12, 2013, 02:50:33 PM
Quote from: Diggis on March 12, 2013, 07:09:22 AM
Maybe because some steam users have changed their Plugins Path manually?

That does seem to be the most likely explanation.