gmcl_joystick - DirectInput module with simplified interface
316 replies, posted
[QUOTE=TweaK2007;39521831]I'm not sure where you're getting that it was removed, you just have to add a single line
[/QUOTE]
I read that on the LuaJIT replacement module that a user made and never saw any different when I tried to look it up. Guess I was wrong, but good to know. :P Thanks for fixing the rest!
[QUOTE=TweaK2007;39523407]Enjoy :v: [url]https://dl.dropbox.com/u/7934790/gmod/joystick.zip[/url][/QUOTE]
Joystick multi still gives script errors when you change it's values.
[QUOTE=Unslinga;39527471]Joystick multi still gives script errors when you change it's values.[/QUOTE]
The settings on the context menu? What's the error?
edit: Nevermind, found it. Redownload it from the link I posted earlier.
Oh god I love you guys! <3
Great stuff, i'll reintegrate this with WAC now.
Hate to revive an old thread, but this has some issues in multiplayer. If someone makes somethign in single player and brings it on my server, ti works perfectly fine. As soon as they go to change some settings, it bugs out and wont even let them shoot down a new joystick controller
And I wanted to ask- how can I make a contraption controlled by the joystick only when you are sitting in it? Do I have to multiply the 'Player sits' signal from adv pod controller with each of the joystick outputs, or is there any other option?
I think there's a way to link the joystick entity to a pod controller, but I can't quite remember.
Any chance that we see the ability to control force feedback functions through this at any time tweak?
[QUOTE=Hyperion01;40457988]And I wanted to ask- how can I make a contraption controlled by the joystick only when you are sitting in it? Do I have to multiply the 'Player sits' signal from adv pod controller with each of the joystick outputs, or is there any other option?[/QUOTE]
im pretty sure you look at the controller, hit R then look at the seat and hit R, but it wasnt working for me, and was throwing errors about something like getplayer or entity or something.
WAC integration should return soon as long as the module is holding up well.
[QUOTE=ricky23;40465217]im pretty sure you look at the controller, hit R then look at the seat and hit R, but it wasnt working for me, and was throwing errors about something like getplayer or entity or something.[/QUOTE]
Hmm, can you try to get me the actual lua error it prints to console? I couldn't reproduce this.
[editline]1st May 2013[/editline]
[QUOTE=viperfan7;40461469]Any chance that we see the ability to control force feedback functions through this at any time tweak?[/QUOTE]
Dunno, I didn't make or even recompile the module. That stuff's over my head lol
[QUOTE=TweaK2007;40497307]Hmm, can you try to get me the actual lua error it prints to console? I couldn't reproduce this.
[editline]1st May 2013[/editline]
Ah ok, well, guess its time for me to learn C++
Dunno, I didn't make or even recompile the module. That stuff's over my head lol[/QUOTE]
Ah ok, guess its time for me to learn C++
Oh I forgot to post here I removed the sv_tags thing from this addon a couple weeks ago because that command doesn't exist anymore and it was printing useless junk to the server console. So if that bugs you like it did me, grab the update.
WAC Support is now re-integrated (and will be released in the nearish future) thanks to [URL="http://facepunch.com/member.php?u=131939"]WeltEnSTurm[/URL].
[code]
[ERROR] addons/joystick/lua/entities/gmod_wire_joystick_multi/init.lua:234: bad argument #1 to 'pairs' (table expected, got nil)
1. pairs - [C]:-1
2. v - addons/joystick/lua/entities/gmod_wire_joystick_multi/init.lua:234
3. Call - lua/includes/modules/hook.lua:82
4. unknown - addons/joystick/lua/autorun/server/joystick.lua:333
5. unknown - lua/includes/modules/concommand.lua:69
[/code]
I seem to be getting this when moving the joystick around after binding it to something.
I get the same error as above. I'm hoping this could be fixed at some point soon because I just managed to find my joystick
[QUOTE=MattJeanes;40547347][code]
[ERROR] addons/joystick/lua/entities/gmod_wire_joystick_multi/init.lua:234: bad argument #1 to 'pairs' (table expected, got nil)
1. pairs - [C]:-1
2. v - addons/joystick/lua/entities/gmod_wire_joystick_multi/init.lua:234
3. Call - lua/includes/modules/hook.lua:82
4. unknown - addons/joystick/lua/autorun/server/joystick.lua:333
5. unknown - lua/includes/modules/concommand.lua:69
[/code]
I seem to be getting this when moving the joystick around after binding it to something.[/QUOTE]
[QUOTE=PikachuX1000;40792667]I get the same error as above. I'm hoping this could be fixed at some point soon because I just managed to find my joystick[/QUOTE]
How can I reproduce this? I can't seem to make it happen on my end. Does it happen in singleplayer?
[QUOTE=TweaK2007;40795458]How can I reproduce this? I can't seem to make it happen on my end. Does it happen in singleplayer?[/QUOTE]
Using the WAC joystick mapping specifically causes it.
Once you bind certain things to certain inputs it causes a flood of errors once you move or press the assigned input.
Might be just a WAC issue but this is one of the main reasons I want to use my joystick :C
Yep. Sounds like whatever WAC is would be the cause if it doesn't happen without it...
ok I'm trying to add a box just after the button for joystick button 32 to indicate if a joystick is FFB capable or not, and the Lua for the gui is confusing as hell, anyone have any idea how I would do it?
Guys, by any chance, have someone saved the source code?
[QUOTE=Tango91;39446861]Combining your module with my modified addon folder only threw one error, which I fixed, but the GUI is still transparent :/
The fixed, fixed, version of the addons folder: [url]https://www.dropbox.com/s/kzhrmxyme8fqbhx/joystick2.zip[/url][/QUOTE]
[CODE][ERROR] addons/joystick/lua/entities/gmod_wire_joystick/init.lua:140: bad argument #1 to 'GetPassenger' (number expected, got no value)
1. GetPassenger - [C]:-1
2. PollJoystick - addons/joystick/lua/entities/gmod_wire_joystick/init.lua:140
3. v - addons/joystick/lua/entities/gmod_wire_joystick_multi/init.lua:235
4. Call - lua/includes/modules/hook.lua:82
5. unknown - addons/joystick/lua/autorun/server/joystick.lua:333
6. unknown - lua/includes/modules/concommand.lua:69
[/CODE]
[QUOTE=NeoTheFox;40817852]Guys, by any chance, have someone saved the source code?[/QUOTE]
Check the last couple pages of this thread, I'm pretty sure someone had posted it.
[QUOTE=gamerpaddy;40824717][CODE][ERROR] addons/joystick/lua/entities/gmod_wire_joystick/init.lua:140: bad argument #1 to 'GetPassenger' (number expected, got no value)
1. GetPassenger - [C]:-1
2. PollJoystick - addons/joystick/lua/entities/gmod_wire_joystick/init.lua:140
3. v - addons/joystick/lua/entities/gmod_wire_joystick_multi/init.lua:235
4. Call - lua/includes/modules/hook.lua:82
5. unknown - addons/joystick/lua/autorun/server/joystick.lua:333
6. unknown - lua/includes/modules/concommand.lua:69
[/CODE][/QUOTE]
Try my version [url]https://dl.dropbox.com/u/7934790/gmod/joystick.zip[/url]
[QUOTE=TweaK2007;40824932]Check the last couple pages of this thread, I'm pretty sure someone had posted it.
Try my version [url]https://dl.dropbox.com/u/7934790/gmod/joystick.zip[/url][/QUOTE]
I installed your version 5 mins before. This happens when i link it to a seat, but without link everything works fine.
Im going to update it now.
[QUOTE=NeoTheFox;40817852]Guys, by any chance, have someone saved the source code?[/QUOTE]
[URL]http://facepunch.com/showthread.php?t=403669&p=39443998&viewfull=1#post39443998[/URL]
I'm working on a version that will give FFB support right now, I'll post it when its done, ETA: whenever I feel like it
Oh if you want to take care of the lua side of things when its ready tweak be my guest, I'll make sure to document the new commands when they are done for you if you do
I managed to reproduce the error above with the joyexample given, so I changed around a tiny bit of code and now it's working flawlessly. Download [URL="http://www.sendspace.com/file/kncp80"]here[/URL].
[editline]11th June 2013[/editline]
Working with the Git version of WAC too. Make sure your realism is 3 though or it seems to fail.
[QUOTE=MattJeanes;40997793]I managed to reproduce the error above with the joyexample given, so I changed around a tiny bit of code and now it's working flawlessly. Download [URL="http://www.sendspace.com/file/kncp80"]here[/URL].
[editline]11th June 2013[/editline]
Working with the Git version of WAC too. Make sure your realism is 3 though or it seems to fail.[/QUOTE]
Joystick module is not loaded! - I get this error message everytime I try to open the joystick configuration menu, either through the tool or WAC controls menu
[QUOTE=Hyperion01;41847490]Joystick module is not loaded! - I get this error message everytime I try to open the joystick configuration menu, either through the tool or WAC controls menu[/QUOTE]
In the Git version of WAC? And do you have the download link above I gave version of the module?
WAC? No I have the Workshop one, but like I said I get the same error even for the tool menu which has nothing to do with WAC
Sorry, you need to Log In to post a reply to this thread.