death_au's All-in-one GH Wii FoF/iX GlovePIE script

Discuss mods and get help with mods ONLY
This topic is 15 years and 4 months old. Instead of replying, please begin a new topic, or search for another related topic that may be more suitable.
Defyant
Member
Posts: 36
Joined: December 12th, 2008
Reputation: 0

Re: death_au's All-in-one GH Wii FoF/iX GlovePIE script

Postby Defyant » Sun Apr 12, 2009 8:49 am

Oh.. yeah. I turned that on and that's when everything went haywire. Let me try again. :p

i guess i havent given up!

Edit: Went to controls, set the controls using the drums, went to drum test, didn't work. Instead of coming up with NO EXPANSION or DRUMS it comes up with GH3, and whenever I click on my desktop the selector thing goes to recycle bin, so I have to run the script then load up FoF in the time it takes for the script to actually run itself. That could factor into it's not working syndrome of doom. Quite a pain in the bum.
-oh, and it uses the controls from guitar 2. so it has F8 F9 F10 F11 for the drums and END for the bass pedal. Wierd..
kirezar
Member
Posts: 115
Joined: August 30th, 2008
Reputation: 0

Re: death_au's All-in-one GH Wii FoF/iX GlovePIE script

Postby kirezar » Sun Apr 12, 2009 11:36 am

Try to copy the script again, and try multiple times desconnecting and connecting the wiimote, and it should give DRUMS as expansion,

1. copy the script to glovePIE and save

2. erase your wiimote and connect it again to the computer

3. run the TestWiimote script, see if everything is fine

4. Run the FoFIX script (the drum one) and set the keys.

5. test the drums

6. report the results

7. if it does not work look for a drum only script in the tech support section in the thread "wii GH:WT drums with glovePIE"
Defyant
Member
Posts: 36
Joined: December 12th, 2008
Reputation: 0

Re: death_au's All-in-one GH Wii FoF/iX GlovePIE script

Postby Defyant » Sun Apr 12, 2009 7:02 pm

Okay. I went into WiiMoteTest.pie and all the buttons seemed to work and such. Went to use the drum script, came up with Wiimote 1, DRUM. Sweet. Went into FoFiX, set the keys, and it worked in drum test!
Thanks for your help kirezar. :D
Blue Heaven!
User avatar
death_au
Member
Posts: 3991
Joined: December 12th, 2007
Location: Australia
Reputation: 7
Contact:

Re: death_au's All-in-one GH Wii FoF/iX GlovePIE script

Postby death_au » Mon Apr 13, 2009 3:33 am

The reason it said "GH3" is because of the way it detects instrument currently, and there's a fatal flaw that if you ran the script and "turned on" the drums or GH4 guitar, then stop the script and run it again, it will register as GH3 until it's unplugged from the instrument and attached again.
I really have to get this sorted out, but I'm between houses, so it's hard to get it set up, and I think I broke my GH4 guitar, so I have to send that back to get it fixed.
Defyant
Member
Posts: 36
Joined: December 12th, 2008
Reputation: 0

Re: death_au's All-in-one GH Wii FoF/iX GlovePIE script

Postby Defyant » Mon Apr 13, 2009 7:56 pm

