Garry's Mod

Garry's Mod

Cops and Runners
 This topic has been pinned, so it's probably important
Zet0r  [developer] 22 Jul, 2014 @ 3:43pm
Bugs and other Nasty Things!
NOTE: I am on holiday right now and do not have access to my desktop, any bugs reported can't be fixed until after August 4th.


Report bugs that you find right here! If you were the first to find it, you might get rewarded in-game with some cosmetics *cough* rainbow smoke grenades *cough* (subject to change).
Please don't report any known bugs unless you have found a cause or way to trigger it. Anything helps!
If you see 'Something is creating script errors' and it is related to the gamemode, copy the error from the console and paste it here along with what happened when it happened and what didn't work after that.

Known bugs:
- The clock does not begin rotating if you join mid-round. This is completely client-side and fixes itself the next round
- The weapon icons on the HUD are sitting a bit too down when playing on lower resolutions
- Dying from a trigger_hurt kills you twice if jail exists
- On maps with only 1 spawnpoint, you spawn inside each other being stuck
Last edited by Zet0r; 24 Jul, 2014 @ 2:46am
< >
Showing 1-15 of 41 comments
Hi, for some reason whenever the runners get jailed they can just leave the jail and run around even though they are still supposed to be jailed. Its as if the jail does not exist (you can still see it but can run out basically). Any suggestions to fix this?
Maigo 25 Jul, 2014 @ 6:31pm 
Hello, when my friends and i play cops and runners we have to die first in order to get our items
Zet0r  [developer] 26 Jul, 2014 @ 12:59am 
Originally posted by Shilow100:
Hi, for some reason whenever the runners get jailed they can just leave the jail and run around even though they are still supposed to be jailed. Its as if the jail does not exist (you can still see it but can run out basically). Any suggestions to fix this?
Hmmm, does not seem to happen to anyone else. Have you got any more information? Was it on a dedicated server, did you mess with some code, or maybe it installed badly? Did you see any console errors?



Originally posted by Kappa the Unikitty =^w^=:
Hello, when my friends and i play cops and runners we have to die first in order to get our items
Same as above, neve happened to me or anyone I've seen videos from. Got script errors when you spawned first? Is it every round? Have you tried to manually force a round restart with the console command "ForceRoundRestart"?
Jørgen=? 26 Jul, 2014 @ 12:56pm 
The same happends to me! The people in jail can run outside it!!! I've tried to restarting it! We play on my server I made!
Zet0r  [developer] 26 Jul, 2014 @ 1:13pm 
Originally posted by j0rg:
The same happends to me! The people in jail can run outside it!!! I've tried to restarting it! We play on my server I made!
It is a glitch. The way it handles collision is to check the players team, and poll whether to enable or disable collisions, but only if the second entity's model is "jail.mdl". Make sure the server host has the model installed correctly so he doesn't see an error.

It works for everybody else, so I can't see it as a fault in the code :/
Jørgen=? 26 Jul, 2014 @ 3:23pm 
Originally posted by Zet0r:
Originally posted by j0rg:
The same happends to me! The people in jail can run outside it!!! I've tried to restarting it! We play on my server I made!
It is a glitch. The way it handles collision is to check the players team, and poll whether to enable or disable collisions, but only if the second entity's model is "jail.mdl". Make sure the server host has the model installed correctly so he doesn't see an error.

It works for everybody else, so I can't see it as a fault in the code :/

