Jump to content

Recommended Posts

@Yagenius, if you have Windows, do the following.

Put the tools in a "ktools" named folder, in the C: disk.

 

Then unzip werebeaver_basic and werebeaver_build, you are going to get a anim.bin, an atlas-0.tex, and a build.bin.

Drop these inside the ktools folder.

 

Then use the search tools to look for something named "cmd".

 

Then use the command

cd C:/ktools

After the directory changes to ktools, enter the command

krane anim.bin build.bin spriter_output
  • Like 2

@DarkXero

 

Oh!!! can you help me again?

 

 I stuck as werebeaver form when The Meter is Go down to 0 like woodie .

 

I try to Set Function to onbecame human but nothing happen.

 

Am I doing right or wrong? 

	local function onbecameaikawa (inst)	inst.onbecameaikawa = inst.onbecamehuman	end				local function tigerhurt(inst, delta)    if delta < 0 then        inst.sg:PushEvent("attacked")        inst.components.tigerness:DoDelta(delta*.25)        TheFrontEnd:GetSound():PlaySound("dontstarve/HUD/health_down")           inst.onbecameaikawa = true		endend	local function onbecamehuman(inst)    inst.Transform:SetScale(1, 1, 1, 1)        inst.tiger = false    inst.ActionStringOverride = nil    inst.AnimState:SetBank("wilson")    inst.AnimState:SetBuild("aikawa")    inst:RemoveTag("beaver")	    inst:RemoveComponent("worker")	inst.components.locomotor.walkspeed = 7 	inst.components.locomotor.runspeed = 8    inst.components.talker:StopIgnoringAll()	inst.components.eater:SetDiet({ FOODGROUP.OMNI })	inst.components.temperature.inherentinsulation = 0    inst.components.temperature.inherentsummerinsulation = 0    inst.components.moisture:SetInherentWaterproofness(0)    if inst.components.playercontroller ~= nil then        inst.components.playercontroller:SetCanUseMap(true)    inst.components.playercontroller.actionbuttonoverride = nil    inst.components.playeractionpicker.leftclickoverride = nil    inst.components.playeractionpicker.rightclickoverride = nil    end	    inst.components.eater.strongstomach = false    inst.components.hunger:Resume()    inst.components.sanity.ignore = false    inst.components.health.redirect = nil	     inst.components.tigerness:StartTimeEffect(2, -0.185)    inst:RemoveEventCallback("oneatsomething", ontigereat)       inst.Light:Enable(false)    inst.SoundEmitter:KillSound("danger")    inst:DoTaskInTime(0, function() SetHUDState(inst) end)end

@Yagenius, this is basic.

local function onbecameaikawa (inst)	inst.onbecameaikawa = onbecamehumanend

This wouldn't work because onbecamehuman is defined UNDER it, as it already happened to another function. You would have to put onbecamehuman OVER onbecameaikawa.

 

Keeping it like this

local function onbecameaikawa (inst)	inst.onbecameaikawa = inst.onbecamehumanend

means inst.onbecamehuman is NIL, unless you have

inst.onbecomehuman = onbecomehuman

inside your master_postinit, so you could also do this.

Edited by DarkXero
  • Like 1

@Yagenius:

local function onbecameaikawa(inst)	inst.Transform:SetScale(1, 1, 1, 1)	inst.tiger = false	inst.ActionStringOverride = nil	inst.AnimState:SetBank("wilson")	inst.AnimState:SetBuild("aikawa")	inst:RemoveTag("beaver")	inst:RemoveComponent("worker")	inst.components.locomotor.walkspeed = 7 	inst.components.locomotor.runspeed = 8	inst.components.talker:StopIgnoringAll()	inst.components.eater:SetDiet({ FOODGROUP.OMNI })	inst.components.temperature.inherentinsulation = 0	inst.components.temperature.inherentsummerinsulation = 0	inst.components.moisture:SetInherentWaterproofness(0)	if inst.components.playercontroller ~= nil then		inst.components.playercontroller:SetCanUseMap(true)		inst.components.playercontroller.actionbuttonoverride = nil		inst.components.playeractionpicker.leftclickoverride = nil		inst.components.playeractionpicker.rightclickoverride = nil	end	inst.components.eater.strongstomach = false	inst.components.hunger:Resume()	inst.components.sanity.ignore = false	inst.components.health.redirect = nil	inst.components.tigerness:StartTimeEffect(2, -0.185)	inst:RemoveEventCallback("oneatsomething", ontigereat)	inst.Light:Enable(false)	inst.SoundEmitter:KillSound("danger")	inst:DoTaskInTime(0, function() SetHUDState(inst) end)endlocal function tigerhurt(inst, delta)	if delta < 0 then		inst.sg:PushEvent("attacked")		inst.components.tigerness:DoDelta(delta*.25)		TheFrontEnd:GetSound():PlaySound("dontstarve/HUD/health_down")		onbecameaikawa(inst)	endend
  • Like 1

@DarkXero

 

I think it because of Stategraph .

 

I use SGweretiger It work but can't play animation +  can't attack or eating .

 

but when I use SGwilson all animation is work but can't turn back to human because of It not have this State.

State{        name = "toaikawa",        tags = {"busy"},        onenter = function(inst)            inst.Physics:Stop()                        inst.AnimState:PlayAnimation("death")            inst.sg:SetTimeout(3)            --inst.SoundEmitter:PlaySound("aikawa/characters/aikawa/tiger_death")            inst.components.tigerness.doing_transform = true        end,        timeline =        {            TimeEvent(10*FRAMES, function(inst) inst.SoundEmitter:KillSound("tigermusic") end)        },                ontimeout = function(inst)             TheFrontEnd:Fade(false,2)            inst:DoTaskInTime(2, function()                                 inst.components.tigerness.makeperson(inst)                inst.components.sanity:SetPercent(.25)                inst.components.health:SetPercent(.33)                inst.components.hunger:SetPercent(.25)                inst.components.tigerness.doing_transform = false                inst.sg:GoToState("wakeup")                TheFrontEnd:Fade(true,1)            end)        end    },

but I think I make me little confuse when I try to change something in it.

@Yagenius, I tried to go through all the steam workshop code, but it's too much.

The sane thing to do is to start from scratch, and do as many mods with characters that transform do.

 

Can you post the perks of your character?

@DarkXero

 

Ok I can fix the transformation.

 

Can you help me again?

 

Ahhhhhh I have a little problem about his health when turn back to human.

 

Sensei Sama , know code of Multi Sanity? (Like When someone near Me they Sanity will Regen or increase.)

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