-
Notifications
You must be signed in to change notification settings - Fork 47
Update Space Engineers, pass appId as number, remove faudio and disable NVAPI workarround #1119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Zemogiter
wants to merge
36
commits into
PhoenicisOrg:master
Choose a base branch
from
Zemogiter:patch-5
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 31 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
3890172
Update script.js
Zemogiter c4063b0
Update script.js
Zemogiter f8d24e5
Update script.js
Zemogiter c2ec5ed
Merge branch 'master' into patch-5
Zemogiter 50b98e4
Update script.js
Zemogiter 67c37af
Merge branch 'master' into patch-5
Zemogiter 6c60528
Update script.js
Zemogiter d33f6c3
Update script.js
Zemogiter 158baba
Merge branch 'master' into patch-5
Zemogiter 01282f7
Update script.js
Zemogiter e93ad5a
Update script.js
Zemogiter 17ec66a
Update script.js
Zemogiter 4303a6a
Update script.js
Zemogiter cf9220b
Update script.js
Zemogiter 4f05ce9
Merge branch 'master' into patch-5
Zemogiter 1046714
Update script.js
Zemogiter 84ff3f1
Update script.js
Zemogiter a7cd5d5
Update script.js
Zemogiter fd589bd
Update script.js
Zemogiter 324eada
Update script.js
Zemogiter bde966f
Update script.js
Zemogiter 5b469ae
Update script.js
Zemogiter f51200b
Update script.js
Zemogiter 9cdf1cf
Update script.js
Zemogiter e30a5d3
Update script.js
Zemogiter 7c10510
Update script.js
Zemogiter 1f2ebae
Update script.js
Zemogiter 79cedc2
Update script.js
Zemogiter a6ea880
Update script.js
Zemogiter 2a57699
Update script.js
Zemogiter bc0a40d
Update script.js
Zemogiter 80bc907
Update script.js
Zemogiter 203f50a
Merge branch 'master' into patch-5
Zemogiter 01f4d92
Update script.js
Zemogiter 1afa0f1
Update script.js
Zemogiter 2695d8d
Update script.js
Zemogiter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,39 @@ | ||
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"); | ||
Zemogiter marked this conversation as resolved.
Show resolved
Hide resolved
|
||
const DXVK = include("engines.wine.verbs.dxvk"); | ||
const FAudio = include("engines.wine.verbs.faudio"); | ||
|
||
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"); | ||
|
||
new SteamScript() | ||
.name("Space Engineers") | ||
.editor("Keen Software House") | ||
.author("Zemogiter") | ||
.appId("244850") | ||
.wineVersion("4.14") | ||
.appId(244850) | ||
.wineVersion(getLatestDevelopmentVersion) | ||
.wineDistribution("upstream") | ||
.wineArchitecture("amd64") | ||
.preInstall((wine) => { | ||
new DotNET472(wine).go(); | ||
new Vcrun2017(wine).go(); | ||
const wizard = wine.wizard(); | ||
new dotnet472(wine).go(); | ||
new vcrun2017(wine).go(); | ||
new DXVK(wine).go(); | ||
new FAudio(wine).go(); | ||
|
||
new xact(wine).go(); | ||
new OverrideDLL(wine) | ||
.withMode("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" | ||
]) | ||
.withMode("native, builtin", ["msvcr120"]) | ||
.withMode("disabled", ["nvapi", "nvapi64"]) | ||
.go(); | ||
const dxvkConfigFile = wine.prefixDirectory() + "/drive_c/dxvk.conf"; | ||
Zemogiter marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
const wizard = wine.wizard(); | ||
|
||
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 multithreading, 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." | ||
) | ||
); | ||
return '{"DXVK_CONFIG_FILE"="dxvkConfigFile", "STAGING_SHARED_MEMORY"="0", "DXVK_HUD"="compiler", "PULSE_LATENCY_MSEC"="60", "WINEESYNC"="1"}'; | ||
Zemogiter marked this conversation as resolved.
Show resolved
Hide resolved
|
||
}) | ||
.executable("Steam.exe", ["-silent", "-applaunch", "244850", "-no-cef-sandbox", "-skipintro"]); |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.