Ren'Py could not detect that platform it's running on.

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
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Ren'Py could not detect that platform it's running on.

#1 Post by Imperf3kt »

So I'm trying to install Ren'Py on a Raspberry Pi and I have no idea how the hell Linux works, at least, outside SSH.
So far I downloaded the latest tar b2z file a few days ago and unzipped it, but beyond that I'm 100% confused.
How do I use it?
I did the following in a terminal:

Code: Select all

pi@raspberrypi:~ $ /home/pi/Downloads/renpy-6.99.12.4-sdk
bash: /home/pi/Downloads/renpy-6.99.12.4-sdk: Is a directory
pi@raspberrypi:~ $ cd /home/pi/Downloads/renpy-6.99.12.4-sdk
pi@raspberrypi:~/Downloads/renpy-6.99.12.4-sdk $ sudo chmod +x renpy.sh
pi@raspberrypi:~/Downloads/renpy-6.99.12.4-sdk $ sh renpy.sh
Ren'Py could not detect that platform it's running on. Please set
the RENPY_PLATFORM environment variable to one of "linux-i686" or
"linux-x86_64", or "darwin-x86_64" and run this command again.
pi@raspberrypi:~/Downloads/renpy-6.99.12.4-sdk $ 
The frack does that mean?
I've been trying for a few days now and apart from the pre-installed programs, I am more lost on operating Linux than a frog in space.
Googling is useless, nothing tells me HOW to launch an app, only how to automatically execute them etc. I tried double clicking the renpy.sh file and telling it to execute, but nothing happens.

I stand by what I've been saying for years - Linux is a steaming pile of turd.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
Zetsubou
Miko-Class Veteran
Posts: 522
Joined: Wed Mar 05, 2014 1:00 am
Completed: See my signature
Github: koroshiya
itch: zetsuboushita
Contact:

Re: Ren'Py could not detect that platform it's running on.

#2 Post by Zetsubou »

It looks like the problem is that the Renpy launcher doesn't recognize ARM platforms.
Set the RENPY_PLATFORM variable to be 32 bit linux.

Code: Select all

export RENPY_PLATFORM=linux-i686
Then try running it again.

Google would have helped you here, but you'd need to know what to search for. What you're doing here is exporting a variable, which Renpy then reads when it runs. So instead of trying to figure out the platform itself, it goes off the variable you've exported and assumes (in this case) that it's 32 bit linux.
Finished games
-My games: Sickness, Wander No More, Max Massacre, Humanity Must Perish, Tomboys Need Love Too, Sable's Grimoire, My Heart Grows Fonder, Man And Elf, A Dragon's Treasure, An Adventurer's Gallantry
-Commissions: No One But You, Written In The Sky, Diamond Rose, To Libertad, Catch Canvas, Love Ribbon, Happy Campers, Wolf Tails

Working on:
Sable's Grimoire 2

https://zetsubou.games

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Ren'Py could not detect that platform it's running on.

#3 Post by PyTom »

Ren'Py doesn't ship with support for ARM at the moment. You can recompile it to support ARM, but it's not one of the out of the box platforms. If you reaction is:
Linux is a steaming pile of turd.
Then I'm not even going to bother trying to support this, since bringing Ren'Py up on an unsupported platform usually requires spending quite a bit of time learning about that platform.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Ren'Py could not detect that platform it's running on.

#4 Post by Imperf3kt »

