jesserocks3357 / darkrp

Automatically exported from code.google.com/p/darkrp
0 stars 1 forks source link

Random error i noticed on server console (doors becoming unownable after a few hours of the server being up) #793

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What is the problem?

04/02/2012 - 11:58:52: Lua Error: ERROR: Hook 'DRP_WireFieldGenerator' Failed: 
invalid key to 'next'
ERROR: Hook 'DRP_WireFieldGenerator' Failed: invalid key to 'next'
L 04/02/2012 - 11:58:52: Lua Error: Removing Hook 'DRP_WireFieldGenerator'
Removing Hook 'DRP_WireFieldGenerator'

What steps will reproduce the problem?

unknown

Do you have any errors? serverside or clientside? If you do, which ones?

Are you using the downloaded version or an SVN revision (if SVN, which
revision number)?

svn latest revision 

Please provide any additional information below.

im searching for an error from another addon that makes my doors unownable 
after a few hours of the server running. i have not noticed anyone else with 
this issue so im thinking its just something i recently added.

Original issue reported on code.google.com by brownc...@gmail.com on 2 Apr 2012 at 7:54

GoogleCodeExporter commented 9 years ago
Have you tried updating wiremod? I think it's wiremod messing this one up.

Original comment by fpeijnen...@gmail.com on 3 Apr 2012 at 7:15

GoogleCodeExporter commented 9 years ago
Well to be specific, wiremod extra's. The abomination called wire field 
generator is in there.

Original comment by fpeijnen...@gmail.com on 3 Apr 2012 at 7:22

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
i have updated but let me try removing it completely. also if this might 
explain anything the server is on linux

Original comment by brownc...@gmail.com on 3 Apr 2012 at 3:48

GoogleCodeExporter commented 9 years ago
still had the door issues. when you buy the door it act likes it buys it from 
you but it either does not update who the owner is or it does not add the new 
owner

Original comment by brownc...@gmail.com on 3 Apr 2012 at 11:09

GoogleCodeExporter commented 9 years ago
/*---------------------------------------------------------------------------
Wire field generator exploit
---------------------------------------------------------------------------*/
hook.Add("OnEntityCreated", "DRP_WireFieldGenerator", function(ent)
    timer.Simple(0, function(ent)
        if ValidEntity(ent) and ent:GetClass() == "gmod_wire_field_device" then
            local TriggerInput = ent.TriggerInput
            function ent:TriggerInput(iname, value)
                if value ~= nil and iname == "Distance" then
                    value=math.Min(value, 400);
                end
                TriggerInput(self, iname, value)
            end
        end
    end, ent)
end)

this is in the Workarounds.lua file...  this seems to happen right as the doors 
become unownable. i dont see how it can be the cause but its the only thing i 
can seem to find error wise in my server console around that time

Original comment by brownc...@gmail.com on 6 Apr 2012 at 10:15

GoogleCodeExporter commented 9 years ago
I know the error is happening there, the error is saying it's there.

Original comment by fpeijnen...@gmail.com on 7 Apr 2012 at 5:56

GoogleCodeExporter commented 9 years ago
What I do know is that this error has nothing to do with doors or door handling 
code. I think there are other errors that you haven't given to me yet.

Original comment by fpeijnen...@gmail.com on 8 Apr 2012 at 9:37

GoogleCodeExporter commented 9 years ago
I'm setting this to invalid because I think the problem lies with you and not 
DarkRP.

I'll continue to help you though if you give me more information.

Original comment by fpeijnen...@gmail.com on 8 Apr 2012 at 9:40

GoogleCodeExporter commented 9 years ago
well as soon as my admins actually inform me right when it happens so i can 
catch the error i will post it on here. thanks for your help

Original comment by brownc...@gmail.com on 9 Apr 2012 at 6:29

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
apparently all the dark rp commands stop working when this happens. maybe 
something is blocking rp commands? the only other lua error i get in any of my 
logs is this 

Lua Error: [gamemodes/darkrp/gamemode/sv_gamemode_functions.lua:387] Model 
missing: models/Mass Effect 2/player/mordin_solus.mdl

and im pretty sure that has nothing to do with it. (though something i need to 
fix XD)

Also on a side note. when someone joins it has there name as nil for about 45 
seconds sometimes 

Original comment by brownc...@gmail.com on 9 Apr 2012 at 6:54

GoogleCodeExporter commented 9 years ago
ok i believe i fixed it (was having to use old .so files on my server due to 
the linux versions of them being outdated) vehicles still crash my server but i 
just removed the job that sells them and we are back to a seemingly fixed 
server with always working doors. we will see how long it lasts though. thanks 
for your help

Original comment by brownc...@gmail.com on 12 Apr 2012 at 4:19

GoogleCodeExporter commented 9 years ago
I've noticed that when I log off of my server, any doors I owned  while on, are 
no longer mine once I log back in again. Is it something on my end? I don't 
like logging back in to not have my door be mine, but I don't know what to do.  
It seems only the mayor and cops can keep doors even after logging out, but no 
one else. Can you help in any way? 
Thanks 

Original comment by momof5...@gmail.com on 29 Sep 2012 at 8:54

GoogleCodeExporter commented 9 years ago
No, doors don't save. that's a stupid idea

Original comment by fpeijnen...@gmail.com on 29 Sep 2012 at 8:56

GoogleCodeExporter commented 9 years ago
Then why does it save for cops and mayors if it's not supposed to save at all?

Original comment by momof5...@gmail.com on 29 Sep 2012 at 9:14

GoogleCodeExporter commented 9 years ago
Those are job specific doors not player ownered doors........ also I think the 
original issue was with my map. I have since changed the map and everything is 
fine with my doors 

Original comment by brownc...@gmail.com on 30 Sep 2012 at 12:02