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

Ren'Py Game Chooser sample code

#1 Post by uyjulian »

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: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Ren'Py Game Chooser sample code

#2 Post by gas »

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 not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

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

Re: Ren'Py Game Chooser sample code

#3 Post by uyjulian »

ah, okay.
Can a mod move it there?

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
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, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Ren'Py Game Chooser sample code

#4 Post by Donmai »

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

Re: Ren'Py Game Chooser sample code

#5 Post by Imperf3kt »

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.

Current project: GGD Mentor

Twitter

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 »

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

Re: Ren'Py Game Chooser sample code

#7 Post by uyjulian »

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: henne, Ocelot