Please help

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
radu32167
Newbie
Posts: 24
Joined: Wed Nov 23, 2016 10:25 am
Contact:

Please help

#1 Post by radu32167 »

Hi, I made a little game, and when I try to build the distribution this is the error that pops up

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/distribute.rpy", line 1465, in script
  File "game/distribute.rpy", line 1472, in <module>
  File "game/distribute.rpy", line 551, in __init__
  File "game/distribute.rpy", line 1256, in make_package
  File "game/package_formats.rpy", line 148, in add_file
  File "game/package_formats.rpy", line 98, in write_with_info
error: integer out of range for 'L' format code

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "game/distribute.rpy", line 1465, in script
  File "G:\New folder (2)\renpy-6.99.12.4-sdk\renpy-6.99.12.4-sdk\renpy\ast.py", line 814, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "G:\New folder (2)\renpy-6.99.12.4-sdk\renpy-6.99.12.4-sdk\renpy\python.py", line 1719, in py_exec_bytecode
    exec bytecode in globals, locals
  File "game/distribute.rpy", line 1472, in <module>
  File "game/distribute.rpy", line 551, in __init__
  File "game/distribute.rpy", line 1256, in make_package
  File "game/package_formats.rpy", line 148, in add_file
  File "game/package_formats.rpy", line 98, in write_with_info
error: integer out of range for 'L' format code

Windows-8-6.2.9200
Ren'Py 6.99.12.4.2187
Ren'Py Launcher 6.99.12.4.2187

I'm absolutely lost. Can anyone help. The game starts when I press "Launch Project".

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Please help

#2 Post by PyTom »

Is it possible you have a very big file - bigger than 2 gigabytes? That's the obvious cause of that problem.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

radu32167
Newbie
Posts: 24
Joined: Wed Nov 23, 2016 10:25 am
Contact:

Re: Please help

#3 Post by radu32167 »

Yes

Is there anything I can do about it?

User avatar
Divona
Miko-Class Veteran
Posts: 678
Joined: Sun Jun 05, 2016 8:29 pm
Completed: The Falconers: Moonlight
Organization: Bionic Penguin
itch: bionicpenguin
Contact:

Re: Please help

#4 Post by Divona »

radu32167 wrote:Yes

Is there anything I can do about it?
What is this file that is bigger than 2GB? Video? You will have to compress the file down to be under 2GB.
Completed:
Image

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Please help

#5 Post by PyTom »

Yeah, a 2GB file isn't going to be useful. You'll hit limits at about 500MB or so, just for what sites are willing to host for you.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

radu32167
Newbie
Posts: 24
Joined: Wed Nov 23, 2016 10:25 am
Contact:

Re: Please help

#6 Post by radu32167 »

Yeah, it's a video file. A couple of them actually :)

So there isn't anything I can do except try to compress it?

User avatar
Divona
Miko-Class Veteran
Posts: 678
Joined: Sun Jun 05, 2016 8:29 pm
Completed: The Falconers: Moonlight
Organization: Bionic Penguin
itch: bionicpenguin
Contact:

Re: Please help

#7 Post by Divona »

radu32167 wrote:Yeah, it's a video file. A couple of them actually :)

So there isn't anything I can do except try to compress it?
Yes. It's never a good practice or valid reason to use uncompressed video file in the end product.
Completed:
Image

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Please help

#8 Post by Imperf3kt »

I'm gonna go out on a limb and say it's already compressed - just not enough (Raw video can be several hundred Gbs for only a few minutes of SD content)
So this is a per-file issue, or does Ren'Py have some kind of upper limit on overall package size?
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Please help

#9 Post by PyTom »

I believe it's a per-file issue at this point. It may be per-game on Android and iOS. I know Ren'Py works with games larger than 2GB compressed, but I'm not sure if we can handle the 4GB limit.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: No registered users