Well-met Posted June 7, 2021 Author Share Posted June 7, 2021 im not currently at home, its going to take some hours before i can post it Link to comment Share on other sites More sharing options...
Well-met Posted June 8, 2021 Author Share Posted June 8, 2021 my clientlog cleared itself so I gotta run into the crash again now but I've noticed alot of loot is spawning at 0,0,0 for some reason Link to comment Share on other sites More sharing options...
Monti18 Posted June 8, 2021 Share Posted June 8, 2021 Is your inventory full when this is happening? I would need the server_log and not the client log to see what is happening, except if your world is without caves. The game has backups of the last logs, they are in the same folder as the logs in a folder called backups, I think the last 5 are in there. 1 Link to comment Share on other sites More sharing options...
Well-met Posted June 8, 2021 Author Share Posted June 8, 2021 (edited) 4 hours ago, Monti18 said: Is your inventory full when this is happening? I would need the server_log and not the client log to see what is happening, except if your world is without caves. The game has backups of the last logs, they are in the same folder as the logs in a folder called backups, I think the last 5 are in there. I never run caves but its good to know about the backup! [00:44:26]: [string "scripts/components/inventoryitem.lua"]:10: attempt to index field 'inventoryitem' (a nil value) LUA ERROR stack traceback: scripts/components/inventoryitem.lua:10 in (field) ? (Lua) <9-11> self = isnew = true nobounce = false pushlandedevents = true is_landed = true trappable = true inst = 186118 - thulecite (valid:false) keepondeath = false droprandomdir = false canbepickedupalive = false _ = table: 52A3BB30 sinks = true owner = nil scripts/class.lua:30 in () ? (Lua) <23-32> t = table: 52A3BB08 k = owner v = nil p = table: 52A3C2B0 old = nil scripts/components/inventoryitem.lua:131 in (method) ClearOwner (Lua) <130-132> self = isnew = true nobounce = false pushlandedevents = true is_landed = true trappable = true inst = 186118 - thulecite (valid:false) keepondeath = false droprandomdir = false canbepickedupalive = false _ = table: 52A3BB30 sinks = true owner = nil scripts/components/inventoryitem.lua:207 in (method) OnRemoved (Lua) <203-210> self = isnew = true nobounce = false pushlandedevents = true is_landed = true trappable = true inst = 186118 - thulecite (valid:false) keepondeath = false droprandomdir = false canbepickedupalive = false _ = table: 52A3BB30 sinks = true scripts/components/container.lua:307 in (method) RemoveItemBySlot (Lua) <301-316> self = opencount = 0 ignoresound = false onopenfn = function - scripts/prefabs/treasurechest.lua:5 slots = table: 2B108AE8 openlist = table: 2B108B88 inst = 186109 - sunkenchest (valid:true) skipopensnd = true skipclosesnd = true _ = table: 2B108B38 onclosefn = function - scripts/prefabs/treasurechest.lua:12 slot = 4 item = 186118 - thulecite (valid:false) scripts/components/container.lua:109 in (method) DropItemBySlot (Lua) <108-121> self = opencount = 0 ignoresound = false onopenfn = function - scripts/prefabs/treasurechest.lua:5 slots = table: 2B108AE8 openlist = table: 2B108B88 inst = 186109 - sunkenchest (valid:true) skipopensnd = true skipclosesnd = true _ = table: 2B108B38 onclosefn = function - scripts/prefabs/treasurechest.lua:12 slot = 4 drop_pos = nil scripts/components/container.lua:144 in (method) DropEverything (Lua) <142-146> self = opencount = 0 ignoresound = false onopenfn = function - scripts/prefabs/treasurechest.lua:5 slots = table: 2B108AE8 openlist = table: 2B108B88 inst = 186109 - sunkenchest (valid:true) skipopensnd = true skipclosesnd = true _ = table: 2B108B38 onclosefn = function - scripts/prefabs/treasurechest.lua:12 drop_pos = nil i = 4 scripts/prefabs/treasurechest.lua:26 in (field) onfinish (Lua) <20-32> inst = 186109 - sunkenchest (valid:true) worker = 121841 - melium (valid:true) scripts/components/workable.lua:136 in (method) WorkedBy (Lua) <112-144> self = onwork = function - scripts/prefabs/treasurechest.lua:197 lastworktime = 2204.4667816386 inst = 186109 - sunkenchest (valid:true) savestate = false _ = table: 2B109858 onfinish = function - scripts/prefabs/treasurechest.lua:20 worker = 121841 - melium (valid:true) numworks = 2 isplant = false pos = nil scripts/components/workable.lua:68 in (method) Destroy (Lua) <66-70> self = onwork = function - scripts/prefabs/treasurechest.lua:197 lastworktime = 2204.4667816386 inst = 186109 - sunkenchest (valid:true) savestate = false _ = table: 2B109858 onfinish = function - scripts/prefabs/treasurechest.lua:20 destroyer = 121841 - melium (valid:true) ../mods/melium/scripts/prefabs/melium.lua:694 in (field) fn (Lua) <682-724> inst = 121841 - melium (valid:true) other = 186109 - sunkenchest (valid:true) scripts/scheduler.lua:177 in (method) OnTi [00:44:26]: [string "scripts/components/inventoryitem.lua"]:10: attempt to index field 'inventoryitem' (a nil value) LUA ERROR stack traceback: scripts/components/inventoryitem.lua:10 in (field) ? (Lua) <9-11> scripts/class.lua:30 in () ? (Lua) <23-32> scripts/components/inventoryitem.lua:131 in (method) ClearOwner (Lua) <130-132> scripts/components/inventoryitem.lua:207 in (method) OnRemoved (Lua) <203-210> scripts/components/container.lua:307 in (method) RemoveItemBySlot (Lua) <301-316> scripts/components/container.lua:109 in (method) DropItemBySlot (Lua) <108-121> scripts/components/container.lua:144 in (method) DropEverything (Lua) <142-146> scripts/prefabs/treasurechest.lua:26 in (field) onfinish (Lua) <20-32> scripts/components/workable.lua:136 in (method) WorkedBy (Lua) <112-144> scripts/components/workable.lua:68 in (method) Destroy (Lua) <66-70> ../mods/melium/scripts/prefabs/melium.lua:694 in (field) fn (Lua) <682-724> scripts/scheduler.lua:177 in (method) OnTick (Lua) <155-207> scripts/scheduler.lua:371 in (global) RunScheduler (Lua) <369-377> scripts/update.lua:185 in () ? (Lua) <164-243> (melium.lua is my custom character opening the chest) it seems the crash happens when the chest rolls a "Ruins" loot set? Edited June 8, 2021 by Well-met Link to comment Share on other sites More sharing options...
Monti18 Posted June 9, 2021 Share Posted June 9, 2021 This crash is really strange, it shouldn't have to do anything with your mod, but it probably has... Seems like Thulecite has no inventoryitem replica, but I'm not sure why that's the case. Probably the way we add the items causes this, we could try another way to add them. Replace this new_item.components.container.slots[k] = GLOBAL.SpawnPrefab(v.prefab) with this new_item.components.container:GiveItem(GLOBAL.SpawnPrefab(v.prefab),k) 2 Link to comment 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