.pck file exceeds file limit, individual files wouldn't

Hi! I’m using Godot 4.7.2 for a game jam, and I thought about including real-world videos into my gameplay. The problem is, I have to export the project for web. That already limits my options quite a bit, but there’s another problem:

Itch.io allows a file to be only 200MB. If Godot packs all my videos into one singular .pck file, my videos can only have a combined file size of 200MB. If I could have them separately, I would be able to use the allowed 500MB fully.

AI suggested to load the videos using the JavaScriptBridge, but I don’t think that would work since I want the videos to be displayed on a “screen” in 3D.

I also thought about splitting my project into multiple .pcks, but it seems I would require root on the web server, which is not given on itch.io.

Is there any way to solve this or should I abandon this idea?

In this thread, they explained that splitting a PCK into parts isn’t encouraged. So this is probably the last one.

You could try making videos similar to DLCs, so that they load from a different PCK than the game itself.

You could try making videos similar to DLCs, so that they load from a different PCK than the game itself.

I’ve already tried doing that, but can’t seem to load any files that are included in the itch web upload. I tried using index/video.ogvand video.ogv, and both times it just said that it couldn’t locate the file. I believe it would be the same with .pck files.

How did you try using these paths?

If anything splitting the packs would require using ProjectSettings.load_resource_pack("disk2.pck"); I don’t have high hopes for a similar “itch.io cannot directly access files” reason. I think you would have to download the video files with an HTTP request. Maybe you can shrink the videos, have you tried a lower bitrate?

It’s best to test this out in practice, and if it doesn’t work, then look for other solutions. I haven’t delved too deeply into this topic yet, but I suspect, though I’m not entirely sure, that there might be a difference between loading a PCK and a regular video.

This seem to be best option, as saving resources/settings into

("user://resource.pck")

works on itch.io so he could just host it else and request with http request, or maybe download videos directly in first scene would make most of sense?

AFAIK that’s the browser’s Indexed DB storage and is very size limited.

You can upload larger files to Itch if you use their command line, butler. Uploading large games (FAQ) - butler - itch.io

Have you considered loading the videos using an HTTPRequest node?