TTT-2 / TTT2

Trouble in Terrorist Town 2 for Garry's Mod (gmod)
https://steamcommunity.com/sharedfiles/filedetails/?id=1357204556
178 stars 74 forks source link

ERROR UPDATE DOOR #546

Closed dok441 closed 4 years ago

dok441 commented 4 years ago

[ERROR] addons/ttt2-tttv2/lua/ttt2/libraries/door.lua:57: attempt to get length of local 'data' (a userdata value)

  1. GetClosedAngle - addons/ttt2-tttv2/lua/ttt2/libraries/door.lua:57
    1. FindPair - addons/ttt2-tttv2/lua/ttt2/libraries/door.lua:72
    2. HandleDoorPairs - addons/ttt2-tttv2/lua/ttt2/libraries/door.lua:99
      1. SetUp - addons/ttt2-tttv2/lua/ttt2/libraries/door.lua:164
      2. unknown - gamemodes/terrortown/gamemode/server/sv_main.lua:764
      3. CleanUpMap - [C]:-1
      4. CleanUpMap - addons/tttdamagelogs-master/lua/damagelogs/shared/sync.lua:42
        1. CleanUp - gamemodes/terrortown/gamemode/server/sv_main.lua:786
        2. unknown - gamemodes/terrortown/gamemode/server/sv_main.lua:901
TimGoll commented 4 years ago

Already known. Thanks!

dok441 commented 4 years ago

The error has not been fixed.

TimGoll commented 4 years ago

The same error can not happen anymore since the line is completely removed. Are you sure you've updated your version?

TimGoll commented 4 years ago

Additionally it works for me and I don't have an error anymore

dok441 commented 4 years ago

I updated it, but you just fixed the value, not deleted the line.

-- the center pos is slightly shifted to the top to prevent ground -- -- collisions in the wall trace local pos Center = pos + Vector(0, 0, 0.525 * size Player.z)

Was local pos Center = pos + Vector(0, 0, 0.5 * size Player.z)

TimGoll commented 4 years ago

this is a different fix for another error, this is a completely different file.

this one: https://github.com/TTT-2/TTT2/commit/042b4dbc59674e26046e8f3d4e29f8a4e6eef452

dok441 commented 4 years ago

Missed apparently.