Megadrum + Guitar Hero World tour

Discussions of any related software

Moderator: Related software moderators

Re: Megadrum + Guitar Hero World tour

Postby Rubis » Tue Sep 01, 2009 11:44 am

I think they are the same kit. Also, the link I found implies that it should work without any special communication. It should do something on the PS3, even if it doesn't work with GHWT/Rock Band. I have a PS2 to USB adapter that I use with my computer. When I use it on the PS3, the buttons are mapped wrong (X and O are switched, so are the L&R1 buttons with the L&R2), but it works as a controller.

The PS3 is designed to use ANY USB controller. It may not use it the way you expect/want it to, but it should do something.

Speterman, if you post the source up here, we might be able to find something. I am not the best programmer in the world, but it may help just to have another set of eyes on it.
Rubis
 
Posts: 132
Joined: Mon Feb 16, 2009 5:08 pm

Re: Megadrum + Guitar Hero World tour

Postby speterman » Tue Sep 01, 2009 12:51 pm

Rubis wrote:The PS3 drums should work on the PS2.

Ok, I have seen The original drumkit for GHWT on a online shop and tells that works with PS2/3, but in the game shop I usually go they told me that PS3 & PS2 drumkits are different (they have no idea!, I suppose).

I thought It should work because the original usb device descriptor that Rubis provided tells that the drumkit is an USB 1.0 compilant device! strange for a new device as USB 1.0 standard is more than 10 years old. But PS2 only have support to this 1.0 definition so... it seems to be done this way to keep compatibility with PS2.

I´m in bussiness travel during at least 2 days and I have no access to my dev board, but I have been reading the HID 1.10 pdf document and I'm sure that I have at least two usb requests missing in the code.

The HID report for GHWT is the same as RB and is:

Code: Select all
Usage Page (Generic Desktop) 05 01 
Usage (Game Pad) 09 05 
Collection (Application) A1 01 
    Logical Minimum (0) 15 00 
    Logical Maximum (1) 25 01 
    Physical Minimum (0) 35 00 
    Physical Maximum (1) 45 01 
    Report Size (1) 75 01 
    Report Count (13) 95 0D 
    Usage Page (Button) 05 09 
    Usage Minimum (Button 1) 19 01 
    Usage Maximum (Button 13) 29 0D 
    Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 81 02           IN 13 bits : BUTTONS
    Report Count (3) 95 03 
    Input (Cnst,Ary,Abs) 81 01                    IN 3 bits: PADDING BUTTONS
    Usage Page (Generic Desktop) 05 01 
    Logical Maximum (7) 25 07 
    Physical Maximum (315) 46 3B 01 
    Report Size (4) 75 04 
    Report Count (1) 95 01 
    Unit (Eng Rot: Degree) 65 14 
    Usage (Hat Switch) 09 39 
    Input (Data,Var,Abs,NWrp,Lin,Pref,Null,Bit) 81 42           IN 4 bits HAT SWITCH
    Unit (None) 65 00 
    Report Count (1) 95 01 
    Input (Cnst,Ary,Abs) 81 01                    IN 4 bits PADDING HAT
    Logical Maximum (255) 26 FF 00 
    Physical Maximum (255) 46 FF 00 
    Usage (X) 09 30 
    Usage (Y) 09 31 
    Usage (Z) 09 32 
    Usage (Rz) 09 35 
    Report Size (8) 75 08          
    Report Count (4) 95 04 
    Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 81 02           IN 4 Bytes AXIS
    Usage Page (Vendor-Defined 1) 06 00 FF 
    Usage (Vendor-Defined 32) 09 20 
    Usage (Vendor-Defined 33) 09 21 
    Usage (Vendor-Defined 34) 09 22 
    Usage (Vendor-Defined 35) 09 23 
    Usage (Vendor-Defined 36) 09 24 
    Usage (Vendor-Defined 37) 09 25 
    Usage (Vendor-Defined 38) 09 26 
    Usage (Vendor-Defined 39) 09 27 
    Usage (Vendor-Defined 40) 09 28 
    Usage (Vendor-Defined 41) 09 29 
    Usage (Vendor-Defined 42) 09 2A 
    Usage (Vendor-Defined 43) 09 2B 
    Report Count (12) 95 0C                 
    Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 81 02           IN 12 Bytes VD
    Usage (Vendor-Defined 9761) 0A 21 26 
    Report Count (8) 95 08 
    Feature (Data,Var,Abs,NWrp,Lin,Pref,NNul,NVol,Bit) B1 02        FEATURE 8 bytes   VD
    Usage (Vendor-Defined 9761) 0A 21 26 
    Output (Data,Var,Abs,NWrp,Lin,Pref,NNul,NVol,Bit) 91 02           OUTPUT 8 bytes VD
    Logical Maximum (1023) 26 FF 03 
    Physical Maximum (1023) 46 FF 03 
    Usage (Vendor-Defined 44) 09 2C 
    Usage (Vendor-Defined 45) 09 2D 
    Usage (Vendor-Defined 46) 09 2E 
    Usage (Vendor-Defined 47) 09 2F 
    Report Size (16) 75 10                       
    Report Count (4) 95 04 
    Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 81 02              IN 8 bytes VD
End Collection C0 

At the right I point the direction of the report (IN: pic->PS3 ; OUT: PS3->pic), the size of the field, and the real usage. In total, IN reports are 27 bytes lenght & OUT ones 8 bytes.

