• gmcl_joystick - DirectInput module with simplified interface
    316 replies, posted
  • Avatar of dracotonisamond
  • im having a bit of an issue using this. just one question, is it supposed to have wire inputs and outputs? because when i use the wire tool on it it does not display any nor can i turn it on. its running on a dedicated server.
  • Avatar of Night-Eagle
  • The Joystick input SENTs only have outputs. I don't know what you mean by "turn it on" nor "display any". [img]http://img94.imageshack.us/img94/1423/joystickwire.jpg[/img] Select the Joystick Input STOOL. Set UID to "dracotest" and description to "Hi there!" and leave analog unticked. Now, spawn a Joystick Input by left-clicking the floor. Next, choose the Wire Thruster STOOL and change the settings accordingly. Spawn the wire thruster. Select the Advanced Wiring STOOL and wire the thruster to the Joystick Input. Now, go back to the Joystick Input STOOL and click "Joystick Configuration". Make sure the Wire Joystick tab is highlighted, if not, click it. Scroll through your joysticks and find an input - if you don't have a joystick, click "Key" and find an input. Click the input. Next, click "dracotest" from the Joystick Configuration menu. The thruster will respond to your input. To link the Joystick Input to a pod, simply equip the Joystick Input STOOL, press reload on the Joystick Input SENT, and then press reload on the pod. The thruster will now only operate when you or someone else is in the pod and activates that binding.
  • Avatar of dracotonisamond
  • [QUOTE=Night-Eagle;17834971]The Joystick input SENTs only have outputs. I don't know what you mean by "turn it on" nor "display any". [img]http://img94.imageshack.us/img94/1423/joystickwire.jpg[/img] Select the Joystick Input STOOL. Set UID to "dracotest" and description to "Hi there!" and leave analog unticked. Now, spawn a Joystick Input by left-clicking the floor. Next, choose the Wire Thruster STOOL and change the settings accordingly. Spawn the wire thruster. Select the Advanced Wiring STOOL and wire the thruster to the Joystick Input. Now, go back to the Joystick Input STOOL and click "Joystick Configuration". Make sure the Wire Joystick tab is highlighted, if not, click it. Scroll through your joysticks and find an input - if you don't have a joystick, click "Key" and find an input. Click the input. Next, click "dracotest" from the Joystick Configuration menu. The thruster will respond to your input. To link the Joystick Input to a pod, simply equip the Joystick Input STOOL, press reload on the Joystick Input SENT, and then press reload on the pod. The thruster will now only operate when you or someone else is in the pod and activates that binding.[/QUOTE] hello again and thank you for the quick reply. but it still seems to refuse to work. i have sbmp installed on the server if that has anything to do with my current blight. i can't seem to get it to interface with wire devices. and the wire debugger seems to output 0 at all times. you are welcome to come and check out my current issue on our server. [url=http://www.game-monitor.com/garrysmod2_GameServer/76.91.87.250:27015/Drakes_Build_Server.html][img]http://module.game-monitor.com/76.91.87.250:27015/image/400x20/p:0F1/b:F00/l:F00/gs:1B00CC/ge:000/gradient.png[/img][/url]
  • Avatar of CapsAdmin
  • I'm having the same problem I think. [img]http://errur.com/New/Uploads/64.jpg[/img]
  • Avatar of Night-Eagle
  • That's not the same problem, as you can actually equip the Joystick Tool on your server :v: Did you reconnect prior to testing that and was that UID in use before reconnecting? If so, the problem is in the Wire interface (that I wrote) and the issue does not affect Joystick Module developers, but I am aware of the problem. As a temporary fix, use an alternate UID or delete all entities using that UID and spawn again. If not, please give me the outputs of the following during the time of your issue: [code] lua_run PrintTable(joystick.data) lua_run PrintTable(jcon.wireModInstances) lua_run_cl PrintTable(joynet) [/code] Thanks!
  • Avatar of CaMpEr_DoOd
  • Sorry if this is classed as bumping a thread, but i get an error model when i use this, is there something else needed to run it?
  • Avatar of Night-Eagle
  • The Wire interface requires the Wire model pack. This module is still supported - I will post a remark if otherwise.
  • Avatar of fishface60
  • I think garry's taking suggestions for the next update, why not suggest he adds your joystick module?
  • Avatar of samohan
  • Just wondering CapsAdmin, do you know which one of those it was? I have the same problem, and all of those mods.
  • Avatar of Night-Eagle
  • CapsAdmin removed them all at the same time, so he doesn't know which one caused the problem (last time I checked).
  • Avatar of samohan
  • I found this error: Hook 'gmod_wire_joystick' Failed: entities/gmod_wire_joystick_multi/init.lua:229: attempt to index field 'wireModInstances' (a nil value) LuaChipDebug: Set Tag Result: CAF,LSC,LSE,RD,joystick_v25 Not sure if there's any relevance but I'm locating the mod through elimination. Removed each one individual and it dosen't work, I think its the: lua_run PrintTable(jcon.wireModInstances) that isn't working, I'm going to try removing them all and see what happens. Ah, removed every single item to do with spacebuild and it works. testing in detail, hope it's a minor mod, oh and the wireModInstances error is gone, so that is the cause i presume. Found the problem, conflict with the Space Build Expansion Pack, one of my favorite mods. Any way of removing the incompatability? could it be the pre-set control scheme for the pack? Tried the three outputs and got all but the jcon.wireModInstances: > PrintTable(jcon.wireModInstances)... includes\util.lua:35: bad argument #1 to 'pairs' (table expected, got nil) not sure where includes/util.lua is but I think it's SBMP, removing that solves everything, even if I do there is a considerable delay between pressing a button and reciveing input.
  • Avatar of samohan
  • You can do that if the tablet is used as a mouse, if it can be used as an input you could use PIEGlove and PPJoy together to make a virtual joystick, otherwise I'm not sure.
  • Hmm, How would I hook it up to one of the prebuild spacebuild flying entities?
  • Avatar of Nompl
  • It doesn't work because of GCombat. I tried it out, got the same error, deleted GCombat and now it works. Hope I helped.
  • Avatar of dracotonisamond
  • i can vouch for this. it is still in perfect operation. in fact, im using right now. EDIT:although i noticed SBEP screws with it pretty hard. usually removing the joystick files in SBEP fixes that.
  • Avatar of nexitem
  • Thanks i try this, ( Removing SBEP is no option... rather kill myself! :D )
  • Avatar of Night-Eagle
  • I fixed the problem you're describing last October, just never got around to packaging it. [url=http://eagle.undo.it:8083/download?id=13&act=url][img]http://eagle.undo.it:8083/download?id=13&act=img[/img][/url] I haven't tested it as a release package, but I believe it works fine. This is a patch, it must overwrite version 25 to work.
  • Avatar of nexitem
  • Its still not working... Maybe I'm doing something false... [CODE]LuaChipDebug: Set Tag Result: joystick_v26 LuaChipDebug: Set Tag Result: joystick_v26 ] joyconfig Unknown command: joyconfig ] lua_run PrintTable(joystick.data) > PrintTable(joystick.data)... Player [1][|\| - neX!Tem]: headersplit = 1 rawheader = header: datamap = ] lua_run PrintTable(jcon.wireModInstances) > PrintTable(jcon.wireModInstances)... jm_: Entity [65][gmod_wire_joystick_multi] = Player [1][|\| - neX!Tem] ] lua_run_cl PrintTable(joynet) includes\util.lua:35: bad argument #1 to 'pairs' (table expected, got nil) [/CODE] I would like to help a little more... just say what i have to do. ^^
  • Avatar of Night-Eagle
  • There is a startup error that you haven't posted. I need to see that. You're running a listen server, right?
  • Avatar of Night-Eagle
  • PM me in a week if I don't get back to this. Personal stuff. Do-or-die. I probably just uploaded the wrong version...so many failing hard drives.
  • Avatar of DEFCON1
  • Awesome, exactly what I was searching! That's no doubt one of the best addition to Gmod. Now I would like to test it (so I can test my new spacecraft :D), I can't download because your site is down. Of course take your time, but I just can't wait ;)
  • Avatar of dracotonisamond
  • heh, i hear you. i waited like 3 hours one time for his download link to come back up after being down. i backed the addon up after that. heres a mediafire link. [url]http://www.mediafire.com/file/zmwmzmmwmm2/GMCL_JOYSTICK.zip[/url] didn't ever want to lose this addon if his host went down for good.
  • Avatar of DEFCON1
  • [QUOTE=dracotonisamond;21454529]heh, i hear you. i waited like 3 hours one time for his download link to come back up after being down. i backed the addon up after that. heres a mediafire link. [url]http://www.mediafire.com/file/zmwmzmmwmm2/GMCL_JOYSTICK.zip[/url] didn't ever want to lose this addon if his host went down for good.[/QUOTE] Thanks! ;) Edit: a bit hard to install/set up, but once done, works perfectly!
  • Avatar of Night-Eagle
  • I [i]totally[/i] forgot to update my router configuration after migrating to the new network. That, and the different IP address. Shouldn't take [i]that[/i] long to fix the server next time it goes down - and, actually, the new network is [i]much[/i] more stable than last. I'm shooting for this next weekend to sort out your problems. If not, the week after finals (two weeks). I was going to do it yesterday, but I lost 24 hours of food...[i]and time[/i].