Tommy228 / tttdamagelogs

Damagelogs and RDM Manager for Trouble in Terrorist Town (a Garry's Mod gamemode)
GNU General Public License v3.0
57 stars 73 forks source link

Not sure if me, or... #70

Closed BytewaveMLP closed 9 years ago

BytewaveMLP commented 9 years ago
[ERROR] addons/damagelogs/lua/damagelogs/cl_damagelog.lua:137: bad argument #1 to 'IsKeyDown' (number expected, got nil)
  1. IsKeyDown - [C]:-1
   2. Think - addons/damagelogs/lua/damagelogs/cl_damagelog.lua:137
    3. fn - addons/damagelogs/lua/damagelogs/cl_damagelog.lua:155
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:184

Meh...

Could be my environment, or just this. Not sure.

BytewaveMLP commented 9 years ago

If need be I can provide configs, environment details, etc.

Tommy228 commented 9 years ago

Did you update your config file?

Joschasa commented 9 years ago

got the same error, before i updated our config file. You have to provide, which key should open the DamageLog. see https://github.com/Tommy228/TTTDamagelogs/blob/master/lua/damagelogs/config/config.lua#L24

BytewaveMLP commented 9 years ago

@Tommy228 Thought I did, I spliced them together.

Here's what it looks like, you tell me...


--[[ User rights. The default level is 2 if your rank isn't here
    1 : Can't open the menu
    2 : Can only use the damagelog when the round isn't active
    3 : Can use the damagelog when spectating and when the round isn't active
    4 : Can always use the damagelog

    The third argument is the RDM Manager access. Set it to true or false.
]]--

Damagelog:AddUser("owner", 4, true)
Damagelog:AddUser("superadmin", 4, true)
Damagelog:AddUser("admin", 4, true)
Damagelog:AddUser("operator", 3, false)
Damagelog:AddUser("dj", 2, false)
Damagelog:AddUser("user", 2, false)
Damagelog:AddUser("guest", 2, false)

-- The F-key

Damagelog.Key = KEY_F8

--[[ A message is shown when an alive player opens the menu
    1 : if you want to only show it to superadmins
    2 : to let others see that you have abusive admins
]]--

Damagelog.AbuseMessageMode = 2

-- true to enable the RDM Manager, false to disable it

Damagelog.RDM_Manager_Enabled = true

-- Commands to open the report and response menu. Don't forget the quotation marks

Damagelog.RDM_Manager_Command = "!report"

--[[ Set to true if you want to enable MySQL (it needs to be configured on config/mysqloo.lua)
    Setting it to false will make the logs use SQLite (garrysmod/sv.db)
]]--

Damagelog.Use_MySQL = true

--[[ Enables the !autoslay command for ULX, designed to work with the logs.
I recommend disabling the old slaynr script (if you are currently using it) and using this command instead.
Works like that : !autoslay target number_of_slays reason
Example : !autoslay tommy228 2 RDMing a traitor
]]--

Damagelog.Enable_Autoslay = false

-- The number of days the logs last on the database (to avoid lags when opening the menu)

Damagelog.LogDays = 31
BytewaveMLP commented 9 years ago
[REDACTED]|10|[REDACTED]
Couldn't include file 'damagelogs\config\config.lua' (File not found) (@addons/damagelogs/lua/damagelogs/cl_damagelog.lua (line 1))

Hmmm...

???

I don't even know anymore...

Joschasa commented 9 years ago

Should look like this: garrysmod/addons/TTTDamagelogs-master/lua/damagelogs/config/ - did you miss an update or maybe didnt delete the old files first? paths got updated some patches ago

BytewaveMLP commented 9 years ago

@Joschasa ... facepalm
In my defense moving where the configs are located isn't ever a good idea, but that's probably just my issue.

Tommy228 commented 9 years ago

I moved the /lua to lua/damagelog/ to avoid conflicts.