I forgot that the hid report includes a features report (8 bytes), and I have not implement this one.
But maybe if I remove the feature & output report from the HID descriptor the Host (PSx) will not ask for it!, I should test it...

I will try to test all this stuff when i´ll back!
speterman
 
Posts: 30
Joined: Mon May 11, 2009 12:42 pm
Location: Logroño, Spain

Re: Megadrum + Guitar Hero World tour

Postby speterman » Tue Sep 01, 2009 12:59 pm

Rubis wrote:Speterman, if you post the source up here, we might be able to find something. I am not the best programmer in the world, but it may help just to have another set of eyes on it.

Of course I can post it, but at this moment I can´t because I´m on travell and this is not my home PC where the code is, sorry. When i´ll back I will post the code, sorry for the inconveniences.
speterman
 
Posts: 30
Joined: Mon May 11, 2009 12:42 pm
Location: Logroño, Spain

Re: Megadrum + Guitar Hero World tour

Postby Rubis » Tue Sep 01, 2009 3:33 pm

The feature report is probably it. I haven't ever used hid before, so I'm not entirely clear on how it works, but from my understanding, the feature report contains configuration information for the device. This, I think, would be where the PS3 would send the controller number and things like that to the device and the device would send its current configuration. If you remove it, it may or may not work. I imagine it would try to treat it like a generic controller (a controller not made for the PS3, and therefore not the drum set).

Correct me if I am wrong on any of this, I haven't looked into this very extensively.

speterman wrote:
Rubis wrote:Speterman, if you post the source up here, we might be able to find something. I am not the best programmer in the world, but it may help just to have another set of eyes on it.

Of course I can post it, but at this moment I can´t because I´m on travell and this is not my home PC where the code is, sorry. When i´ll back I will post the code, sorry for the inconveniences.


No worries. I am swamped with school work now, so I don't know when I'd even have the time to look at it in depth.
Rubis
 
Posts: 132
Joined: Mon Feb 16, 2009 5:08 pm

Re: Megadrum + Guitar Hero World tour

Postby elrules » Tue Sep 15, 2009 1:36 pm

speterman, where are youuuuuuuuuuuu??
elrules
 
Posts: 629
Joined: Thu Nov 29, 2007 4:51 pm
Location: Murcia, Spain, Europe, The World

Re: Megadrum + Guitar Hero World tour

Postby speterman » Wed Sep 16, 2009 4:33 pm

elrules wrote:speterman, where are youuuuuuuuuuuu??

Sorry! I´m really really busy this days.

At the moment, I can use the pic as a gamepad in PS3 ( The problem was that I forgot to manage the feature reports).
But when I enter the game, GH Metallica doesn´t recognize it as a drum. What is more, when I am inside the game, the only button that works is the PS button.

As it appears that the game asks for something to the drumkit, so I´m going to get a GHWT for PC in order to catch the USB communication during the game, so I can emulate it.
I´m cleanning & commenting a little the source code. When I finished, I´ll upload it.

Sorry again for being dissapeared.
speterman
 
Posts: 30
Joined: Mon May 11, 2009 12:42 pm
Location: Logroño, Spain

Re: Megadrum + Guitar Hero World tour

Postby Rubis » Thu Sep 17, 2009 3:35 am

So the PS button works properly? Awesome! That seemed to be the part that was giving most other people online difficulty.

In GH, does it not even work for the microphone controller? That is strange that it would work as a gamepad, but not work in game.
Rubis
 
Posts: 132
Joined: Mon Feb 16, 2009 5:08 pm

Re: Megadrum + Guitar Hero World tour

Postby shwems » Thu Sep 17, 2009 6:22 pm

well, as far as i know,

GH drum kit seam to not work with RB / RB2

Rock band / Rock band 2 / Ion drum Kit work with the 2 games, but, thoose kit goes to 4 lanes with GH games where the GH drum kit goes to 5 lanes.

So surelly, the console, have to "comunicate" with the drum kit to identifiy wich type of drum kit is connected.
shwems
 
Posts: 11
Joined: Fri Aug 07, 2009 1:40 pm

Re: Megadrum + Guitar Hero World tour

Postby Rubis » Thu Sep 17, 2009 8:29 pm

Both drum kits are "compatible" with both games. I say "compatible" because the game is playable with the other game's controller, but has some limitations, such as GH going to 4 lanes with a RB drum set. A GH set on RB would disable the orange cymbal.

It would be interesting to see how Speterman's current implementation would work in Rock Band, as opposed to GH Metallica.
Rubis
 
Posts: 132
Joined: Mon Feb 16, 2009 5:08 pm

Re: Megadrum + Guitar Hero World tour

Postby shwems » Fri Sep 18, 2009 4:33 pm

if you need some trace, and if you explain how to trace

i have ion drum kit (this is a rock band drum kit) and all game, but i dont know how actually make trace

and i work on linux and PS3

Are u sure that GH drum kit work with rock band ? last time i try with a friend GH drum kit (more than 2 month ago) , we never have success to make the GH drum kit working with RB games (RB1 or RB2, we even try with the ACDC Rock band in stand alone game)
shwems
 
Posts: 11
Joined: Fri Aug 07, 2009 1:40 pm

PreviousNext

Return to Related Software

Who is online

Users browsing this forum: No registered users and 80 guests