Jump to content

Recommended Posts

Taking a break from working on smashup to try converting Kaji to DST again. I've actually been able to get most of him working already but his transformations don't show up on client side, And I realized it's because anim builds/banks work differently in DST.

Is it even possible to swap a character's anim build/bank in DST? I've been looking through the code and haven't found any examples of this happening. Even Wolfgang's code has been changed. Now I' not really sure what to do because Kaji's roar requires both a build and a bank swap, but it doesn't look like DST supports that. Are there any other ways to change them?

You can change banks and builds.

The deciduous trees change animation banks between tree and monster form.

The bearger changes builds between the normal and groggy form.

 

The playable mobs mod does this too, it swaps the bank, the build, and the stategraph of players.

 

What do you mean by

2 hours ago, pickleplayer said:

his transformations don't show up on client side

?

If you tell me that clients see the normal version and not the updated bank/build, then there's something weird here.

If you tell me that clients get an invisible kaji, then it's the stategraph fault because it isn't handling the animations correctly.

 

If I go

    inst.AnimState:SetBank("deerclops")
    inst.AnimState:SetBuild("deerclops_build")

without doing

inst:SetStateGraph("SGdeerclops")

then there's a good chance my stategraph plays something that isn't an idle animation that doesn't exist on the deerclops bank.

Wait- really??? Aw man, I had spent so long looking for examples but every example I checked had been changed. 

Ah well, thanks! At least I think I know what I did wrong now. Stategraph wasn't set up to play the right animation.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...