Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Gaming & Leisure
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Gaming & Leisure
A section for users who strive to play the latest games on linux.

 
Thread Tools Display Modes
Old November 8th, 2007   #11
djuniah
A Carafe of Ubuntu
 
Join Date: Jul 2006
Beans: 85
Re: Guitar Hero3 wii controller in Ubuntu

GOT IT!!! AND ITS WORKING AMAZINGLY!

This assumes that you already have a working WMD installed and you can connect a regular wiimote. Also, this assumes that you are using the SVN version of WMD as of 11/8/2007 found at https://svn.forthewiin.org/wmd/trunk/

NOTE: Following this guide WILL DISABLE motion sensing in the wiimote and will make all "unknown" controllers look like a classic controller to WMD. Also, it will change the default action of one of the buttons on the classic controller.

Heres what i needed to change:

ExtensionControllers.py
comment out line 222
Code:
#self.ev.send( WM_EXT_ANALOG, activeAxes )
Input.py
comment out line 80
Code:
#self.ev.send( WM_ACC, force )
line 365 should look like this:
Code:
if off == 0xfe and ct1 == ct2:
      if ct1 == 0xfd:
        ext_device_name = 'Classic'
      elif ct1 == 0xfe:
        ext_device_name = 'Nunchuk'
      else:
	ext_device_name = 'Classic'
        #log( LOG_ERR, "Unknown device type %x" % ct1 )
    else:
      ext_device_name = 'Classic'
      log( LOG_ERR, "Invalid memory read during controller attachment" )
Config.py
line 39
The default configuration for the orange "fret" was the left mouse button and that cant be mapped in Frets on Fire so i changed it to be the L key
Code:
'CZl': [ 'key', 'KEY_L'  ],  # Zl (small shoulder button)
Once all that is done, open up Frets on Fire and go to the settings menu. From there you can re-map the keys in the game to the controller. Once that is done you should be all set.

Thanks to everyone in this post for pointing me in the right direction on this one!
djuniah is offline   Reply With Quote
Old November 8th, 2007   #12
markmark
Just Give Me the Beans!
 
Join Date: Jul 2005
Beans: 34
Re: Guitar Hero3 wii controller in Ubuntu

Excellent. I'm hoping to grab GH3 this weekend, so I should get to give it a go myself sometime soon. Actually I should try and dig up my bluetooth adapter and see if it works first I guess...
markmark is offline   Reply With Quote
Old November 8th, 2007   #13
djuniah
A Carafe of Ubuntu
 
Join Date: Jul 2006
Beans: 85
Re: Guitar Hero3 wii controller in Ubuntu

I hoping that support for it will be built into WMD soon, but for now this should do the trick. I have a few items i may change in that mini-tutorial up there but i'm not sure about that yet. Instead of just changing the one keymapping in WMD and doing the rest in FoF it might be better to do it all with WMD. My reason for leaving it out initially was to screw with the original WMD files as little as possible. I figure that would be easier for most people.
djuniah is offline   Reply With Quote
Old November 9th, 2007   #14
CaseyR
Spilled the Beans
 
Join Date: Jun 2007
Beans: 14
Re: Guitar Hero3 wii controller in Ubuntu

this is good news guys! is there any way to pair the GH guitar with a sequencer/sampler (similar to a midi device) and use it as an instrument?

im using CWiiD instead of wmd. im having some trouble tweaking the joystick on the guitar to use it as a mouse similar to how it is used in the wii menu. any ideas?

thanks!
CaseyR is offline   Reply With Quote
Old November 9th, 2007   #15
djuniah
A Carafe of Ubuntu
 
Join Date: Jul 2006
Beans: 85
Re: Guitar Hero3 wii controller in Ubuntu

I could never get Cwiid (heh seaweed...i just got that....anyways...) to work for me, but i could see it being possible. You just have to route the keypresses through some sort of script that would translate it to midi data. But i'm not sure how effective of an instrument it would be with that few keys to hit. Definitely keep us updated though, i would like to try it.
djuniah is offline   Reply With Quote
Old November 18th, 2007   #16
jpreville
First Cup of Ubuntu
 
Join Date: Nov 2007
Beans: 3
Re: Guitar Hero3 wii controller in Ubuntu

I've been trying to get my GH3 wii controller to work with FOF under ubuntu. But for some reason
i can get to ]https://svn.forthewiin.org/wmd/trunk/

or the main site http://www.forthewiin.org

seems to be gone. or down..

i just need the newest version of WMD i think

if someone could point me in the write direction i would appreciate it.

