• HOW TO: Use your Xbox 360 Controller with Garry's Mod
    41 replies, posted
  • Avatar of yuki
  • So I've been playing around with my controller recently, and got it working with Garry's Mod quite fluidly. I'd like to share my effort with all of you in this simple How-To guide. I even made some images for you. [img]http://i.min.us/idDeXK.png[/img] First off, make sure your controller is plugged in and responding. You may need drivers from Microsoft if you haven't done that already. [img]http://i.min.us/idDhfS.png[/img] Second, install this handy-dandy .cfg file. Simply drag and drop into C:\Program Files\Steam\steamapps\YOURNAME\garrysmod\garrysmod\cfg Download: [url]http://www.mediafire.com/?w1bmiwd194ycc32[/url] This configuration file binds all of the keys needed to use an Xbox controller ingame and makes the joysticks operable. [img]http://i.min.us/id8dOU.png[/img] Third, install "JoyToKey". [url]http://electracode.com/4/joy2key/JoyToKey%20English%20Version.htm[/url] Download link is at the bottom of the page. It's not really even in installation, program is already set to go. [img]http://i.min.us/id8M9C.png[/img] Now, install this second cfg to the SAME DIRECTORY THAT JOYTOKEY IS IN. [url]http://www.mediafire.com/?4ecnanbk9ntd94v[/url] Now, make sure that your controller is ON and run JoyToKey. You should see the "Gmod" configuration to the left. Select it. You should now be able to use your right control stick to move the mouse, R to click, and L to right click. This config also makes it so that START hits the "Escape" key (pause menu) and Dpad right and left operate the scrollwheel. [img]http://i.min.us/id8mv2.png[/img] Lastly, run Garry's Mod, open up the console, and type "exec xbox360controller". It should autocomplete the sentence for you. Hit enter, and you should be good to go. Start up a singleplayer game and test it. Here's the binding sheet: [b]Right Trigger: Primary Left Trigger: Secondary Right Bumper: Next weapon Left Bumper: Sprint A: Jump B: Reload X: Activate Y: (Nothing, you can bind it by editing the CFG in your garry's mod folder and rerunning exec xbox...etc) Back: Spawnmenu Start: Escape Menu Left Stick: Movement Left Stick (Button): Crouch Right Stick: Look around/Operate Spawnmenu Right Stick (Button): Suit Zoom D-Pad Up: Flashlight D-Pad Down: Noclip D-Pad Right & Left: Scrollwheel [/b] KNOWN ISSUES/Other things: -Crouch does not seem to work well in multiplayer (you can try editing the cfg and changing the command from "+duck" to "toggle_duck") -Want to use voice? Go into the CFG and where it says bind "JOY4" "" // Y change it to bind "JOY4" "+voicerecord" // Y -Can't rotate props conventionally. Oversight on garry's part. I hope this tutorial was helpful, feel free to ask questions.
  • [img]http://static.facepunch.com/fp/ratings/clock.png[/img] JoyToKey. :effort:
  • Avatar of BrQ
  • What did we need again to connect wireless controllers to pc?
  • [QUOTE=BrQ;27158515]What did we need again to connect wireless controllers to pc?[/QUOTE] OP neglected to mention this only works with wired controllers.
  • Avatar of yuki
  • [QUOTE=Ehmmett;27159832]OP neglected to mention this only works with wired controllers.[/QUOTE] It works with either. I use a wireless controller.
  • Avatar of yuki
  • [QUOTE=PEn1s lol;27161846]Whats the point controllers suck.[/QUOTE] Then don't use them. This is a tutorial for those who would like to, for novelty or otherwise.
  • Avatar of Drainwater
  • [QUOTE=Tacooo;27176840]I done this but with Xpadder[/QUOTE] It's far simpler with Xpadder...not that it would be something I'd want to do, but you could cut out like 75% of the hassle that this method causes.
  • Avatar of yuki
  • [QUOTE=Drainwater;27177909]It's far simpler with Xpadder...not that it would be something I'd want to do, but you could cut out like 75% of the hassle that this method causes.[/QUOTE] There really isn't that much hassle with this method, I would say.
  • [QUOTE=UnarmedSniper;27190643]Uhm, how would we exactly, ragdoll pose?[/QUOTE] You pretty much don't.
  • Avatar of yuki
  • [QUOTE=UnarmedSniper;27190643]Uhm, how would we exactly, ragdoll pose?[/QUOTE] Ehmmet is right, it's pretty difficult. Like I said, this is more of a novelty than anything, it's not at all more functional than a mouse and keyboard.
  • Avatar of hacksore
  • [QUOTE=Ehmmett;27159832]OP neglected to mention this only works with wired controllers.[/QUOTE] You're dumb. [QUOTE=Blueridge;27159883]Or you could use a BlueTooth Adapter.[/QUOTE] No it's a Wireless Gaming Receiver, not Bluetooth. [QUOTE=BrQ;27158515]What did we need again to connect wireless controllers to pc?[/QUOTE] Wireless Gaming Receiver, although they discontinued them so you will need to look online for them.
  • Avatar of Agent Cobra
  • Or, get the module/addon: [url]http://www.facepunch.com/threads/403669-gmcl_joystick-DirectInput-module-with-simplified-interface[/url] And use your XBox controller to control your contraptions! (Works great with helicopters and such) Even works with having two XBox controller linked in wirelessly! :buddy:
  • Avatar of ROFLBURGER
  • What do we mean by "drivers from Microsoft"? [QUOTE=PEn1s lol;27161846]Whats the point controllers suck.[/QUOTE] It's a good vibrator
  • Avatar of a-k-t-w
  • [QUOTE=hacksore;27209659]You're dumb. No it's a Wireless Gaming Receiver, not Bluetooth. Wireless Gaming Receiver, although they discontinued them so you will need to look online for them.[/QUOTE] What, really? I got mine from a store not to long ago. The wireless receiver I mean.
  • Avatar of Chicken wings
  • [QUOTE=yuki;27158462] -Can't rotate props conventionally. Oversight on garry's part.[/QUOTE] Garry made this for pc?
  • Avatar of yuki
  • [QUOTE=hacksore;27209659] Wireless Gaming Receiver, although they discontinued them so you will need to look online for them.[/QUOTE] They discontinued them? No wonder I've never seen them in stores. Why would they discontinue them? [QUOTE=Chicken wings;27247924]Garry made this for pc?[/QUOTE] Yes, he did, good job. He did not adapt the joystick controls because they were not a priority.
  • The back doesn't open the spawnmenu for me, mabye because im using an xbox copy not an official controller.
  • Avatar of Mobon1
  • I hate using controllers for FPS games. Garry's Mod is kind of a dumb idea, since it revolves around menus.
  • Avatar of yuki
  • [QUOTE=Adzter;27313229]The back doesn't open the spawnmenu for me, mabye because im using an xbox copy not an official controller.[/QUOTE] Probably. [QUOTE=Mobon1;27314588]I hate using controllers for FPS games. Garry's Mod is kind of a dumb idea, since it revolves around menus.[/QUOTE] For the second time: Then don't use them.
  • [QUOTE=Mobon1;27314588]I hate using controllers for FPS games. Garry's Mod is kind of a dumb idea, since it revolves around menus.[/QUOTE] Does it matter to you? Ill play with my dog if I have to.
  • Avatar of yuki
  • [QUOTE=areolop;27356097]the real question is, why play with a controller when you have a mouse and keyboard.[/QUOTE] [QUOTE=yuki;27199354]Ehmmet is right, it's pretty difficult. Like I said, [b]this is more of a novelty than anything[/b], it's not at all more functional than a mouse and keyboard.[/QUOTE] Feel free to ignore the thread.
  • This thread made me want to have a go at controllers. Made a pretty bad ass Wiimote control script in Glove PIE. It was actually far better than an actual controller.