Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 801 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
xbox360 controller and 3dgs #123228
04/12/07 01:49
04/12/07 01:49
Joined: Sep 2005
Posts: 508
Texas
not_me Offline OP
User
not_me  Offline OP
User

Joined: Sep 2005
Posts: 508
Texas
how do you program a xbox 360 controller to work with 3dgs games(possibly using the c-script editor). is there a special program i need. or can i program the game to the controller from within 3dgs. just curious about this. i wanted to be able to test my games with my 360 controller

thanks

Last edited by not_me; 04/12/07 01:49.

-Initiate Games
-Level designer

http://www.sckratchmagazine.com
Re: xbox360 controller and 3dgs [Re: not_me] #123229
04/12/07 03:08
04/12/07 03:08
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
You need a dll to do this, c-script isn't powerful enough.

I think there's one floating around here somewhere, do a forum search for it...


xXxGuitar511
- Programmer
Re: xbox360 controller and 3dgs [Re: xXxGuitar511] #123230
04/12/07 09:14
04/12/07 09:14
Joined: Sep 2003
Posts: 407
inside to my
er_willy Offline
Senior Member
er_willy  Offline
Senior Member

Joined: Sep 2003
Posts: 407
inside to my
xbox360 controller is a simple 10 butons/4 analogic pad, 3dgamestudio work perfet wiht he. look the manual.

Re: xbox360 controller and 3dgs [Re: er_willy] #123231
04/12/07 09:34
04/12/07 09:34
Joined: Sep 2005
Posts: 159
The Netherlands
D
Dutchie666 Offline
Member
Dutchie666  Offline
Member
D

Joined: Sep 2005
Posts: 159
The Netherlands
you can just use the joystick functions for it...
i tried it, it works

Re: xbox360 controller and 3dgs [Re: Dutchie666] #123232
04/12/07 11:02
04/12/07 11:02
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
FoxHound Offline
Expert
FoxHound  Offline
Expert

Joined: Jun 2004
Posts: 2,234
Wisconsin USA
Use the DLL that is out there. There are functions on the controller that don't work with 3dgs as is. I've done this with "TOWER" and it works just fine.


---------------------
There is no signature here.


QUIT LOOKING FOR ONE!
Re: xbox360 controller and 3dgs [Re: FoxHound] #123233
04/12/07 19:40
04/12/07 19:40
Joined: Jul 2000
Posts: 8,973
Bay Area
Doug Offline
Senior Expert
Doug  Offline
Senior Expert

Joined: Jul 2000
Posts: 8,973
Bay Area
If you have XP or Vista, just plug it in and download the latest updates from Microsoft. Everything works.


Conitec's Free Resources:
User Magazine || Docs and Tutorials || WIKI
Re: xbox360 controller and 3dgs [Re: Doug] #123234
04/13/07 10:29
04/13/07 10:29
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline
Expert
William  Offline
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
Quote:

If you have XP or Vista, just plug it in and download the latest updates from Microsoft.




Which update is this? I tried downloading http://www.microsoft.com/hardware/gaming...20for%20Windows, installed it, but when trying in A6 it still wont detect it. Unfortunately, I only have access to 56k, so windows automatic update doesn't work(grab manual updates every so often when i'm at a high speed connection). Also, I thought A6 didn't work with xinput?

Edit: It's a bit odd, I went into control panel, game controllers, selected "advanced" for my 360 controller and set it as the primary controller to work with "old devices". Now it seems to work, although, the button layout is completely different from my other joystick.

btw - with my other joystick, I had to change something in it's software so it acts as joy_1 and not 2. Weird how this works, but I always thought that xinput was stopping the 360 joypad from working with A6. I wonder how to get rumble to work, is this a feature in A7 with lite-c?

Last edited by William; 04/13/07 13:46.
Re: xbox360 controller and 3dgs [Re: William] #123235
04/13/07 17:53
04/13/07 17:53
Joined: Jul 2000
Posts: 8,973
Bay Area
Doug Offline
Senior Expert
Doug  Offline
Senior Expert

Joined: Jul 2000
Posts: 8,973
Bay Area
Quote:

Now it seems to work, although, the button layout is completely different from my other joystick.




Yes, the Microsoft standard is almost always different then the rest of the world.

Features such as rumble and independent triggers (right now left and right triggers act on the same axis) are not supported without using xinput. I'm not sure if JCL plans on using xinput for A7 (sounds like a feature request ).


Conitec's Free Resources:
User Magazine || Docs and Tutorials || WIKI
Re: xbox360 controller and 3dgs [Re: Doug] #123236
04/14/07 01:15
04/14/07 01:15
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline
Expert
William  Offline
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
Yeah, the option to use both Xinput and Directinput without external dll's would be nice for A7. Also, I guess, the ability to use the rumble feature of Directinput as well.

If anyone is interested in DocJoes plugin, the thread is here:

http://www.coniserver.net/ubbthreads/showflat.php/Cat/0/Number/640549/page/0/fpart/1/vc/1

I was a bit mixed up at the time, thinking that this wasn't fully supported with A6 yet and thought you were adding Xinput or something.

But now I've done some more testing, and found it works fine with the latest beta(pre-A7). Just be sure to have the Microsoft "xinput9_1_0.dll" either in your work folder or your "windows/system32" folder. If you don't have it, any dll calls you'd make thru your scripts will produce errors upon startup. The user will have this dll already on their computer if they install the 360 controller drivers. Basically, if you have this dll installed, and you have your script callings it's functions anywhere, but you don't have a 360 controller installed or this Microsoft dll in your work folder, your game will crash. So don't call any functions from the DocJoe dll unless your sure the user has the Microsoft dll!

Heres how I think i'm gonna go about adding full 360 controller support in my game:

- Use A6 native commands for DirectInput controllers.

- If the user has a 360 control, they select a certain check box in the option screen, otherwise it will not work. In the scripts I use native A6 commands for all buttons but the back left and right shoulder buttons, the joysticks(cause otherwise no deadzone), and the rumble. These alternate scripts only run if the 360 controller is enabled in the option screen. Basically, if I don't do this, and the user for whatever reason doesn't have that dll above, the game wont crash every time it starts. Also, the layout has to be different for the 360 controller, this option would change that too.

I wonder if Microsoft allows distribution of this .dll file in my application? This of course would make things easier if they do.


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Re: xbox360 controller and 3dgs [Re: William] #123237
04/14/07 03:16
04/14/07 03:16
Joined: Jun 2006
Posts: 305
newcastle nsw australia
chaotic_dragon Offline
Senior Member
chaotic_dragon  Offline
Senior Member

Joined: Jun 2006
Posts: 305
newcastle nsw australia
i know a guy who does software programing who i can ask about the whole situation if use like...i asked him a few questions bout it and he said a dll should work and that standard c script will work but it would be best using other forms other than c script.

sorry for just barging in like this lol if i do not make any sense just tell me so ok lol.

thanks, chris


looking for team members please send email to cdtjones69@hotmail.com or go to www.conflict-games.com

Regards
Chris Jones,
Conflict Games
Page 1 of 2 1 2

Moderated by  aztec, Blink, HeelX 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1