Das Forum

[Script] Scrolls (Beta)

Autor Antworten
kweepeer2 Thursday 6 June 2013 at 12:59
kweepeer2Anonymous

Hi, here is a script for the new Mojang game, Scrolls.

You can find more info on http://www.scrolls.com

PS: I seem to have lost my password for account "kweepeer", is there a lost password functionality on the website? Thanks ;)


#!/bin/bash
# Date : 2013-06-02 17-37
# Last revision : 2013-06-04 10-14
# Wine version used : 1.5.29, 1.5.31
# Distribution used to test : Ubuntu 13.04 x64 (Unity)
# Author : kweepeer

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Scrolls"
PREFIX="scrolls"

POL_SetupWindow_Init
#POL_SetupWindow_SetID 12345 ##TODO
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Mojang" "http://www.scrolls.com" "kweepeer" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "1.5.31"

POL_System_TmpCreate "$PREFIX"

cd "$POL_System_TmpDir"
POL_Download "http://download.scrolls.com/installer/win/Scrolls-Installer.msi" \\
             "719ca39cfa957858773cdc18d73092c0"
POL_Wine_WaitBefore "$TITLE"
POL_Wine msiexec /i "$POL_System_TmpDir/Scrolls-Installer.msi"

POL_System_TmpDelete

POL_SetupWindow_VMS "128"
POL_Wine_reboot

# Remove Z:\\ from Wine because otherwise (for some reason) the game
# tries to write files in / which results in permissions errors.
rm -f "$WINEPREFIX/dosdevices/z:"

POL_Shortcut "Scrolls.exe" "$TITLE" "$SHORTCUT_NAME.png" ""
#POL_Shortcut "Scrolls.exe" "$TITLE"
POL_SetupWindow_Close

exit

Ronin DUSETTE Thursday 6 June 2013 at 18:25
Ronin DUSETTE

I should be able to reset it for you. Private Message me about it and we will get that taken care of.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
petch Thursday 6 June 2013 at 19:33
petch

HI kweeper,
Not much to say about your script, it looks fine.
Does the game run significantly better with 1.5.31 than with 1.4.1?
I recommend using the latest stable version of Wine whenever possible (if anything, it reduces the number of different versions that end up installed ;) ).
kweepeer2 Friday 7 June 2013 at 11:48
kweepeer2Anonymous

Hi petch, the game will crash on startup in 1.4.1. unless you set /proc/sys/kernel/yama/ptrace_scope to a value of 0, which requires root rights to modify.

In recent versions of wine, the game starts without any modification to ptrace_scope. I think any recent 1.5.x should be fine actually, though I haven't tested it, I just used the latest one available.
petch Friday 7 June 2013 at 12:49
petch

Not requiring such manipulation is definitely a good reason for a 1.5.x version, just wanted to be sure.
xpander Sunday 16 June 2013 at 13:41
xpander

also 1.4.x versions doesnt support xrandr nicely and mixing up the dual-monitors users resolutions and so on.

1.5.12+ is needed to be able to enjoy dualmonitor setups
cyanure Monday 21 October 2013 at 12:21
cyanureAnonymous

Hello,
The script fails at unpacking by core.exception.OutOfMemoryError.
(cf http://pastebin.com/0e8ApbVP )

I know there was a new (scrolls) patch today but I don't know why
it would be related. I use the lastest script above (2013-06-04 10-14)

spec:
Kubuntu 13.10
PlayOnLinux 4.2.1
wine-1.4.1 (but it seems to use 1.5.31 for playonlinux)
kweepeer2 Monday 21 October 2013 at 22:28
kweepeer2Anonymous

Hi cyanure. Here is updated version (it works).

#!/bin/bash
# Date : 2013-06-02 17:37
# Last revision : 2013-10-21 21:59
# Wine version used : 1.5.29, 1.5.31, 1.6
# Distribution used to test : Elementary OS (Luna)
# Author : kweepeer
# Depend: unzip

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Scrolls"
PREFIX="scrolls"
SHORTCUT_NAME="Scrolls"

POL_SetupWindow_Init
#POL_SetupWindow_SetID 12345 ##TODO
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Mojang" "http://www.scrolls.com" "kweepeer" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "1.6"

POL_System_TmpCreate "$PREFIX"
# Download installer
POL_SetupWindow_message "$(eval_gettext 'When installing, be sure not to let Scrolls launch automatically, so the POL setup can complete.')" "$TITLE"
cd "$POL_System_TmpDir"
POL_Download "http://download.scrolls.com/installer/win/Scrolls-Installer.msi" \
             "719ca39cfa957858773cdc18d73092c0"
POL_Wine_WaitBefore "$TITLE"
POL_Wine msiexec /i "$POL_System_TmpDir/Scrolls-Installer.msi"
POL_System_TmpDelete

# Download game data
cd "$WINEPREFIX/drive_c/users/$USER/Local Settings/Application Data/Mojang/Scrolls" || exit 1
POL_Download "http://download.scrolls.com/client/windows.zip"
POL_SetupWindow_wait "$(eval_gettext 'Please wait while we extract $TITLE game data.')" "$TITLE"
(unzip -qqo ./windows.zip && rm -f ./windows.zip) || exit 1

POL_SetupWindow_VMS "128"
POL_Wine_reboot

# Remove Z:\ from Wine because otherwise (for some reason) the game
# tries to write files in / which results in permissions errors.
rm -f "$WINEPREFIX/dosdevices/z:"

POL_Shortcut "Scrolls.exe" "$TITLE" "$SHORTCUT_NAME.png" ""
POL_SetupWindow_Close

exit

Editiert von: kweepeer2

cyanure Tuesday 22 October 2013 at 9:37
cyanureAnonymous

Hi again.
It works great!
Thanks.
kweepeer2 Tuesday 22 October 2013 at 21:00
kweepeer2Anonymous

Images:

Icons: http://imgur.com/a/2W26L
Top: http://imgur.com/3gS42J7
Left: http://i.imgur.com/V9OU7tH.png
Screenshots: http://imgur.com/a/73Dt3
petch Wednesday 23 October 2013 at 0:50
petch

Script validated.
There was actually 2 of them, Scrolls (1865) and Scrolls (Beta) (1867), I validated the former and unsigned the second (so you can reuse the entry for another script if you want), I hope I did the right thing (didn't see any significant difference between the two but I could have overlooked something).
kweepeer2 Sunday 27 October 2013 at 11:00
kweepeer2Anonymous

Looks fine to me. Thanks petch!
Tywnis Thursday 26 June 2014 at 6:02
TywnisAnonymous

Hi,
I'am very new to Linux, just installed Mint 17 two days ago, and i've been trying to install Scrolls with PoL - i was wondering if there was any update to this script of yours, because it doesn't seem to work (keeping in mind i might very well be doing some stuff wrongly.. but as it's been 8 months already ^^)
Thanks in advance for your help!
Tywnis

kweepeer2 Thursday 24 July 2014 at 17:19
kweepeer2Anonymous

I'll have a look at it.

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com