Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Problem with SET CONTROL DEVICE and using mutliple gamepads/joysticks at once. Older threads seem to suggest a command that does not exist...

Author
Message
Omega gamer 89
17
Years of Service
User Offline
Joined: 10th Sep 2007
Location: Pittsburgh, PA
Posted: 10th Nov 2024 20:20 Edited at: 11th Nov 2024 01:07
Hi! So Im currently trying to set something up so multiple players can play at once using gamepads/joysticks. Ive looked through the help file documentation, and searched here on the forum, and the forum threads seem to indicate to use commands that... dont appear to exist? There are multiple other threads asking about using multiple joysticks, but they all seem to say you need to use SET CONTROL DEVICE INDEX and/or SET CONTROL DEVICE NAME but the thing is... neither of these commands appear to be valid. DBPro only seems to recognize "SET CONTROL DEVICE" and not "SET CONTROL DEVICE INDEX" or "SET CONTROL DEVICE NAME." Additionally, SET CONTROL DEVICE only takes one parameter; a string for the device name, while other threads are saying you need to give it two parameters; a name and an index?

How am I meant to set this index when the command will not take that parameter? Any general advice for how to handle multiple joysticks active at once is appreciated as well.

I also saw people saying there was a plugin you can buy (multijoy) but the site appears to be gone now.
Derek Darkly
13
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 11th Nov 2024 01:53

I ran into this same issue before and gave up..Lol
Out of curiosity, when would you need to use 2 controllers on 1 machine simultaneously, other than for testing purposes?

You may want to use multiplayer commands and run your game in 2 windows or on 2 computers as an alternative
Send your parents to noisy sprite demo hell... enter the D-Zone
Omega gamer 89
17
Years of Service
User Offline
Joined: 10th Sep 2007
Location: Pittsburgh, PA
Posted: 11th Nov 2024 02:25 Edited at: 11th Nov 2024 02:30
Ah so I may just be out of luck

Its couch co-op so it kinda has to be 2 controllers running in the same program. The part that sucks is I only need it use multiple controllers at once very rarely, for one section where the players have to try to buzz in first to solve a puzzle. For everything else, passing the same controller back and forth (or just using mouse and keyboard) works just fine. The way I currently have it handled, just for development, is that p1 buzzes in with left shift, p2 buzzes with right shift, and P3 buzzes in with space bar. It works but it... kinda sucks as a control scheme. So much better if I can just have each player have their own controller.
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 20th Nov 2024 14:52
I remember running into this issue about 15 years ago. I decided to buy the multijoy plugin, which worked great! So I can recommend it.
Omega gamer 89
17
Years of Service
User Offline
Joined: 10th Sep 2007
Location: Pittsburgh, PA
Posted: 22nd Nov 2024 03:07
Quote: "I remember running into this issue about 15 years ago. I decided to buy the multijoy plugin, which worked great! So I can recommend it."


Thats what I ended up doing! The original link for the site listed in the main post about multijoy itself seems to be dead, but I managed to find a blogspot website that I guess DarkPhear still operates. There was a link to buy the plugin on paypal, and he emailed me the plugin the next day.
Mage
Valued Member
18
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 25th Nov 2024 08:57
The help file contains these commands and they appear (with minimal testing) to be valid.

SET CONTROL DEVICE Device Name$
SET CONTROL DEVICE Device Name$, Device Index
SET CONTROL DEVICE INDEX Index Value

On version 1.077, the fully patched version installed from CD.



Mage's Modular Code - Get awesome UI controls and powerful Bitmap Fonts!
Screen Device Recovery - Stop your apps from crashing when minimized/tabbed/screen locked.
CPU Friendly Frame Limiter - Make your app generate less computer heat + noise, and use less battery life!
Omega gamer 89
17
Years of Service
User Offline
Joined: 10th Sep 2007
Location: Pittsburgh, PA
Posted: 30th Nov 2024 03:37
Hmm... I appear to have version 1.054 installed. If I recall correctly, I couldnt get any newer versions to work despite days of trying, so 1.054 is kind of what Im stuck with. Either way, I managed to get Multijoy and that solved my problem.
Mage
Valued Member
18
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 30th Nov 2024 16:03 Edited at: 30th Nov 2024 16:12
You appear to be missing a massive number of patches and updates.
5.5


5.6


5.7


5.8


5.9


6.0


6.1


6.2


6.3


6.4


6.5


6.6


6.7


6.8


6.9


I can't even post 7.0, 7.1, 7.2, 7.3 , 7.4, 7.5, 7.6, 7.7 as the thread won't allow more characters.

Mage's Modular Code - Get awesome UI controls and powerful Bitmap Fonts!
Screen Device Recovery - Stop your apps from crashing when minimized/tabbed/screen locked.
CPU Friendly Frame Limiter - Make your app generate less computer heat + noise, and use less battery life!
Omega gamer 89
17
Years of Service
User Offline
Joined: 10th Sep 2007
Location: Pittsburgh, PA
Posted: 1st Dec 2024 03:04
Yeah, IDK man, Ive tried a million times and this is the only version I can get to work. And its like, an old OLD installer I had on an old hard drive from like 4 PCs ago. Any of the newer installers, the program just straight up will not work.
TinTin
18
Years of Service
User Offline
Joined: 16th May 2006
Location: BORG Drone Ship - Being Assimilated near Roda Beta (28)
Posted: 11th Dec 2024 02:05
Lee and the guys have kindly stuck all the stuff on GIT that can easily be downloaded for free (legally free)
It's a bit of a mess (IMO!) but once you figure it out, you'll be able to update to 7.7 there doesn't seem to be an installer, yo just drag the files into your installed version and 'hey presto'
You'll have Synergy Editor 2010 and DBP 9EX 2017 which is the latest I could find 7.7 is in there too.
Omega gamer 89
17
Years of Service
User Offline
Joined: 10th Sep 2007
Location: Pittsburgh, PA
Posted: 13th Dec 2024 02:28
Quote: "Lee and the guys have kindly stuck all the stuff on GIT that can easily be downloaded for free (legally free)
It's a bit of a mess (IMO!) but once you figure it out, you'll be able to update to 7.7 there doesn't seem to be an installer, yo just drag the files into your installed version and 'hey presto'
You'll have Synergy Editor 2010 and DBP 9EX 2017 which is the latest I could find 7.7 is in there too."


Ive tried man, believe me, Ive tried. I cant get any other version to work. Idk what it is, but its past the point where Im willing to keep messing around trying to get other versions to work.

Login to post a reply

Server time is: 2025-05-16 12:17:31
Your offset time is: 2025-05-16 12:17:31