Page 1 of 1

Building Distributions - Archives and DLCs [SOLVED]

Posted: Sat Mar 11, 2017 6:09 am
by twixx
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?

Re: Building Distributions - Archives and DLCs

Posted: Sat Mar 11, 2017 6:27 am
by Ocelot
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

Re: Building Distributions - Archives and DLCs

Posted: Sat Mar 11, 2017 6:33 am
by twixx
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 ^^