Skip to content
CandaceZccPublic

About

基于电棍otto白银圣经切片的codex pet

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

电棍otto Codex Pet

基于当前目录里的 Otto GIF 素材制作的 Codex 自定义 pet。成品保留真人直播切片的 meme 感,按 Codex pet contract 打包为 pet.json + spritesheet.webp。

一键安装

npx codex-pets add diangun-otto

Pet 页面:

https://codex-pets.net/#/pets/diangun-otto

预览

构建后可查看 QA 图:

Start-Process .\pet-build\qa\contact-sheet.png

各状态动图预览位于:

pet-build/qa/previews/

本地安装

在 PowerShell 中从仓库根目录执行:

$dest = Join-Path $env:USERPROFILE ".codex\pets\diangun-otto"
New-Item -ItemType Directory -Force -Path $dest | Out-Null
Copy-Item .\pet\diangun-otto\pet.json $dest -Force
Copy-Item .\pet\diangun-otto\spritesheet.webp $dest -Force

重启 Codex 后,在自定义 pet 列表中选择 电棍otto。

重新构建

依赖:

python -m pip install pillow rembg onnxruntime

生成 pet、QA 预览和可发布包:

python .\tools\build_otto_pet.py

输出位置:

pet/diangun-otto/pet.json
pet/diangun-otto/spritesheet.webp
pet-build/qa/contact-sheet.png
pet-build/qa/previews/

校验

如果本机安装了 hatch-pet skill,可运行:

python "$env:USERPROFILE\.codex\skills\hatch-pet\scripts\validate_atlas.py" .\pet\diangun-otto\spritesheet.webp --json-out .\pet-build\final\validation.json
python "$env:USERPROFILE\.codex\skills\hatch-pet\scripts\inspect_frames.py" --frames-root .\pet-build\frames --json-out .\pet-build\qa\frames-review.json

文件说明

  • tools/build_otto_pet.py:从原始 GIF 清洗、补色、抽帧并生成 Codex pet。
  • pet/diangun-otto/:可直接安装或上传的最终 pet package。
  • pet-build/:构建产物和 QA 文件,可重新生成。
  • *.gif:原始素材。

License

代码部分使用 MIT License。GIF、spritesheet、预览图和其他视觉素材使用 CC BY-NC-SA 4.0;原始素材中涉及的人物、片段和相关权利仍归原权利人所有。

About

基于电棍otto白银圣经切片的codex pet

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages