Can't build distribution because of large data sets

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
FKATan
Newbie
Posts: 3
Joined: Tue Feb 04, 2020 12:09 am
Contact:

Can't build distribution because of large data sets

#1 Post by FKATan » Tue Feb 04, 2020 12:39 am

My game contains some extremely large data sets (dozens of arrays containing over 500,000 characters each) and it causes renpy to crash when attempting to build a distribution during the scanning phase (I have tried across multiple machines). Is there any way to manually build out distributions so I can try to avoid this?

rames44
Veteran
Posts: 232
Joined: Sun May 29, 2016 4:38 pm
Contact:

Re: Can't build distribution because of large data sets

#2 Post by rames44 » Tue Feb 04, 2020 1:12 pm

What about moving the data out of rpy files and over into pure Python files (.py)? That might eliminate the need for Ren’py to try to swallow all that data.

FKATan
Newbie
Posts: 3
Joined: Tue Feb 04, 2020 12:09 am
Contact:

Re: Can't build distribution because of large data sets

#3 Post by FKATan » Tue Feb 04, 2020 3:53 pm

rames44 wrote:
Tue Feb 04, 2020 1:12 pm
What about moving the data out of rpy files and over into pure Python files (.py)? That might eliminate the need for Ren’py to try to swallow all that data.
Unfortunately that did not make any difference

rames44
Veteran
Posts: 232
Joined: Sun May 29, 2016 4:38 pm
Contact:

Re: Can't build distribution because of large data sets

#4 Post by rames44 » Wed Feb 05, 2020 12:45 pm

Bummer. Well, I guess you could PM PyTom and see if there’s a setting somewhere that is constraining how much memory the packager can use, and whether it’s possible to tweak it. Past that, IDK...

rames44
Veteran
Posts: 232
Joined: Sun May 29, 2016 4:38 pm
Contact:

Re: Can't build distribution because of large data sets

#5 Post by rames44 » Wed Feb 05, 2020 12:54 pm

Ok, here’s one more thought. It’s ugly, but it might work. Suppose that you put the data sets into non-executable files and loaded the data at runtime. (Delay in the launch process, I know.) Then build the game WITHOUT those files included. Unzip the result, add the files to the game directory, re-zip.

Or, if the files get handled ok when you’re running in development mode, exclude them from the packaging options, build the game, than manually add the .rpyc files the same way.

Grasping at straws here... 😀

Last stupid question - are the files getting packaged into an rpa file? Maybe it’s that process that’s dying, and things would work if those files were not rpa’d?

FKATan
Newbie
Posts: 3
Joined: Tue Feb 04, 2020 12:09 am
Contact:

Re: Can't build distribution because of large data sets

#6 Post by FKATan » Thu Feb 06, 2020 12:29 pm

This has been solved with an update

https://github.com/renpy/renpy/issues/2110

Post Reply

Who is online

Users browsing this forum: Bing [Bot], span4ev