The forum

osu!

script for a "free-to-play online rhythm game"

Author Replies
laerne Wednesday 18 September 2013 at 14:55
laerneAnonymous

Hello,
I'm new to this forum.  I registered because I want to create an installer for the game osu!.  Play on linux seems easy enough, and the game should not be too hard to install.  I would proudly would deliver the working script but…  my current script, inspired from the tutorial fails.

It first tells :

Error extracting 'SETUP_1.CAB' : the file is not a cabinet.
Then :
Error in POL_Shortcut
Binary not found: osu!.exe
Have you installed the program to the default location?
I do not understand what is this cabinet story, and why playOnLinux doesn't wait the setup to complete to create the application link.

Thank you for any help !

PS: Is there a way to attach a file ?  Meanwhile here is the script in cut-and-paste form :

[code language=playonlinux]
#!/bin/bash
# Date : (2013-09-18 14-25)
# Last revision : (2013-09-18 14-25)
# Wine version used : 1.7.1
# Distribution used to test : Fedora 19 (Schrödinger's Cat)
# Author : laerne
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

PREFIX='osu'
TITLE='osu!'
 
POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" 'peppy' 'http://osu.ppy.sh/' 'laerne' "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate

POL_System_TmpCreate "osu"
cd "$POL_System_TmpDir"

POL_Download 'http://m1.ppy.sh/release/osu!install.exe'
POL_SetupWindow_wait "$(eval_gettext 'Launching Installer...')" "$TITLE"
POL_Wine start /unix "$POL_System_TmpDir/osu!install.exe"

POL_System_TmpDelete

POL_Shortcut "osu!.exe" "$TITLE"

POL_SetupWindow_Close
exit
[/code]

Edited by laerne

petch Wednesday 18 September 2013 at 21:16
petch
Developer

start /unix has the side effect of starting the program "detached", so the script continues while it starts.
Try without start /unix, 95% of the time it doesn't do what you expect.
If it is necessary for your program, add a POL_Wine_WaitExit "$TITLE" after POL_Wine to make the script block until Wine ends.
laerne Wednesday 18 September 2013 at 23:02
laerneAnonymous

Thank you for you help.  I removed the option /unix and it actually stop trying to work concurrently.

I also guessed why the first issue occurred : I needed to install dotnet 3.5.
But dotnot35 is not compatible with my wine version while dontet40 is cryptically failing~:

Error in POL_Wine
Wine seems to have crashed

If your program is running, just ignore this message.
(no program seems running)

Is there extra caution to do to install dotnet40 ?

Here is the code so far :
[code language=playonlinux]
#!/bin/bash
# Date : (2013-09-18 14-25)
# Last revision : (2013-09-18 23-03)
# Wine version used : 1.7.1
# Distribution used to test : Fedora 19 (Schrödinger's Cat)
# Author : laerne
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

PREFIX='osu'
TITLE='osu!'
 
POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" 'peppy' 'http://osu.ppy.sh/' 'laerne' "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate

POL_System_TmpCreate "osu"
cd "$POL_System_TmpDir"

POL_Download 'http://m1.ppy.sh/release/osu!install.exe' #'f7c6053aed1cd4e80db463ccc908052f'
POL_SetupWindow_wait "$(eval_gettext 'Installing .NET 3.5')" "$TITLE"
if (VersionLower $(POL_Config_PrefixRead VERSION) 1.5.21); then
  POL_Call 'POL_Install_dotnet35sp1'
else
  POL_Call 'POL_Install_dotnet40'
fi
POL_SetupWindow_wait "$(eval_gettext 'Installing osu!')" "$TITLE"
POL_Wine start "$POL_System_TmpDir/osu!install.exe"

POL_System_TmpDelete

POL_Shortcut "osu!.exe" "$TITLE"

POL_SetupWindow_Close
exit
[/code]
petch Thursday 19 September 2013 at 0:52
petch
Developer

Never needed anything above .NET 2.0 for my scripts, that's painful enough for me.
laerne Thursday 19 September 2013 at 23:02
laerneAnonymous

Mmmmh...  Using dotnet20sp2 did not solve the issue : the exact same issue with dotnet40 occurs.

After a quick check on the wine AppDB, the installer seems buggy, although a freeze is reported after a few step and not a full crash before I can even see the first window of the wizard.

I guess we just cannot make the installer work.
Maybe extracting interesting files with something like Uniextract and manually moving them to the right thing to do ?
You are here: Index > Your creations. > osu!