• Garry's Mod TTT "Timer Failed" Error
    15 replies, posted
Hi guys, im kind of new to hosting a dedicated server, and I have ran across a few problems, but have been successful with fixing them. However, I have ran across a new error that I can't seem to figure out. Whenever I start my TTT server, it works just fine, but when the map changes (which i want the map to change), I get this error "Timer Failed! [winchecker][@gamemodes/terrortown/gamemode/init.lua (line 285)]". I would really appreciate it if someone could help me out with this. Thanks
Reinstall your TTT.
I tried doing that, but the same error happened [QUOTE=code_gs;45649358]Reinstall your TTT.[/QUOTE]
What addons do you have?
I have pointshop, player models, hit markers addon, damage indicator addon, RDM notifier addon, some extra Traitor weapons, ULX Admin, and TTT ULX Admin addon[QUOTE=code_gs;45649480]What addons do you have?[/QUOTE]
Have you tried removing them temporarily and testing it?
Yes, but the Timer still fails [QUOTE=code_gs;45650446]Have you tried removing them temporarily and testing it?[/QUOTE]
When exactly did this error started to occur? Try to think about anything you did recently before it started happening that could have caused this
Can you try physically deleting your TTT and getting a new copy? I say that because it said the winchecker timer failed [URL="https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/terrortown/gamemode/init.lua#L285"]when that isn't on line 285.[/URL]
It didn't do this before on my last server. I haven't done anything different from the last server i made, so i don't know why it started do this all of a sudden[QUOTE=JasonMan34;45650520]When exactly did this error started to occur? Try to think about anything you did recently before it started happening that could have caused this[/QUOTE] [editline]10th August 2014[/editline] I have tried getting a new copy but that doesn't work either [QUOTE=code_gs;45650540]Can you try physically deleting your TTT and getting a new copy? I say that because it said the winchecker timer failed [URL="https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/terrortown/gamemode/init.lua#L285"]when that isn't on line 285.[/URL][/QUOTE]
This was a bug that occurred more frequently after the update it's pretty rare it happens on all most all TTT servers at least once a week preventing the round from starting a quick google search will show that lots of TTT communities have experienced the round getting stuck in the preparing stage after the recent update with the problem leading back to the end2prep timer failing. The issue has been raised so hopefully the current dev team fixes it in the next update because your issue sounds pretty similar to the bug. Does this happen for you every time you change the map ?
Yes, it happens every time. I also try using a "Round Restart" ULX command, but that doesn't work either [QUOTE=King Traitor;45654819]This was a bug that occurred more frequently after the update it's pretty rare it happens on all most all TTT servers at least once a week preventing the round from starting a quick google search will show that lots of TTT communities have experienced the round getting stuck in the preparing stage after the recent update with the problem leading back to the end2prep timer failing. The issue has been raised so hopefully the current dev team fixes it in the next update because your issue sounds pretty similar to the bug. Does this happen for you every time you change the map ?[/QUOTE]
show code in gamemodes/terrortown/gamemode/init.lua (line 285)
---- Trouble in Terrorist Town AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") AddCSLuaFile("cl_hud.lua") AddCSLuaFile("cl_msgstack.lua") AddCSLuaFile("cl_hudpickup.lua") AddCSLuaFile("cl_keys.lua") AddCSLuaFile("cl_wepswitch.lua") AddCSLuaFile("cl_awards.lua") AddCSLuaFile("cl_scoring_events.lua") AddCSLuaFile("cl_scoring.lua") AddCSLuaFile("cl_popups.lua") AddCSLuaFile("cl_equip.lua") AddCSLuaFile("equip_items_shd.lua") AddCSLuaFile("cl_help.lua") AddCSLuaFile("cl_scoreboard.lua") AddCSLuaFile("cl_tips.lua") AddCSLuaFile("cl_voice.lua") AddCSLuaFile("scoring_shd.lua") AddCSLuaFile("util.lua") AddCSLuaFile("lang_shd.lua") AddCSLuaFile("corpse_shd.lua") AddCSLuaFile("player_ext_shd.lua") AddCSLuaFile("weaponry_shd.lua") AddCSLuaFile("cl_radio.lua") AddCSLuaFile("cl_radar.lua") AddCSLuaFile("cl_tbuttons.lua") AddCSLuaFile("cl_disguise.lua") AddCSLuaFile("cl_transfer.lua") AddCSLuaFile("cl_search.lua") AddCSLuaFile("cl_targetid.lua") AddCSLuaFile("vgui/ColoredBox.lua") AddCSLuaFile("vgui/SimpleIcon.lua") AddCSLuaFile("vgui/ProgressBar.lua") AddCSLuaFile("vgui/ScrollLabel.lua") AddCSLuaFile("vgui/sb_main.lua") AddCSLuaFile("vgui/sb_row.lua") AddCSLuaFile("vgui/sb_team.lua") AddCSLuaFile("vgui/sb_info.lua") include("shared.lua") include("karma.lua") include("entity.lua") include("scoring_shd.lua") include("radar.lua") include("admin.lua") include("traitor_state.lua") include("propspec.lua") include("weaponry.lua") include("gamemsg.lua") include("ent_replace.lua") include("scoring.lua") include("corpse.lua") include("player_ext_shd.lua") include("player_ext.lua") include("player.lua") CreateConVar("ttt_roundtime_minutes", "10", FCVAR_NOTIFY) CreateConVar("ttt_preptime_seconds", "30", FCVAR_NOTIFY) CreateConVar("ttt_posttime_seconds", "30", FCVAR_NOTIFY) CreateConVar("ttt_firstpreptime", "60") local ttt_haste = CreateConVar("ttt_haste", "1", FCVAR_NOTIFY) CreateConVar("ttt_haste_starting_minutes", "5", FCVAR_NOTIFY) CreateConVar("ttt_haste_minutes_per_death", "0.5", FCVAR_NOTIFY) CreateConVar("ttt_spawn_wave_interval", "0") CreateConVar("ttt_traitor_pct", "0.25") CreateConVar("ttt_traitor_max", "32") CreateConVar("ttt_detective_pct", "0.13", FCVAR_NOTIFY) CreateConVar("ttt_detective_max", "32") CreateConVar("ttt_detective_min_players", "8") CreateConVar("ttt_detective_karma_min", "600") -- Traitor credits CreateConVar("ttt_credits_starting", "2") CreateConVar("ttt_credits_award_pct", "0.35") CreateConVar("ttt_credits_award_size", "1") CreateConVar("ttt_credits_award_repeat", "1") CreateConVar("ttt_credits_detectivekill", "1") CreateConVar("ttt_credits_alonebonus", "1") -- Detective credits CreateConVar("ttt_det_credits_starting", "1") CreateConVar("ttt_det_credits_traitorkill", "0") CreateConVar("ttt_det_credits_traitordead", "1") CreateConVar("ttt_announce_deaths", "1", FCVAR_ARCHIVE + FCVAR_NOTIFY) CreateConVar("ttt_use_weapon_spawn_scripts", "1") CreateConVar("ttt_always_use_mapcycle", "0") CreateConVar("ttt_round_limit", "6", FCVAR_ARCHIVE + FCVAR_NOTIFY + FCVAR_REPLICATED) CreateConVar("ttt_time_limit_minutes", "75", FCVAR_NOTIFY + FCVAR_REPLICATED) CreateConVar("ttt_idle_limit", "180", FCVAR_NOTIFY) CreateConVar("ttt_voice_drain", "0", FCVAR_NOTIFY) CreateConVar("ttt_voice_drain_normal", "0.2", FCVAR_NOTIFY) CreateConVar("ttt_voice_drain_admin", "0.05", FCVAR_NOTIFY) CreateConVar("ttt_voice_drain_recharge", "0.05", FCVAR_NOTIFY) CreateConVar("ttt_namechange_kick", "1", FCVAR_NOTIFY) CreateConVar("ttt_namechange_bantime", "10") local ttt_detective = CreateConVar("ttt_sherlock_mode", "1", FCVAR_ARCHIVE + FCVAR_NOTIFY) local ttt_minply = CreateConVar("ttt_minimum_players", "2", FCVAR_ARCHIVE + FCVAR_NOTIFY) -- debuggery local ttt_dbgwin = CreateConVar("ttt_debug_preventwin", "0") -- Localise stuff we use often. It's like Lua go-faster stripes. local math = math local table = table local net = net local player = player local timer = timer local util = util -- Pool some network names. util.AddNetworkString("TTT_RoundState") util.AddNetworkString("TTT_RagdollSearch") util.AddNetworkString("TTT_GameMsg") util.AddNetworkString("TTT_GameMsgColor") util.AddNetworkString("TTT_RoleChat") util.AddNetworkString("TTT_TraitorVoiceState") util.AddNetworkString("TTT_LastWordsMsg") util.AddNetworkString("TTT_RadioMsg") util.AddNetworkString("TTT_ReportStream") util.AddNetworkString("TTT_LangMsg") util.AddNetworkString("TTT_ServerLang") util.AddNetworkString("TTT_Equipment") util.AddNetworkString("TTT_Credits") util.AddNetworkString("TTT_Bought") util.AddNetworkString("TTT_BoughtItem") util.AddNetworkString("TTT_InterruptChat") util.AddNetworkString("TTT_PlayerSpawned") util.AddNetworkString("TTT_PlayerDied") util.AddNetworkString("TTT_CorpseCall") util.AddNetworkString("TTT_ClearClientState") util.AddNetworkString("TTT_PerformGesture") util.AddNetworkString("TTT_Role") util.AddNetworkString("TTT_RoleList") util.AddNetworkString("TTT_ConfirmUseTButton") util.AddNetworkString("TTT_C4Config") util.AddNetworkString("TTT_C4DisarmResult") util.AddNetworkString("TTT_C4Warn") util.AddNetworkString("TTT_ShowPrints") util.AddNetworkString("TTT_ScanResult") util.AddNetworkString("TTT_FlareScorch") util.AddNetworkString("TTT_Radar") ---- Round mechanics function GM:Initialize() MsgN("Trouble In Terrorist Town gamemode initializing...") ShowVersion() -- Force friendly fire to be enabled. If it is off, we do not get lag compensation. RunConsoleCommand("mp_friendlyfire", "1") -- Default crowbar unlocking settings, may be overridden by config entity GAMEMODE.crowbar_unlocks = { [OPEN_DOOR] = true, [OPEN_ROT] = true, [OPEN_BUT] = true, [OPEN_NOTOGGLE]= true }; -- More map config ent defaults GAMEMODE.force_plymodel = "" GAMEMODE.propspec_allow_named = true GAMEMODE.MapWin = WIN_NONE GAMEMODE.AwardedCredits = false GAMEMODE.AwardedCreditsDead = 0 GAMEMODE.round_state = ROUND_WAIT GAMEMODE.FirstRound = true GAMEMODE.RoundStartTime = 0 GAMEMODE.DamageLog = {} GAMEMODE.LastRole = {} GAMEMODE.playermodel = GetRandomPlayerModel() GAMEMODE.playercolor = COLOR_WHITE -- Delay reading of cvars until config has definitely loaded GAMEMODE.cvar_init = false SetGlobalFloat("ttt_round_end", -1) SetGlobalFloat("ttt_haste_end", -1) -- For the paranoid math.randomseed(os.time()) WaitForPlayers() if cvars.Number("sv_alltalk", 0) > 0 then ErrorNoHalt("TTT WARNING: sv_alltalk is enabled. Dead players will be able to talk to living players. TTT will now attempt to set sv_alltalk 0.\n") RunConsoleCommand("sv_alltalk", "0") end local cstrike = false for _, g in pairs(engine.GetGames()) do if g.folder == 'cstrike' then cstrike = true end end if not cstrike then ErrorNoHalt("TTT WARNING: CS:S does not appear to be mounted by GMod. Things may break in strange ways. Server admin? Check the TTT readme for help.\n") end end -- Used to do this in Initialize, but server cfg has not always run yet by that -- point. function GM:InitCvars() MsgN("TTT initializing convar settings...") -- Initialize game state that is synced with client SetGlobalInt("ttt_rounds_left", GetConVar("ttt_round_limit"):GetInt()) GAMEMODE:SyncGlobals() KARMA.InitState() self.cvar_init = true end function GM:GetGameDescription() return self.Name end -- Convar replication is broken in gmod, so we do this. -- I don't like it any more than you do, dear reader. function GM:SyncGlobals() SetGlobalBool("ttt_detective", ttt_detective:GetBool()) SetGlobalBool("ttt_haste", ttt_haste:GetBool()) SetGlobalInt("ttt_time_limit_minutes", GetConVar("ttt_time_limit_minutes"):GetInt()) SetGlobalBool("ttt_highlight_admins", GetConVar("ttt_highlight_admins"):GetBool()) SetGlobalBool("ttt_locational_voice", GetConVar("ttt_locational_voice"):GetBool()) SetGlobalInt("ttt_idle_limit", GetC
Jesus fucking christ. Use code tags
[QUOTE=Exho;45667992]Jesus fucking christ. Use code tags[/QUOTE] Yea and we only needed one fucking line anyways....
Sorry, you need to Log In to post a reply to this thread.