DeadlyHooves Posted December 31, 2013 Share Posted December 31, 2013 (edited) 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") endso.... any ideas? Edited December 31, 2013 by DeadlyHooves Link to comment https://forums.kleientertainment.com/forums/topic/30669-multiple-build-states-transforming-character-question/ Share on other sites More sharing options...
Neosaurus Posted December 31, 2013 Share Posted December 31, 2013 Stategraphs? Link to comment https://forums.kleientertainment.com/forums/topic/30669-multiple-build-states-transforming-character-question/#findComment-396383 Share on other sites More sharing options...
DeadlyHooves Posted December 31, 2013 Author Share Posted December 31, 2013 I havent modded this game in a loooooong time, are those necessary now? What exactly do they do? Link to comment https://forums.kleientertainment.com/forums/topic/30669-multiple-build-states-transforming-character-question/#findComment-396407 Share on other sites More sharing options...
DeadlyHooves Posted December 31, 2013 Author Share Posted December 31, 2013 (edited) 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 December 31, 2013 by DeadlyHooves Link to comment https://forums.kleientertainment.com/forums/topic/30669-multiple-build-states-transforming-character-question/#findComment-396416 Share on other sites More sharing options...
TheDanaAddams Posted December 31, 2013 Share Posted December 31, 2013 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. Link to comment https://forums.kleientertainment.com/forums/topic/30669-multiple-build-states-transforming-character-question/#findComment-396459 Share on other sites More sharing options...
DeadlyHooves Posted December 31, 2013 Author Share Posted December 31, 2013 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.oanyways 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 triedif (inst.components.hunger.current < 100) thenaction(inst)elseendand 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! Link to comment https://forums.kleientertainment.com/forums/topic/30669-multiple-build-states-transforming-character-question/#findComment-396476 Share on other sites More sharing options...
TheDanaAddams Posted December 31, 2013 Share Posted December 31, 2013 I think with stuff like that you need to use a hungerdelta check... but I'm not certain, since I've never tried anything like that... Link to comment https://forums.kleientertainment.com/forums/topic/30669-multiple-build-states-transforming-character-question/#findComment-396494 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now