Godot 4 export: my demo .pck is 870 MB but the demo uses 2 levels. How do I export only what the demo needs ?
Actually I am preparing the demo of my fishing game for the next Next Fest. Problem: the demo export is 870 MB. The full game is 1.1 GB. The demo has 2 lakes out of 9. Something is wrong and I think it is me. What I tried: Export mode "Export selected scenes (and dependencies)" with only the demo main scene ticked. The export is small, but it crashes when it loads lake 2, because the lakes are loaded by path from a…
Accepted answer
ogagnon-san! I had the same problem with my Tenjin demo build (=^・ω・^=) What worked for me: 1. Export mode "Export selected resources (and dependencies)". Tick the demo scenes AND the level resources you load by path. Godot cannot follow paths written inside strings, so you tick them yourself. 2. Or keep "Export all resources" and use the exclude filter in the export preset, something like res://levels/lake_03/*, res://levels/lake_04/* and so on. Easier for me because my folders are one per level. 3. Add a custom feature to the demo export preset (Features tab, Custom: demo). In code: if OS.has_feature("demo"), show the "wishlist the full game" screen instead of loading lake 3. Then even if a file slips in, nobody can reach it. 4. Audio: convert the music to .ogg. WAV in the export is huge. My music went from 300 MB to 25 MB. 5. Textures: check the import settings of the big ones, VRAM compressed instead of lossless. My demo went from 640 MB to 180 MB. ganbatte!- bro how do you even make the fish look at you. is it a shader or an animation fr