Oh. That's really wierd. O_o
But it's working now, so all's good, and thank you for your hard work on this script. If only the drums worked with rock band now. :(
User avatar
lvl4573r
Member
Posts: 77
Joined: May 24th, 2008
Location: Somewere
Reputation: 0
Contact:

Re: death_au's All-in-one GH Wii FoF/iX GlovePIE script

Postby lvl4573r » Tue Apr 14, 2009 9:54 am

wow :ohmy:... great script (truly all in one)
thank you SOOOOOOOOOO much death_au! I've been looking for something like this for AGES
:2thumbsup:

now to change my sig
kirezar
Member
Posts: 115
Joined: August 30th, 2008
Reputation: 0

Re: death_au's All-in-one GH Wii FoF/iX GlovePIE script

Postby kirezar » Sun Apr 19, 2009 2:03 pm

death_au, could you please make the slider bar work on your wiitar script?

Spoiler:

Code: Select all

// Type your program here, or click the GUI tab to autogenerate it!

                                        /*
// FoFiX GH Wiitar script 2.0
// Version 2.1 by Death_au
// Now supports the GH:WT guitar
// Now initializes the WT guitar only once
*/

//GH4 guitar wakeup code:

if(!var.init)
WiimotePoke(1, 0x4A400F0, 0x55) // Decrypt
wait 100ms
WiimotePoke(1, 0x4A400FB, 0) // Unknown
//wait 100ms
//WiimoteDumpBytes(1, 0x4A400F0, 16) // view type
//wait 100ms
//WiimotePoke(1, 0x4A400F0, 0xAA) // Encrypt again
//wait 100ms
//WiimoteDumpBytes(1, 0x4A40020, 32) // view calibration
wait 100ms
WiimotePoke(1, 0x4A40040, 0)
wait 100ms
WiimoteSend(1, 0x17, 0x04, 0xA4, 0x00, 0xF0, 0, 16) // get type
var.init = true
end if

var.found = "";
if WiiGuitar.Exists then var.found += "Guitar@Wiimote";

if var.found == "" then {
   var.found = "No Guitar found - ";
}

var.found += (" - Battery: " + WiiMote.Battery) + "% - ";

// Debug
var.dummy = Wiimote.RawForceX
if WiiGuitar.Green then var.G = "Green" else var.G = ""
if WiiGuitar.Red then var.R = "Red" else var.R = ""
if WiiGuitar.Yellow then var.Y = "Yellow" else var.Y = ""
if WiiGuitar.Blue then var.B = "Blue" else var.B = ""
if WiiGuitar.Orange then var.O = "Orange" else var.O= ""
if WiiGuitar.Minus then var.Minus = "-" else var.Minus = ""
if WiiGuitar.Plus then var.Plus = "+" else var.Plus = ""
if WiiGuitar.StrumUp then var.Strum = "StrumUp" elseif WiiGuitar.StrumDown then var.Strum = "StrumDown" else var.Strum = ""
debug = var.found+"Frets: "+var.G+var.R+var.Y+var.B+var.O+var.Minus+var.Plus+"; Strum: "+var.Strum+"; Whammy:"+Wiimote.Classic.R+var.RF+"; Tilt=" + Wiimote.RawForceZ+"; Joystick: X = "+Wiimote.Classic.Joy1X+", Y = "+Wiimote.Classic.Joy1Y;
//debug = var.wakeup+";" +wiimote.ExpString

/*---BUTTON MAPPING to Keyboard and PPJoy--*/
//Configuration:
//
//Green - F1
//Red - F2
//Yellow - F3
//Blue - F4
//Orange - F5
//Strum Up - enter
//Strum Down - Right Shift
//Minus - Page Down
//Plus - Escape
//Tilt - Page Down
//Whammy - Page Up OR PPJoy Analog 0 change in script below
//NOTE: Joystick doesn't work yet on the GH:WT guitar
//Joystick Up - Up
//Joystick Down - Down
//Joystick Right - Right
//Joystick Left - Left



// Guitar Joystick
Key.Left = (-1.2 < WiiGuitar.JoyX < -0.5) // Joystick moving Left = minus X axis
Key.Right = (0.5 < WiiGuitar.JoyX < 1.2)  // Joystick moving Right = positive X axis
Key.Up = (-1.2 < WiiGuitar.JoyY < -0.5)   // Joystick moving Up = negative Y axis
Key.Down = (0.5 < WiiGuitar.JoyY < 1.2)   // Joystick moving Down = positive Y axis


// Fret Buttons
Key.6 = WiiGuitar.Green       //Green
Key.7 = WiiGuitar.Red         //Red
Key.8 = WiiGuitar.Yellow      //Yellow
Key.9 = WiiGuitar.Blue        //Blue
Key.0 = WiiGuitar.Orange      //Orange


// Plus and Minus Buttons
Key.Escape = WiiGuitar.Plus    //Menu / Pause


// Strum Bar
Key.M = WiiGuitar.StrumUp
Key.N = WiiGuitar.StrumDown

//Whammy/Killswitch
Key.PageUp = WiiGuitar.Minus
Key.PageUp = (0.75 < WiiGuitar.WhammyBar < 0.9)
//ppjoy.Analog0 = WiiGuitar.WhammyBar
//debug = ppjoy.Analog0

// Star Power
//debug = Wiimote.RawForceZ
if(18 < Wiimote.RawForceZ < 100)
      Key.PageDown = true;
      Wiimote.Rumble = true;
else
      Key.PageDown = false;
      Wiimote.Rumble = false;
endif

//END OF FILE

Blue Heaven!
User avatar
death_au
Member
Posts: 3991
Joined: December 12th, 2007
Location: Australia
Reputation: 7
Contact:

Re: death_au's All-in-one GH Wii FoF/iX GlovePIE script

Postby death_au » Sun Apr 19, 2009 5:53 pm

At the moment I'm busy looking for a job and somewhere to live, and my GH4 guitar neck is broken (something is rattling around inside and it doesn't work), so it's difficult for me to put something together, and even harder for me to test.
But I have been keeping track of the slider bar support in the FoFiX thread, and I should be able to write something up that will convert the slider bar data into an "analog axis" that FoFiX can read. Just don't expect it any time soon, sorry...
Yay plastic toys!
User avatar
Maurice10
Member
Posts: 67
Joined: January 26th, 2009
Reputation: 0

Re: death_au's All-in-one GH Wii FoF/iX GlovePIE script

Postby Maurice10 » Sun May 10, 2009 1:58 pm

Just to let you know that I am still very interested in this!
Blue Heaven!
User avatar
death_au
Member
Posts: 3991
Joined: December 12th, 2007
Location: Australia
Reputation: 7
Contact:

Re: death_au's All-in-one GH Wii FoF/iX GlovePIE script

Postby death_au » Tue May 12, 2009 8:36 pm

