Building Distributions - Archives and DLCs [SOLVED]

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
twixx
Newbie
Posts: 12
Joined: Mon Jan 09, 2017 2:25 pm
Contact:

Building Distributions - Archives and DLCs [SOLVED]

#1 Post by twixx » Sat Mar 11, 2017 6:09 am

I'm trying to build my first distribution, but I'm not sure how I should proceed with some Bonus / DLC content.
Also, I don't really understand the distributon building syntax, so newbie friendly advice would be appreciated :oops:

The goal: A free VN, but if let's say a user wants to pay $1 on itch.io they get some bonus content for the VN.
But if someone wants to get it free, then decides they want the bonus content, then they shouldn't redownload a whole new distribution with the bonus content, only the bonus files.

The main.rpy script is adjusted accordingly:

Code: Select all

label main_content:
   [main content]

   if renpy.has_label("bonus_content_1"):
      jump bonus_content_1

label continue_main_content:
   [continue main content]



# in bonus1.rpy

label bonus_content_1:
   [bonus content]
   jump continue_main_content
Images and backgrounds are separated into Main folder and Bonus folder.

Question is, what code do I use to build archived distribution, so that the user can add the bonus content by copying the bonus archive to the main game diretory?
Last edited by twixx on Mon Mar 13, 2017 10:07 am, edited 1 time in total.

User avatar
Ocelot
Eileen-Class Veteran
Posts: 1883
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Building Distributions - Archives and DLCs

#2 Post by Ocelot » Sat Mar 11, 2017 6:27 am

Assuming that all bonus content is in /dlc/ directory.

Code: Select all

build.archive("bonus", "all")
build.classify("game/dlc/**", "bonus")
# rest of classification.
This will put everything from dlc directory into bonus.rpa archive.

Here is the documentation page on distributions: https://www.renpy.org/doc/html/build.html
< < insert Rick Cook quote here > >

twixx
Newbie
Posts: 12
Joined: Mon Jan 09, 2017 2:25 pm
Contact:

Re: Building Distributions - Archives and DLCs

#3 Post by twixx » Sat Mar 11, 2017 6:33 am

Ocelot wrote:Assuming that all bonus content is in /dlc/ directory.

Code: Select all

build.archive("bonus", "all")
build.classify("game/dlc/**", "bonus")
# rest of classification.
This will put everything from dlc directory into bonus.rpa archive.

Here is the documentation page on distributions: https://www.renpy.org/doc/html/build.html
Wow, it's that simple? Thanks a lot, I'll try it and see how it works!

The documentation was my first stop, it's still very new to me. I think with your help I will be able to figure it out ^^

Post Reply

Who is online

Users browsing this forum: Google [Bot]