Would it be possible to add saving of current mannequin pose to the profile? If you want I can try to dig up how to do it.
MannequinsSolved
I'll take a look.
I pushed some changes to the plugin's GitHub repository. Can you beta test it? There is a section in the documentation on how to set up mannequins.
https://github.com/WheteThunger/MonumentAddons
Thanks, I'll take a look later today.
Merged post
Testing commit 6b45ab3 with the clothing copy enabled.
Successfully tested the following:
- spawning 16 mannequins
- giving each mannequin a different post
- equipping hazmats and full gear sets (including scientist hazmats, backpacks, etc.)
- busy flag toggle
- saving
- restoring state by reloading the plugin (all mannequins maintained their poses, equipment, and busy flags on reload)
- changing equipment to AK itemid (results in graceful "Failed to move item" log message on plugin reload)
- installing Entity Scale Manager, changing scale, reloadinig plugin (scale persists)
It's a bit weird that you have to manually save pose/clothing changes but not busy flag changes. As a developer I understand the logic, but this does lead to some annoying corner cases like equipment getting reset when changing entity scale.
Thanks for the feedback! I appreciate you testing thoroughly and documenting those results.
Not sure if this addresses that issue exactly, but I've pushed a change to also save any other pending updates when changing scale or flags.
If there were post-hooks for the mannequin actions, I could simply hook into those to save the state, but currently there are only pre-hooks.
Ah, I didn't realize it was a hook limitation.
After playing a bit more with trying to create a scene with a mannequin in it, I can say that I forgot to do /masave about 3 times and lost my changes on a plugin reload before finally remembering to do it lol
Would you be interested in a feature which allows you to animate the mannequin between poses on a schedule? For example, a list of pose indices each with a duration. Just an idea I had, not sure how much work it would take to provide the interface to configure that.
I think people would probably enjoy that, assuming it's not too performance-intensive. Seems like something that would be easy to setup via manual JSON hacking, but obviously that's going to be too intimidating for a lot of people.
Not sure if you saw on GitHub, but I made an update to display via mashow when an entity has unsaved changes, which should cover most customizations that are currently supported by the plugin. It may have some false positives, such as if you remove and add back an item in a mannequin inventory, but I'm not too worried about such cases.
I also pushed the mannequin animation feature, though it requires manually editing the profile data file as you anticipated.
Locked automatically