Ren'Py Game Chooser sample code

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
uyjulian
Regular
Posts: 88
Joined: Sun Mar 08, 2015 1:40 pm
Github: uyjulian
Contact:

Ren'Py Game Chooser sample code

#1 Post by uyjulian » Mon Mar 13, 2017 1:27 pm

https://gist.github.com/uyjulian/0972d7 ... 51575278fc

I wrote this script to allow you to pick a Ren'Py game and launch it. It's pretty ugly, but it works!

If you want to pack multiple Ren'Py games and you want to be able to choose between them, you can use this launching method.
You can also have a common assets folder to save space if you have multiple games.

Code: Select all

config.searchpath.append("../assets")
renpy.loader.scandirfiles()
Last edited by uyjulian on Thu Mar 16, 2017 6:11 pm, edited 2 times in total.

User avatar
gas
Miko-Class Veteran
Posts: 717
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Ren'Py Game Chooser sample code

#2 Post by gas » Mon Mar 13, 2017 2:38 pm

Post it in the Cookbook section, is where people share snippets and codes.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll be not notified about.

10 ? "RENPY"
20 GOTO 10

RUN

User avatar
uyjulian
Regular
Posts: 88
Joined: Sun Mar 08, 2015 1:40 pm
Github: uyjulian
Contact:

Re: Ren'Py Game Chooser sample code

#3 Post by uyjulian » Mon Mar 13, 2017 11:37 pm

ah, okay.
Can a mod move it there?

User avatar
Donmai
Eileen-Class Veteran
Posts: 1875
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question
Projects: Slumberland
Location: Brazil
Contact:

Re: Ren'Py Game Chooser sample code

#4 Post by Donmai » Wed Mar 15, 2017 8:31 pm

Well, you have made an announcement. This is Questions and Announcements section.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

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

Re: Ren'Py Game Chooser sample code

#5 Post by Imperf3kt » Wed Mar 15, 2017 10:37 pm

Sorry, but I'm very untrusting when it comes to the internet. Could you elaborate a bit on what is inside the zip, how to use it, and its exact purpose?
Why do you need a multi game launcher when you have Ren'Py?
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
Free Android GUI - Updated occasionally

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: Ren'Py Game Chooser sample code

#6 Post by indoneko » Wed Mar 15, 2017 11:02 pm

I couldn't download it. Can't you just upload it as forum's attachment?
My avatar is courtesy of Mellanthe

User avatar
uyjulian
Regular
Posts: 88
Joined: Sun Mar 08, 2015 1:40 pm
Github: uyjulian
Contact:

Re: Ren'Py Game Chooser sample code

#7 Post by uyjulian » Thu Mar 16, 2017 6:06 pm

Imperf3kt wrote:Sorry, but I'm very untrusting when it comes to the internet. Could you elaborate a bit on what is inside the zip, how to use it, and its exact purpose?
Why do you need a multi game launcher when you have Ren'Py?
I pasted the code into Github.

If you want to pack multiple Ren'Py games and you want to be able to choose between them, you can use this launching method.
You can also have a common assets folder.

Code: Select all

config.searchpath.append("../assets")
renpy.loader.scandirfiles()
indoneko wrote:I couldn't download it. Can't you just upload it as forum's attachment?
I posted it onto Github.

Post Reply

Who is online

Users browsing this forum: Google [Bot]