I was in a foul mood after wasting almost a dozen hours trying to work out how to do _anything_ gui related on Linux (I've been using Linux remotely headless for several years), so you'll have to forgive my rudeness. I simply couldn't find a single answer and after spending four hours every night for three nights looking, I guess it culminated in this thread.

After sleeping and asking at another forum, the answer provided by Zetsubou seems like the most likely thing required, so I'll try it shortly before heading off to work.

E: still no luck, I get the following:

Code: Select all

pi@raspberrypi:~/Downloads/renpy-6.99.12.4-sdk $ /home/pi/Downloads/renpy-6.99.12.4-sdk/renpy.sh
/home/pi/Downloads/renpy-6.99.12.4-sdk/lib/linux-i686/renpy: 1: /home/pi/Downloads/renpy-6.99.12.4-sdk/lib/linux-i686/renpy: Syntax error: word unexpected (expecting ")")
Where do you suggest I add the line? Currently I have this:

Code: Select all

#!/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)
export RENPY_PLATFORM=linux-i686

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 "I hate Linux."
            exit 1
            ;;
    esac
fi


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

for BASE in "$ROOT" "$ROOT1" "$ROOT2"; do
    if test -e "$BASE/$BASEFILE.py"; then
        break
    fi
done

if ! test -d "$LIB"; then
    echo "Ren'Py platform files not found in any of $ROOT, $ROOT1 or $ROOT2!"
    echo "Please compile the platform files using the instructions in README.md"
    echo "or point them to an existing installation using ./after_checkout.sh <path>."
    exit 1
fi

if test -n "$LD_LIBRARY_PATH"; then
    export LD_LIBRARY_PATH="$LIB:$LD_LIBRARY_PATH"
fi

exec $RENPY_GDB "$LIB/$BASEFILE" $RENPY_PYARGS -EO "$BASE/$BASEFILE.py" "$@"
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
Zetsubou
Miko-Class Veteran
Posts: 522
Joined: Wed Mar 05, 2014 1:00 am
Completed: See my signature
Github: koroshiya
itch: zetsuboushita
Contact:

Re: Ren'Py could not detect that platform it's running on.

#5 Post by Zetsubou »

I would have run the export command before running the script, just to see if it worked. To put it in the script itself you'd omit the "export" portion of that command. Look at the start of the script, where you have

Code: Select all

SCRIPT="$0"
Since it's already in the sh file, and you won't need the variable outside the context of the program, you can use this command in the same manner. eg.

Code: Select all

SCRIPT="$0"
RENPY_PLATFORM=linux-i686
That being said, given PyTom's input about ARM not just not being recognized, but not supported, the above is probably unnecessary, and at the very least you'll need to compile Renpy from source rather than run the compiled version.
I refer you to: viewtopic.php?f=32&t=41914

Going by Strontium's experience, the compilation is straightforward. Follow their instructions regarding drivers, then clone the source from GitHub and follow the GitHub instructions from "Compiling the Modules" onward.
https://github.com/renpy/renpy#compiling-the-modules
Finished games
-My games: Sickness, Wander No More, Max Massacre, Humanity Must Perish, Tomboys Need Love Too, Sable's Grimoire, My Heart Grows Fonder, Man And Elf, A Dragon's Treasure, An Adventurer's Gallantry
-Commissions: No One But You, Written In The Sky, Diamond Rose, To Libertad, Catch Canvas, Love Ribbon, Happy Campers, Wolf Tails

Working on:
Sable's Grimoire 2

https://zetsubou.games

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Ren'Py could not detect that platform it's running on.

#6 Post by Imperf3kt »

Thats actually one of the threads I followed while trying to do this.

I'll try your advice since you mentioned how to do it, thanks.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Ren'Py could not detect that platform it's running on.

#7 Post by Imperf3kt »

I'm unable to work out what is wrong. Along the compile I ran into various issues the most infuriating of which is:
Could not find required library SDL2.
I've been following (copy/pasting) this Tumblr: https://dlksk.tumblr.com/post/107500026 ... spberry-pi

How do I get this library? I tried everything I could think of or Google up, but all I'm getting is:
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Should I SSH Root or am I wasting my time? / fucked something else up and should start again.

This is one of the reasons I hate Linux, its almost impossible to understand what the hell you screwed up.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Ren'Py could not detect that platform it's running on.

#8 Post by PyTom »

It looks like that's for an older version of Ren'Py. You want to follow the instructions on the Ren'Py github.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Ren'Py could not detect that platform it's running on.

#9 Post by Imperf3kt »

Alright, I'll reflash the SD and go by the github tonight.
Thanks for being patient with me.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Ren'Py could not detect that platform it's running on.

#10 Post by PyTom »

No problem. When I get some round tuits, I may go ahead and dig out my raspi3 and see if I can get a build going.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Ren'Py could not detect that platform it's running on.

#11 Post by Imperf3kt »

Here ya go:
Image
Its my last one and they're sold out everywhere.


...


Sorry, couldn't help myself.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Ren'Py could not detect that platform it's running on.

#12 Post by Imperf3kt »

I'm still unsure what my issue here is.
Image

Image

I even tried installing it to
/home/pi/Downloads/renpy/module/pygame_sdl2

Can anybody nudge me in the right direction? What did I do wrong?
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Post Reply

Who is online

Users browsing this forum: No registered users