You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Visual C++ 2015-2022 Redistributable (x86, required for SimCity 4 / 32-bit): `https://aka.ms/vs/17/release/vc_redist.x86.exe`
27
-
- Visual C++ 2015-2022 Redistributable (x64): `https://aka.ms/vs/17/release/vc_redist.x64.exe`
27
+
- Visual C++ 2015-2022 Redistributable (x64, required for the cache builder): `https://aka.ms/vs/17/release/vc_redist.x64.exe`
28
+
- The bundled cache builder is x64-only and requires 64-bit Windows.
28
29
29
30
The installer will:
30
31
31
32
1. Ask for your game root and Plugins directory.
32
33
2. Verify that `SC4RenderServices.dll` is already present in your Plugins folder. If it is missing, the installer will stop and direct you to the SC4RenderServices download page.
33
34
3. Place `SC4PlopAndPaint.dll` and `SC4PlopAndPaint.dat` in your Plugins folder.
34
35
4. Let you choose the thumbnail size used for cache generation and apply the same size to `ThumbnailDisplaySize` in `SC4PlopAndPaint.ini`.
35
-
5. Place `_SC4PlopAndPaintCacheBuilder.exe` and a generated `Rebuild-Cache.ps1` in `Documents\SimCity 4\SC4PlopAndPaint\`.
36
+
5. Place `_SC4PlopAndPaintCacheBuilder.exe` and a generated `Rebuild-Cache.cmd` in `Documents\SimCity 4\SC4PlopAndPaint\`.
36
37
6. Optionally run the cache builder immediately.
37
38
38
-
To rebuild the cache later, for example after adding or removing plugins, run `Rebuild-Cache.ps1`.
39
+
To rebuild the cache later, for example after adding or removing plugins, run `Rebuild-Cache.cmd`.
39
40
40
41
If something looks wrong in game, check the separate services plugin's log output in `Documents\SimCity 4\`.
- x64 (required for the cache builder): https://aka.ms/vs/17/release/vc_redist.x64.exe
15
+
- The bundled cache builder is x64-only and requires 64-bit Windows.
15
16
- Run the included SC4 Plop and Paint installer.
16
17
- The installer will ask for your SimCity 4 game root and Plugins folder, verify the SC4RenderServices dependency, and install the plugin files. If SC4RenderServices is missing, the installer will stop and tell you where to download it.
17
18
- The installer also lets you choose the thumbnail size used for cache generation and sets the same size in SC4PlopAndPaint.ini for the in-game UI.
18
-
- The installer can also run the cache builder for you. If you skip that step, run Rebuild-Cache.ps1 later from Documents\SimCity 4\SC4PlopAndPaint\.
19
+
- The installer can also run the cache builder for you. If you skip that step, run Rebuild-Cache.cmd later from Documents\SimCity 4\SC4PlopAndPaint\.
19
20
- The cache builder scans your game and Plugins folders and writes lots.cbor, props.cbor and flora.cbor into your Plugins folder.
20
21
- If thumbnail rendering is enabled, it also writes lot_thumbnails.bin, prop_thumbnails.bin and flora_thumbnails.bin into your Plugins folder.
Copy file name to clipboardExpand all lines: dist/SC4PlopAndPaintInstaller.nsi
+72-41Lines changed: 72 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -388,6 +388,12 @@ Function ConfigureCachePage
388
388
${NSD_Check}$HCacheBuildNow
389
389
${EndIf}
390
390
391
+
${IfNot}${RunningX64}
392
+
StrCpy$CacheBuildNow"0"
393
+
${NSD_Uncheck}$HCacheBuildNow
394
+
${NSD_CreateLabel} 0u 140u 100% 18u "Cache building is unavailable on this machine. The bundled cache builder requires 64-bit Windows."
395
+
${EndIf}
396
+
391
397
nsDialogs::Show
392
398
FunctionEnd
393
399
@@ -428,6 +434,13 @@ Function ConfigureCachePageLeave
428
434
${Else}
429
435
StrCpy$CacheBuildNow"0"
430
436
${EndIf}
437
+
438
+
${If}$CacheBuildNow=="1"
439
+
${IfNot}${RunningX64}
440
+
MessageBoxMB_OK|MB_ICONEXCLAMATION"Cache building is unavailable on this machine.$\r$\n$\r$\nThe bundled cache builder is 64-bit and requires a 64-bit version of Windows."
441
+
StrCpy$CacheBuildNow"0"
442
+
${EndIf}
443
+
${EndIf}
431
444
FunctionEnd
432
445
433
446
Function PopulateLocaleDropDown
@@ -526,52 +539,69 @@ Section "Install"
526
539
WriteRegDWORDHKCU"${UNINSTALL_KEY}""NoRepair"1
527
540
528
541
; Generate a reusable cache rebuild script with the exact installation settings.
529
-
StrCpy$2"$SC4ToolsDir\Rebuild-Cache.ps1"
542
+
Delete"$SC4ToolsDir\Rebuild-Cache.ps1"
543
+
StrCpy$2"$SC4ToolsDir\Rebuild-Cache.cmd"
530
544
FileOpen$3$2 w
531
-
FileWrite$3"# Auto-generated by ${APP_NAME} installer.$\r$\n"
MessageBoxMB_OK|MB_ICONEXCLAMATION"Cache build was skipped because the bundled cache builder requires 64-bit Windows.$\r$\n$\r$\nYou can still finish installing ${APP_NAME}, but you'll need to build the cache on a 64-bit machine and copy the generated files into your Plugins folder."
MessageBoxMB_ICONEXCLAMATION|MB_YESNO"Cache build failed (exit code: $1). Continue installation anyway?$\r$\n$\r$\nYou can retry later with Rebuild-Cache.cmd in $SC4ToolsDir."IDYES +2
0 commit comments