Jump to content

Search the Community

Showing results for tags 'container'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Hot Lava
    • [Hot Lava] - General Discussion
    • [Hot Lava] - Suggestions and Feedback
    • [Hot Lava] - Bug Tracker
    • [Hot Lava] - Strats and Records
    • [Hot Lava] - Developer Log
    • Hot Lava Latest Update
  • Griftlands
    • [Griftlands] - General Discussion
    • [Griftlands] - Suggestions and Feedback
    • [Griftlands] - Mods and Tools
    • [Griftlands] - Localization
    • [Griftlands] - Bug Tracker
    • [Griftlands] - Developer log
  • Oxygen Not Included
    • Oxygen Not Included FAQ
    • [Oxygen Not Included] - Developer log
    • [Oxygen Not Included] - General Discussion
    • [Oxygen Not Included] - Bug Tracker
    • [Oxygen Not Included: Spaced Out!] - Bug Tracker
    • [Oxygen Not Included] - Mods and Tools
    • [Oxygen Not Included] - Suggestions and Feedback
    • [Oxygen Not Included] Art, Music & Lore
    • Community Challenges
    • [Oxygen Not Included] - Latest Content Update
    • [Oxygen Not Included] - Latest Animated Short
    • Oxygen Not Included DLC Alpha
  • Don't Starve Together
    • Don't Starve Together FAQ
    • [Don't Starve Together] Developer log
    • [Don't Starve Together] General Discussion
    • [Don't Starve Together] Beta Branch
    • [Don't Starve Together] PlayStation
    • [Don't Starve Together] Xbox One
    • [Don't Starve Together] Nintendo Switch
    • [Don't Starve Together] Bug Tracker
    • [Don't Starve Together] Trading
    • [Don't Starve Together] Server Bulletin
    • [Don't Starve Together] Dedicated Server Discussion
    • [Don't Starve Together] Mods and Tools
    • [Don't Starve Together] Tales of Life and Death
    • [DS + DST] Art, Music and Lore
    • [Don't Starve Together] Suggestions and Feedback
    • [Don't Starve Together] The Forge
    • [Don't Starve Together] The Gorge
    • [Archived Bugs]
  • Don't Starve
    • Don't Starve FAQ
    • [Don't Starve: Pocket Edition] iOS / Android
    • [Don't Starve] General Discussion
    • [Don't Starve] Mods and tools
    • [Don't Starve] Art, Music & Lore
    • [Don't Starve] Suggestions and Feedback
    • [Don't Starve] Videos
    • [Don't Starve] Bug Tracker
    • [Don't Starve] Trading
    • [Don't Starve] Testing Discussion (archive)
  • Klei Entertainment Games
    • Eets Munchies
    • [Invisible, Inc.] General Discussion and Strategies
    • Mark of the Ninja
    • Shank
  • Other Stuff
    • Other Klei Services

Categories

  • Oxygen Not Included
  • Oxygen Not Included: Spaced Out!
  • Griftlands
  • Don't Starve: Hamlet
  • Don't Starve: Hamlet Early Access
  • Don't Starve Together
  • Don't Starve Together: Beta Branch
  • [Don't Starve Together] Nintendo Switch
  • [Don't Starve Together] PlayStation
  • Don't Starve Together: Return of Them
  • Don't Starve Together: The Gorge
  • Don't Starve Together: The Forge
  • Don't Starve Together: The Forge (Archive)
  • [Don't Starve Together] Xbox One
  • Don't Starve: Shipwrecked
  • Don't Starve: Shipwrecked [archive]
  • [Don't Starve Together] PS4 (archive)
  • [iOS] Don't Starve: Shipwrecked
  • Don't Starve: Hamlet Closed Beta (ARCHIVE)

Categories

  • Oxygen Not Included
  • Oxygen Not Included: Spaced Out!
  • Griftlands
  • Hot Lava
  • Don't Starve Together
  • [Nintendo Switch] Don't Starve Together
  • [PlayStation] Don't Starve Together
  • [Xbox One] Don't Starve Together
  • Don't Starve: Hamlet
  • Don't Starve: Shipwrecked

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Biography


Location


Interests


Occupation


Favorite Game


Modder


Chester Kickstarter


Chester Kickstarter


Chester Kickstarter


Chester Kickstarter


Chester Kickstarter


Klei Featured Artist


Early Supporter


Early Supporter


Don't Starve


Don't Starve Together


Oxygen Not Included

Found 6 results

  1. I present No Container Blocking which allows multiple people to access the same chest/crockpot/fridge/ect at the same time. this mod make clever use of DST's networking system to cause 0 extra lag when only a single person opens the chest, but then seamlessly swaps to my system the second a second someone opens a container. You can't dupe items, or any other "cheaty" thing you might think. This mod requires Gem Core.
  2. i create containers widgets all work fine but when i try eat food inside game crash [00:01:06]: [string "scripts/components/container_replica.lua"]:209: attempt to index field 'inventoryitem' (a nil value) writing crash with container replica but i use in script local function OnEntityReplicated(inst) if inst.replica.container ~= nil then inst.replica.container:WidgetSetup(inst.prefab) end end
  3. i create containers widgets all work fine but when i try eat food inside game crash [00:01:06]: [string "scripts/components/container_replica.lua"]:209: attempt to index field 'inventoryitem' (a nil value) writing crash with container replica but i use in script local function OnEntityReplicated(inst) if inst.replica.container ~= nil then inst.replica.container:WidgetSetup(inst.prefab) end end
  4. Hi, I was wondering if it's possible to put a widget setup in its own file instead of putting it on modmain.lua? Here is the example I'm talking about: -------------------------------------------------------------------------- --[[ compost_box ]] -------------------------------------------------------------------------- _G = GLOBAL local params={} params.compost_box = { widget = { slotpos = {}, animbank = "ui_chest_3x3", animbuild = "ui_chest_3x3", pos = _G.Vector3(0, 200, 0), side_align_tip = 160, }, type = "chest", } for y = 2, 0, -1 do for x = 0, 2 do table.insert(params.compost_box.widget.slotpos, _G.Vector3(80 * x - 80 * 2 + 80, 80 * y - 80 * 2 + 80, 0)) end end function params.compost_box.itemtestfn(container, item, slot) return (item.components.edible and item.components.perishable) or item.prefab == "spoiled_food" or item.prefab == "rottenegg" or item.prefab == "guano" or item.prefab == "poop" or item:HasTag("fresh") or item:HasTag("stale") or item:HasTag("spoiled") end local containers = _G.require "containers" containers.MAXITEMSLOTS = math.max(containers.MAXITEMSLOTS, params.compost_box.widget.slotpos ~= nil and #params.compost_box.widget.slotpos or 0) local old_widgetsetup = containers.widgetsetup function containers.widgetsetup(container, prefab, data) local pref = prefab or container.inst.prefab if pref == "compost_box" then local t = params[pref] if t ~= nil then for k, v in pairs(t) do container[k] = v end container:SetNumSlots(container.widget.slotpos ~= nil and #container.widget.slotpos or 0) end else return old_widgetsetup(container, prefab) end end -------------------------------------------------------------------------- --[[ crate_wooden ]] -------------------------------------------------------------------------- params.crate_wooden = { widget = { slotpos = {}, animbank = "ui_chest_5x12", animbuild = "ui_chest_5x12", pos = _G.Vector3(90, 220, 0), side_align_tip = 160, }, type = "chest", } for y = 4, 0, -1 do for x = 0, 11 do table.insert(params.crate_wooden.widget.slotpos, _G.Vector3(80 * x - 346 * 2 + 98, 80 * y - 100 * 2 + 42, 0)) end end function params.crate_wooden.itemtestfn(container, item, slot) if item.prefab == "chester_eyebone" then return false end return true end local containers = _G.require "containers" containers.MAXITEMSLOTS = math.max(containers.MAXITEMSLOTS, params.crate_wooden.widget.slotpos ~= nil and #params.crate_wooden.widget.slotpos or 0) local old_widgetsetup = containers.widgetsetup function containers.widgetsetup(container, prefab, data) local pref = prefab or container.inst.prefab if pref == "crate_wooden" then local t = params[pref] if t ~= nil then for k, v in pairs(t) do container[k] = v end container:SetNumSlots(container.widget.slotpos ~= nil and #container.widget.slotpos or 0) end else return old_widgetsetup(container, prefab) end end Would it be possible to somehow put it in its own separate file, so that it doesn't take up space in the modmain.lua file? Maybe using modimport or something else? Also if you know of any way to shorten the code above so that it's more compact that would be appreciated. Thank you.
  5. Say a custom object like chest and such is done and it has more container slots. Where does one look or starts to make a custom widget container? I have tried around containers.lua, which seemed very straight forward but when attempting something always seem to be wrong, as the error says that the widget was not declared. I assume something is missing, but not quite sure what?
  6. Hi, I'm trying to fix this mod but can't seem to make it work. It's a disposal to get rid of junk. While it functions for me as a host, it crashes others and displays the message: "Attempt to index field 'container' (a nil value)" which can be seen here: http://prnt.sc/c6nwbr Does anyone know how I can fix this error? All help is greatly appreciated. Thank you. --------------------------------------------------------------------------------- params.disposal_box = { widget = { slotpos = { _G.Vector3(0, 64 + 32 + 8 + 4, 0), _G.Vector3(0, 32 + 4, 0), _G.Vector3(0, -(32 + 4), 0), _G.Vector3(0, -(64 + 32 + 8 + 4), 0), }, animbank = "ui_cookpot_1x4", animbuild = "ui_cookpot_1x4", pos = _G.Vector3(200, 0, 0), side_align_tip = 100, buttoninfo = { text = "Dispose", position = _G.Vector3(0, -165, 0), } }, type = "cooker", } function params.disposal_box.itemtestfn(container, item, slot) if item.prefab == "lucy" or item:HasTag("irreplaceable") then return false end return true end function params.disposal_box.widget.buttoninfo.fn(inst) inst.components.container:DestroyContents() inst.SoundEmitter:PlaySound("dontstarve/common/destroy_stone") end function params.disposal_box.widget.buttoninfo.validfn(inst) if inst.components.container:IsEmpty() then return false end return true end
×
×
  • Create New...