Repository navigation
Desktop Pet English
The desktop pet is Ez’s own fullscreen layer. It is not a skin component and not an Ez layout-editor component. Changing skins, resetting the HUD, or hiding the in-game HUD will not remove it. Visibility, pack, scale, and position live in Ez config.
Full pack authoring and pet.json field reference (Chinese, recommended when building packs):
- docs/桌宠使用说明.md
- Copyable template: docs/Pets/pet.json
Path: Settings → Ez Gameplay → Desktop pet (off by default)
| Option | Purpose |
|---|---|
| Enable desktop pet | Master toggle |
| Show on main menu / song select / gameplay | Per-scene checkboxes |
| Pet pack | Scans folders with pet.json under EzResources/Pets/
|
| Pet scale | Sprite size |
Position: hover the sprite, then Left Alt + left-drag. Do not look for it in the skin or Ez layout editors.
Gameplay clicks: normal clicks pass through the sprite so aiming is unaffected; hover animations still work.
EzResources/Pets/
Default/ ← built-in (placeholder blocks when no frames)
pet.json
YourPack/
pet.json
idle/
xxx_000.png
xxx_001.png
hover/
poke/
…
Rules of thumb:
-
One folder per action; folder name matches the clip id (
star_easyis accepted forstarEasy). - Frame filenames need a
_digitssuffix (prefer_000,_001, …). png / jpg are supported. - Missing folder or no valid frames: that action never fires; others still work.
- Pure-black AI frames without matting: set
"blendMode": "blackKey"inpet.json.
action |
Effect |
|---|---|
play (default) |
Jump to goto and play a clip |
show |
Make visible; optional goto
|
hide |
Hide until a later show, or until leaving gameplay |
Common events: hover / hoverEnd / click / gameplayEnter / combo (at) / miss (optional streak) / idle (afterSeconds).
The docs template hides on enter, shows (and plays) at combo 200, then hides again at combo 500.
- Create a folder under
EzResources/Pets/(name = pack dropdown value). - Add
pet.json(copy the template above orDefault/pet.json). - Add per-action folders and frame sequences.
- Select the pack in settings; after editing files, re-enter or switch the pack name to reload.
Frame-generation prompts (character lock + storyboards):
Export one folder per action; do not dump all frames in the pack root.
- Place the pack under
EzResources/Pets/<pack>/with"renderer": "live2d". - Cubism Core under
_cubism/<platform>/or the SDKCore/dlltree. - Same rules as PNG; clips can activate stacked parameter expressions (smile/wave/jump). Template: pet.live2d.example.json
- Settings: optional “Live2D lip-sync to music”.
- Details: Live2D测试指南.md
- Only coloured blocks: Default uses placeholders when frames are missing; drop PNGs into the action folders.
- Nothing visible: confirm the master toggle; default is lower-right — Alt-drag to move. It never appears in editor component lists.
- Click does nothing: gameplay clicks intentionally pass through; try song select, or rely on hover.
-
Purple Live2D placeholder: usually missing Core under
_cubism/<rid>/, or no model entry underlive2d/.