Linux Error

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Obscura
Eileen-Class Veteran
Posts: 1431
Joined: Fri Mar 09, 2012 6:58 pm
Projects: Coming Out On Top
Location: United States
Contact:

Linux Error

#1 Post by Obscura »

A player running Linux mint 17 is reporting the following error. When he clicks the game icon, he gets the following message:

#!/bin/sh

SCRIPT="$0"

# Resolve the chain of symlinks leading to this script.
while [ -L "$SCRIPT" ] ; do
LINK=$(readlink "$SCRIPT")

case "$LINK" in
/*)
SCRIPT="$LINK"
;;
*)
SCRIPT="$(dirname "$SCRIPT")/$LINK"
;;
esac
done

# The directory containing this shell script - an absolute path.
ROOT=$(dirname "$SCRIPT")
ROOT=$(cd "$ROOT"; pwd)

# The name of this shell script without the .sh on the end.
BASEFILE=$(basename "$SCRIPT" .sh)

if [ -z "$RENPY_PLATFORM" ] ; then
case "$(uname -s)-$(uname -m)" in
Darwin-*)
RENPY_PLATFORM="darwin-x86_64"
ROOT1="$ROOT/../Resources/autorun"
ROOT2="$ROOT/../../.."
;;
*-x86_64|amd64)
RENPY_PLATFORM="linux-x86_64"
ROOT1="$ROOT"
ROOT2="$ROOT"
;;
*-i*86)
RENPY_PLATFORM="linux-i686"
ROOT1="$ROOT"
ROOT2="$ROOT"
;;
*)
echo "Ren'Py could not detect that platform it's running on. Please set"
echo "the RENPY_PLATFORM environment variable to one of \"linux-i686\" or"
echo "\"linux-x86_64\", or \"darwin-x86_64\" and run this command again."
exit 1
;;
esac
fi


for BASE in "$ROOT" "$ROOT1" "$ROOT2"; do
LIB="$BASE/lib/$RENPY_PLATFORM"
if test -d "$LIB"; then
break
fi
done

exec $RENPY_GDB "$LIB/$BASEFILE" $RENPY_PYARGS -EO "$BASE/$BASEFILE.py" "$@"



.......

Does anyone have any suggestions on how to resolve this issue?

Thank you!
Coming Out On Top - An Adult Gay Dating Sim
website

User avatar
Karl_C
Veteran
Posts: 232
Joined: Sun Mar 31, 2013 6:18 am
Contact:

Re: Linux Error

#2 Post by Karl_C »

This is not a message, this are the contents of the linux shell script?

I guess the script opened in a text editor when the player clicks on the file?

Probably you'll find the answer here: How to run .sh file

BTW: Did you use a MS-Windows tool to build the archive (zip file)? This won't work, as Linux has some file permissions ('executable') that do not exist under MS-Windows. When you use Ren'Py to build the zip file, the permissions are correctly set.

User avatar
Obscura
Eileen-Class Veteran
Posts: 1431
Joined: Fri Mar 09, 2012 6:58 pm
Projects: Coming Out On Top
Location: United States
Contact:

Re: Linux Error

#3 Post by Obscura »

Thanks Karl_C! That solved his problem! :)
Coming Out On Top - An Adult Gay Dating Sim
website

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot]