Portable Ren'Py

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
PyTom
Ren'Py Creator
Posts: 15893
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:

Portable Ren'Py

#1 Post by PyTom » Thu May 07, 2009 1:24 am

Currently, Ren'Py interacts poorly with USB flash drives and other kinds of portable media. Since Ren'Py stashes its files in system-specific global locations, it's hard to move a game between computers.

As an idea towards solving this, I'm considering altering the search method a bit. My current idea is that Ren'Py will look in the game's base directory, and all directories above that, for a directory named renpy-data. If found, it will use that instead of the system-specific location. So basically, if you have a portable drive, you just need to create a renpy-data directory in the root of the drive, and Ren'Py will use it for saves.

Does this seem like a reasonable idea, and can people think of ways to improve it?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Samu-kun
King of Moé
Posts: 2262
Joined: Mon Sep 03, 2007 3:49 pm
Organization: Love in Space Inc
Location: United States
Contact:

Re: Portable Ren'Py

#2 Post by Samu-kun » Thu May 07, 2009 4:55 am

Sounds good. Actually, I've been using renpy primarily through a flash drive right now, since my laptop's monitor's been malfunctioning and I've been pretty much trading it back and forth to the HP Repair Center. Strangely enough, I haven't run into any problems so far. Admittedly, the game consists mostly of text against blackness right now though, so maybe problems will crop up later?

User avatar
Jake
Support Hero
Posts: 3826
Joined: Sat Jun 17, 2006 7:28 pm
Contact:

Re: Portable Ren'Py

#3 Post by Jake » Thu May 07, 2009 7:00 am

Samu-kun wrote: Strangely enough, I haven't run into any problems so far.
From PyTom's description, it seems like he's mostly talking about save games and persistent data, which are stored in different places depending on operating system, but never in the same directory as the game itself. I'm fairly sure Ren'Py doesn't have any problems just playing the game from any location at all, so long as you don't want your saves/persistent data to carry across from machine to machine...
Server error: user 'Jake' not found

User avatar
mikey
Lemma-Class Veteran
Posts: 3249
Joined: Sat Jan 10, 2004 6:03 am
itch: atpprojects
Contact:

Re: Portable Ren'Py

#4 Post by mikey » Thu May 07, 2009 12:08 pm

Yes, please-please make Ren'Py portable, and also if there could be an option to make games portable as well, that would be great.

I run and develop from a USB stick and on every one of the 3 computers I use, I have different saves and everything. It's really bad. :(

Preludian
Regular
Posts: 81
Joined: Wed Nov 05, 2008 9:10 am
Contact:

Re: Portable Ren'Py

#5 Post by Preludian » Fri May 08, 2009 7:13 am

Good idea! What about having an option to have save games stored on a server? So I have the game portable and can install it anywhere I want and still have access to my save games.

User avatar
usul
Veteran
Posts: 415
Joined: Mon Oct 29, 2007 12:35 pm
Projects: Teachings of the Buddha, System-Addict, Generation XxX
Location: Quebec
Contact:

Re: Portable Ren'Py

#6 Post by usul » Fri May 08, 2009 9:42 am

Wow that making games portable sounds like a great idea. I just got a flash of all three platform versions of a game on one usb stick. Could the save/load game function work between different platforms? Say I carry a usb stick and play for a while on my friend's PC, then a little bit on a mac and finally on my Linux, could that be done? That would be the ultimate in cross-platform gaming experience, no?
"The universe is non-simultaneously apprehended"
— Buckminster Fuller

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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: Portable Ren'Py

#7 Post by PyTom » Fri May 08, 2009 11:39 am

Yeah, and I don't see why it wouldn't work with this method, as the save format is already platform-independent.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
EwanG
Miko-Class Veteran
Posts: 711
Joined: Thu Oct 26, 2006 5:37 pm
Location: San Antonio, TX
Contact:

Re: Portable Ren'Py

#8 Post by EwanG » Mon May 11, 2009 10:41 pm

FWIW, I simply have my machines setup where they all see my USB drive as drive H (using the Disk Admin feature in Windows). That way they always look in the same place for RenPy (which is stored on the drive), and it always finds it's paths where it expects them.

YMMV.
Working on something... might even be something good :D

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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: Portable Ren'Py

#9 Post by PyTom » Mon May 11, 2009 11:56 pm

The problem is really with save files, persistent data, and multipersistent data, which are by default placed on the C: drive. (on Windows)
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
georgmay
Regular
Posts: 131
Joined: Sun Feb 08, 2009 2:00 pm
Projects: Restriction
Location: Belarus,Minsk
Contact:

Re: Portable Ren'Py

#10 Post by georgmay » Thu May 14, 2009 12:34 pm

PyTom wrote:The problem is really with save files, persistent data, and multipersistent data, which are by default placed on the C: drive. (on Windows)
renpy-x.x.x:
--gamedata
----$gamename
-------saves
-------persistent
....
thats my opinion(i think thats really no problem :wink: )
or bin tree
Returned

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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: Portable Ren'Py

#11 Post by PyTom » Thu May 14, 2009 1:41 pm

That was the default for Ren'Py up until a few versions ago. We've moved away from this structure because it doesn't work well on Vista, especially where an application is installed globally.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
georgmay
Regular
Posts: 131
Joined: Sun Feb 08, 2009 2:00 pm
Projects: Restriction
Location: Belarus,Minsk
Contact:

Re: Portable Ren'Py

#12 Post by georgmay » Thu May 14, 2009 4:37 pm

PyTom wrote:That was the default for Ren'Py up until a few versions ago. We've moved away from this structure because it doesn't work well on Vista, especially where an application is installed globally.
Mmm...
Using dynamic archive?(thats slowly)
Or, using binaries.
Create the structure of data and use 1 file(using C).
or you need create independent under-programms for managment database.......
and...thats idiotizm, but....mysql?
Returned

User avatar
ksotaku100
Regular
Posts: 65
Joined: Fri Dec 25, 2009 8:12 pm
Contact:

Re: Portable Ren'Py

#13 Post by ksotaku100 » Sun Jan 03, 2010 7:13 pm

It works fine on my flash drive. No traces anywhere between my laptop and desktop. I use a SanDisk U3 8GB Flash Drive.

Post Reply

Who is online

Users browsing this forum: No registered users