Garry's Mod

Garry's Mod

Mystery Box Entity (Sandbox/TTT)
Ashen 11 Mar, 2015 @ 10:22pm
Timer failed
When I get a weapon I get those errors, but not all the time. The error messages differ a little each time.

[Mystery Box Entity] lua/entities/zombies_box_weapon/init.lua:168: attempt to index field 'Entity' (a nil value)
1. unknown - lua/entities/zombies_box_weapon/init.lua:168

Timer Failed! [CycleWeps][@lua/entities/zombies_box_weapon/init.lua (line 167)]

[Mystery Box Entity] lua/entities/zombies_box_weapon/init.lua:86: attempt to index field 'Entity' (a nil value)
1. unknown - lua/entities/zombies_box_weapon/init.lua:86

Timer Failed! [stopmoving][@lua/entities/zombies_box_weapon/init.lua (line 85)]


Everything looks like its working fine but I don't even know how its supposed to look like so I can't tell.
Last edited by Ashen; 11 Mar, 2015 @ 10:27pm
< >
Showing 1-3 of 3 comments
Well i don't think it impacts the game much but it's annoying seeing the pop up.
or9 17 Mar, 2016 @ 2:33pm 
i have this also but i get a crowbar error i have 76 weapons loded into the text it works for a while then i get this timer error

workshop/lua/entities/zombies_box_weapon/init.lua:146: attempt to index local 'weaponGet' (a nil value)
1. SwitchWeapon - workshop/lua/entities/zombies_box_weapon/init.lua:146
2. unknown - workshop/lua/entities/zombies_box_weapon/init.lua:174

Timer Failed! [CycleWeps][@workshop/lua/entities/zombies_box_weapon/init.lua (line 167)]
Any Clue How to fix This ?


I tried it again with all the m9k weapons and got a diffrent error

Timer Failed! [CycleWeps][@workshop/lua/entities/zombies_box_weapon/init.lua (line 167)]

[ERROR] workshop/lua/entities/zombies_mysterybox/init.lua:206: attempt to index field 'Entity' (a nil value)
1. unknown - workshop/lua/entities/zombies_mysterybox/init.lua:206

Timer Failed! [Simple][@workshop/lua/entities/zombies_mysterybox/init.lua (line 135)]

is there a limit to how many you can put in the box

Last edited by or9; 17 Mar, 2016 @ 3:01pm
TheBillinator3000 12 Sep, 2016 @ 3:04pm 
My timer error landed on 193.

Here's the message:

[Mystery Box Entity] lua/entities/zombies_box_weapon/init.lua:169: attempt to index local 'weaponGet' (a nil value)
1. SwitchWeapon - lua/entities/zombies_box_weapon/init.lua:169
2. unknown - lua/entities/zombies_box_weapon/init.lua:202

Timer Failed! [CycleWeps18][@lua/entities/zombies_box_weapon/init.lua (line 193)]


I can only guess that the box is TRUELY RANDOM and it may land on the same weapon twice and I can only guess that the box isn't coded to bring up the same weapon twice and it comes up as an error. :\
< >
Showing 1-3 of 3 comments
Per page: 1530 50