You are browsing as a guest. Sign up (or log in) to start making projects!

4h 10m 10s logged

Project Packaging is Working

been spending a lot of time working on project packaging, and it’s finally working now.

the engine can now load projects directly from .obpak files, and I’ve got basic tooling to create them as well.

the plan is to integrate the tooling i have now with the editor to “build” an obpak archive (i think its called an archive?)

changes

packaging

implemented the full packaging/loading pipeline yippie :D

currently the packer:

  • pre-generates ASTs for ObSL scripts
  • converts project, scene(s) and prefab(s) JSON into MessagePack
  • bundles everything into a single .obpak container
  • compresses the package with LZ4

assets like textures, audio and shaders just get copied into the package without any conversion

runtime

the engine can now load packaged projects directly instead of relying on loose project files.

all of this goes through the VFS, so from the engine’s point of view it doesn’t really matter whether assets are coming from a folder or from an .obpak

(i.e it can still load loose project files of course)

tooling

added command-line tools for packing and unpacking projects, i originally made it for testing but it’s actually pretty nice to work with so im probably keeping it.

still probably things to polish, but it’s pretty satisfying seeing the engine load an entire packaged project properly


pls ignore the lag in the video, i promise its not as terrible as it looks, its just that recording is pretty buggy for me

0
7

Comments 0

No comments yet. Be the first!