I've updated the script to version 0.8 (see the first post).
I tweaked the instrument detection a little. I'm still not sure how to get around the whole if run script then run script again instrument will be detected as GH3 guitar thing yet, so what it should do now is that if an instrument is plugged in when the script is run, it will not be recognised until you unplug it and plug it back in.
It's a bit dodgy, but at least it won't recognise the instrument as something it's not (I hope).

I also added support for the slider bar. There is a new variable to indicate whether you want to use analog slider (requires ppjoy), or to map the slider bar to "solo buttons", both of which have been introduced in recent versions of FoFiX.

Make sure you double-check what variables you want set, as well as the button configuration in the script. Especially with all of FoFiX's recent changes to controller layouts.

Also, every change from 0.71 -> 0.8 is COMPLETELY UNTESTED. My guitar neck is still broken and my wiimote is packed in a box somewhere, so there is no guarantee any of it will work. If you find problems, let me know so I can fix them.
(If you can, see if you can figure out how to fix it yourself and then let me know the fix. It's easier that way, as I still can't test)

Have fun!

---- EDIT ----

Maurice10 was nice enough to test the analog slider feature and found that the values were completely wrong (and found the right ones). He also fixed a bug with the solo buttons (yellow had an and instead of an or)
Both of these have been fixed in Version 0.81 which is up in the first post now. I'd really like it if people could test and confirm the new values for the analog slider.
Thanks :smile:
jibgilmon
Member
Posts: 28
Joined: September 22nd, 2007
Location: Illinois
Reputation: 0
Contact:

Re: death_au's All-in-one GH Wii FoF/iX GlovePIE script

Postby jibgilmon » Wed May 20, 2009 12:44 am

good job keeping up with it all, but unfortunately the drum connection problem (thinks it's a GH3 controller) still exists, and it seems like now it isn't possible to fix at all by disconnecting/reconnecting.
Blue Heaven!
User avatar
death_au
Member
Posts: 3991
Joined: December 12th, 2007
Location: Australia
Reputation: 7
Contact:

Re: death_au's All-in-one GH Wii FoF/iX GlovePIE script

Postby death_au » Wed May 20, 2009 2:56 am

jibgilmon wrote:good job keeping up with it all, but unfortunately the drum connection problem (thinks it's a GH3 controller) still exists, and it seems like now it isn't possible to fix at all by disconnecting/reconnecting.

By disconnecting/reconnecting... you mean the drums themselves? Or disconnecting from bluetooth? You have to unplug the actual drum kit, disconnect from bluetooth.
(Apologies if that's obvious, I'm just making sure)

Gah... If only I could find where my bluetooth dongle went :glare:
jibgilmon
Member
Posts: 28
Joined: September 22nd, 2007
Location: Illinois
Reputation: 0
Contact:

Re: death_au's All-in-one GH Wii FoF/iX GlovePIE script

Postby jibgilmon » Wed May 20, 2009 8:50 pm

death_au wrote:
jibgilmon wrote:good job keeping up with it all, but unfortunately the drum connection problem (thinks it's a GH3 controller) still exists, and it seems like now it isn't possible to fix at all by disconnecting/reconnecting.

By disconnecting/reconnecting... you mean the drums themselves? Or disconnecting from bluetooth? You have to unplug the actual drum kit, disconnect from bluetooth.
(Apologies if that's obvious, I'm just making sure)

Gah... If only I could find where my bluetooth dongle went :glare:


yup i've tried and still no success. maybe you should have people with bluetooth test it before releasing the next version. if you want me to test it out for you just send me it in a PM and ill tell you my results.

EDIT: I think i found the specific bug. I noticed that sometimes when I tried it said not recognized and i deleted the whole if section for GH3 guitar to skip it (to see if it was the problem) and sure enough, it said not recognized. So maybe there is something wrong with the checking system now and it doesn't read the drum input as the drums.

EDIT2: I was deleting too much (i deleted the else statement too). if you only delete the if statement for GH3 it connects as thew drum.

EDIT3: now that i got it working, i noticed the drums aren't veyr responsive and there seems to be a problem with the yellow cymbal for me in FoF
TaintFace
Member
Posts: 6
Joined: July 8th, 2008
Location: Anaheim
Reputation: 0

Re: death_au's All-in-one GH Wii FoF/iX GlovePIE script

Postby TaintFace » Fri May 22, 2009 2:40 pm

Whenever I set the bass drum, then test it, the bass drum stays lit. When I try to play, it doesn't register for some reason. And it keeps showing up as "GH3" on GlovePIE. Help? Or atleast point me in the direction of a working GlovePIE script. All I want is drums.
kirezar
Member
Posts: 115
Joined: August 30th, 2008
Reputation: 0

Re: death_au's All-in-one GH Wii FoF/iX GlovePIE script

Postby kirezar » Fri May 22, 2009 4:48 pm

I'm gonna test it now, and if you want a "beta" tester, I could test it

And thank for including me on the bugfix credits

And thanks for your excellent job

Return to “FOF Mod Discussion and Support”

Who is online

Users browsing this forum: No registered users and 15 guests