Guardian954 / TTT2-CustomRolesPort

A port of the custom roles mods roles for TTT2
0 stars 1 forks source link

Causing massive conflicting errors with ULX/Ulib #1

Closed CptHaxray closed 3 years ago

CptHaxray commented 3 years ago

Heyo. I've recently tried installing 3 of these roles onto my server (Clown, Killer Clown, and Beggar) and upon adding them Ulib started spitting out lua errors. This resulted in the entire TTT2 settings section of the Ulx menu to disappear, and a lot of other commands to stop functioning among other issues.

Heres the issue i got in console, I hope you can sort out whatever caused this as I really wanted to use these roles.

[ulx] lua/vgui/dnumberscratch.lua:156: attempt to concatenate local 'iDecimals' (a boolean value)

  1. GetTextValue - lua/vgui/dnumberscratch.lua:156
    1. ValueChanged - lua/vgui/dnumslider.lua:184
      1. SetDecimals - lua/vgui/dnumslider.lua:138
        1. makeslider - addons/ulx/lua/ulx/modules/cl/xlib.lua:543
          1. unknown - addons/ulx_modules/lua/ulx/xgui/gamemodes/terrortown.lua:450
            1. include - [C]:-1
              1. fn - addons/ulx/lua/ulx/modules/cl/xgui_client.lua:157
                1. Call - addons/ulib/lua/ulib/shared/hook.lua:109
                  1. fn - addons/ulib/lua/ulib/cl_init.lua:49
                    1. unknown - addons/ulib/lua/ulib/shared/hook.lua:109
CptHaxray commented 3 years ago

Update on this issue:

I tried reinstalling with all of the roles. No Lua errors appeared, but the TTT2 settings section of ULX went completely blank still, except for Round Structure. Something is wrong with the way your convars are set-up.

CptHaxray commented 3 years ago

Second Update:

Upon changing the known broken clown convar (the Decimal in the clown_health_on_transform section being set to = true), i'm still getting the issue where almost all of the settings in the TTT2 tab disappears.

Guardian954 commented 3 years ago

Pushed an update with all the roles working and adjustable via ulx on my server, let me know if it works for you now please

CptHaxray commented 3 years ago

The main issue is no longer occuring, however a similarly related issue now is.

Two times while using the roles, suddenly all ulx command print outs broke, including the @ admin chat command. The commands still functioned but the chat print broke. This happened mid-round multiple times, and fixes on map change. The only thing that was changed was reintroducing your roles. I am currently using the Beggar and Clown, and none of the others. My only assumption is it has to do with either the Beggar or Clown dying mid round, or the Clown's transformation into evil clown triggering.

Guardian954 commented 3 years ago

I was doing unnecessary things in the revive that TTT2 already did which might've been the cause, can you please see if the latest version fixes your issue?