From 38901722c81c8968a17942166005b4bd21501e7e Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Sun, 8 Sep 2019 14:37:17 +0200 Subject: [PATCH 01/31] Update script.js --- Applications/Games/Space Engineers/Steam/script.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index d7ce0b08dd..f340267ee4 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -2,26 +2,24 @@ const SteamScript = include("engines.wine.quick_script.steam_script"); include("engines.wine.verbs.dotnet472"); include("engines.wine.verbs.vcrun2017"); include("engines.wine.verbs.dxvk"); -include("engines.wine.verbs.faudio"); include("engines.wine.plugins.override_dll"); new SteamScript() .name("Space Engineers") .editor("Keen Software House") .author("Zemogiter") - .appId("244850") - .wineVersion("4.14") + .appId(244850) + .wineVersion("4.15") .wineDistribution("upstream") .wineArchitecture("amd64") .preInstall(function (wine, wizard) { wine.dotnet472(); wine.vcrun2017(); wine.DXVK(); - wine.faudio(); wine.overrideDLL() - .set("native, builtin", ["msvcr120", "xaudio2_0", "xaudio2_1", "xaudio2_2", "xaudio2_3", "xaudio2_4", "xaudio2_5", "xaudio2_6", "xaudio2_7", "xaudio2_8", "xaudio2_9", "x3daudio1_3", "x3daudio1_4", "x3daudio1_5", "x3daudio1_6", "x3daudio1_7"]) + .set("native, builtin", ["msvcr120"]) .do(); wizard.message(tr("You have to install libjpeg62 and libjpeg62-dev or else the thumbnails in New Game menu will be dispalyed as magenta rectangles.")); - wizard.message(tr("Due to JIT compiler issues and the way this game uses multithreating, there are audio stutters. This script will attempt to minimize them but you might also have to enter the alsoft-conf command in terminal and set sample depth to 32bit float and period size to 2048.")); + wizard.message(tr("Due to JIT compiler issues and the way this game uses multithreating, there are audio stutters. To minimize those, download the libFAudio package from this PPA:\nhttps://launchpad.net/~cybermax-dexter/+archive/ubuntu/sdl2-backport")); }) .executable("Steam.exe", ["-silent", "-applaunch", "244850", "-no-cef-sandbox", "-skipintro"]) From c4063b02f98dcf5df021d7e185a2cd0271dd53ea Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Tue, 10 Sep 2019 10:14:19 +0200 Subject: [PATCH 02/31] Update script.js --- Applications/Games/Space Engineers/Steam/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index f340267ee4..17ad219922 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -20,6 +20,6 @@ new SteamScript() .set("native, builtin", ["msvcr120"]) .do(); wizard.message(tr("You have to install libjpeg62 and libjpeg62-dev or else the thumbnails in New Game menu will be dispalyed as magenta rectangles.")); - wizard.message(tr("Due to JIT compiler issues and the way this game uses multithreating, there are audio stutters. To minimize those, download the libFAudio package from this PPA:\nhttps://launchpad.net/~cybermax-dexter/+archive/ubuntu/sdl2-backport")); + wizard.message(tr("Due to JIT compiler issues and the way this game uses multithreating, there are audio stutters. To minimize those (assuming you are on a Debian-based Linux distribution), download the libFAudio package from this PPA:\nhttps://launchpad.net/~cybermax-dexter/+archive/ubuntu/sdl2-backport")); }) .executable("Steam.exe", ["-silent", "-applaunch", "244850", "-no-cef-sandbox", "-skipintro"]) From f8d24e522aa8b9792a1f269f355c55392f15450e Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Wed, 11 Sep 2019 21:15:37 +0200 Subject: [PATCH 03/31] Update script.js Turns out you don't need the dev package. --- Applications/Games/Space Engineers/Steam/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 17ad219922..31a7012a38 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -19,7 +19,7 @@ new SteamScript() wine.overrideDLL() .set("native, builtin", ["msvcr120"]) .do(); - wizard.message(tr("You have to install libjpeg62 and libjpeg62-dev or else the thumbnails in New Game menu will be dispalyed as magenta rectangles.")); + wizard.message(tr("You have to install libjpeg62 package or else the thumbnails in New Game menu will be dispalyed as magenta rectangles.")); wizard.message(tr("Due to JIT compiler issues and the way this game uses multithreating, there are audio stutters. To minimize those (assuming you are on a Debian-based Linux distribution), download the libFAudio package from this PPA:\nhttps://launchpad.net/~cybermax-dexter/+archive/ubuntu/sdl2-backport")); }) .executable("Steam.exe", ["-silent", "-applaunch", "244850", "-no-cef-sandbox", "-skipintro"]) From 50b98e4b296bd6bb5800f89c2c6fc44245618897 Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Fri, 20 Sep 2019 18:08:21 +0200 Subject: [PATCH 04/31] Update script.js Using more standard const names and redid the faudio message to fit more scenarios. --- Applications/Games/Space Engineers/Steam/script.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 7f4ad81d3d..dcbe2752a5 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -1,6 +1,6 @@ const SteamScript = include("engines.wine.quick_script.steam_script"); -const DotNET472 = include("engines.wine.verbs.dotnet472"); -const Vcrun2017 = include("engines.wine.verbs.vcrun2017"); +const dotnet472 = include("engines.wine.verbs.dotnet472"); +const vcrun2017 = include("engines.wine.verbs.vcrun2017"); const DXVK = include("engines.wine.verbs.dxvk"); include("engines.wine.plugins.override_dll"); @@ -14,13 +14,13 @@ new SteamScript() .wineDistribution("upstream") .wineArchitecture("amd64") .preInstall(function (wine, wizard) { - new DotNET472(wine).go(); - new Vcrun2017(wine).go(); + new dotnet472(wine).go(); + new vcrun2017(wine).go(); new DXVK(wine).go(); wine.overrideDLL() .set("native, builtin", ["msvcr120"]) .do(); wizard.message(tr("You have to install libjpeg62 package or else the thumbnails in New Game menu will be dispalyed as magenta rectangles.")); - wizard.message(tr("Due to JIT compiler issues and the way this game uses multithreating, there are audio stutters. To minimize those (assuming you are on a Debian-based Linux distribution), download the libFAudio package from this PPA:\nhttps://launchpad.net/~cybermax-dexter/+archive/ubuntu/sdl2-backport")); + wizard.message(tr("Due to JIT compiler issues and the way this game uses multithreating, there are audio stutters. If you are on a Debian-based distribution you can try the libFAudio package from this PPA:\nhttps://launchpad.net/~cybermax-dexter/+archive/ubuntu/sdl2-backport")); }) .executable("Steam.exe", ["-silent", "-applaunch", "244850", "-no-cef-sandbox", "-skipintro"]); From 6c60528f641513da56e9bfa1ddafdf9a8029d40c Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Fri, 4 Oct 2019 12:36:15 +0200 Subject: [PATCH 05/31] Update script.js --- Applications/Games/Space Engineers/Steam/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 006aaf811b..9717e3f4b4 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -3,6 +3,7 @@ const dotnet472 = include("engines.wine.verbs.dotnet472"); const vcrun2017 = include("engines.wine.verbs.vcrun2017"); const DXVK = include("engines.wine.verbs.dxvk"); const OverrideDLL = include("engines.wine.plugins.override_dll"); +const wizard = wine.wizard(); new SteamScript() @@ -13,7 +14,7 @@ new SteamScript() .wineVersion("4.15") .wineDistribution("upstream") .wineArchitecture("amd64") - .preInstall(function (wine, wizard) { + .preInstall(function (wine) { new dotnet472(wine).go(); new vcrun2017(wine).go(); new DXVK(wine).go(); From d33f6c34ccba7ce5639631db1b21196710305ec3 Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Fri, 4 Oct 2019 12:50:22 +0200 Subject: [PATCH 06/31] Update script.js --- Applications/Games/Space Engineers/Steam/script.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 9717e3f4b4..f37048d281 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -3,8 +3,6 @@ const dotnet472 = include("engines.wine.verbs.dotnet472"); const vcrun2017 = include("engines.wine.verbs.vcrun2017"); const DXVK = include("engines.wine.verbs.dxvk"); const OverrideDLL = include("engines.wine.plugins.override_dll"); -const wizard = wine.wizard(); - new SteamScript() .name("Space Engineers") @@ -15,6 +13,7 @@ new SteamScript() .wineDistribution("upstream") .wineArchitecture("amd64") .preInstall(function (wine) { + const wizard = wine.wizard(); new dotnet472(wine).go(); new vcrun2017(wine).go(); new DXVK(wine).go(); From 01282f758a7f86a2b01927ae55d7a4e6c50dc35c Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Fri, 1 Nov 2019 12:17:06 +0100 Subject: [PATCH 07/31] Update script.js Added a DXVK config file to disable NVAPI workarround for extra performance with mods. --- Applications/Games/Space Engineers/Steam/script.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 1fc2cbcf82..1058a191f1 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -3,6 +3,7 @@ const dotnet472 = include("engines.wine.verbs.dotnet472"); const vcrun2017 = include("engines.wine.verbs.vcrun2017"); const DXVK = include("engines.wine.verbs.dxvk"); const OverrideDLL = include("engines.wine.plugins.override_dll"); +const { touch, writeToFile } = include("utils.functions.filesystem.files"); new SteamScript() .name("Space Engineers") @@ -20,7 +21,11 @@ new SteamScript() new OverrideDLL(wine) .withMode("native, builtin", ["msvcr120"]) .go(); + const dxvkConfigFile = wine.prefixDirectory() + "/drive_c/dxvk.conf"; + touch(dxvkConfigFile); + writeToFile(dxvkConfigFile, "dxgi.nvapiHack = False"); wizard.message(tr("You have to install libjpeg62 package or else the thumbnails in New Game menu will be dispalyed as magenta rectangles.")); wizard.message(tr("Due to JIT compiler issues and the way this game uses multithreating, there are audio stutters. If you are on a Debian-based distribution you can try the libFAudio package from this PPA:\nhttps://launchpad.net/~cybermax-dexter/+archive/ubuntu/sdl2-backport")); }) .executable("Steam.exe", ["-silent", "-applaunch", "244850", "-no-cef-sandbox", "-skipintro"]); + .environment('{"DXVK_CONFIG_FILE": "configFile"}') From e93ad5a7861c80d26c6656093cc32958a665a59d Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Sun, 10 Nov 2019 09:20:46 +0100 Subject: [PATCH 08/31] Update script.js --- Applications/Games/Space Engineers/Steam/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 1058a191f1..9361499317 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -10,7 +10,7 @@ new SteamScript() .editor("Keen Software House") .author("Zemogiter") .appId(244850) - .wineVersion("4.18") + .wineVersion("4.19") .wineDistribution("upstream") .wineArchitecture("amd64") .preInstall(function (wine) { @@ -27,5 +27,5 @@ new SteamScript() wizard.message(tr("You have to install libjpeg62 package or else the thumbnails in New Game menu will be dispalyed as magenta rectangles.")); wizard.message(tr("Due to JIT compiler issues and the way this game uses multithreating, there are audio stutters. If you are on a Debian-based distribution you can try the libFAudio package from this PPA:\nhttps://launchpad.net/~cybermax-dexter/+archive/ubuntu/sdl2-backport")); }) - .executable("Steam.exe", ["-silent", "-applaunch", "244850", "-no-cef-sandbox", "-skipintro"]); + .executable("Steam.exe", ["-silent", "-applaunch", "244850", "-no-cef-sandbox", "-skipintro"]) .environment('{"DXVK_CONFIG_FILE": "configFile"}') From 17ec66a57625dbbf6b2ae05ffdfefc24aa78ef51 Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Sun, 17 Nov 2019 16:35:08 +0100 Subject: [PATCH 09/31] Update script.js --- Applications/Games/Space Engineers/Steam/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 9361499317..61d109e00c 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -10,7 +10,7 @@ new SteamScript() .editor("Keen Software House") .author("Zemogiter") .appId(244850) - .wineVersion("4.19") + .wineVersion("4.20") .wineDistribution("upstream") .wineArchitecture("amd64") .preInstall(function (wine) { From 4303a6a87e7734dce6e3b8d898dfb806ef78c553 Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Tue, 24 Dec 2019 16:53:06 +0100 Subject: [PATCH 10/31] Update script.js Changed the 1st message, updated wine version. --- Applications/Games/Space Engineers/Steam/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 61d109e00c..77687c2d93 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -10,7 +10,7 @@ new SteamScript() .editor("Keen Software House") .author("Zemogiter") .appId(244850) - .wineVersion("4.20") + .wineVersion("5.0-rc1") .wineDistribution("upstream") .wineArchitecture("amd64") .preInstall(function (wine) { @@ -24,7 +24,7 @@ new SteamScript() const dxvkConfigFile = wine.prefixDirectory() + "/drive_c/dxvk.conf"; touch(dxvkConfigFile); writeToFile(dxvkConfigFile, "dxgi.nvapiHack = False"); - wizard.message(tr("You have to install libjpeg62 package or else the thumbnails in New Game menu will be dispalyed as magenta rectangles.")); + wizard.message(tr("You may have to install libjpeg62 package if you see thumbnails in New Game menu dispalyed as magenta rectangles.")); wizard.message(tr("Due to JIT compiler issues and the way this game uses multithreating, there are audio stutters. If you are on a Debian-based distribution you can try the libFAudio package from this PPA:\nhttps://launchpad.net/~cybermax-dexter/+archive/ubuntu/sdl2-backport")); }) .executable("Steam.exe", ["-silent", "-applaunch", "244850", "-no-cef-sandbox", "-skipintro"]) From cf9220b8cfbae62c22d85b3681ef67da2a2d6e7e Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Tue, 24 Dec 2019 16:55:09 +0100 Subject: [PATCH 11/31] Update script.js Part of disabling the nvapi workaround. --- Applications/Games/Space Engineers/Steam/script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 77687c2d93..352e277bcf 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -20,6 +20,7 @@ new SteamScript() new DXVK(wine).go(); new OverrideDLL(wine) .withMode("native, builtin", ["msvcr120"]) + .withMode("disabled", ["nvapi", "nvapi64"]) .go(); const dxvkConfigFile = wine.prefixDirectory() + "/drive_c/dxvk.conf"; touch(dxvkConfigFile); From 1046714c4ede5c41fd4df9eaff95244fee46caf0 Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Sun, 29 Dec 2019 11:07:58 +0100 Subject: [PATCH 12/31] Update script.js --- Applications/Games/Space Engineers/Steam/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 352e277bcf..8c5f830e3e 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -13,7 +13,7 @@ new SteamScript() .wineVersion("5.0-rc1") .wineDistribution("upstream") .wineArchitecture("amd64") - .preInstall(function (wine) { + .preInstall((wine) => { const wizard = wine.wizard(); new dotnet472(wine).go(); new vcrun2017(wine).go(); From 84ff3f16959e133b0e703165736a065949c0db22 Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Thu, 2 Jan 2020 16:22:40 +0100 Subject: [PATCH 13/31] Update script.js Automatic latest dev wine version retrieval. --- Applications/Games/Space Engineers/Steam/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 8c5f830e3e..e841e92452 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -4,13 +4,14 @@ const vcrun2017 = include("engines.wine.verbs.vcrun2017"); const DXVK = include("engines.wine.verbs.dxvk"); const OverrideDLL = include("engines.wine.plugins.override_dll"); const { touch, writeToFile } = include("utils.functions.filesystem.files"); +const { getLatestDevelopmentVersion } = include("engines.wine.engine.versions"); new SteamScript() .name("Space Engineers") .editor("Keen Software House") .author("Zemogiter") .appId(244850) - .wineVersion("5.0-rc1") + .wineVersion(getLatestDevelopmentVersion) .wineDistribution("upstream") .wineArchitecture("amd64") .preInstall((wine) => { From a7cd5d59e41316c7b955a92a17ad8a3a72cb3b72 Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Thu, 2 Jan 2020 18:55:14 +0100 Subject: [PATCH 14/31] Update script.js Added new environmental values. --- Applications/Games/Space Engineers/Steam/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index e841e92452..5ebf0e38d0 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -30,4 +30,4 @@ new SteamScript() wizard.message(tr("Due to JIT compiler issues and the way this game uses multithreating, there are audio stutters. If you are on a Debian-based distribution you can try the libFAudio package from this PPA:\nhttps://launchpad.net/~cybermax-dexter/+archive/ubuntu/sdl2-backport")); }) .executable("Steam.exe", ["-silent", "-applaunch", "244850", "-no-cef-sandbox", "-skipintro"]) - .environment('{"DXVK_CONFIG_FILE": "configFile"}') + .environment('{"DXVK_CONFIG_FILE": "configFile", "STAGING_SHARED_MEMORY": "0", "DXVK_HUD": "compiler"}') From fd589bdaab199fe0e406dc55e9cf860c9c2ab743 Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Fri, 3 Jan 2020 12:32:55 +0100 Subject: [PATCH 15/31] Update script.js --- Applications/Games/Space Engineers/Steam/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 5ebf0e38d0..364cfbf9b1 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -30,4 +30,4 @@ new SteamScript() wizard.message(tr("Due to JIT compiler issues and the way this game uses multithreating, there are audio stutters. If you are on a Debian-based distribution you can try the libFAudio package from this PPA:\nhttps://launchpad.net/~cybermax-dexter/+archive/ubuntu/sdl2-backport")); }) .executable("Steam.exe", ["-silent", "-applaunch", "244850", "-no-cef-sandbox", "-skipintro"]) - .environment('{"DXVK_CONFIG_FILE": "configFile", "STAGING_SHARED_MEMORY": "0", "DXVK_HUD": "compiler"}') + .environment('{"DXVK_CONFIG_FILE": "configFile", "STAGING_SHARED_MEMORY": "0", "DXVK_HUD": "compiler", "PULSE_LATENCY_MSEC" = "60"}') From 324eadaccd21b9f0e5cc9d1298b3e8668b79ea28 Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Fri, 3 Jan 2020 12:38:31 +0100 Subject: [PATCH 16/31] Update script.js --- Applications/Games/Space Engineers/Steam/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 364cfbf9b1..049e32072e 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -30,4 +30,4 @@ new SteamScript() wizard.message(tr("Due to JIT compiler issues and the way this game uses multithreating, there are audio stutters. If you are on a Debian-based distribution you can try the libFAudio package from this PPA:\nhttps://launchpad.net/~cybermax-dexter/+archive/ubuntu/sdl2-backport")); }) .executable("Steam.exe", ["-silent", "-applaunch", "244850", "-no-cef-sandbox", "-skipintro"]) - .environment('{"DXVK_CONFIG_FILE": "configFile", "STAGING_SHARED_MEMORY": "0", "DXVK_HUD": "compiler", "PULSE_LATENCY_MSEC" = "60"}') + .environment('{"DXVK_CONFIG_FILE": "configFile", "STAGING_SHARED_MEMORY": "0", "DXVK_HUD": "compiler", "PULSE_LATENCY_MSEC": "60"}') From bde966f82d7b29733eda4e2a6ff19dc9555249ed Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Fri, 3 Jan 2020 13:24:18 +0100 Subject: [PATCH 17/31] Update script.js Included a env value for esync. --- Applications/Games/Space Engineers/Steam/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 049e32072e..675e950bb0 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -30,4 +30,4 @@ new SteamScript() wizard.message(tr("Due to JIT compiler issues and the way this game uses multithreating, there are audio stutters. If you are on a Debian-based distribution you can try the libFAudio package from this PPA:\nhttps://launchpad.net/~cybermax-dexter/+archive/ubuntu/sdl2-backport")); }) .executable("Steam.exe", ["-silent", "-applaunch", "244850", "-no-cef-sandbox", "-skipintro"]) - .environment('{"DXVK_CONFIG_FILE": "configFile", "STAGING_SHARED_MEMORY": "0", "DXVK_HUD": "compiler", "PULSE_LATENCY_MSEC": "60"}') + .environment('{"DXVK_CONFIG_FILE": "configFile", "STAGING_SHARED_MEMORY": "0", "DXVK_HUD": "compiler", "PULSE_LATENCY_MSEC" = "60", "WINEESYNC" = "1"}') From 5b469ae69cb336f5fb1625ee989d48a021bf724a Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Fri, 3 Jan 2020 22:37:46 +0100 Subject: [PATCH 18/31] Update script.js --- Applications/Games/Space Engineers/Steam/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 675e950bb0..10a66d7ea7 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -30,4 +30,4 @@ new SteamScript() wizard.message(tr("Due to JIT compiler issues and the way this game uses multithreating, there are audio stutters. If you are on a Debian-based distribution you can try the libFAudio package from this PPA:\nhttps://launchpad.net/~cybermax-dexter/+archive/ubuntu/sdl2-backport")); }) .executable("Steam.exe", ["-silent", "-applaunch", "244850", "-no-cef-sandbox", "-skipintro"]) - .environment('{"DXVK_CONFIG_FILE": "configFile", "STAGING_SHARED_MEMORY": "0", "DXVK_HUD": "compiler", "PULSE_LATENCY_MSEC" = "60", "WINEESYNC" = "1"}') + .environment('{"DXVK_CONFIG_FILE": "configFile", "STAGING_SHARED_MEMORY": "0", "DXVK_HUD": "compiler", "PULSE_LATENCY_MSEC": "60", "WINEESYNC": "1"}') From f51200b8057e1c91d899fca26531169dd210558c Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Fri, 3 Jan 2020 22:52:09 +0100 Subject: [PATCH 19/31] Update script.js --- Applications/Games/Space Engineers/Steam/script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 10a66d7ea7..107e585368 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -2,6 +2,7 @@ const SteamScript = include("engines.wine.quick_script.steam_script"); const dotnet472 = include("engines.wine.verbs.dotnet472"); const vcrun2017 = include("engines.wine.verbs.vcrun2017"); const DXVK = include("engines.wine.verbs.dxvk"); +const xact = include("engines.wine.verbs.xact"); const OverrideDLL = include("engines.wine.plugins.override_dll"); const { touch, writeToFile } = include("utils.functions.filesystem.files"); const { getLatestDevelopmentVersion } = include("engines.wine.engine.versions"); @@ -19,6 +20,7 @@ new SteamScript() new dotnet472(wine).go(); new vcrun2017(wine).go(); new DXVK(wine).go(); + new xact(wine).go(); new OverrideDLL(wine) .withMode("native, builtin", ["msvcr120"]) .withMode("disabled", ["nvapi", "nvapi64"]) From 9cdf1cf16df1464211987a4ecd67a9d489c6b005 Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Sun, 12 Jan 2020 14:55:33 +0100 Subject: [PATCH 20/31] Update script.js --- Applications/Games/Space Engineers/Steam/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 107e585368..8990e56523 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -32,4 +32,4 @@ new SteamScript() wizard.message(tr("Due to JIT compiler issues and the way this game uses multithreating, there are audio stutters. If you are on a Debian-based distribution you can try the libFAudio package from this PPA:\nhttps://launchpad.net/~cybermax-dexter/+archive/ubuntu/sdl2-backport")); }) .executable("Steam.exe", ["-silent", "-applaunch", "244850", "-no-cef-sandbox", "-skipintro"]) - .environment('{"DXVK_CONFIG_FILE": "configFile", "STAGING_SHARED_MEMORY": "0", "DXVK_HUD": "compiler", "PULSE_LATENCY_MSEC": "60", "WINEESYNC": "1"}') + .environment('{"DXVK_CONFIG_FILE": "dxvkConfigFile", "STAGING_SHARED_MEMORY": "0", "DXVK_HUD": "compiler", "PULSE_LATENCY_MSEC": "60", "WINEESYNC": "1"}') From e30a5d37a936609c229da3a1f19864a651758456 Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Tue, 14 Jan 2020 12:57:48 +0100 Subject: [PATCH 21/31] Update script.js --- Applications/Games/Space Engineers/Steam/script.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 8990e56523..c4305ad5e9 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -32,4 +32,8 @@ new SteamScript() wizard.message(tr("Due to JIT compiler issues and the way this game uses multithreating, there are audio stutters. If you are on a Debian-based distribution you can try the libFAudio package from this PPA:\nhttps://launchpad.net/~cybermax-dexter/+archive/ubuntu/sdl2-backport")); }) .executable("Steam.exe", ["-silent", "-applaunch", "244850", "-no-cef-sandbox", "-skipintro"]) - .environment('{"DXVK_CONFIG_FILE": "dxvkConfigFile", "STAGING_SHARED_MEMORY": "0", "DXVK_HUD": "compiler", "PULSE_LATENCY_MSEC": "60", "WINEESYNC": "1"}') + .environment((wine) => { + const dxvkConfigFile = wine.prefixDirectory() + "/drive_c/dxvk.conf"; + + return '{"DXVK_CONFIG_FILE": "dxvkConfigFile", "STAGING_SHARED_MEMORY": "0", "DXVK_HUD": "compiler", "PULSE_LATENCY_MSEC": "60", "WINEESYNC": "1"}'; + }) From 7c105106b0962a8f0847a3d27e08dcb47d9a7d69 Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Tue, 14 Jan 2020 13:03:01 +0100 Subject: [PATCH 22/31] Update script.js --- Applications/Games/Space Engineers/Steam/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index c4305ad5e9..c7b12e6628 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -35,5 +35,5 @@ new SteamScript() .environment((wine) => { const dxvkConfigFile = wine.prefixDirectory() + "/drive_c/dxvk.conf"; - return '{"DXVK_CONFIG_FILE": "dxvkConfigFile", "STAGING_SHARED_MEMORY": "0", "DXVK_HUD": "compiler", "PULSE_LATENCY_MSEC": "60", "WINEESYNC": "1"}'; + return '{"DXVK_CONFIG_FILE": "${dxvkConfigFile}", "STAGING_SHARED_MEMORY": "0", "DXVK_HUD": "compiler", "PULSE_LATENCY_MSEC": "60", "WINEESYNC": "1"}'; }) From 1f2ebae0730463f67b6fcd30fd88221a1b1f0dcf Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Tue, 14 Jan 2020 13:05:05 +0100 Subject: [PATCH 23/31] Update script.js Trailing spaces removal --- Applications/Games/Space Engineers/Steam/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index c7b12e6628..2ad921ba41 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -34,6 +34,6 @@ new SteamScript() .executable("Steam.exe", ["-silent", "-applaunch", "244850", "-no-cef-sandbox", "-skipintro"]) .environment((wine) => { const dxvkConfigFile = wine.prefixDirectory() + "/drive_c/dxvk.conf"; - + return '{"DXVK_CONFIG_FILE": "${dxvkConfigFile}", "STAGING_SHARED_MEMORY": "0", "DXVK_HUD": "compiler", "PULSE_LATENCY_MSEC": "60", "WINEESYNC": "1"}'; }) From 79cedc2abb494787a4f013c1b53801f1af6bc69b Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Thu, 6 Feb 2020 21:42:31 +0100 Subject: [PATCH 24/31] Update script.js DXVK documentation uses `=` characters not `:` --- Applications/Games/Space Engineers/Steam/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 2ad921ba41..441ccf3eb3 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -35,5 +35,5 @@ new SteamScript() .environment((wine) => { const dxvkConfigFile = wine.prefixDirectory() + "/drive_c/dxvk.conf"; - return '{"DXVK_CONFIG_FILE": "${dxvkConfigFile}", "STAGING_SHARED_MEMORY": "0", "DXVK_HUD": "compiler", "PULSE_LATENCY_MSEC": "60", "WINEESYNC": "1"}'; + return '{"DXVK_CONFIG_FILE"="${dxvkConfigFile}", "STAGING_SHARED_MEMORY"="0", "DXVK_HUD"="compiler", "PULSE_LATENCY_MSEC"="60", "WINEESYNC"="1"}'; }) From a6ea88074da4f5f69b88748627f441e9cc4ca430 Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Thu, 6 Feb 2020 23:26:49 +0100 Subject: [PATCH 25/31] Update script.js codacy fix --- Applications/Games/Space Engineers/Steam/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 441ccf3eb3..1c75b5b753 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -35,5 +35,5 @@ new SteamScript() .environment((wine) => { const dxvkConfigFile = wine.prefixDirectory() + "/drive_c/dxvk.conf"; - return '{"DXVK_CONFIG_FILE"="${dxvkConfigFile}", "STAGING_SHARED_MEMORY"="0", "DXVK_HUD"="compiler", "PULSE_LATENCY_MSEC"="60", "WINEESYNC"="1"}'; + return '{"DXVK_CONFIG_FILE"="dxvkConfigFile", "STAGING_SHARED_MEMORY"="0", "DXVK_HUD"="compiler", "PULSE_LATENCY_MSEC"="60", "WINEESYNC"="1"}'; }) From 2a57699e67af9251dff3a415c610e5c25c3d3c79 Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Thu, 6 Feb 2020 23:34:33 +0100 Subject: [PATCH 26/31] Update script.js --- Applications/Games/Space Engineers/Steam/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 1c75b5b753..efb5afc4f9 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -35,5 +35,5 @@ new SteamScript() .environment((wine) => { const dxvkConfigFile = wine.prefixDirectory() + "/drive_c/dxvk.conf"; - return '{"DXVK_CONFIG_FILE"="dxvkConfigFile", "STAGING_SHARED_MEMORY"="0", "DXVK_HUD"="compiler", "PULSE_LATENCY_MSEC"="60", "WINEESYNC"="1"}'; + return '{"DXVK_CONFIG_FILE"=dxvkConfigFile, "STAGING_SHARED_MEMORY"="0", "DXVK_HUD"="compiler", "PULSE_LATENCY_MSEC"="60", "WINEESYNC"="1"}'; }) From bc0a40d25259e771215e052e5de5038a392106f8 Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Thu, 6 Feb 2020 23:55:41 +0100 Subject: [PATCH 27/31] Update script.js --- Applications/Games/Space Engineers/Steam/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index efb5afc4f9..1c75b5b753 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -35,5 +35,5 @@ new SteamScript() .environment((wine) => { const dxvkConfigFile = wine.prefixDirectory() + "/drive_c/dxvk.conf"; - return '{"DXVK_CONFIG_FILE"=dxvkConfigFile, "STAGING_SHARED_MEMORY"="0", "DXVK_HUD"="compiler", "PULSE_LATENCY_MSEC"="60", "WINEESYNC"="1"}'; + return '{"DXVK_CONFIG_FILE"="dxvkConfigFile", "STAGING_SHARED_MEMORY"="0", "DXVK_HUD"="compiler", "PULSE_LATENCY_MSEC"="60", "WINEESYNC"="1"}'; }) From 80bc90782b35eade8402e730ca89ca9ca4f8af0a Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Mon, 6 Apr 2020 12:19:01 +0200 Subject: [PATCH 28/31] Update script.js Using proper json format --- Applications/Games/Space Engineers/Steam/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 1c75b5b753..f0870d7332 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -35,5 +35,5 @@ new SteamScript() .environment((wine) => { const dxvkConfigFile = wine.prefixDirectory() + "/drive_c/dxvk.conf"; - return '{"DXVK_CONFIG_FILE"="dxvkConfigFile", "STAGING_SHARED_MEMORY"="0", "DXVK_HUD"="compiler", "PULSE_LATENCY_MSEC"="60", "WINEESYNC"="1"}'; + return '{"DXVK_CONFIG_FILE": "dxvkConfigFile", "STAGING_SHARED_MEMORY": "0", "DXVK_HUD": "compiler", "PULSE_LATENCY_MSEC": "60", "WINEESYNC": "1"}'; }) From 01f4d926fc21d5eb5fb7d01f6a4c36fa3879c778 Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Mon, 25 Jan 2021 00:20:37 +0100 Subject: [PATCH 29/31] Update script.js --- .../Games/Space Engineers/Steam/script.js | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index f626095237..ff33b5af47 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -1,6 +1,7 @@ const SteamScript = include("engines.wine.quick_script.steam_script"); -const dotnet472 = include("engines.wine.verbs.dotnet472"); -const vcrun2017 = include("engines.wine.verbs.vcrun2017"); + +const DotNET472 = include("engines.wine.verbs.dotnet472"); +const Vcrun2017 = include("engines.wine.verbs.vcrun2017"); const DXVK = include("engines.wine.verbs.dxvk"); const xact = include("engines.wine.verbs.xact"); const OverrideDLL = include("engines.wine.plugins.override_dll"); @@ -11,31 +12,26 @@ new SteamScript() .name("Space Engineers") .editor("Keen Software House") .author("Zemogiter") - .appId(244850) + .appId("244850") .wineVersion(getLatestDevelopmentVersion) .wineDistribution("upstream") .wineArchitecture("amd64") .preInstall((wine) => { - const wizard = wine.wizard(); - new dotnet472(wine).go(); - new vcrun2017(wine).go(); + new DotNET472(wine).go(); + new Vcrun2017(wine).go(); new DXVK(wine).go(); - new xact(wine).go(); + new OverrideDLL(wine) .withMode("native, builtin", ["msvcr120"]) .withMode("disabled", ["nvapi", "nvapi64"]) .go(); + const dxvkConfigFile = wine.prefixDirectory() + "/drive_c/dxvk.conf"; touch(dxvkConfigFile); writeToFile(dxvkConfigFile, "dxgi.nvapiHack = False"); wizard.message(tr("You may have to install libjpeg62 package if you see thumbnails in New Game menu dispalyed as magenta rectangles.")); wizard.message(tr("Due to JIT compiler issues and the way this game uses multithreating, there are audio stutters. If you are on a Debian-based distribution you can try the libFAudio package from this PPA:\nhttps://launchpad.net/~cybermax-dexter/+archive/ubuntu/sdl2-backport")); - }) - .executable("Steam.exe", ["-silent", "-applaunch", "244850", "-no-cef-sandbox", "-skipintro"]) - .environment((wine) => { - const dxvkConfigFile = wine.prefixDirectory() + "/drive_c/dxvk.conf"; - return '{"DXVK_CONFIG_FILE": "dxvkConfigFile", "STAGING_SHARED_MEMORY": "0", "DXVK_HUD": "compiler", "PULSE_LATENCY_MSEC": "60", "WINEESYNC": "1"}'; - + const wizard = wine.wizard(); wizard.message( @@ -49,3 +45,8 @@ new SteamScript() ) ); }) + .executable("Steam.exe", ["-silent", "-applaunch", "244850", "-no-cef-sandbox", "-skipintro"]); + .environment((wine) => { + const dxvkConfigFile = wine.prefixDirectory() + "/drive_c/dxvk.conf"; + return '{"DXVK_CONFIG_FILE": "dxvkConfigFile", "STAGING_SHARED_MEMORY": "0", "DXVK_HUD": "compiler", "PULSE_LATENCY_MSEC": "60", "WINEESYNC": "1"}'; + }) From 1afa0f1aa6fe3d000f28e31a6269c0011a533bff Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Mon, 25 Jan 2021 00:32:30 +0100 Subject: [PATCH 30/31] Update script.js --- Applications/Games/Space Engineers/Steam/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index ff33b5af47..8b19433202 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -45,7 +45,7 @@ new SteamScript() ) ); }) - .executable("Steam.exe", ["-silent", "-applaunch", "244850", "-no-cef-sandbox", "-skipintro"]); + .executable("Steam.exe", ["-silent", "-applaunch", "244850", "-no-cef-sandbox", "-skipintro"]) .environment((wine) => { const dxvkConfigFile = wine.prefixDirectory() + "/drive_c/dxvk.conf"; return '{"DXVK_CONFIG_FILE": "dxvkConfigFile", "STAGING_SHARED_MEMORY": "0", "DXVK_HUD": "compiler", "PULSE_LATENCY_MSEC": "60", "WINEESYNC": "1"}'; From 2695d8d3289a79256af83af422c786324ff61901 Mon Sep 17 00:00:00 2001 From: Zemogiter Date: Mon, 25 Jan 2021 00:42:25 +0100 Subject: [PATCH 31/31] Update script.js trailing spaces removal --- Applications/Games/Space Engineers/Steam/script.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index 8b19433202..bc6fb2b93d 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -20,17 +20,16 @@ new SteamScript() new DotNET472(wine).go(); new Vcrun2017(wine).go(); new DXVK(wine).go(); + new xact(wine).go(); new OverrideDLL(wine) .withMode("native, builtin", ["msvcr120"]) .withMode("disabled", ["nvapi", "nvapi64"]) .go(); - + const dxvkConfigFile = wine.prefixDirectory() + "/drive_c/dxvk.conf"; touch(dxvkConfigFile); writeToFile(dxvkConfigFile, "dxgi.nvapiHack = False"); - wizard.message(tr("You may have to install libjpeg62 package if you see thumbnails in New Game menu dispalyed as magenta rectangles.")); - wizard.message(tr("Due to JIT compiler issues and the way this game uses multithreating, there are audio stutters. If you are on a Debian-based distribution you can try the libFAudio package from this PPA:\nhttps://launchpad.net/~cybermax-dexter/+archive/ubuntu/sdl2-backport")); const wizard = wine.wizard();