The whole game in 1 script.rpy?

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
Suro
Newbie
Posts: 2
Joined: Mon Jan 02, 2017 11:38 am
Contact:

The whole game in 1 script.rpy?

#1 Post by Suro »

Hello there!

I recently came across Ren'Py, after successfully finishing NaNoWriMo and I want to get to know it better in this year.

While digging around in the tutorials and on youtube, I always only managed to see small test-projects being shown, with mostly 2 characters going back and forth. When realizing this, I started to wonder how one would tackle a Vn with multiple characters, a couple of dozen scenes and round about 50k words.

In unity I am somewhat used to the idea of having to split the game (including cutscenes, logic and models) into several scenes. Is this something I should/can do in Ren'Py as well, or do I write the whole game, from the first sentence till the "The End" into this single script.py?

I already tried to find the answer for this, but as with every new program, I didn't really know what I was supposed to search for.
Hopefully you can help me with that!

Cheers!

User avatar
vollschauer
Veteran
Posts: 231
Joined: Sun Oct 11, 2015 9:38 am
Github: vollschauer
Contact:

Re: The whole game in 1 script.rpy?

#2 Post by vollschauer »

The short answer would be yes, you can put your whole story into the "script.py" BUT you can also have multiple files. So it's totally up to you....

Suro
Newbie
Posts: 2
Joined: Mon Jan 02, 2017 11:38 am
Contact:

Re: The whole game in 1 script.rpy?

#3 Post by Suro »

vollschauer wrote:The short answer would be yes, you can put your whole story into the "script.py" BUT you can also have multiple files. So it's totally up to you....
Sounds good!
I'll just assume that I can rename script.rpy into anything I need (day01.rpy, day02.rpy, etc), as long as I keep that in mind when jumping around from 1 script to another?

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: The whole game in 1 script.rpy?

#4 Post by trooper6 »

Script must keep the name script. All you new files can have new names, day01.rpy for example. Also, keep the start label in the script.rpy file.

And just so you know how it works, Ren'py treats all rpy files as one big file...so make as many as you like.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

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

Re: The whole game in 1 script.rpy?

#5 Post by Imperf3kt »

I have a couple of projects going (some abandoned)
Since I don't use the start label, I usually start like this in script.rpy

Code: Select all

# Game Start ## Not used

label start:
return
I define where to start from, from within the main menu.
You still need the start label, but thats all you need. It doesn't need to contain anything. you can make as many files as you want, as stated by others.
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: 16093
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: The whole game in 1 script.rpy?

#6 Post by PyTom »

I don't think you need the start label for anything. If Ren'Py is calling it for some reason, it means some code is running in the main menu context and then returning, which is probably the sign of worse problems happening.
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

Post Reply

Who is online

Users browsing this forum: No registered users