VBA-GX 3rd party classic controller DOL

Discussion in 'Wii - Emulation and Homebrew' started by henkp, Jan 8, 2010.

Jan 8, 2010
  1. henkp
    OP

    Newcomer henkp Advanced Member

    Joined:
    Mar 19, 2007
    Messages:
    63
    Country:
    Netherlands
    After buying a 3rd party classic controller from dealextreme, I found out it didn't work with homebrew at all. While browsing for a fixed dol, I found out the problem is based in libogc, and a modification there is required. After that, I had to compile VBA-GX myself again. Desperately, I tried the compiling myself, and behold, it works!

    While I couldn't find a precompiled dol I took the liberty of creating one latest svn as of january 7 to save everybody with the same problem an evening of searching/compiling by posting the resulting DOL in the downloads-section here. Of Course, credits go out to all the original writers!

    Link to FileTrip-storage:
    Download here!
     


  2. beegee7730

    Banned beegee7730 ITS PAAFEKUTO!

    Joined:
    Mar 31, 2009
    Messages:
    1,693
    Location:
    England
    Country:
    United Kingdom
    Chances are this will probably only work with your controller.
     
  3. henkp
    OP

    Newcomer henkp Advanced Member

    Joined:
    Mar 19, 2007
    Messages:
    63
    Country:
    Netherlands
    Nope, fix is universal because I have not entered any specific data regarding my own controller. It's a modification of libogc, involving only the removal of a nintendo-peripheral-specific handshake.

    Have fun!
     
  4. Jacobeian

    Member Jacobeian GBAtemp Advanced Maniac

    Joined:
    May 15, 2008
    Messages:
    1,879
    Country:
    Cuba
    why not sharing your libogc modification so that it can benefits to all developpers ? Does not seems the right way to go imo, your version is gonna be outdated soon

    remember, this is all about open-source spirit (and I'm pretty sure the GPL license forces you to release your source when you modify something and recompile it)
     
  5. henkp
    OP

    Newcomer henkp Advanced Member

    Joined:
    Mar 19, 2007
    Messages:
    63
    Country:
    Netherlands
    Oh sorry, I never intended to 'secrify' the job. It's all on the web already. I removed a couple of lines from classic.c in the libogc/wiiuse-directory. Attached!

    Here!
     
  6. rorymullan

    Newcomer rorymullan Newbie

    Joined:
    Jan 18, 2010
    Messages:
    1
    Country:
    United States
    Can confirm this working with a cheap controller from deal extreme. Im gunna try compiling now with Genesis plus GX. Ill upload here if Im sucessfull.
     
  7. mstanka

    Newcomer mstanka Newbie

    Joined:
    Jan 19, 2008
    Messages:
    7
    Country:
    United States
    Hello, thanks for this file... however...

    It works, except for a couple of minor issues as follows:

    Compared to the current release of VBAGX the network load is alot slower.
    Also, when I try to run specificly Zelda The Minish Cap and Zelda LoTP I get the error that the save file is corupt.

    If I use the current VBAGX both of these issues are not present, but my Nyko Classic Controller also does not work.

    Any advise for these issues?

    Thanks.

    Michael.
     
  8. Jacobeian

    Member Jacobeian GBAtemp Advanced Maniac

    Joined:
    May 15, 2008
    Messages:
    1,879
    Country:
    Cuba
    recompile with the above fix in the newest libogc
     
  9. mstanka

    Newcomer mstanka Newbie

    Joined:
    Jan 19, 2008
    Messages:
    7
    Country:
    United States
    I tried to recompile thes, but just ran into problems. Not sure were to put the "classic.c" file.

    I installed the Prokitdev program, was able to successfully downloaded the svn, tried to run the "makefile" but received errors that directories were not there and several other errors.

    Anyone able to help me with this? Possible recompile this for me?

    Thanks

    Michael.
     
  10. Jacobeian

    Member Jacobeian GBAtemp Advanced Maniac

    Joined:
    May 15, 2008
    Messages:
    1,879
    Country:
    Cuba
    classic.c is in libogc source, NOT the emulator source
    you need to dowload libogc source as well (there is a svn for that too) and recompile it with the changes to classic.c
    to compile libogc, type make then make install
    finally, recompile the emulator source as well, if you get compiling errors, give us the EXACT error messages if you want help.
    good luck
     
  11. cheezwiz789

    Newcomer cheezwiz789 Newbie

    Joined:
    Dec 6, 2008
    Messages:
    1
    Country:
    United States
    Just out of curiosity...

    Is there a reason why this fix isn't a part of the official release?

    I am going to try a recompile of the latest libogc and vbagx with the above fix later, and I will post any questions I have here if I run into problems.

    Edit:

    I got the latest devkitpro from svn, compiled it, edited the classic.c per above, compiled libogc, got the ported libraries from here all set up in devkitpro, got the latest vbagx from svn... and attempted to compile it.

    here is the error that I get:

    make[2]: *** No rule to make target `/home/thayne/devkitPro/vba-wii-read-only/source/ngc/utils/ehcmodule.elf.o', needed by `/home/thayne/devkitPro/vba-wii-read-only/executables/vbagx_wii.elf'. Stop.

    I have limited knowledge of compiling stuff, so I am not sure what to do about this...


    Edit:

    ok, I used the ehcmodule.elf.o file from the mplayer-ce svn...
    I dunno if that's what I was supposed to have done, but it seemed to work.... sorta.
    My cheapo 3rd party classic controller still refuses to work, but my dreamgear shadow works perfectly!
    now to see if the same can be done for snes9xgx...
     
  12. thatguy123

    Newcomer thatguy123 Member

    Joined:
    Mar 30, 2009
    Messages:
    24
    Country:
    United States
    thanks bro [​IMG]
     
  13. matguitarist

    Member matguitarist GBAtemp Fan

    Joined:
    Oct 14, 2008
    Messages:
    458
    Location:
    Canada
    Country:
    Canada
    Thank for the fix henkp!

    I recompiled latest vba-gx, snes-gx, fceugx and genplusgx with latest libogc and your fix if anyone want it,

    Here the link : http://www.megaupload.com/?f=061ZQFT0

    I Update the link for better organisation, i'll update them frequently.
     
  14. kehkou

    Member kehkou does what Nintendon't

    Joined:
    Dec 19, 2009
    Messages:
    511
    Location:
    The Duke City
    Country:
    United States
    can this be done with wii64? that would be awesome!
     
  15. matguitarist

    Member matguitarist GBAtemp Fan

    Joined:
    Oct 14, 2008
    Messages:
    458
    Location:
    Canada
    Country:
    Canada
    If i find how to compile Wii64 i'll do it ... but i always had problems compiling this one ....
     
  16. calientecarl

    Newcomer calientecarl Newbie

    Joined:
    Feb 19, 2010
    Messages:
    6
    Country:
    United States
    hey man, that link doesnt seem to work. any chance i can get one that does? thanks.
     
  17. kehkou

    Member kehkou does what Nintendon't

    Joined:
    Dec 19, 2009
    Messages:
    511
    Location:
    The Duke City
    Country:
    United States
    here you go.Link
     
  18. Tantric

    Member Tantric GBAtemp Regular

    Joined:
    Feb 8, 2007
    Messages:
    185
    Country:
    Canada
    Anyone have a classic controller or nunchuk that doesn't work on Wii apps? Please run this test and report back the id to me via email: http://www.wiimc.org/wii-controller-test.zip

    Be sure to read the included readme.txt
     
  19. kehkou

    Member kehkou does what Nintendon't

    Joined:
    Dec 19, 2009
    Messages:
    511
    Location:
    The Duke City
    Country:
    United States
    ill run this right away. [​IMG]
     
  20. OuKKaN

    Newcomer OuKKaN Member

    Joined:
    Apr 16, 2010
    Messages:
    19
    Country:
    Chile
    Please someone help me, i added the following code to the io.c
    printf("WIIUSE EXP_ID: %x\n",id);
    then i compiled libogc and compiled the example of devkit to make a hello world then i plug in my classic controller to get the ID and it says the ID is 0, then i plug in the nunchuk and it says the id is a4200000. Can somebody explain me why it doesn't show me the id of my classic controller pro but i does show me the id of the nunchuk. Do i have to do an extra step o something to get the ID??

    BTW the Classic Controller i bought is this one
    http://www.dealextreme.com/details.dx/sku.32488
     

Share This Page