TTT-2 / ttt2-ulx

This is an addon to support ulx settings for the new custom roles in TTT2. Original addon by Bender180 and Skillz (https://steamcommunity.com/sharedfiles/filedetails/?id=127865722&searchtext=trouble+in+terrorist+town+ulx)
5 stars 4 forks source link

Error when you don't have TTTC on your server #12

Closed ThePlatinumGhost closed 4 years ago

ThePlatinumGhost commented 4 years ago

With last version of ttt2-ulx you should get this error if you don't have TTTC installed on your server

[ERROR] addons/ttt2-ulx-master/lua/ulx/xgui/server/sv_terrortown.lua:75: attempt to index global 'CLASS' (a nil value)

  1. updateCVarsForTTTCULXClasses - addons/ttt2-ulx-master/lua/ulx/xgui/server/sv_terrortown.lua:75
    1. init - addons/ttt2-ulx-master/lua/ulx/xgui/server/sv_terrortown.lua:247
    2. fn - addons/ulx-v3_73/lua/ulx/modules/xgui_server.lua:300
      1. unknown - addons/ulib-v2_63/lua/ulib/shared/hook.lua:109

To Reproduce Start a server without TTTC

Prob fix Add a check if the server has TTTC installed (?)

Maybe someone else can try to replicate if it is only my bug, I no longer trust Gmod

TimGoll commented 4 years ago

Yes, I see the problem. Thanks for the report

Histalek commented 4 years ago

Was this fixed by 50f0ca84a6ae4f587e6596c92dc76bef604bd7c7 ?

TimGoll commented 4 years ago

Yes indeed, I forgot to close this