Simsure Posted December 10, 2014 Share Posted December 10, 2014 (edited) Hello, then realizing the minimum of programming I wanted to try to make a mod , I tried to make an animal , I created the brain and everything else and it works , I was trying to implement the change of fur when winter comes as with rabbits , I opened their code to look for what he did change happen I took the codes that seemed essential and I put them in my animal , and the code you can see below ( only the part that changes the hair) , but when I start Don't Starve, closes without any error message .Can you give me a hand?thankssorry for my englishThe rest of the code works I have already tested , this is when I added that began on crashlocal assets={Asset("ANIM", "anim/test_build.zip"),Asset("ANIM", "anim/test_winter_build.zip"),Asset("SOUND", "sound/test.fsb"),}local function DonWinterFur(inst) inst.AnimState:SetBuild("test_winter_build") end local function BecomeNormal(inst) inst.AnimState:SetBuild("test_build") end local function BecomeWinter(inst) if not GetSeasonManager() or GetSeasonManager():IsSummer() then BecomeNormal(inst) else DonWinterFur(inst) end end Edited December 10, 2014 by blacksoul Link to comment https://forums.kleientertainment.com/forums/topic/45971-first-mod-error-with-change-of-build/ Share on other sites More sharing options...
Mobbstar Posted December 11, 2014 Share Posted December 11, 2014 Are you sure you didn't change anything else? Missing commas or "end"s easily happen. If your anim and sound files exist, DS should be able to launch. Consider uploading your mod for further examination. Link to comment https://forums.kleientertainment.com/forums/topic/45971-first-mod-error-with-change-of-build/#findComment-583302 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