Okay. A very long time ago I removed all the loot items manually through the loot.txt file in gm_construct, and ever since that day I've been having this one error spam in my web console. I'm not able to spawn new loot either.
Lua Error: [ERROR] lua/includes/extensions/table.lua:161: bad argument #1 to 'pairs' (table expected, got nil) 1. pairs - [C]:-1 2. Count - lua/includes/extensions/table.lua:161 3. Random - lua/includes/extensions/table.lua:173 4. LootThink - gamemodes/murder/gamemode/sv_loot.lua:95 5. unknown - gamemodes/murder/gamemode/init.lua:102
lua/includes/extensions/table.lua: [URL="http://pastebin.com/gbDnH7Ue"]Link To Pastebin[/URL]
gamemodes/murder/gamemode/sv_loot.lua: [URL="http://pastebin.com/HFwq6Y5L"]Link To Pastebin[/URL]
gamemodes/murder/gamemode/init.lua: [URL="http://pastebin.com/ARXAeaPZ"]Link To Pastebin[/URL]
garrysmod/data/murder/gm_construct/loot.txt: File Empty, Owh noes! D:<
If anyone can tell me what I did wrong, or how I can fix this, I will love you forever!
PS: This is on a Murder server.
If you could give us the respective files (Look at the Lua Error, there's the paths for em) we can help you further. Please don't post it all here. Use a helpful tool like [URL="http://www.pastebin.com"]Pastebin[/URL] for pasting codes.
Okay. I added links to the files I uploaded to Pastebin. :)
Mhmmm. Everything seems in order. May i have your loot.txt file to see if THAT is causing it? I can't seem to find an error on those files.
Ah, sorry for the late reply. Ill get to that as soon as I can.
Found the file, uploading now.
Edit: The file is empty, could this be causing the error?
Edit #2: Okay, I found a loot.txt file for gm_construct in my local Garry's mod folder, and I uploaded it to the server & replaced the old one. I'm not to sure if it's working yet, I need to restart the server and test it from there, and I cant do that now because there's too many people on it. Will get back to you if it works.
Okay, this is to anyone who is reading this. I deleted "garrysmod/data/murder/gm_construct", and I restarted the server. I was then able to add loot and the folder was automatically recreated (murder/gm_construct). The error that was in my console is gone too. Thank you!
Sorry, you need to Log In to post a reply to this thread.