Yagenius Posted August 31, 2015 Author Share Posted August 31, 2015 @ZupaleX Thank you for telling me , but I think I need to fix or clean my computer LOLZ (It's run very slow.) Link to comment https://forums.kleientertainment.com/forums/topic/57383-help-can-someone-help-me-with-coding-please/page/2/#findComment-668168 Share on other sites More sharing options...
Yagenius Posted August 31, 2015 Author Share Posted August 31, 2015 @DarkXero Oh!! and Thank you very much for helping me , Sensei !!!! 1 Link to comment https://forums.kleientertainment.com/forums/topic/57383-help-can-someone-help-me-with-coding-please/page/2/#findComment-668169 Share on other sites More sharing options...
DarkXero Posted August 31, 2015 Share Posted August 31, 2015 @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 commandcd C:/ktoolsAfter the directory changes to ktools, enter the commandkrane anim.bin build.bin spriter_output 2 Link to comment https://forums.kleientertainment.com/forums/topic/57383-help-can-someone-help-me-with-coding-please/page/2/#findComment-668176 Share on other sites More sharing options...
Yagenius Posted September 1, 2015 Author Share Posted September 1, 2015 @DarkXero Thank you very much!!!! Link to comment https://forums.kleientertainment.com/forums/topic/57383-help-can-someone-help-me-with-coding-please/page/2/#findComment-668385 Share on other sites More sharing options...
Yagenius Posted September 1, 2015 Author Share Posted September 1, 2015 @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 Link to comment https://forums.kleientertainment.com/forums/topic/57383-help-can-someone-help-me-with-coding-please/page/2/#findComment-668411 Share on other sites More sharing options...
DarkXero Posted September 2, 2015 Share Posted September 2, 2015 (edited) @Yagenius, this is basic.local function onbecameaikawa (inst) inst.onbecameaikawa = onbecamehumanendThis 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 thislocal function onbecameaikawa (inst) inst.onbecameaikawa = inst.onbecamehumanendmeans inst.onbecamehuman is NIL, unless you haveinst.onbecomehuman = onbecomehumaninside your master_postinit, so you could also do this. Edited September 2, 2015 by DarkXero 1 Link to comment https://forums.kleientertainment.com/forums/topic/57383-help-can-someone-help-me-with-coding-please/page/2/#findComment-668679 Share on other sites More sharing options...
Yagenius Posted September 2, 2015 Author Share Posted September 2, 2015 @DarkXero hmmm... that's mean I just put inst.onbecomehuman = onbecomehumanto master_postinit right , sensei? Link to comment https://forums.kleientertainment.com/forums/topic/57383-help-can-someone-help-me-with-coding-please/page/2/#findComment-668733 Share on other sites More sharing options...
DarkXero Posted September 2, 2015 Share Posted September 2, 2015 @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 1 Link to comment https://forums.kleientertainment.com/forums/topic/57383-help-can-someone-help-me-with-coding-please/page/2/#findComment-668789 Share on other sites More sharing options...
Yagenius Posted September 2, 2015 Author Share Posted September 2, 2015 @DarkXero Hmmm he still not turn back to human.... it because of stategraph? Link to comment https://forums.kleientertainment.com/forums/topic/57383-help-can-someone-help-me-with-coding-please/page/2/#findComment-668817 Share on other sites More sharing options...
DarkXero Posted September 2, 2015 Share Posted September 2, 2015 @Yagenius, do you have your character on the workshop? Link to comment https://forums.kleientertainment.com/forums/topic/57383-help-can-someone-help-me-with-coding-please/page/2/#findComment-668818 Share on other sites More sharing options...
Yagenius Posted September 2, 2015 Author Share Posted September 2, 2015 @DarkXero Yes I have. http://steamcommunity.com/sharedfiles/filedetails/?id=510301435 Link to comment https://forums.kleientertainment.com/forums/topic/57383-help-can-someone-help-me-with-coding-please/page/2/#findComment-668821 Share on other sites More sharing options...
Yagenius Posted September 2, 2015 Author Share Posted September 2, 2015 @DarkXero the latest script I change transform_weretiger to transform_werebeaver but I not sure if it work... Link to comment https://forums.kleientertainment.com/forums/topic/57383-help-can-someone-help-me-with-coding-please/page/2/#findComment-668823 Share on other sites More sharing options...
Yagenius Posted September 6, 2015 Author Share Posted September 6, 2015 @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. Link to comment https://forums.kleientertainment.com/forums/topic/57383-help-can-someone-help-me-with-coding-please/page/2/#findComment-670015 Share on other sites More sharing options...
DarkXero Posted September 6, 2015 Share Posted September 6, 2015 @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? Link to comment https://forums.kleientertainment.com/forums/topic/57383-help-can-someone-help-me-with-coding-please/page/2/#findComment-670091 Share on other sites More sharing options...
Yagenius Posted September 7, 2015 Author Share Posted September 7, 2015 @DarkXero The perk mean : If eat to much he will Transform . Run Very Fast . Bunny and Bird not run. When Dusk or Night His Sanity will gone down . Mine , Dig , Hammer , Attack very fast. Link to comment https://forums.kleientertainment.com/forums/topic/57383-help-can-someone-help-me-with-coding-please/page/2/#findComment-670254 Share on other sites More sharing options...
Yagenius Posted September 9, 2015 Author Share Posted September 9, 2015 @DarkXero I think I can Fix the transformation problem now. But I have another problem It not Hide Tiger_Meter HUD and bug when " Eat " too much in Weretiger form. (It will go to "Wakeup State") Link to comment https://forums.kleientertainment.com/forums/topic/57383-help-can-someone-help-me-with-coding-please/page/2/#findComment-670956 Share on other sites More sharing options...
Yagenius Posted September 10, 2015 Author Share Posted September 10, 2015 @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.) Link to comment https://forums.kleientertainment.com/forums/topic/57383-help-can-someone-help-me-with-coding-please/page/2/#findComment-671274 Share on other sites More sharing options...
DarkXero Posted September 11, 2015 Share Posted September 11, 2015 When someone near Me they Sanity will Regen -- inside master_postinitinst:AddComponent("sanityaura")inst.components.sanityaura.aura = TUNING.SANITYAURA_TINY Link to comment https://forums.kleientertainment.com/forums/topic/57383-help-can-someone-help-me-with-coding-please/page/2/#findComment-671483 Share on other sites More sharing options...
Yagenius Posted September 14, 2015 Author Share Posted September 14, 2015 @DarkXero Thank you for everything!!!! Sensei!!!!!! Link to comment https://forums.kleientertainment.com/forums/topic/57383-help-can-someone-help-me-with-coding-please/page/2/#findComment-672285 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