Garry's Mod

Garry's Mod

Splitscreen for Sandbox
101 Comments
Zroytz  [author] 15 May @ 7:11am 
…anyone using the ×64 build of Garry's Mod? It doesn't support controllers. See this image from the carousel for a work-around.
LoneQ 14 May @ 3:18am 
fix your damm mod player two cant switch wepons and spawn anything super buggy :steamthumbsdown:
Asgore 19 Apr @ 3:15am 
i plugged in my controller and now it controls player 1 i thought it was supposed to do player 2
The LAMBDA player 30 Mar @ 4:54pm 
man i wish more people tried adding splitscreen to gmod.
it would be rlly great if this was easier and more accesible cuz it aint work and i cant find a way to make it do shit.
Zroytz  [author] 11 Jan @ 11:58pm 
Also:
•Some settings require Garry's Mod to be restarted to take effect. Garry's Mod even must be restarted to start using a controller that was just plugged in (plug the controller in & configure Steam Input before starting Garry's Mod).
•Confirm that the controller is properly plugged in & installed by clicking the Big Picture mode button near the top-right of the Steam Client window. The controller should work for navigating the Big Picture interface.
Zroytz  [author] 11 Jan @ 11:57pm 
Because Garry's Mod doesn't natively support PS4 controllers, Steam Input may have to be enabled & configured to convert PS4 input to Xbox-style input. I can't say exactly how to do this or what configuration works, but perhaps these are some things to check:
•Click the gear icon on the Steam Library page for Garry's Mod. Under 'controller', ensure that Steam Input is enabled.
•Go to Steam settings -> controller & ensure that support for Playstation controllers is enabled.
•Click the controller icon on the Garry's Mod library page & ensure that a Steam input configuration that keeps controller inputs as (Xbox-style) controller inputs is selected.
QwesterGuy 11 Jan @ 2:24am 
ohhh fuck so every bind got fucked, but it sadly still doesnt respond to input
QwesterGuy 11 Jan @ 1:47am 
for some reason my PS4 controller doesnt work with this gamemode, tried every solution and it didnt work, any idea on how to fix it?
IRONBASTERD 8 Dec, 2024 @ 12:52pm 
the controller and keyboard is on player one
triplethreatttxt 23 Nov, 2024 @ 5:26am 
how do you find bind key fields?
general_stealth 27 Oct, 2024 @ 5:42am 
thank you soo much. i will try it as soon as possible and let you know.
Zroytz  [author] 27 Oct, 2024 @ 12:11am 
Prefer to change the defaults in the Lua?:
Edit cl_init.lua. The default bindings should be near the top of the lua file, among all the variable declairations. Variables that store default keybindings for player 2 have names like 'p2attack', 'p2jump' ... The are set to Enum values according to this wiki page [wiki.facepunch.com].
Note that if a keybinding was saved via the player 2 bind menu, these defaults will all be overridden. Splitscreen doesn't have a way to clear saved keybindings, but they can be cleared manually by deleting garrysmod/data/sgm_data/sgm_keys.dat.
Zroytz  [author] 27 Oct, 2024 @ 12:10am 
To change Player 2's keybindings (without a gamepad):
On the start game dialog, find the 'player 2 bind key' field & set it to the desired key on the keyboard. The value of this field can either be the key's # or the key's name. For a letter key, the key's name is just the letter on the key (lower case). See the Garry's Mod wiki [wiki.facepunch.com] for each key's #.
In game, press the key that you chose earlier; this'll open the player 2 bind menu. Click a binding then press a key to bind. Changes take effect immediatly, but only remain in effect next game session if 'save' is clicked.
general_stealth 26 Oct, 2024 @ 1:00pm 
it loads fine but I do have 1 question. How can I change what buttons player 2 uses ? like i would like to map some of p2's walking buttons to u, h, j, k. and his looking around to the arrow keys. would this be possible and if so what should I type in the lua file for player 2? Thanks and really cool mod. it actually loads and works on my steamdeck but player 2 can't move yet. which is why I was asking.
Connor Is World 12 Oct, 2024 @ 8:31am 
he does'nt need to update it. just use Nucleus Co-op
ᗪ尺.千尺ㄖ丂ㄒ 12 Oct, 2024 @ 5:39am 
update it and i will donate all my steam points
Pessi 5 Aug, 2024 @ 1:57pm 
My controller dosent work
Squirtals 27 Jul, 2024 @ 6:43pm 
how do i stop player 2 from moving my screen?
Connor Is World 21 Jun, 2024 @ 7:38pm 
if you dont wanna use a broken mod use Nucleus Co-op
Forklend 21 Jun, 2024 @ 6:04pm 
broken mod
Connor Is World 16 May, 2024 @ 11:34pm 
Gil Modder just get Nucleus Co-op.
G.E.M. 13 May, 2024 @ 5:59pm 
I would like you to add support for the third person.
I love Mori :3 (Strawberry) 6 May, 2024 @ 8:53am 
I love this mod, I wish it just had more stuff like less bugs and model fixes. Overall amazing mod with friends and frames don't drop, staying a solid 60fps. 8/10
GetGAMING 21 Apr, 2024 @ 8:51am 
Player 2 cant sprint for some reason
Critical 24 Mar, 2024 @ 3:47pm 
W mod bro ty
_TheBug_ 24 Mar, 2024 @ 12:22am 
okay, i got it working now, I cant wait to play this with my friend
Zroytz  [author] 24 Mar, 2024 @ 12:11am 
The "BACK" button is near the top center of an Xbox 360 or Xbox One controller, to the left of the Xbox logo.
...using a controller that doesn't have a "BACK" button? The bind menu button can be changed via a setting on the main menu -> start game dialog. The simplest buttons to set as a bind menu button are keys on the keyboard. For example, to make the l key open the bind menu, type l into the player 2 bind key text box.
_TheBug_ 23 Mar, 2024 @ 11:54pm 
what is the "BACK" button?
Zroytz  [author] 22 Mar, 2024 @ 12:28pm 
To prevent both controller & keyboard from controlling the same screen, configure Steam input. See this image from the image carousel for details.
Critical 21 Mar, 2024 @ 2:11pm 
How do i stop making controller and keyboard use the same screen?
Heytherekiddo 25 Jan, 2024 @ 4:05am 
can u make ttt splitscreen
InsanityVoid 2 Dec, 2023 @ 8:34pm 
I wish there was splitcreen for melonracer
kje- 24 Nov, 2023 @ 2:39am 
I downloaded the mod, configured everything as in the instructions, it works halfway.
I can’t pick up a weapon, player 1 always has some kind of gun on the screen.
For player 2, the camera lags behind the body.
How to configure the mod so that you can play normally with a friend?
ThatOneQ 31 Oct, 2023 @ 6:59am 
Player 2 can't revive. What do i do?
mariogamerepic74 13 Sep, 2023 @ 3:18pm 
still wont work im thinking the mod just allows xbox controllers and dosent work on any other controllers.
mariogamerepic74 13 Sep, 2023 @ 11:53am 
alright im going to try it out
Zroytz  [author] 13 Sep, 2023 @ 10:25am 
An image has been added to the image carousel above ↑ showing the steps to configure Steam® input, with images. It is important that Steam® input retain controller inputs as controller inputs. If it converts controller inputs to keyboard & mouse inputs, Garry's Mod can't distinguish between the controller & keyboard/mouse — this is what causes both to control player 1 while nothing controls Player 2.
mariogamerepic74 6 Sep, 2023 @ 1:49pm 
i tried what you said but it still will not work and i looked at the 2nd video on the mod page and i still done what you did in the video but it still will not controll player 2 can you make a tutorial on it? cus im trying to make player two at least move to the controller but it still wont work.
Zroytz  [author] 6 Sep, 2023 @ 12:40pm 
…everything controlling Player 1 while nothing controls Player 2?
Steam™ input must be configured:
•Open big picture mode — the big picture mode button is in the upper right corner of the Steam™ window.
•Go to menu → library → Garry's Mod. Click the controller icon to the right of the Garry's Mod library page.
•A banner near the top of the controller configuration page shows the currently selected configuration, which is most likely something to effect of “keyboard WASD & mouse”? Click this banner to select a different configuration.
•Choose a configuration for games with built-in controller support.
mariogamerepic74 5 Sep, 2023 @ 4:25pm 
and yea my controller just controlls player 1 and so does my keyboard but player 2 dont move to the controller at all and i cant find a way to make this work.
mariogamerepic74 5 Sep, 2023 @ 4:24pm 
hey my controller will not work on player 2 player 2 just stands there and i cannot move them even with my keyboard or controller im not useing a xbox controller either is there anyway you can help me?
Zroytz  [author] 22 Aug, 2023 @ 4:44pm 
Is the controller controlling both players?
Enable strict controller segregation pre-game via the checkbox on the start game dialog, or during game by pressing HOME on the keyboard & checking the strict controller segregation checkbox.
Linux/Mac?: don't use strict controller segregation; disable gamepad support instead (Garry's Mod settings -> mouse -> enable the gamepad)


