Play your Steam library's Windows games on a jailbroken PS5.
C++
Ship a Project Zomboid recipe past its start-up stops
Leonardo Lobato6e4b06e4d7d0
diff --git a/COMPATIBILITY.md b/COMPATIBILITY.mdindex 6034719..1b872f2 100644--- a/COMPATIBILITY.md+++ b/COMPATIBILITY.md@@ -255,6 +255,7 @@ uses: Direct3D 8–11 goes through DXVK to Vulkan, and Direct3D 12 through vkd3d| [MoonLess](https://store.steampowered.com/app/2322060) | ❌ Broken | 0.13 | GameMaker · D3D11 · 64-bit | Crashes right after it opens its window. || [Order of the Sinking Star](https://store.steampowered.com/app/499170) | ❌ Broken | 0.12 | — · D3D12 · vkd3d-proton · 64-bit | vkd3d-proton starts, then the game says it needs a GPU with Direct3D feature level 12_0 and quits. Also after Recreate bottle. ([#95](https://github.com/leolobato/playden-ps5/issues/95), firmware 13.60) || [Overwatch](https://store.steampowered.com/app/2357570) | ❌ Broken | 0.13 | — · D3D12 · 64-bit | Crashes at start. ([#183](https://github.com/leolobato/playden-ps5/pull/183), firmware 13.00) |+| [Project Zomboid](https://store.steampowered.com/app/108600) | ❌ Broken | 0.16 | Java (LWJGL) · OpenGL · 64-bit | Stops about 20 seconds after start: it runs out of open files ([#194](https://github.com/leolobato/playden-ps5/issues/194)). || [Scrap Mechanic](https://store.steampowered.com/app/387990) | ❌ Broken | 0.13 | — | Stops at start because it needs a signed-in Steam session, even for single player: "Steam user must be logged in" with Offline emulation, "SteamAPI_Init() failed" with the game's own files ([#115](https://github.com/leolobato/playden-ps5/issues/115)). ([#156](https://github.com/leolobato/playden-ps5/issues/156), firmware 13.60) || [Severed Steel](https://store.steampowered.com/app/1227690) | ❌ Broken | 0.11 | Unreal 4 · D3D12/D3D11 · 64-bit | The main menu works with the left stick, on Direct3D 12 (vkd3d-proton) and on the *DirectX11 version* entry. Starting the campaign stays on a black screen (the game keeps running, no crash). The default entry starts too: Playden no longer adds `-dx11` next to its `-d3d12`. || [Shin Megami Tensei V: Vengeance Demo](https://store.steampowered.com/app/3185590) | ❌ Broken | 0.12 | Unreal 4 · D3D12 · 64-bit | The game's copy protection (Denuvo) stops it: it crashes inside the protected code about two seconds after start, before any graphics, and returns to the console home screen. Also with Direct3D 12 = **vkd3d-proton**. Tested with the demo. ([#37](https://github.com/leolobato/playden-ps5/issues/37)) |diff --git a/runtime/recipes/recipes.lst b/runtime/recipes/recipes.lstindex 6bc22c6..33eb90f 100644--- a/runtime/recipes/recipes.lst+++ b/runtime/recipes/recipes.lst@@ -5,3 +5,4 @@ steam-35140-arkhamasylum-v1.jsonsteam-200260-arkhamcity-v1.jsonsteam-2640950-scottpilgrimex-v1.jsonsteam-4241920-braziliandrugdealer4-v1.json+steam-108600-projectzomboid-v1.jsondiff --git a/runtime/recipes/steam-108600-projectzomboid-v1.json b/runtime/recipes/steam-108600-projectzomboid-v1.jsonnew file mode 100644index 0000000..b9540b9--- /dev/null+++ b/runtime/recipes/steam-108600-projectzomboid-v1.json@@ -0,0 +1,21 @@+{+ "recipe_id": "steam-108600-projectzomboid-v1",+ "recipe_version": 1,+ "app_id": 108600,+ "name": "Project Zomboid",+ "launch_entries": [+ {"id": "game", "label": "Project Zomboid", "executable": "ProjectZomboid64.exe"}+ ],+ "arguments": "-nosteam",+ "resolution_arguments": "",+ "dll_overrides": "",+ "architecture": "pe64",+ "runtime": "wine-wow64",+ "prefix": "game",+ "graphics": "opengl",+ "defaults": {+ "steam_features": "emulate",+ "windows_version": "win7"+ },+ "locked": []+}diff --git a/tests/game_settings_test.cpp b/tests/game_settings_test.cppindex c2c5253..c04282e 100644--- a/tests/game_settings_test.cpp+++ b/tests/game_settings_test.cpp@@ -1410,6 +1410,22 @@ int main(int argc, char** argv) {CHECK(settings.values.at("steam_features").value == "emulate" && !settings.values.at("graphics").locked);CHECK(settings.launch && settings.launch->executable == "Binaries/Win32/BatmanAC.exe" && settings.arguments.empty());}+ // Project Zomboid: its launcher picks ZGC for Windows 10, which can't reserve its heap on the console, and G1 for+ // Windows 7; LWJGL draws with OpenGL, loaded at run time, so nothing in the files names it; and the launcher quits+ // when the Steam emulator says nobody is signed in, unless the game runs with -nosteam.+ {+ GameRecipe zomboid;+ CHECK(ParseGameRecipe(ReadText(source / "runtime/recipes/steam-108600-projectzomboid-v1.json"), &zomboid, &reason));+ CHECK(zomboid.app_id == 108600 && zomboid.launch_entries.size() == 1 &&+ zomboid.launch_entries[0].executable == "ProjectZomboid64.exe");+ KitCapabilities kit;+ kit.registry = true;+ EffectiveSettings settings;+ SettingsError error;+ CHECK(BuildEffectiveSettings(zomboid, nullptr, {}, kit, &settings, &error));+ CHECK(settings.graphics == "opengl" && settings.architecture == "pe64" && settings.arguments == "-nosteam");+ CHECK(settings.values.at("windows_version").value == "win7" && !settings.values.at("windows_version").locked);+ }CHECK(!ParseSettingsPresets(R"({"presets":[{"id":"x","name":"X","settings":{"graphics":"gdi"}}]})", &presets, &reason));CHECK(!ParseSettingsPresets(R"({"presets":[{"id":"x","name":"X","settings":{"extra_arguments":"-a"}}]})", &presets, &reason));@@ -1443,8 +1459,8 @@ int main(int argc, char** argv) {std::vector<SettingsPreset> loaded_presets;std::vector<GameRecipe> loaded_recipes;CHECK(LoadSettingsData((source / "runtime").string(), &loaded_presets, &loaded_recipes, &reason));- CHECK(loaded_presets.size() == 4 && loaded_recipes.size() == 6 && loaded_recipes.front().app_id == 220 &&- loaded_recipes.back().id == "steam-4241920-braziliandrugdealer4-v1");+ CHECK(loaded_presets.size() == 4 && loaded_recipes.size() == 7 && loaded_recipes.front().app_id == 220 &&+ loaded_recipes.back().id == "steam-108600-projectzomboid-v1");CHECK(!LoadSettingsData((source / "missing").string(), &loaded_presets, &loaded_recipes, &reason));// ApplyGameSettings writes the profile and a Playden dxvk.conf, removes it when nothing is