• gmcl_joystick - DirectInput module with simplified interface
    316 replies, posted
  • Avatar of Æsh
  • [QUOTE=Night-Eagle;13289357]This is a limitation made by Garry's Mod. If you're talking about resolution, the module sends 10 times per second. However, the latency is so great that it takes a significant amount of time for the server to respond. The only solution would require networking without the use of console commands. Garry is opposed to this, however, because[/QUOTE] because huh
  • Avatar of Deco Da Man
  • Why not make it an option for servers to allow clients to connect via the socket module? (Hopefully UDP, not TCP) That'd solve your problems. simply release it saying to set a port and unblock it. Then you could tell the client the info they need to connect to. [b]Edit:[/b] And you'd simply close the socket when the associated client disconnects. To prevent someone connecting and saying "I'm user #5!" yet they are user #8, you could send a random number via umsg, and have them send that.
  • Avatar of Night-Eagle
  • I thought of that, but no one has actually demonstrated a working client to server UDP connection.
  • Avatar of Wolvenmoon
  • Low priority suggestion here! I started playing around with this and didn't have enough axis to do everything I wanted. It'd be immensely useful if it was possible to bind buttons to increase/decrease a virtual axis, especially for throttles. If this is possible, while you're at it if you decide to implement this, having a button that toggles between a virtual axis being at a point when pressed, and another when left would be awesome too.
  • Avatar of evan_madore
  • [QUOTE=Wolvenmoon;13389807]Low priority suggestion here! I started playing around with this and didn't have enough axis to do everything I wanted. It'd be immensely useful if it was possible to bind buttons to increase/decrease a virtual axis, especially for throttles. If this is possible, while you're at it if you decide to implement this, having a button that toggles between a virtual axis being at a point when pressed, and another when left would be awesome too.[/QUOTE] That could easily be done with wire.
  • I cant add functions for my Joystick, like Up = Press 8 Down = Press 5 Etc.. Zeos i watched ur tut, i get no Joystick Axis thingy in Entities.. Can you do one of the new mod?
  • Avatar of Night-Eagle
  • [QUOTE=evan_madore;13397497]That could easily be done with wire.[/QUOTE] Yes, but if another player wants to use his contraption and he doesn't have enough axes, he is boned.
  • I think you should add like a setup guide in the bottom, ive been wasting 5 hours of trying to find out how to make it work correctly, and all was a fail, every time xD
  • Avatar of cue kalamos
  • [QUOTE=ITWNKU;13633650]I think you should add like a setup guide in the bottom, ive been wasting 5 hours of trying to find out how to make it work correctly, and all was a fail, every time xD[/QUOTE] the SBMP module won't bind the joystick controls D: i was hoping its because of my ignorance.
  • Avatar of WeltEnSTurm
  • Spawn a Multi-Controller, Open the binding menu, select "Wire Joystick" on the right and now you can pull your axis/button from the left to the right.
  • Avatar of adadr
  • i got numpad one to work now i will try what you said. theres only so many numpads, so i cant use that for complex things like a helicopter im working on.
  • Avatar of adadr
  • ok i just tried it and it doesnt work, as there are no inputs/outputs on it. please tell me how
  • Avatar of fishface60
  • Finally got around to sorting the order [lua]SBEP = SBEP or {} function SBEP.JoystickReorder(category,order) local oldCatTab = jcon.reg.cat[category] local newCatTab = {} if #oldCatTab != #order then ErrorNoHalt("New order hasn't got the same number of entries as old order") return end for order,description in ipairs(order) do for _,data in ipairs(oldCatTab) do if data.description == description then newCatTab[order] = data end end end jcon.reg.cat[category] = newCatTab end local function JoyReorder() SBEP.JoystickReorder("Fighters",{"Pitch","Yaw","Roll","Thrust","Accelerate/Decelerate", "Strafe Up","Strafe Down","Strafe Right","Strafe Left","Fire 1","Fire 2", "Launch","Yaw/Roll Switch"}) SBEP.JoystickReorder("Gyro-Pod",{"Pitch","Yaw","Roll","Thrust","Accelerate/Decelerate", "Strafe Up","Strafe Down","Strafe Right","Strafe Left","Launch", "Yaw/Roll Switch"}) SBEP.JoystickReorder("Rover",{"Turning","Accelerate/Decelerate","Strafe","Strafe Left", "Strafe Right","Jump","Fire 1","Fire 2"}) SBEP.JoystickReorder("Boarding Pod",{"Pitch","Yaw","Roll","Yaw/Roll Switch","Launch"}) end[/lua]
  • Is it just me or is garrysmod.org not letting you get this also? Rather annoying. Edit: ah, seems garry failed at an update...
  • Avatar of Mr Donovan
  • I have reuploaded the module addon here: [url]http://www.garrysmod.org/downloads/?a=view&id=71730[/url] Ignore the this file has been reported notice, garrysmod.org does that automatically now for DLLs.
  • Avatar of Grocel
  • [QUOTE=Mr Donovan;15794657]Ignore the this file has been reported notice, garrysmod.org does that automatically now for DLLs.[/QUOTE] Garrysmod.org does delete DLLs automatically later. ;)
  • Avatar of jonney934
  • This one shouldn't delete. [url=http://solidfiles.com/d/7LTA][img]http://solidfiles.com/info_imgs/7LTA.jpg[/img][/url]
  • Got this in the console after installing: [code]ERROR! Module 'joystick' not found![/code] Also "joyconfig" doesn't seem to work, and there's no new entities in the spawn menu. Just unzip to /addons/ right? So I've got "../addons/Joystick Module/" is that correct?
  • You have to copy the gmcl_joystick.dll from addons/joystick/lua/includes/modules/ to lua/includes/modules I think.
  • Please the Links are not working any more i want and need it :D its awesome for me PS3 controller :D [editline]04:06AM[/editline] Hey the links are not any more working :( ilike this mod so can you reuploud it please cuz its freaking awesome :D
  • Avatar of Night-Eagle
  • garrysmod.org doesn't like binaries. They get deleted every time I upload them. Yay, I have a fileserver. Please don't hack my fileserver. [url=http://eagle.undo.it:8083/download?id=1&act=url][img]http://eagle.undo.it:8083/download?id=1&act=img[/img][/url]