Don't Starve Together

Don't Starve Together

Extra Equip Slots
NubsPixel  [developer] 25 Apr, 2015 @ 10:23pm
Please, submit your crash log
If you still crash in any way.
1. Please browse to your DST log. Do NOT re-open DST, this will delete the current crash log. The file should be located in
Documents\Klei\DoNotStarveTogether\log.txt
.2. Open the file.
3. Copy the whole content. (Ctrl + A, then Ctrl + C)
4. Open Pastebin[pastebin.com]
5. Paste into the text box. (Ctrl + V)
6. Click Submit (scrolll down a bit).
7. Copy the URL (on the browser).
8. Paste the URL in the comments here.

My logs sample: http://pastebin.com/1g4c6nQw
Last edited by NubsPixel; 25 Apr, 2015 @ 10:24pm
< >
Showing 1-15 of 46 comments
Deja Vu 27 Apr, 2015 @ 5:54pm 
Here is the crash log: http://pastebin.com/hvC7P9BZ
NubsPixel  [developer] 28 Apr, 2015 @ 4:28am 
@Deja Vu
[00:02:21]: [string "scripts/widgets/uiclock.lua"]:155: invalid number of time segs
LUA ERROR stack traceback:
=[C]:-1 in (global) assert (C) <-1--1>
scripts/widgets/uiclock.lua:155 in (method) OnClockSegsChanged (Lua) <151-180>

As far as i know, i did not implement any "uiclock" in any of my mods. Do you have any mods that changes time/clock specifically?
Braff Zacklin 4 May, 2015 @ 2:42am 
Hey got this crash today - http://pastebin.com/MvKeBUXD
NubsPixel  [developer] 4 May, 2015 @ 9:34am 
@sam, says on the log: [string "../mods/workshop-388109833/data/components/..."]:6: attempt to index local 'item' (a nil value)

based on the url: http://steamproxy.net/sharedfiles/filedetails/?id=388109833 its caused by another mod. Its probably a compatibility issue with my mod. Not really sure. I don't really have the time to test it today.
Braff Zacklin 4 May, 2015 @ 3:20pm 
Thank you for the info :)

Removing that character mod seems to have fixed the problem.
Last edited by Braff Zacklin; 4 May, 2015 @ 3:28pm
DJSassySam 19 Apr, 2016 @ 6:35pm 
Was hosting a dedicated server with the same mods I've been using for months now. Dedicated server crashed and linked this mod as the cause. The game just updated today too. Maybe they changed something and now this mod doesn't work with it anymore? I've never had any problems up until now.

Here's my LUA error:

[00:08:21]: [string "scripts/components/playerinspectable.lua"]:3: calling 'SetPlayerEquip' on bad self (number expected, got nil)
LUA ERROR stack traceback:
=[C]:-1 in (method) SetPlayerEquip (C) <-1--1>
scripts/components/playerinspectable.lua:3 in (local) fn (Lua) <2-4>
scripts/entityscript.lua:960 in (method) PushEvent (Lua) <954-977>
scripts/components/inventory.lua:833 in (upvalue) original_Equip (Lua) <765-840>
../mods/workshop-375850593/modmain.lua:66 in (method) Equip (Lua) <65-77>
scripts/components/builder.lua:382 in () ? (Lua) <344-439>
=(tail call):-1 in () (tail) <-1--1>
scripts/bufferedaction.lua:24 in (method) Do (Lua) <20-34>
scripts/entityscript.lua:1234 in (method) PerformBufferedAction (Lua) <1226-1244>
scripts/stategraphs/SGwilson.lua:2819 in (field) ontimeout (Lua) <2816-2820>
scripts/stategraph.lua:550 in (method) UpdateState (Lua) <536-580>
scripts/stategraph.lua:607 in (method) Update (Lua) <599-627>
scripts/stategraph.lua:125 in (method) Update (Lua) <109-148>
scripts/update.lua:209 in () ? (Lua) <150-223>

It crashed three times in our playthroughs. Once when I equipped a life giving amulet, the other two were when I equpped a backpack. This is the most recent log I could pick out.
Last edited by DJSassySam; 19 Apr, 2016 @ 6:37pm
Ciphered Entity 19 Apr, 2016 @ 6:39pm 
Hey this mod seems to crash my older world but if I make a new world it works just fine, this is after the update that happened today. Here is my log and a screenshot of the old server and the new server, showing how one won't work and the other will.

