MrDoge124

  • Content Count

    66
  • Joined

  • Last visited

Community Reputation

4 Neutral

About MrDoge124

  • Rank
    Junior Member
...

Recent Profile Visitors

787 profile views
  1. It's showing up in the crockpot now, this should mean it's all good now. Thanks for helping!
  2. Right I had a look in the log and it said "Could not find anim build ratatouille" Which could be an issue. If I find anymore things in the log I'll add them here.
  3. Yes I do have this code in the file, I'm using the portable crock pot as a base. The code was already there and I haven't done anything to it. This is what mine looks like right now. Thanks for you help so far!
  4. It seems to cook the food without crashing now. However the food is invisible. I've tried multiple recipes and they're all doing this.
  5. It started cooking but for some reason crashed This is the error it put out. It seems to be having issues in the stewer.lua component.
  6. I tried adding GLOBAL. onto RPC and it got another error. [00:02:33]: [string "scripts/modutil.lua"]:632: attempt to index local 'id_table' (a number value) LUA ERROR stack traceback: ../mods/Meowzers/modmain.lua:413 in (field) fn (Lua) <409-415> scripts/widgets/containerwidget.lua:70 in (field) onclick (Lua) <56-71> scripts/widgets/imagebutton.lua:206 in (method) OnControl (Lua) <166-213> scripts/widgets/widget.lua:112 in (method) OnControl (Lua) <106-120> scripts/widgets/widget.lua:112 in (method) OnControl (Lua) <106-120> scripts/widgets/widget.lua:112 in (method) OnControl (Lua) <106-120> scripts/widgets/widget.lua:112 in (method) OnControl (Lua) <106-120> scripts/widgets/widget.lua:112 in (method) OnControl (Lua) <106-120> scripts/widgets/widget.lua:112 in (field) OnControl (Lua) <106-120> scripts/screens/playerhud.lua:883 in () ? (Lua) <882-990> =(tail call):-1 in () (tail) <-1--1> scripts/frontend.lua:371 in (method) OnControl (Lua) <357-413> scripts/input.lua:165 in (method) OnControl (Lua) <162-169> scripts/input.lua:384 in () ? (Lua) <383-385> Not quite sure what's going on. How would I declare a RPC?
  7. I've been trying to makea custom crock pot. It's all working until I press the cook button. The error is in this part of the code, near the RPC.DoWidgetButtonAction part. 413: attempt to index global 'RPC' (a nil value) This is the code function params.m_portablecookpot.widget.buttoninfo.fn(inst, doer) if inst.components.container ~= nil then BufferedAction(doer, inst, ACTIONS.COOK):Do() elseif inst.replica.container ~= nil and not inst.replica.container:IsBusy() then SendModRPCToServer(RPC.DoWidgetButtonAction, ACTIONS.COOK.code, inst, ACTIONS.COOK.mod_name) end end Thanks for taking the time to read this.
  8. That's a very intresting set up. Never seen that before. So this means I could make a wall that's scary to prey so the butterflies get stuck. But I'm not sure this would stop all flying creatures, only flying prey or regular prey.
  9. I didn't know that. So if I trapped a bat in walls would it be possible to make a new type of wall they can't fly over?
  10. Hello, I was thinking about making walls that flying things can't fly over. Does anyone know how I could do this or have any suggestions on what I could do?
  11. I got it to work. I asked a friend and we fixed it. So while poking around at another character, we discovered differences in the code that allowed us to reverse engineer a solution. With the error message telling us that “Inst” was a null value. Initially we thought that Inst was always in reference to the player whenever it’s called. THIS IS NOT THE CASE. We then found that whenever we declared a function, "Inst" was not declared. AddModRPCHandler(“Green”,"GREEN_STUN", function(---INST IS MISSING HERE---) We changed “Inst” to “player” just to make the code more readable in the future and then changed any reference to Inst into player. In addition to this, several functions were missing declarations which we fixed by adding player. AddModRPCHandler(“Green”,"GREEN_STUN", function(player) Thanks for the help!
  12. I've tried to add RPC handlers to the code but it doesn't work, I'm not sure what I'm doing. I've found this error in the code.
  13. I've seen mods use those before but I'm not sure how I'd set one up for myself.
  14. In this previous post I managed to get a AOE stun attack working. However when I enable caves it doesn't work. Turns out I think I'm missing something. It might be an action handler or some sort of net code which could be why it doesn't work when caves are enabled. It also doesn't crash or print anything to the logs, So I'm not sure why it isn't working. This is the code. It's all contained inside a character lua file. Any help would be appreciated.
  15. I've looked at other examples and they all seem to use an action handler. I'm going to have to look into this and either figure out how these things work or try to find another way to do it.