Skip to content

Creator clips: Build an item, clip slots, animation packs, consumable effects (#333) - #306

Merged
GhzGarage merged 84 commits into
mainfrom
claude/p2-build-an-item
Dec 3, 2026
Merged

GhzGarage merged 84 commits into
mainfrom
claude/p2-build-an-item

Conversation

@GhzGarage

@GhzGarage GhzGarage commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Creator clips, the whole plugin half of mantle #333 (P1, P2, P3 and the plugin side of G10) in one PR. Replaces #304.

Mantle-PR: mantleplatform/mantle#476

Build an item

  • "Build a weapon" is now "Build an item". A first screen picks the type: Weapon (screens unchanged, no clip slots), Consumable, or Usable item (hold item, delivery signal; no attack and no built-in effect, the place's script decides what Use does).
  • Consumables and usable items have an Animations screen: Hold, Use, Equip and Put away, bound to the clip fields on UMantleWeaponSource, with a mannequin preview, UEFN retarget, and the item in the left hand placed by the game's shared MantleHandAttach rule.
  • Grip: no sockets.grip is written unless the creator moves the grip point. Until then the builder and preview show the game's default (bottom center of the item's bounds, upright).
  • The automatic fit keeps a consumable's or usable item's own up and front, so a tall bottle stays upright. A model clearly lying along its Y is turned a quarter to point forward. Such items are sized by their longest side. Weapons are unchanged.
  • Consumables and usable items have "Turn around", "Tip forward" and "Tip sideways" buttons that reach every quarter-turn orientation; a turn frames the view again so the item stays in sight. Weapons keep their two flip buttons.
  • Parts left over from a gun are not baked into these items.
  • Consumables: the effect is Heal, None, Stamina, Hunger or Thirst with an amount; with the creator's own Use clip the document says when the effect happens (useEffectSeconds) and the eat/drink picker is greyed out.

Clips and animation packs

  • Shared conversion: clips on the UEFN, MetaHuman, UE5 or UE4 Mannequin skeleton become a UEFN place clip with the contract's full 93-bone table; other skeletons are refused. Per-clip limits and an 8 MiB item total.
  • Item clips are copied into the item folder, written to the clips block, uploaded as animclips and swapped for ids.
  • The built-in UEFN mannequin gains the skeleton's prop and virtual bones, so prop tracks survive (emotes too). A project without a UEFN mannequin shows it as a figure of its bones, with a line saying so.
  • Animation packs (kind animPack): publish source and a Cosmetics panel section on the shared Clips control.
  • Maintainer commands: Mantle.Dev.MakeCreatorClip, Mantle.Dev.PublishAnimPack, Mantle.Dev.ItemBuilderShots. Mantle.Dev.BuildWeapon takes holdclip=, useclip=, equipclip= and putawayclip= (full object paths).

Shared files synced from mantle e267abdd6 (the final creator clips line, with #475 and G4c); mantle#476's head ee84566a5 differs only in files that are not shared.

Test locally

  • A consumable's or usable item's own clips are cooked and bundled with it: the weapon's "assets" map each clip's local name to an animclip id. The game side that reads them is G4c.
  • For an item with clips, Test locally now also refuses what publishing would (a missing extra part, a bad attack sound).

Place storage (mantle #475)

  • The 32 limit counts vehicles, weapons and wheels, not script packages (patches from the #475 session, 6043ad4 and ba013ef). Its shared copies are synced in e810e79.

Small decisions made here

  • A standing long item (a torch or wand modeled upright) starts out pointing up; "Tip forward" lays it forward.
  • The lantern or bottle in the preview stands up from the palm and overlaps the wrist; this is the game's rule, kept as is.

Tests

Combined run, mantle c7fb1b23c with this branch at e810e79: build OK, 216 tests, 214 passed, 2 failed. One failure was this PR's new bundle-clips test (a test bug: its clip was temporary and could not be saved), the other a mantle consumable test. The run covered CreatorClips, Editor.Emote, WeaponBuilder*, WeaponFit, WeaponTestLocally, WeaponPublish, BuildAnItem, CustomAvatar, AvatarPreview, AvatarStorage, PlaceStorage, Library.Storage and LibraryPublish.
Re-run, mantle ee84566a5 with the head 3dfa381 (a test-only change on e810e79): Consumable and BuildAnItem, 18 of 18 passed.
In the same session's potion check, Test locally carried the potion's clip, the game played the creator's clip and the heal landed at 1.50 s.
A hunger consumable with a Use clip, a usable item with a Hold clip and a pistol created through the builder pass mantle's weapon schema and rules (checked at a43cb53).
Pictured in a running editor: a tall bottle upright and tipped forward in the Animations preview, and the size screen after "Tip forward".
From P1 (at 43d90d1): Mantle.Dev.PublishAnimPack against a local backend: first publish = version 1, unchanged republish = no new version, republish with a second clip = version 2.

Not verified

  • In-game behavior beyond the potion check: held position, a usable item's clips and other effects were not compared with a running game.
  • No item upload through the builder; no publish from the pack panel's own button.
  • The consumable effect screen and builder step 4 were not pictured (tests cover them).
  • The size screen can open too close: seen with the pistol in a small offscreen window, where the gun was out of view. Weapon framing was not changed here.
  • Creator docs still say "Build a weapon"; so does one comment in a shared MantleRuntime header.
  • Play re-retargets on each click; switching item type resets weapon settings without a warning.

🤖 Generated with Claude Code

GhzGarage and others added 30 commits December 2, 2026 18:34
…checks, and Mantle.Dev.MakeCreatorClip (mantle #333 P1, first part)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…written by uploaded id; automation tests (mantle #333 P1)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…on (the contract's jaw and dyn_ bones are no body bones)

The contract's ue4mannequin and ue5mannequin fixtures list a jaw and 46 dyn_ secondary-motion bones that Epic's mannequins do not have, so the carry rule refused them with 'no spine_04' (nearest the uefn skeleton). Found with the UE4 potion clip (mantle #333).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e, so every one hashes the same (G0 finding)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…uefn table

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…, one length error, missing uefn fixture refuses, own log category)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e bone (prop and virtual bones)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…Pack document, and a test

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…es it lacks, so a held item's prop track is sampled; test

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… that converts and uploads the clips, then the animpack document, then the animPack item; a test

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…'s folder and named in the clips block; G1's weapon document patch (00ac1921a); test (mantle #333)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…hes mantle's home copy)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… only)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…on; the Animation pack section in the Cosmetics panel (the shared Clips control gets a free-named mode); Mantle.Dev.PublishAnimPack

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…l, clear the stale publish refusal, prop-bone test only when the built-in mannequin is the one sampled

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… too

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…l counts toward this item's 8 MiB total

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…d clip slots with preview (mantle #333 P2, usable item waits on G3)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ader, edited clips mark the item changed, preview copy waits for compression, a clip with no source body is refused on the screen)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…eens, export with clips and optional grip; weapon document synced from mantle 515daa65f (mantle #333 P2)

Needs EMantleWeaponHold::Item and EMantleWeaponSourceDelivery::Signal from mantle's MantleWeaponSource.h before it compiles.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…333)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…rs, digits, _; at most 64); default names made from asset names fit it (mantle #333 G10)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…s 64 KiB (mantle #333 G10)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… label for signal

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… delivery (mantle #333 G3)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
GhzGarage and others added 11 commits December 2, 2026 22:14
… amount on the weapon source (mantle #333 G4)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…with none placed (mantle #333 G3)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ur and the preview show the game's default spot (mantle #333)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ip default (mantle #333)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…able or usable item (they moved its default grip)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…, so a tall bottle stays upright (mantle #333)

The fit laid their longest side forward. Now the model stands as it was made; one clearly lying along its Y is turned a quarter to point forward. Sized by the longest side. Weapons are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…writes a document with an effect and amount (mantle #333)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…G3 and G4+G8 (mantle #333)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@GhzGarage GhzGarage changed the title Creator clips: Build an item, with usable items and clip slots (mantle #333 P2) Creator clips: Build an item, clip slots, animation packs, consumable effects (#333) Dec 3, 2026
@GhzGarage
GhzGarage changed the base branch from claude/suspicious-bhabha-32cc8d to main December 3, 2026 05:00
@GhzGarage
GhzGarage marked this pull request as ready for review December 3, 2026 05:00
GhzGarage and others added 12 commits December 2, 2026 23:02
…ns that reach every way round (mantle #333)

Keeping the model's own up is the default; an upright torch can still be tipped forward. Weapons keep their two half turns.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… so a harness can build one without the window (mantle #333)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…s G9, mantle #333)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… (clips by name, script API 1.118, G9, main) (mantle #333)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…again (mantle #333)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…script packages (mantle #475)

Compiles only with the shared copies from the mantle commit that adds MaxStoredItems.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…it stays in view (mantle #333)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ntle #333)

Publishing's clip conversion is shared (ConvertItemClips); the bundle lists each clip in the weapon's assets under the settings file's local name.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…storage limit (#475), consumable creator clips (G4c, mantle #333)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…transient (mantle #333)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@GhzGarage
GhzGarage merged commit f515c9d into main Dec 3, 2026
1 of 3 checks passed
@GhzGarage GhzGarage mentioned this pull request Dec 3, 2026
@GhzGarage
GhzGarage deleted the claude/p2-build-an-item branch December 3, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant