Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

Simsure

First mod - error with change of build ?

Recommended Posts

Simsure    37

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?
thanks

sorry for my english


The rest of the code works I have already tested , this is when I added that began on crash

local 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

 

Share this post


Link to post
Share on other sites
Mobbstar    14123

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.

Share this post


Link to post
Share on other sites