Jump to content

Recommended Posts

I'm trying to make a mod that lets your choose between the different DLC mainscreens. So far everything works except for the SW animation assets. The game keeps saying that it cannot find the bank and build despite me using the default ones from the game and trying to import them manually myself. It would be greatly appreciated if anyone has advice on this.

 

Thanks.

 

Spoiler

local function SetMainInit(self) --apply custom stuff
    if theme == 2 then --apply the animations for SW
        self.shield:GetAnimState():SetBank("title_sw") --this is usually named sw_title_shield (doesn't work, but doing it for hamlet works just fine)
        self.shield:GetAnimState():SetBuild("sw_shield") --same for this
        self.shield:GetAnimState():PlayAnimation("idle", true)

        self.wilson:GetAnimState():SetBank("corner_dude_sw")
        self.wilson:GetAnimState():SetBuild("corner_dude_sw")
        self.wilson:GetAnimState():PlayAnimation("idle", true)
    end
end

 

log.txt

Link to comment
https://forums.kleientertainment.com/forums/topic/117672-missing-anim-bank/
Share on other sites

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...