Is the controller & keyboard/mouse controlling Player 1 while nothing controls Player 2?
Configure Steam® input to keep controller inputs as controller inputs. Set Steam® input to use a template for games with built-in controller support.
Nardole 21 Aug, 2023 @ 1:02am 
How do i stop my controller from controlling the same person as the keyboard and mouse? Many thanks
Zroytz  [author] 20 Aug, 2023 @ 12:55pm 
Unfortunately, Garry's Mod itself only supports 1 mouse. However, 2 keyboards can be used as long as Player 1 & Player 2 don't use the same keys. To change Player 2's keybindings, press the Player 2 bind key & set each desired binding on the list that appears by clicking the binding, then pressing the key to bind. Changes take effect immediately, saving is optional. The player 2 bind key is the back button on a controller by default, but it can be changed pre-game via the start game dialog: type m into the player 2 bind key field to set the player 2 bind key to m. Now pressing m in-game should open the list of bindings.
slxyer2236 20 Aug, 2023 @ 1:47am 
could you use 2 key board and mouse?:gmod:
jolantos200 17 Jul, 2023 @ 7:36am 
controls don't work for a ps4 controller
Kille Boi 8 Jul, 2023 @ 6:39am 
awesome
Zroytz  [author] 30 Jun, 2023 @ 1:11pm 
On the start game dialog, ensure that the green drop down menu isn't set to single-player. Player 2 counts as a player.
toy freddy gaming 30 Jun, 2023 @ 9:50am 
how do you make a slot for player 2
Zroytz  [author] 18 Jun, 2023 @ 2:02pm 
Any controller that is compatible with the operating system & Garry's Mod or Steam Input should work; but I've only tried Xbox 360 & Xbox One controllers. For these, Steam input can just be disabled to prevent Player 1 from being controlled by it. This setting should be available per-game on the settings dialog that appears by clicking the gear on the Garry's Mod library page.


Using a different controller? Now it may be necessary to configure Steam Input rather than just disable it. Steam Input should keep controller input as controller inputs. Click the controller on the Garry's Mod library page & choose the template by Valve for games with built-in controller support. (I didn't test this).