Jump to content

Recommended Posts

So I want my character to switch between two different "Builds" (appearances), but under custom assets when I put:

        Asset( "ANIM", "anim/wpi.zip" ),	Asset( "ANIM", "anim/wwi.zip" ),

It got mad and crashes don't starve, regardless of whether Ive even told it to change!

 

Is there anything I can do to tell the game wpi is the one to start with and just save wwi for later?

 

Also, I'm using this for my "switch" code currently:

local function BecomeWere(inst)	inst.were = true	inst.AnimState:SetBuild("wwi")	end

so.... any ideas?

Edited by DeadlyHooves

Well I looked at it, and that combined with some other things (I didnt change my build for wwi from wpi for one) fixed the crashes.

 

 but now Im getting crashes at the "select character" screen, and the only error my log is outputting is:

 

 

../mods/wilk/images/saveslot_portraits/wpi.tex is 188x284 but compressed textures must have power of 2 dimensions.
../mods/wilk/images/selectscreen_portraits/wpi.tex is 188x284 but compressed textures must have power of 2 dimensions.
../mods/wilk/bigportraits/wpi.tex is 188x284 but compressed textures must have power of 2 dimensions.

Edited by DeadlyHooves

Well I looked at it, and that combined with some other things (I didnt change my build for wwi from wpi for one) fixed the crashes.

 

 but now Im getting crashes at the "select character" screen, and the only error my log is outputting is:

That error is pretty self-explanatory - the images are not using Power-of-Two dimensions.

You can either update to the power-of-two templates, or alternatively, use RGBA instead of DXT5 with the converter.

That error is pretty self-explanatory - the images are not using Power-of-Two dimensions.

You can either update to the power-of-two templates, or alternatively, use RGBA instead of DXT5 with the converter.

Yeah its just weird cause they worked earlier today... 0.o

anyways I can get in game now thanks!

 

Do you happen to know how Id do this:

 

Im attempting to get it so It check current hunger and if its under a certain number (lets use 100 in this case) then an action happens.

 

Well I tried

if (inst.components.hunger.current < 100) thenaction(inst)elseend

and Im getting the error: inst is not a declared variable. But I dont know how else Id call current hunger? I made a post on it but no help has come yet.

 

Regardless, thank you a lot for your assistance it means a lot!

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