forked from rosebudai/OpenRCT2-Web
Move Docker build infra, dev server, reskin pipeline, and packaging script from emscripten/ and tools/ into rosebud/ to cleanly separate fork-specific work from upstream code. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2.4 KiB
2.4 KiB
Object Authoring Workflow (PNG -> images.dat -> .parkobj)
This guide uses scripts in this repo to create editable object workspaces from an existing web upload package.
Prerequisites
- Input upload zip (example:
/Users/meiliu/Downloads/openrct2-upload.zip) - Docker available (used by
scripts/openrct2-cli-docker.sh) build_native/openrct2-clibuilt once (the wrapper prints the exact build command if missing)
1) Initialize an editable workspace
rosebud/reskin/init-workspace.sh \
/Users/meiliu/Downloads/openrct2-upload.zip \
object/official/scenery_small/official.scenery_small.support_structure_half.parkobj \
/Users/meiliu/git/rosebud/OpenRCT2-Web/reskin-workbench/support-structure-half
Workspace contents:
object.json: object metadata and IDsimages.dat: current sprite archiveobject-path-in-assets-zip.txt: target file path insideassets/assets.zipsprites/*.png: editable sprite framessprites.json: sprite manifest used to rebuildimages.datrebuild-object.sh: one-command rebuild and pack
2) Edit sprite PNGs
Edit files in:
/Users/meiliu/git/rosebud/OpenRCT2-Web/reskin-workbench/support-structure-half/sprites/
Keep sprite count/order stable unless you intentionally update object.json image ranges.
3) Rebuild the object
/Users/meiliu/git/rosebud/OpenRCT2-Web/reskin-workbench/support-structure-half/rebuild-object.sh
Outputs:
images.datreskinned.parkobj
4) Build a patched upload zip
rosebud/reskin/build-object-upload.sh \
--rebuild \
/Users/meiliu/Downloads/openrct2-upload.zip \
/tmp/openrct2-upload-reskinned.zip \
/Users/meiliu/git/rosebud/OpenRCT2-Web/reskin-workbench/support-structure-half
This command rebuilds the workspace artifact, maps it to the original object path from object-path-in-assets-zip.txt, and writes a patched upload zip.
For additional options and multi-object packaging, see:
rosebud/reskin/docs/pipeline.md
Notes
scripts/openrct2-cli-docker.shrunsopenrct2-cliinside Docker and mirrors your current repo subdirectory as container working directory.init-reskin-object-workspace.shfilters non-JSON log lines from export output sosprites.jsonstays valid.- Objects that depend on
$RCT2:OBJDATA/...can need additional base game data to export perfectly. Start with self-contained.parkobjobjects (those using$LGX:images.dat[...]) for easiest iteration.