NightPotato / Starground-SDK

A Godot editor addon for making mods for the game Starground.
1 stars 0 forks source link

Adding Compression to Exported Mod Files #1

Open NightPotato opened 1 week ago

NightPotato commented 1 week ago

Why should this functionality exist? Large projects will be using lots of sprites and scripts. This can increase the file-size of the exported project massively, adding compression will make it better and I don't know the possible limitations of where the mod will be uploaded to.

What usage does this functionality provide? On Export Mod Function, the SDK will compress the files and pack them into a ZIP file. This will reduce the size of the output mod.zip

Is this functionality possible by other methods? No.

NightPotato commented 6 days ago

See StreamPeerGZip & ZipPacker for some information to implement this functionality.

NightPotato commented 6 days ago

Maybe this should only be added if the filesize is above a certain threshold. If not its useless to do on smaller mods.