Portable Ren'Py
- 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
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?
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(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
- 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
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?
Re: Portable Ren'Py
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...Samu-kun wrote: Strangely enough, I haven't run into any problems so far.
Server error: user 'Jake' not found
Re: Portable Ren'Py
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.
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.
Re: Portable Ren'Py
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.
- 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
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
— Buckminster Fuller
- 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
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(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
- EwanG
- Miko-Class Veteran
- Posts: 711
- Joined: Thu Oct 26, 2006 5:37 pm
- Location: San Antonio, TX
- Contact:
Re: Portable Ren'Py
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.
YMMV.
Working on something... might even be something good 
- 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
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(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
- georgmay
- Regular
- Posts: 131
- Joined: Sun Feb 08, 2009 2:00 pm
- Projects: Restriction
- Location: Belarus,Minsk
- Contact:
Re: Portable Ren'Py
renpy-x.x.x: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)
--gamedata
----$gamename
-------saves
-------persistent
....
thats my opinion(i think thats really no problem
or bin tree
Returned
- 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
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(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
- georgmay
- Regular
- Posts: 131
- Joined: Sun Feb 08, 2009 2:00 pm
- Projects: Restriction
- Location: Belarus,Minsk
- Contact:
Re: Portable Ren'Py
Mmm...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.
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
- ksotaku100
- Regular
- Posts: 65
- Joined: Fri Dec 25, 2009 8:12 pm
- Contact:
Re: Portable Ren'Py
It works fine on my flash drive. No traces anywhere between my laptop and desktop. I use a SanDisk U3 8GB Flash Drive.
Who is online
Users browsing this forum: No registered users

