Skip to content

Conversation

ImperatorS79
Copy link
Contributor

@ImperatorS79 ImperatorS79 commented Jan 12, 2019

FAudio will replace OpenAL in wine after 4.0, but I think it is good to have a verb for pre-4.0 and for @Zemogiter to test Space Engineer with it.

However, this needs #791 to be fixed, and I need to execute a .sh inside the prefix.

Wine.prototype.faudio = function () {
var setupFile = new Resource()
.wizard(this.wizard())
.url("https://github.com/Kron4ek/FAudio-Builds/releases/download/19.01/faudio-19.01.tar.xz")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we trust this source?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to compile FAudio and provided it yourself later on, you can. I just quickly picked up something from this winetricks issue Winetricks/winetricks#1162 to have a proof of concept and a way to test it for Space Engineers, then I ended up in the two problems I listed.

@Zemogiter
Copy link
Contributor

Please fix indentation some lines have tabs.

@ImperatorS79
Copy link
Contributor Author

Will do when the script actually works.

@Zemogiter
Copy link
Contributor

Zemogiter commented Jan 14, 2019

#791 is now fixed have you tried if forEach now works?
@qparis why is running .sh scripts inside a script a bad idea?
Update: tested it using latest local repo and POL5. It stays at extracting the archive.

@ImperatorS79
Copy link
Contributor Author

Ok, working now.

@Zemogiter
Copy link
Contributor

Zemogiter commented Jan 21, 2019

Upon the archive extraction I get this error:

org.phoenicis.tools.archive.ArchiveException: Unable to extract the file
	at org.phoenicis.tools.archive.Tar.uncompress(Tar.java:199)
	at org.phoenicis.tools.archive.Tar.uncompressTarFile(Tar.java:89)
	at org.phoenicis.tools.archive.Extractor.uncompress(Extractor.java:69)
	at org.phoenicis.tools.archive.Extractor.uncompress(Extractor.java:45)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$2784$3124$\^eval\_.extract-1([utils, functions, filesystem, extract]:140)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$2801$395$\^eval\_$cu1$restOf.faudio([engines, wine, verbs, faudio]:24)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$2705$723AA$\^eval\_$cu1$restOf.run#L:21(<eval>:32)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$2701$5556$\^eval\_$cu1$restOf.go([engines, wine, quick_script, steam_script]:141)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$2538$402$\^eval\_.run(<eval>:13)
	at jdk.nashorn.javaadapters.org_phoenicis_scripts_Installer.run(Unknown Source)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$2537$\^eval\_$cu1$restOf.:program(<eval>:43)
	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:655)
	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:513)
	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:527)
	at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:456)
	at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:413)
	at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:409)
	at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:162)
	at java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
	at org.phoenicis.scripts.nashorn.NashornEngine.eval(NashornEngine.java:50)
	at org.phoenicis.scripts.nashorn.NashornScriptInterpreter.runScript(NashornScriptInterpreter.java:35)
	at org.phoenicis.scripts.interpreter.BackgroundScriptInterpreter.lambda$runScript$0(BackgroundScriptInterpreter.java:35)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.io.IOException: Error detected parsing the header
	at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextTarEntry(TarArchiveInputStream.java:285)
	at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextEntry(TarArchiveInputStream.java:552)
	at org.phoenicis.tools.archive.Tar.uncompress(Tar.java:160)
	... 24 more
Caused by: java.lang.IllegalArgumentException: Invalid byte 94 at offset 0 in '^ vP��J?' len=8
	at org.apache.commons.compress.archivers.tar.TarUtils.parseOctal(TarUtils.java:141)
	at org.apache.commons.compress.archivers.tar.TarUtils.parseOctalOrBinary(TarUtils.java:171)
	at org.apache.commons.compress.archivers.tar.TarArchiveEntry.parseTarHeader(TarArchiveEntry.java:1277)
	at org.apache.commons.compress.archivers.tar.TarArchiveEntry.parseTarHeader(TarArchiveEntry.java:1266)
	at org.apache.commons.compress.archivers.tar.TarArchiveEntry.<init>(TarArchiveEntry.java:404)
	at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextTarEntry(TarArchiveInputStream.java:283)
	... 26 more

Maybe it's because you are extracting to the (this.prefixDirectory() + "/FAudio/") instead of (this.prefixDirectory() + "drive_c/FAudio/")

UPDATE: The change I've mentioned just reintroduced the hanging at extraction issue.

@ImperatorS79
Copy link
Contributor Author

You should rebuild latest git @Zemogiter .

@Zemogiter
Copy link
Contributor

@ImperatorS79 did that the error remains

@ImperatorS79
Copy link
Contributor Author

@Zemogiter I have just tested it again and it works.

var faudioVersion = "19.01";
Wine.prototype.faudio = function (faudioVersion) {
if(typeof faudioVersion !== 'string')
var faudioVersion = "19.01";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work? I'm a bit confused because of the var. Doesn't it limit the scope of the variable?

@ImperatorS79 ImperatorS79 merged commit 8343f17 into PhoenicisOrg:master Jan 23, 2019
@ImperatorS79 ImperatorS79 deleted the FAudio branch February 2, 2019 13:53
@Kreyren Kreyren mentioned this pull request Mar 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants