You are not logged in.

#1 2010-05-04 12:06:23

Hiato
Member
Registered: 2009-01-21
Posts: 76

[Request] Digital: A love story

I recently came across the game Digital: A love story (http://www.scoutshonour.com/digital/) and thought it a superb game, having been able to play it on widows on and off. I was disappointed to find out that I couldn't get it to function under x86_64 for whatever reason (I cant really remember any more). However, I feel it would most certainly make a nice addition to the AUR, even if only for 32-bit machines.

A semi-decent search revealed that it was not in any repo, and seeing as I couldn't get it to function, I cant make a package for it. Any takers?

Offline

#2 2010-05-05 12:20:15

badger
Member
From: Melb
Registered: 2004-07-21
Posts: 76

Re: [Request] Digital: A love story

That was fun, just played it due to your post. I had no problems with it functioning (x86_64). Cheers.

Offline

#3 2010-05-07 16:02:45

dcc24
Member
Registered: 2009-10-31
Posts: 737

Re: [Request] Digital: A love story

Wow, that was fun! I'll see if I can package it smile


It is better to keep your mouth shut and be thought a fool than to open it and remove all doubt. (Mark Twain)

My AUR packages

Offline

#4 2010-05-07 16:09:35

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: [Request] Digital: A love story

dcc24 wrote:

Wow, that was fun! I'll see if I can package it smile

Cool, saves me the time, thanks. smile

Offline

#5 2010-05-07 17:01:37

dcc24
Member
Registered: 2009-10-31
Posts: 737

Re: [Request] Digital: A love story

Well, I took a look at it and for most parts it's easy & done. But the launcher script will need some sed magic (or patch) since creating a symlink in /usr/bin is useless due to some path errors. Basically, if you call Digital.sh directly inside the directory it'll run fine, but a symlink in /usr/bin doesn't work. Calling /usr/bin/digitalgame fails with:

$ digitalgame 
/usr/bin/digitalgame: line 20: /usr/bin/lib/python: No such file or directory
/usr/bin/digitalgame: line 20: exec: /usr/bin/lib/python: cannot execute: No such file or directory

I've tried creating a patch for switching directories at runtime, but it doesn't seem to be enough. Here is the current PKGBUILD:

# Maintainer: Can Celasun <dcelasun[at]gmail[dot]com>
pkgname=digital
pkgver=1.1
pkgrel=1
pkgdesc='A computer mystery/romance set five minutes into the future of 1988.'

arch=('i686' 'x86_64')
url=('http://www.scoutshonour.com/digital/')
license=('CC-BY-NC-SA')

depends=('python')
source=(http://digital.artfulgamer.com/digital-${pkgver}.tar.bz2
                  'digitalgame.desktop'
                  'digital-directory.patch')
md5sums=('574e5c069626f4850ac4acd06c280951'
                     'cd1393159c5ac4512ca3f6f5928140a8'
                     '957f968a49021154d06d5ed69b206db5')

build() {

  
 cp $srcdir/digital-directory.patch $srcdir/Digital-linux-x86
 cd $srcdir/Digital-linux-x86
 
 msg "Applying patches"
 patch -i digital-directory.patch || return 1
 
 install -dm755 $pkgdir/usr/share/digital-game
 cp -R * $pkgdir/usr/share/digital-game
 
 mkdir -p $pkgdir/usr/share/applications  || return 1
 cp $srcdir/digitalgame.desktop $pkgdir/usr/share/applications/digitalgame.desktop
 
 
 # Create executable symlink
 mkdir -p $pkgdir/usr/bin  || return 1
 ln -s $pkgdir/usr/share/digital-game/Digital.sh $pkgdir/usr/bin/digitalgame
}

Here's the patch:

--- Digital.sh    2010-05-07 19:41:35.552940653 +0300
+++ Digital.sh    2010-05-07 19:42:08.070021867 +0300
@@ -16,5 +16,5 @@
 
     exec "$launcher" "${0%.sh}.py" "$@"
 fi
-
+cd `dirname $0` 
 exec "`dirname \"$0\"`/lib/python" "-OO" "${0%.sh}.py" "$@"

... and here is the unpatched launcher script:

#!/bin/sh

# We assume Darwin means Mac OS X. Sorry, Darwin guys.
if [ "x`uname -s`" = "xDarwin" ]; then
    dir=`dirname "$0"`
    dir=`cd "$dir"; pwd`
    base=`basename "$0"`

    export RENPY_LAUNCHER_DIR="$dir"

    if [ -e "$dir/${base%.sh}.app/Contents/MacOS/${base%.sh}" ] ; then
        launcher="$dir/${base%.sh}.app/Contents/MacOS/${base%.sh}"
    else
        launcher="$dir/${base%.sh}.app/Contents/MacOS/Ren'Py Launcher"
    fi

    exec "$launcher" "${0%.sh}.py" "$@"
fi

exec "`dirname \"$0\"`/lib/python" "-OO" "${0%.sh}.py" "$@"

Any ideas?

Last edited by dcc24 (2010-05-07 17:03:13)


It is better to keep your mouth shut and be thought a fool than to open it and remove all doubt. (Mark Twain)

My AUR packages

Offline

#6 2010-05-07 18:18:35

dcc24
Member
Registered: 2009-10-31
Posts: 737

Re: [Request] Digital: A love story

Double post, sorry.

Last edited by dcc24 (2010-05-07 18:20:55)


It is better to keep your mouth shut and be thought a fool than to open it and remove all doubt. (Mark Twain)

My AUR packages

Offline

#7 2011-09-30 23:28:31

timofonic
Member
Registered: 2007-05-15
Posts: 47

Re: [Request] Digital: A love story

Any news? This game seems interesting, it uses Ren'Py game engine for a non-anime game that is not so usual.

Offline

#8 2011-10-01 04:35:43

jomasti
Member
From: USA
Registered: 2010-08-17
Posts: 96

Re: [Request] Digital: A love story

I've uploaded a working PKGBUILD to the AUR here.

Offline

Board footer

Powered by FluxBB