Forum Discussion

TriplisTrip's avatar
8 years ago

Would it be possible to script inject into an ASM?

Tagging @TURBODRIVER cause I know you have some experience with script injections. Figure if anyone in the modding community knows, it might be you.

Basically, what I'm looking at is... there's a centralized "CAS" ASM file, (ID/name is 02D5DF13!00000000!D8D5C1186BA97FDC.CAS.AnimationStateMachine if you use Sims Studio to extract it). In theory, with the file as it is right now, I'm pretty confident I could override it and put in some new CAS trait idles (I already have some custom trait idles put together that work in-game, but not in CAS yet, since that's a separate animation reference).

But assuming that's a thing I could do, the forward-compatibility would be poor. I'd probably be looking at updating the file every single time Maxis adds content that adds additional CAS-based animations.

So I'm wondering if there's any possibility I could inject somehow. I'd need to inject parts like:











Within this, I think:




And I'd need the names under this:




Possibly this as well (not sure if I strictly need the IK Configuration):








So it's pretty involved, I'd assume. Maybe way too involved for a script injection, but I figured I'd ask and see what people know. Would be really cool if it could be done, as it'd open the door to some neat possibilities.
  • MR_TURBODRIVER's avatar
    MR_TURBODRIVER
    Seasoned Newcomer
    Hey!

    Bad news for you, state machine files are not loaded into any instance manager on the scripting side. You can access them, but only as a raw file and that wouldn't get you anywhere.

    It looks like that exact CAS ASM file is used for walk styles in-game. CAS screen is in no way accessible from the scripting side, it's purely a client-side thing.

    But, maybe this is your answer. Have you tried adding a walk style? Maybe that universally makes CAS use some idle animation at the same time. I can't help you with that though.
  • @TURBODRIVER Thanks for the explanation! That's too bad. Oh well, fun idea while it lasted.

    I've not added a walkstyle yet, but it is an interesting thought.

About The Sims 4 Mods & Custom Content

Find expert tips, troubleshooting help, tutorials for mods and custom content, and The Sims 4 patch files in our forum.4,703 PostsLatest Activity: 3 hours ago