Is it possible to have multiple archive files?

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
GeeSeki
Regular
Posts: 112
Joined: Sat Dec 17, 2016 3:39 am
Projects: A Town Uncovered
itch: geeseki
Contact:

Is it possible to have multiple archive files?

#1 Post by GeeSeki »

Say I want to separate the images from the rest, can I have 2 archive files?

Code: Select all

    ## Classify files as None to exclude them from the built distributions.

    build.classify('clean.exe', None)
    build.classify('index.exe', None)
    build.classify('**~', None)
    build.classify('**.bak', None)
    build.classify('**.md', None)
    build.classify('**/.**', None)
    build.classify('**/#**', None)
    build.classify('**/thumbs.db', None)
    build.classify('**.rpyc', 'archive')

    ## To archive files, classify them as 'archive'.

    build.classify('game/**.png', 'archive')
    build.classify('game/**.jpg', 'archive')
    build.classify('game/**.mp3', 'archive')
    build.classify('game/**.ogg', 'archive')
    build.classify('game/**.wav', 'archive')
    build.classify('game/**.rpy', 'archive')
    build.classify('game/**.rpt', 'archive')
I tried adding a simple number system after 'archive' (eg 'archive1' and 'archive2') but that doesn't work. Just wondering if it's possible.

User avatar
Godline
Veteran
Posts: 499
Joined: Fri Jun 27, 2014 12:26 am
Completed: numerous
Tumblr: godlinegames
Deviantart: godline-games
itch: godline
Contact:

Re: Is it possible to have multiple archive files?

#2 Post by Godline »

Add in

Code: Select all

    build.archive("scripts", "all")
    build.archive("images", "all")
    build.archive("music", "all")
    
    
    
then change

Code: Select all

    build.classify('game/**.png', 'images')
    build.classify('game/**.jpg', 'images')
    

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Semrush [Bot]