Hello,
I was messing around with the fretta voting system and I realized I couldn't make something I want to work. So I reinstalled the fretta just to check if the error was from my part, and I still get this error:
Lua Error: Timer Error: [gamemodes\fretta\gamemode\sv_gmchanger.lua:38] attempt to index field '?' (a nil value)this is the function that is getting the error:
function GetNumberOfGamemodeMaps( gm )
return table.Count( g_PlayableGamemodes[ gm ].maps )
end
Is the TTT gamemode not beeing detected ( the index gm is nil or rather ther gamemode isn't playable acc. to fretta ) ?
When I tested this with ttt_fretta_mapvoting set to "0" the other gamemodes showed up on the list and terrortown didnt but I am able to load up a map with terrortown.
Edit: Also... to be shure I completly reseted everything I ran a Steam Update on the (dedicated server) and it has no addons or anything.
Also the cvars that I have set relating TTT are:
+sv_defaultgamemode "terrortown"
ttt_firstpreptime 1
ttt_posttime_seconds 1
ttt_preptime_seconds 1
ttt_fretta_mapvoting 1
ttt_round_limit 1