https://www.dropbox.com/sh/wh7f4gl32my9pr2/AADwB8cRIn8cAjNqe1Yfx5o7a?dl=0
Muche 20 Apr, 2016 @ 1:50am 
The recent incompatibility is due to EQUIPSLOT_IDS table creation moving from components/playerinspectable.lua to constants.lua.
Recreating the table
GLOBAL.EQUIPSLOT_IDS = {} local slot = 0 for k, v in pairs(GLOBAL.EQUIPSLOTS) do slot = slot + 1 GLOBAL.EQUIPSLOT_IDS[v] = slot end slot = nil
after custom equip slots are added seems to help.
Last edited by Muche; 20 Apr, 2016 @ 5:37am
ttv/EverstillTV 20 Apr, 2016 @ 4:49am 
http://pastebin.com/jtwNu9qM

I can restart the server, the loading screen comes up for a little bit, then freezes and the error shows on the screen, then the .exe closes the game.
Last edited by ttv/EverstillTV; 20 Apr, 2016 @ 5:04am
Jon 20 Apr, 2016 @ 5:53am 
Originally posted by Muche:
The recent incompatibility is due to EQUIPSLOT_IDS table creation moving from components/playerinspectable.lua to constants.lua.
Recreating the table
GLOBAL.EQUIPSLOT_IDS = {} local slot = 0 for k, v in pairs(GLOBAL.EQUIPSLOTS) do slot = slot + 1 GLOBAL.EQUIPSLOT_IDS[v] = slot end slot = nil
after custom equip slots are added seems to help.
Thanks:steamhappy:, it work, put this code in this mod's modmain.lua file
like:
GLOBAL.EQUIPSLOTS= { HANDS = "hands", HEAD = "head", BODY = "body", BACK = "back", NECK = "neck", } GLOBAL.EQUIPSLOT_IDS = {} local slot = 0 for k, v in pairs(GLOBAL.EQUIPSLOTS) do slot = slot + 1 GLOBAL.EQUIPSLOT_IDS[v] = slot end slot = nil
star 20 Apr, 2016 @ 8:16am 
:fix: Elegant (compatible with any other good mods):
if GLOBAL.rawget(GLOBAL,"EQUIPSLOT_IDS") ~= nil then local new = {"back", "neck"} local slots = #GLOBAL.EQUIPSLOT_IDS for i, v in ipairs(new) do if GLOBAL.EQUIPSLOT_IDS[v] == nil then slots = slots + 1 GLOBAL.EQUIPSLOT_IDS[v] = slots end end end
Last edited by star; 20 Apr, 2016 @ 8:22am
Muche 20 Apr, 2016 @ 8:33am 
@star, yes, except it assigns new numbers to the new slots, as opposed to mixing them all.
I'm not sure if this matters somewhere else in the code, for example components/equippable_replica.lua does its own numbering.
Last edited by Muche; 20 Apr, 2016 @ 8:35am
star 20 Apr, 2016 @ 11:40am 
@Muche, I didn't test it. Okay. How about this?
local _G = GLOBAL if _G.rawget(_G,"EQUIPSLOT_IDS") ~= nil then local new = {"back", "neck"} local slots = #_G.EQUIPSLOT_IDS for i, v in ipairs(new) do if _G.EQUIPSLOT_IDS[v] == nil then slots = slots + 1 _G.EQUIPSLOT_IDS[v] = slots end end local FindUpvalue = function(fn, upvalue_name, member_check, no_print) local info = _G.debug.getinfo(fn, "u") local nups = info and info.nups if not nups then return end local getupvalue = _G.debug.getupvalue local s = '' for i = 1, nups do local name, val = getupvalue(fn, i) s = s .. "\t" .. name .. ": " .. type(val) .. "\n" if (name == upvalue_name) and ((not member_check) or (type(val)=="table" and val[member_check] ~= nil)) then return val, true end end if no_print == nil then print("CRITICAL ERROR: Can't find variable "..tostring(upvalue_name).."!") print(s) end end local replica = GLOBAL.require "components/equippable_replica" local EQUIPSLOT_NAMES = FindUpvalue(replica.EquipSlot, "EQUIPSLOT_NAMES", 1) local EQUIPSLOT_IDS = FindUpvalue(replica.SetEquipSlot, "EQUIPSLOT_IDS", "head") if EQUIPSLOT_NAMES == nil or EQUIPSLOT_IDS == nil then print("EXTRA EQUIP SLOTS ERROR") return else for j,v in ipairs(_G.EQUIPSLOT_IDS) do EQUIPSLOT_NAMES[j] = v EQUIPSLOT_IDS[v] = j end end end
http://pastebin.com/cGCGzVt9
P.S. I didn't test it too. But it's self testing code. :D
Last edited by star; 20 Apr, 2016 @ 11:45am
Deja Vu 20 Apr, 2016 @ 12:19pm 
@star
Is all this necessary? Muche already provided a fix that works fine. Author just needs to update the mod.
Urusai47 20 Apr, 2016 @ 12:31pm 
When I die I still get the same error even with the fix. But equiping works
Last edited by Urusai47; 20 Apr, 2016 @ 12:31pm
< >
Showing 1-15 of 46 comments
Per page: 1530 50