- John

EDIT:

I ended up getting this to work with cwiid and make a new gh3 config file.

Last edited by jpreville; November 19th, 2007 at 11:08 PM..
jpreville is offline   Reply With Quote
Old November 20th, 2007   #17
mzdsb
First Cup of Ubuntu
 
Join Date: May 2006
Beans: 10
Re: Guitar Hero3 wii controller in Ubuntu

same problem here with the http://www.forthewiin.org web...

Quote:
I ended up getting this to work with cwiid and make a new gh3 config file.
could you please post how did you make it work with cwiid?
mzdsb is offline   Reply With Quote
Old November 20th, 2007   #18
jpreville
First Cup of Ubuntu
 
Join Date: Nov 2007
Beans: 3
Re: Guitar Hero3 wii controller in Ubuntu

to start off im running Ubuntu 7.1 gutsy on a laptop with a cheap 20
dollar bluetooth adaptor from walmarts.

First thing you need to do is make sure your bluetooth can see
the wiimote.

open up terminal

hcitool scan (press 1+2 on on wiimote before pressing enter)

if its working you should see something like.

xxxxxxxx
Nintendo RVL-CNT-01

once you verified that.

i used to synaptics package manager to install cwiid

open synaptics. search cwiid. I pick all that came up.

esp wmgui (usefull for tesing wiimote and nowing what your hitting on wiimote, wiiguitar)

run wmgui which installs under application/accessories

click file/connect (verify you are talking to your wiimote. the one in the wiiguitar)

the wiiguitar emulates a classic controller so go under settings/and click on extension data


hits some keys on your wiiguitar to make sure they work with wmgui.

if they do go then your good so far.


to make cwiid or wminput emulate the keystrokes in Frets on Fire you need a profile
that matches the keys in FOF.

i ended up copying and modifying the gamepad profile under

/etc/cwiid/wminput

named it gh3 (might be better to do a FOF.. but oh well)

i made a file under /etc/cwiid/wminput called gh3

sudo gedit /etc/cwiid/wminput/gh3

place this in the file

# wiiguitar profile for FOF
Classic.Down=KEY_ENTER #Strum
Classic.Dpad.X = ABS_X
Classic.Dpad.Y = ABS_Y
Classic.LStick.X = ABS_HAT0X
Classic.LStick.Y = ABS_HAT0Y
Classic.RStick.X = ABS_HAT1X
Classic.RStick.Y = ABS_HAT1Y
Classic.A = KEY_F1 #First Fret starting at top of wiiguitar
Classic.B = KEY_F2 #Second Fret
Classic.X = KEY_F3 #Third Fret
Classic.Y = KEY_F4 #Forth Fret
Classic.Minus = BTN_SELECT
Classic.Plus = BTN_START
Classic.Home = BTN_MODE
Classic.L = BTN_TL
Classic.R = BTN_TR
Classic.ZL = KEY_F5 #Fifth Fret
Classic.ZR = BTN_TR2


save

note: the keys mapped to wiiguitar. I left FOF at default keys.
i havent mapped everything yet. was excited enough
just to be able to play FOF with wiiguitar. any how i will finish it up tonite if i get
a chance.

to use open up terminal

sudo wminput -c /etc/cwiid/wminput/gh3 (before pressing enter press 1+2 on wiimote in wiiguitar once blinking press enter)

if everything works you should see a ready.. Leave terminal window open

run Frets on Fire and you should be working.

im sure there are better ways to do this like writing a little bash script
to sync wiiguitar first then launch FOF. i'll work on this another time.

anyway hopefully this helps

- John

Edited:nov 20 8:52

Last edited by jpreville; November 20th, 2007 at 09:52 PM..
jpreville is offline   Reply With Quote
Old November 20th, 2007   #19
mzdsb
First Cup of Ubuntu
 
Join Date: May 2006
Beans: 10
Re: Guitar Hero3 wii controller in Ubuntu

thanks! great tutorial!
unfortunately guitar hero 3 will not be released until this friday in spain, so I can't test your tutorial. but i'm pretty sure it'll do the job

thanks again.
mzdsb is offline   Reply With Quote
Old November 20th, 2007   #20
jpreville
First Cup of Ubuntu
 
Join Date: Nov 2007
Beans: 3
Re: Guitar Hero3 wii controller in Ubuntu

ahh that sucks..3 more days.

anyway.. just check back on this post. i'll see if i can make the mappings better for frets on fire for all buttons on wiiguitar. i will just edit the previous post.

John
jpreville is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:31 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry