Skip to content

Automatic conversion on upload and download #21

@karst

Description

@karst

I think on inserting in the database a parkobj should be seperated and placed into a folder. Automatically convert whatever they have in there (loose png files, atlas png or lgx) into atlas files, next to their object.json (which should automatically be edited accordingly).

Upon downloading this file would convert into a parkobj in LGX format.


In the case of music, someone can upload this in with WAV, FLAC or OGG Vorbis format but it should automatically be saved in the repo as OGG Vorbis. And edit the object.json to have all files use ogg.

Upon downloading this file it would pack the object json and music.ogg into a parkobj.


This way the repo will small, easy to overview and most of all optimize the files for people to download, conforming to the same standard.

I do think there needs to be a moderation thing to check the language files before they're allowed to be added to the repo (so people don't put anything in there that causes clutter, like an author name and such). I think for this it'd be smartest if there's a database and daily or weekly a bot creates an automatic PR with the converted files that we can go by and check and edit if necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions