Search the Community
Showing results for tags 'need help'.
Found 3 results
so im trying to fix a mod (im not going to try and post it, just inform the original author how to fix it) the original mod is woge the doge everything works fine but the sleep mechanic, when you push O it makes you go to sleep (it drains your hunger faster but doesnt heal you) and pushing P wakes you up (stops draining your hunger) here is the coding i think is relevent (mod main) local SLEEP = GLOBAL.Action() SLEEP.str = "Sleep" SLEEP.id = "SLEEP" SLEEP.fn = function(act) if not act.target:HasTag("busy") then act.target.sg:GoToState("sleep") act.target:AddComponent("healthRegen") end end AddAction(SLEEP) local WAKEUP = GLOBAL.Action() WAKEUP.str = "Wakeup" WAKEUP.id = "WAKEUP" WAKEUP.fn = function(act) act.target.sg:GoToState("wake") act.target:RemoveComponent("healthRegen") end AddAction(WAKEUP) local function wakeup(player) GLOBAL.BufferedAction(player, player, GLOBAL.ACTIONS.WAKEUP):Do() end AddModRPCHandler("leifworkaround", "Wakeup", wakeup) (lua) local function OnKeySleep(inst, data) if data.inst == ThePlayer then if data.key == KEY_O then --inst.components.propagator.StartSpreading() inst.AnimState:SetBank("hound") inst.AnimState:SetBuild("hound_pear_fix") if TheWorld.ismastersim then BufferedAction(inst, inst, ACTIONS.SLEEP):Do() -- Since we are the server, do the action on the server. else SendRPCToServer(RPC.DoWidgetButtonAction, ACTIONS.SLEEP.code, inst, ACTIONS.SLEEP.mod_name) end end end end local function OnKeyWakeup(inst, data) if data.inst == ThePlayer then if data.key == KEY_P then --inst.components.propagator.StopSpreading() inst.AnimState:SetBank("hound") inst.AnimState:SetBuild("hound_pear_fix") SendModRPCToServer(MOD_RPC["leifworkaround"]["Wakeup"]) inst:DoTaskInTime(1, function() inst.AnimState:SetBank("hound_pear") inst.AnimState:SetBuild("hound_pear2") end) end end end ive tried to change the line "act.target:AddComponent("healthRegen")" to "self.player.pushevent("healthregen") but that hard crashed the game to where it disabled all my mods I have almost no experience to coding, i love this mod and just wished it worked 100% correctly i pan to link him to this thread
Whenever I try to create a RoG world, it puts me in a basic DS world. I've tried everything, each option including reinstalling and only activating certain DLCs. When in the game select option though it will say RoG next to the world ive created, but when i click on it it only shows the basic DS. At this point, I don't know what to do. I'll link a few threads with the same problems. I've read through these threads and there are no confirmed solutions. EDIT: Theres actually about 4-5 threads about this just on the first page of this subforum for bugs. So, I won't link them all. But one of them wasn't even replied to. I'm hoping we can get a solution here as many people are having this problem. EDIT 2: With only Hamlet and RoG DLC enabled it does render a RoG world only if I do not connect it to Hamlet DLC. But the same visual error as below occurs. With only RoG DLC enabled the world renders RoG but the same visual error below as well. I can screenshot if necessary.