forked from rosebudai/OpenRCT2-Web
Move all reskin Python scripts, shell wrappers, and documentation into a self-contained tools/reskin/ directory. All 44 tests pass after the move with no path reference updates needed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2.0 KiB
2.0 KiB
Reskinning OpenRCT2 Web Uploads
This repo's web package is typically distributed as:
index.htmlindex.jsassets/assets.zipassets/rct2-content.zipassets/openrct2.zip
Use tools/reskin/build-upload.sh to apply your own files on top of an existing upload zip.
If your inputs come from initialized object workspaces (reskin-workbench/...), prefer:
tools/reskin/build-object-upload.sh (see tools/reskin/docs/pipeline.md).
For creating/editing object sprite files first, see:
tools/reskin/docs/object-authoring.md
Overlay Structure
Create an overlay directory with any of these subfolders:
upload/files merged into the top-level upload package.assets/files merged intoassets/assets.zip.rct2-content/files merged intoassets/rct2-content.zip.openrct2/files merged intoassets/openrct2.zip.
Only include files you want to replace or add.
Command
tools/reskin/build-upload.sh \
/path/to/openrct2-upload.zip \
/path/to/overlay \
/tmp/openrct2-upload-reskinned.zip
If output is omitted, it defaults to /tmp/openrct2-upload-reskinned.zip.
Common Reskin Targets
- Replace OpenRCT2 object visuals:
- Put replacement
.parkobjor.jsonfiles under:overlay/assets/object/... - Example:
overlay/assets/object/official/ride/openrct2.ride.modern_twister.parkobj
- Replace UI sprite data:
- Build new
g2.datfrom a modified sprite manifest (usingopenrct2-cli sprite build). - Place it at:
overlay/assets/g2.dat
- Replace font/palette data:
overlay/assets/fonts.datoverlay/assets/palettes.dat
- Replace legacy RCT2 DAT assets:
- Place replacements under:
overlay/rct2-content/Data/...oroverlay/rct2-content/ObjData/...
Notes
- The script validates core boot files remain present after patching.
- For object replacements, keep object IDs stable unless you intentionally add new IDs and update content that references them.
- To inspect paths inside an archive, use:
unzip -Z1 /path/to/assets.zip | head -200