• This Problem on my Server is so AGGRAVATING
    5 replies, posted
I use Nitrous Networks and I have a StarwarsRP server. I have this problem where no matter what my code is, no matter what commands I use, the same things happen. Whenever you die, you respawn with 100 Hp and lose all your items. If I set the spawn somewhere else, it doesn't change. It's the same thing and it's my #1 issue. I've had some experienced friends help me out and they said they tried everything and don't know what to do. Im generally confused because I don't know if it's an addon or what the problem relates to. I don't know if it's an addon or a lua error or something else. I just really need help. I looked in the web console and I have a feeling that this is the problem: [ERROR] lua/autorun/sv_comms.lua:37: attempt to index global 'cfgComms' (a nil value) 1. nextevent - lua/autorun/sv_comms.lua:37 2. unknown - lua/dlib/modules/hook.lua:439 3. entMeta_Spawn - [C]:-1 4. Spawn - lua/dlib/luabridge/entity.lua:126 5. unknown - gamemodes/base/gamemode/player.lua:115 I don't really know where to look either. I'm a shitty developer because I'm new and learning.
Line 37 of lua/autorun/sv_comms is trying to do: cfgComms.something when cfgComms doesn't exist. Find where that table is defined and make sure it's loaded before line 37 is run.
Imma little lost. I used FileZilla and searched for the file and just looked through all of the lua files. Cant find it.
It may be an addon. If that's the case you'll have to decompile it or try to get the developer to fix it. If you want to decompile it, which just extracts the contents of a GMA file (like a zip file) then try to find the GMA in garrysmod/addons and drag and drop it onto garrysmod/bin/gmad.exe
Would it be on workshop or one of my downloaded ones?
I'm not really even sure it's an addon, but I tried to find a way to tell. It appears that GM:OnLuaError makes a different error message if the error is caused by an addon. If you can recreate the error again then the annoying yellow box that says 'Something is creating script errors' should say 'The addon' and then the addon's name, and then 'is creating errors, check the console for details.' If it doesn't say that, then it's probably a downloaded addon.
Sorry, you need to Log In to post a reply to this thread.