Building game doesn't archive images in an .rpa file

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
pronehouse
Newbie
Posts: 8
Joined: Sun Jun 24, 2018 4:06 am
Contact:

Building game doesn't archive images in an .rpa file

#1 Post by pronehouse »

I apologize if there's something obvious I'm missing. So, supposedly, if you build the distribution of your game, the files whose extension you classify as 'archive' in the options file should be compiled as a .rpa file. That doesn't seem to happen to me. This is the part in the options file.


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

# build.classify('game/**.png', 'archive')
# build.classify('game/**.jpg', 'archive')
# build.classify('game/**.webp', 'archive')


So, what am I doing wrong?

mikolajspy
Regular
Posts: 169
Joined: Sun Jun 04, 2017 12:05 pm
Completed: Too many, check signature
Deviantart: mikolajspy
Location: Wrocław, Poland
Contact:

Re: Building game doesn't archive images in an .rpa file

#2 Post by mikolajspy »

First of all, by putting # in front of line, you comment them out - disable them.

If you want to have separate archive for images, try this instead:

Code: Select all

    build.archive('images', 'all')

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

pronehouse
Newbie
Posts: 8
Joined: Sun Jun 24, 2018 4:06 am
Contact:

Re: Building game doesn't archive images in an .rpa file

#3 Post by pronehouse »

Oh- I knew it was something incredibly dumb from my part. Thanks!

Post Reply

Who is online

Users browsing this forum: Google [Bot]