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

Disabling the Report Menu Breaks the Game #370

Closed kebokyo closed 6 years ago

kebokyo commented 6 years ago

This is version 3.1.0.

I went to the config and disabled the report menu, and a little bit after everyone gets these errors:

[ERROR] addons/tttdamagelogs-3p1p0/lua/damagelogs/shared/sync.lua:51: attempt to index field 'Reports' (a nil value)
  1. fn - addons/tttdamagelogs-3p1p0/lua/damagelogs/shared/sync.lua:51
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:109
[ERROR] addons/tttdamagelogs-3p1p0/lua/damagelogs/client/init.lua:65: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. fn - addons/tttdamagelogs-3p1p0/lua/damagelogs/client/init.lua:65
    3. unknown - addons/ulib/lua/ulib/shared/hook.lua:109
[ERROR] addons/tttdamagelogs-3p1p0/lua/damagelogs/client/init.lua:65: Calling net.Start with unpooled message name! [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. fn - addons/tttdamagelogs-3p1p0/lua/damagelogs/client/init.lua:65
    3. unknown - addons/ulib/lua/ulib/shared/hook.lua:109

The hud was breaking and traitor buttons were missing. The only way I could fix it was to enable the report menu again.

Please help. I want to disable the report menu but I actually can't.

MinIsMin commented 6 years ago

This got fixed with https://github.com/Tommy228/tttdamagelogs/commit/48f7b5f3170bafdbad85159667bcb371add53799. You may test the current master version.

kebokyo commented 6 years ago

oh thanks