Garry's Mod

Garry's Mod

TTT2 (Base) - v0.14.4b
This topic has been locked
Mugen 7 Apr, 2020 @ 1:28pm
"The Addon TTT 2 is creating script errors"
Hello guys, couldnt find a thread with this topic.

I have TTT 2 Heroes and Classes enabled, but in the case of 85 % of the rounds i get this Error:
"The Addon TTT 2 is creating script errors"

In those rounds the classes are not available and crystals cant be placed.
Can anyone help me please`? I've checked the ulx console, but i didnt find a solution.

Thank you in advance!

Edit:

When i disable TTT 2 Heroes and the Classes i dont get the error. As expected.
Last edited by Mugen; 7 Apr, 2020 @ 1:31pm
< >
Showing 1-5 of 5 comments
Alf21  [developer] 7 Apr, 2020 @ 4:42pm 
This error doesn‘t help ^^ You should send the client console and server console log, so that we are able to help :)
Mugen 7 Apr, 2020 @ 6:23pm 
Yeah, dumb me. :D

I think i found the error in the console log:

File exists in two addons - possible conflicts! lua/ulib/shared/hook.lua (ULib and [TTT] Player Info/Role Counter)

[ERROR] gamemodes/terrortown/entities/entities/ttt_role_counter/init.lua:33: attempt to perform arithmetic on a nil value
1. WriteRoleDistribution - gamemodes/terrortown/entities/entities/ttt_role_counter/init.lua:33
2. fn - gamemodes/terrortown/entities/entities/ttt_role_counter/init.lua:55
3. Call - lua/ulib/shared/hook.lua:109
4. unknown - gamemodes/terrortown/gamemode/server/sv_main.lua:1169

Timer Failed! [prep2begin][@gamemodes/terrortown/gamemode/server/sv_main.lua (line 923)]

[TTT2] Warning! A net message (TTT_RoleCount_Start) is already started! Discarding in favor of the new message! (StartDrowning)

1. StartDrowning - gamemodes/terrortown/gamemode/shared/sh_player_ext.lua:760
2. unknown - gamemodes/terrortown/gamemode/shared/sh_main.lua:193

It seems there some conflicts between this two in the lines above mentioned addons. I do not understand why its loading sometimes and sometimes not. Should i remove both addons?
Mugen 8 Apr, 2020 @ 1:25am 
UPDATE:

"File exists in two addons - possible conflicts! lua/ulib/shared/hook.lua (ULib and [TTT] Player Info/Role Counter)"

I disabled the TTT Player info/Role Counter. Didnt know that there is already a info/role counter in the ulx pack until i saw the console. I think at 03:00am i was too tired to think far enough xD

Now its working flawless. Thank you for ur great help. And thank you for ur work on TTT! :)
Last edited by Mugen; 8 Apr, 2020 @ 1:25am
LillyPoh  [developer] 8 Apr, 2020 @ 7:50am 
Glad that it works for you :)
Thank you and enjoy the game.
If you got any other issues dont hesitate to ask or join our discord to get extra fast support ;P
Alf21  [developer] 8 Apr, 2020 @ 7:58am 
There is no role counter in ULib. Any error with Ulib and „conflicts“ is just an hint for an error in the other add-on that is not ULib (if I wanna explain it easily). It‘s just the TTT Role Counter that ist buggy. We already have a Role Counter / Role Distribution and Killer Info add-on. You should give a look into the other TTT2 add-ons :)
< >
Showing 1-5 of 5 comments
Per page: 1530 50