What I do is subscribe on the mode in Workshop, then transform the "GMA" file in my addons folder to a gamemodefolder with GMOD converter and put it in the server gamemode folder.
Jørgen=? 26 Jul, 2014 @ 3:34pm 
Can you send me the folder you use in a server plz? On mediafire or such?
Zet0r  [developer] 27 Jul, 2014 @ 1:45am 
Originally posted by j0rg:
Can you send me the folder you use in a server plz? On mediafire or such?
I'm not home so I don't have any of the files (Didn't you see the note at the top?)

You can't just extract this and put it in your gamemodes folder. It includes a 'materials' folder and a 'models' folder too. You need to convert the .gma into a single folder, then open that folder, and inside you will find a replica of the Garry's Mod architecture, and you need to extract each of those folders content to their respective folder in your server.
Jørgen=? 27 Jul, 2014 @ 11:12am 
Ty! That worked! On the other gamemodes we have downloaded could we just do it the way i described!
Zet0r  [developer] 27 Jul, 2014 @ 12:33pm 
Originally posted by j0rg:
Ty! That worked! On the other gamemodes we have downloaded could we just do it the way i described!
Probably because they have their materials in the 'content' folder, which is inside the gamemode, not the root. When I tried that, the .gma compiler just made an error on me, so that's why I don't do that :P
JUDD 7 Aug, 2014 @ 12:35am 
TEST [gamemodes/copsandrunners/gamemode/cl_hud.lua][gamemodes/copsandrunners/gamemode/shared.lua]
TEST [gamemodes/copsandrunners/gamemode/cl_init.lua][gamemodes/copsandrunners/gamemode/shared.lua]
TEST [gamemodes/copsandrunners/gamemode/countdown.lua][gamemodes/copsandrunners/gamemode/shared.lua]
TEST [gamemodes/copsandrunners/gamemode/init.lua][gamemodes/copsandrunners/gamemode/shared.lua]
TEST [gamemodes/copsandrunners/gamemode/player.lua][gamemodes/copsandrunners/gamemode/shared.lua]
TEST [gamemodes/copsandrunners/gamemode/shared.lua][gamemodes/copsandrunners/gamemode/shared.lua]
FOUND IN ADDON [277013349]

[Cops and Runners] gamemodes/copsandrunners/gamemode/shared.lua:247: attempt to call method 'IsPlayer' (a nil value)
1. fn - gamemodes/copsandrunners/gamemode/shared.lua:247
2. unknown - addons/ulib/lua/ulib/shared/hook.lua:183

Zet0r  [developer] 7 Aug, 2014 @ 2:57am 
Originally posted by Dr. Judd:
TEST [gamemodes/copsandrunners/gamemode/cl_hud.lua][gamemodes/copsandrunners/gamemode/shared.lua]
TEST [gamemodes/copsandrunners/gamemode/cl_init.lua][gamemodes/copsandrunners/gamemode/shared.lua]
TEST [gamemodes/copsandrunners/gamemode/countdown.lua][gamemodes/copsandrunners/gamemode/shared.lua]
TEST [gamemodes/copsandrunners/gamemode/init.lua][gamemodes/copsandrunners/gamemode/shared.lua]
TEST [gamemodes/copsandrunners/gamemode/player.lua][gamemodes/copsandrunners/gamemode/shared.lua]
TEST [gamemodes/copsandrunners/gamemode/shared.lua][gamemodes/copsandrunners/gamemode/shared.lua]
FOUND IN ADDON [277013349]

[Cops and Runners] gamemodes/copsandrunners/gamemode/shared.lua:247: attempt to call method 'IsPlayer' (a nil value)
1. fn - gamemodes/copsandrunners/gamemode/shared.lua:247
2. unknown - addons/ulib/lua/ulib/shared/hook.lua:183
When did this happen? When you disconnected? The code in that line simply checks if the entity being removed is a player.
Originally posted by Zet0r:
Originally posted by j0rg:
Can you send me the folder you use in a server plz? On mediafire or such?
I'm not home so I don't have any of the files (Didn't you see the note at the top?)

You can't just extract this and put it in your gamemodes folder. It includes a 'materials' folder and a 'models' folder too. You need to convert the .gma into a single folder, then open that folder, and inside you will find a replica of the Garry's Mod architecture, and you need to extract each of those folders content to their respective folder in your server.
Not sure how you do that. Could you possibly link a download for it? Not sure if that makes any sense
Zet0r  [developer] 10 Aug, 2014 @ 4:24am 
Originally posted by Shilow100:
Originally posted by Zet0r:
I'm not home so I don't have any of the files (Didn't you see the note at the top?)

You can't just extract this and put it in your gamemodes folder. It includes a 'materials' folder and a 'models' folder too. You need to convert the .gma into a single folder, then open that folder, and inside you will find a replica of the Garry's Mod architecture, and you need to extract each of those folders content to their respective folder in your server.
Not sure how you do that. Could you possibly link a download for it? Not sure if that makes any sense

You can extract any .gma by going to "SteamApps/[username] or Common/garrysmod/bin", there you'll find a program called "gmad.exe". To extract a .gma with this program, you need to make a batch file and put this in it:

gmad.exe extract -file "[Path to target .gma]"
(example: gmad.exe extract -file "C:\steam\SteamApps\common\garrysmod\garrysmod\addons\my_addon_12345.gma")
Sev 20 Aug, 2014 @ 10:39pm 
Hi, I loved the game-mode, but had some problems when playing on a server I hosted.
When some of my friends joined, they were claiming that their HUD would not work, that there was simply error signs where it would say 'Runner' or 'Warden', as well as in the bottom right corner. Apparently a similar thing occurred with the jail textures.

I say apparently because mine worked fine, as well as most of the people playing on the server, but it was apparently intolerable for those with the problem, to the point where we played another game-mode for their sake.

We double checked that they had subscribed, but it did happen to several people, so it can't be a single computer problem. Nor a server-side problem, as it worked for me and most players. (I don't think so anyway)

Have you ever experienced or heard of this before?
Last edited by Sev; 20 Aug, 2014 @ 10:40pm
< >
Showing 1-15 of 41 comments
Per page: 1530 50