angelvilu escribió:resulta que el readme esta en ingles y esque no me entero de nada :S
por cierto yo tambien lo quiero usar para la guitarra si es que puedo porque no hay manera de que vaya
Zor escribió:Tengo una duda importante... si quiero jugar a juegos de coches (por ejemplo) con el Wiimote en plan Mario Kart Wii, ¿cómo lo configuro todo? Es que el tema de GlovePIE me parece tremendamente lioso y poco útil si lo único que quiero es "mapear" los ejes del Wiimote a los ejes de un joystick para que me lo detecte el juego como joystick. Con PPJoy no puedo porque no parece ser compatible con sistemas de 64 bits.
esecadioe escribió:Habitualmente antes de preguntar leo pero hoy no he tenido tiempo.
Mi preguntas es como puedo jugar al fof con una guitarra inhalambrica del rock band wii en un mac.
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *  Wii Guitar Hero Script for Frets on Fire                                                                                 *
 *  Based on version from http://wizardswhinings.blogspot.com/2008/03/how-to-use-wii-guitar-hero-iii-guitar.html             *
 *  Modified by Neil Munday, July 2008                                                                                       *
 *  Modified by Envido32, July 2009                                                                                          *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Keyboard.Ctrl = False
Keyboard.LeftShift = False
Keyboard.LeftAlt = False
Keyboard.RightAlt = False
// Calibration:
// Change these to your liking (use debug info)
debug = 'WhammyBar=' + Wiimote1.Classic.R + ', Pitch=' + RemoveUnits(Wiimote.Pitch)
var.whammythreshold = 0.55
var.starpowerangle = 50
Keyboard.F1 = Wiimote1.Classic.A  //Green
Keyboard.F2 = Wiimote1.Classic.B  //Red
Keyboard.F3 = Wiimote1.Classic.X  //Yellow
Keyboard.F4 = Wiimote1.Classic.Y  //Blue
Keyboard.F5 = Wiimote1.Classic.ZL //Orange
// Makes the 4 Wiimote's LEDs light up with the first 4 frets
Wiimote.Led1 = Wiimote1.Classic.A 
Wiimote.Led2 = Wiimote1.Classic.B 
Wiimote.Led3 = Wiimote1.Classic.X 
Wiimote.Led4 = Wiimote1.Classic.Y 
// Other mappings
Keyboard.Space = Wiimote1.Classic.Minus // Minus (Select)
Keyboard.Esc = Wiimote1.Classic.Plus // Plus (Pause)
Keyboard.Up = Wiimote1.Classic.Up // Strum Up
Keyboard.Down = Wiimote1.Classic.Down // Strum Down
// Analog stick as Mouse
// Based on Nickm717's Classic Controller Mouse a modified version of Kunal Khiyani's nunchuk mouse
if (-1.2 < wiimote1.Classic.Joy1Y < -0.5) {
  Mouse.DirectInputY = Mouse.DirectInputY + 10;
}
if (0.5 < wiimote1.Classic.Joy1Y < 1.2) {
  Mouse.DirectInputY = Mouse.DirectInputY - 10;
}
if (-1.2 < wiimote1.Classic.Joy1X < -0.5) {
  Mouse.DirectInputX = Mouse.DirectInputX - 10;
}
if (0.5 < wiimote1.Classic.Joy1X < 1.2) {
  Mouse.DirectInputX = Mouse.DirectInputX + 10;
}
// Make whammy when whammy is pushed
If Wiimote1.Classic.R > var.whammythreshold
   Mouse.x = Wiimote1.Classic.R // Analog using mouse
   If Wiimote1.Classic.R > var.whammythreshold + 0.15 // Digital
      Keyboard.Shift = True
   Else
       Keyboard.Shift = False
   EndIf
Else
    Keyboard.Shift = False
EndIf
// Activates Star Power when guitar is tilted (and rumbles)
If RemoveUnits(Wiimote1.Pitch) > var.starpowerangle
   Keyboard.Space = True
   Wiimote1.Rumble = True
   Wait 1000 ms
   Keyboard.Space = False
   Wiimote1.Rumble = False
EndIfEnvido32 escribió:Buscando un poco no logre dar con un script que me dejara totalmente contento, asi que tomando codigos de aqui y de alla arme este que creo que es el mas completo que pueden encontrar. Espero que les sirva.
Espero no haberme olvidado de darle el crédito a nadie.
Probado con GlovePie 0.29 y Guitar Zero 6.3b (aunque deveria funcionar igualmente en Frets on Fire y GH3)/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Wii Guitar Hero Script for Frets on Fire *
* Based on version from http://wizardswhinings.blogspot.com/2008/03/how-to-use-wii-guitar-hero-iii-guitar.html *
* Modified by Neil Munday, July 2008 *
* Modified by Envido32, July 2009 *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Keyboard.Ctrl = False
Keyboard.LeftShift = False
Keyboard.LeftAlt = False
Keyboard.RightAlt = False
// Calibration:
// Change these to your liking (use debug info)
debug = 'WhammyBar=' + Wiimote1.Classic.R + ', Pitch=' + RemoveUnits(Wiimote.Pitch)
var.whammythreshold = 0.55
var.starpowerangle = 50
Keyboard.F1 = Wiimote1.Classic.A //Green
Keyboard.F2 = Wiimote1.Classic.B //Red
Keyboard.F3 = Wiimote1.Classic.X //Yellow
Keyboard.F4 = Wiimote1.Classic.Y //Blue
Keyboard.F5 = Wiimote1.Classic.ZL //Orange
// Makes the 4 Wiimote's LEDs light up with the first 4 frets
Wiimote.Led1 = Wiimote1.Classic.A
Wiimote.Led2 = Wiimote1.Classic.B
Wiimote.Led3 = Wiimote1.Classic.X
Wiimote.Led4 = Wiimote1.Classic.Y
// Other mappings
Keyboard.Space = Wiimote1.Classic.Minus // Minus (Select)
Keyboard.Esc = Wiimote1.Classic.Plus // Plus (Pause)
Keyboard.Up = Wiimote1.Classic.Up // Strum Up
Keyboard.Down = Wiimote1.Classic.Down // Strum Down
// Analog stick as Mouse
// Based on Nickm717's Classic Controller Mouse a modified version of Kunal Khiyani's nunchuk mouse
if (-1.2 < wiimote1.Classic.Joy1Y < -0.5) {
Mouse.DirectInputY = Mouse.DirectInputY + 10;
}
if (0.5 < wiimote1.Classic.Joy1Y < 1.2) {
Mouse.DirectInputY = Mouse.DirectInputY - 10;
}
if (-1.2 < wiimote1.Classic.Joy1X < -0.5) {
Mouse.DirectInputX = Mouse.DirectInputX - 10;
}
if (0.5 < wiimote1.Classic.Joy1X < 1.2) {
Mouse.DirectInputX = Mouse.DirectInputX + 10;
}
// Make whammy when whammy is pushed
If Wiimote1.Classic.R > var.whammythreshold
Mouse.x = Wiimote1.Classic.R // Analog using mouse
If Wiimote1.Classic.R > var.whammythreshold + 0.15 // Digital
Keyboard.Shift = True
Else
Keyboard.Shift = False
EndIf
Else
Keyboard.Shift = False
EndIf
// Activates Star Power when guitar is tilted (and rumbles)
If RemoveUnits(Wiimote1.Pitch) > var.starpowerangle
Keyboard.Space = True
Wiimote1.Rumble = True
Wait 1000 ms
Keyboard.Space = False
Wiimote1.Rumble = False
EndIf
 hasta tengo uno para usar el teclado+wiimote+nunchuk como batería en los últimos FOF.
 hasta tengo uno para usar el teclado+wiimote+nunchuk como batería en los últimos FOF.   
  Sbiky escribió:Hola, estoy haciendo un script que simule una bateria, tipico y tal y me gustaria saber si es posible usar la tabla del wii fit para ponerla como bombo al pisarla. Me he bajado la verison 0.29 de la web de glovepie pero no encuentro la forma de usarla.
Y luego tengo un par de dudas que agradaceria que algún forero me contestase si conoce las respuestas:
1- ¿wiimote y nunchuk detectan aceleracion para arriba y para abajo, es posible decirles que solo actuen cuando la detecten hacia abajo?
2- ¿es posible usar dos wiimotes en lugar del combo wiimote+nunchuk?
Gracias, la verdad es que el programa este esta muy chulo para curiosear un rato
xDaRkWaVexD escribió:Hola! tengo una pregunta como le hago para que el analogo del nunchuck o classic controller
tengan sensibilidad al mover a un personaje, por que ya lo he intentado y nunca pude.
 
  //Controles
           Mouse.RightButton = wiimote.b
           Mouse.LeftButton =  wiimote.a
           Mouse.MiddleButton = wiimote.Down
           Keyboard.Space = wiimote.Nunchuk.CButton
           Keyboard.E = wiimote.Plus
           Keyboard.F = wiimote.Minus
           Keyboard.R = wiimote.Home
           Keyboard.Ctrl = wiimote.One
           Keyboard.T = wiimote.Nunchuk.ZButton
// Vibra al presionar
If Pressed(Wiimote.B) Then
   Wiimote.Rumble = True 
   wait 100 ms 
   Wiimote.Rumble = False 
EndIf 
// Nunchuk
w = Wiimote.Nunchuk.JoyY < -0.4
a = Wiimote.Nunchuk.JoyX < -0.4
s = Wiimote.Nunchuk.JoyY > 0.4
d = Wiimote.Nunchuk.JoyX > 0.4
//IR
If Wiimote.dot1vis Then
Debug = 'd:' + Wiimote.dot1size + '; ' + Wiimote.dot1x + ', ' + Wiimote.dot1y
mouse.DirectInputX = RemoveUnits((1 - (Wiimote.dot1x / 1024)) * Screen.DesktopWidth)
mouse.DirectInputY = RemoveUnits((Wiimote.dot1y / 768) * Screen.DesktopHeight)
if Wiimote.dot1size <= 1 Then
Wiimote.Leds = 1
elseif Wiimote.dot1size == 2 Then
Wiimote.Leds = 3
elseif Wiimote.dot1size == 3 Then
Wiimote.Leds = 7
else
Wiimote.Leds = 15
end if
Else
Debug = "No veo el emisor IR"
Wiimote.Leds = 0
End If/* Code for playing Call of Duty PC with the Wii-Remote and Nunchuk 
   Control Arrangement done by Arianol, version 1.5.3 */ 
/* This PIE requires that you have either one or two IR points to aim the 
   Wiimote at. A lit teacandle sitting in a small glass works nicely as a 
   single point and reduces fire hazard.  The Wii Sensor Bar is best for the 
   two-point setting. At any time you can point the Wiimote away from the sensor 
   and Press 1 to revert back to natural mouse movement. Please set the value 
   of the following variable to your number of infrared points (1 or 2). */ 
   var.irAmount = 1          // 1 OR 2
/* When configuring xNunchuk please hold the nunchuk flat in your hand and do 
   not move it. You want to look at the debug output at the top of this 
   window, and modify the value of xNunchuk until the debug value equals zero. 
   The debug value will be very jumpy so just get as close as you can. */ 
   var.xNunchuk = 0 
/* Set these numbers so that the cursor reaches the edges 
   of your screen. (Defaults are both 1.1) */ 
   var.xStretch = 1.1 
   var.yStretch = 1.1 
/* The following variables are all a matter of personal preference. */ 
   var.speed = 1/2     // Master Sensitivity (Default 1/7)
    var.zoom = 1/3     // Speed When Aiming Down Sight (Default 1/3) 
var.deadzone = 250     // Less Sensitive Area Around Cursor (Default 250px) 
//Controls
           Mouse.RightButton = wiimote.b
           Mouse.LeftButton =  wiimote.a
           Mouse.MiddleButton = wiimote.Down
           Keyboard.Space = wiimote.Nunchuk.CButton
           Keyboard.E = wiimote.Plus
           Keyboard.F = wiimote.Minus
           Keyboard.R = wiimote.Home
           Keyboard.Ctrl = wiimote.One
           Keyboard.T = wiimote.Nunchuk.ZButton
If Pressed(Wiimote.B) Then               // Rumbles wiimote when shift is pressed
   Wiimote.Rumble = True 
   wait 100 ms 
   Wiimote.Rumble = False 
EndIf 
// Control Stick Movement
w = Wiimote.Nunchuk.JoyY < -0.4
a = Wiimote.Nunchuk.JoyX < -0.4
s = Wiimote.Nunchuk.JoyY > 0.4
d = Wiimote.Nunchuk.JoyX > 0.4
// LED Lights 
Wiimote.Led4 = four 
Wiimote.Led3 = three 
Wiimote.Led2 = two 
Wiimote.Led1 = one 
/* Code for Pointing Mechanism 
   --------------------------- 
              Do Not Modify */ 
// If Using A Two-Dot Sensor, Find Midpoint 
If var.irAmount = 2 Then 
   var.xPos = (Wiimote.dot1x + Wiimote.dot2x) / 2 
   var.yPos = (Wiimote.dot1y + Wiimote.dot2y) / 2 
Else 
   var.xPos = Wiimote.dot1x 
   var.yPos = Wiimote.dot1y 
EndIf 
// If At Least One Dot Is Visible, Move Cursor 
If Wiimote.dot1vis Then 
   // Locate Infrared Focal Point 
   var.xPoint = (1-(round(var.xPos) / 1024)) * Screen.Width 
   var.yPoint = ((round(var.yPos) / 768)) * Screen.Height 
   // Create Virtual Grid System And Draw Point Coordinates 
   var.xGrid = var.xPoint - (Screen.Width / 2) 
   var.yGrid = var.yPoint - (Screen.Height / 2) 
   // Find Cursor on Grid 
   var.xCursor = Mouse.CursorPosX - (Screen.Width / 2) 
   var.yCursor = Mouse.CursorPosY - (Screen.Height / 2) 
   // Calculate Distance To Move 
   var.xDist = (var.xGrid - var.xCursor) 
   var.yDist = (var.yGrid - var.yCursor) 
   // Calculate Speed Multipliers Based On DeadZone Parameters 
   If abs(var.xDist / var.deadzone) > 1 Then var.xMult = 1 Else var.xMult = abs(var.xDist / var.deadzone) 
   If abs(var.yDist / var.deadzone) > 1 Then var.yMult = 1 Else var.yMult = abs(var.yDist / var.deadzone) 
   // Calculate Motion Speed & Add In Scope Multiplier If Needed 
   var.xMotion = var.xDist * var.xMult * var.Speed
   var.yMotion = var.yDist * var.yMult * var.Speed 
   // Calculate New Cursor Position
   If abs(var.xDist) > 0 Then var.xCursor = (var.xCursor + var.xMotion) * var.xStretch 
   If abs(var.yDist) > 0 Then var.yCursor = (var.yCursor + var.yMotion) * var.yStretch 
   // Move Cursor 
   Mouse.CursorPosX = var.xCursor + (Screen.Width / 2) 
   Mouse.CursorPosY = var.yCursor + (Screen.Height / 2) 
   // Backup Last Motions 
   var.xLast = var.xMotion 
   var.yLast = var.yMotion 
   // Reload (If Minus Fails) 
   r = Wiimote.One 
ElseIf Pressed(Wiimote.One) Then 
   // Terminate Motion - Safeguard 
   var.xLast = 0 
   var.yLast = 0 
Else 
   // Move Using Last Known Value 
   If var.xMult = 1 Then Mouse.CursorPosX = Mouse.CursorPosX + var.xLast 
   If var.yMult = 1 Then Mouse.CursorPosY = Mouse.CursorPosY + var.yLast 
EndIf                                    Mouse.DirectInputX  Mouse.DirectInputX
// Debug 
debug = 'Debug:  xNunchuk: ' + (Wiimote.Nunchuk.Roll + var.xNunchuk) + '  SpeedY: ' + var.speedY + '  SpeedX: ' + var.speedX![muy furioso [+furioso]](/images/smilies/nuevos/furioso.gif) 
  ![muy furioso [+furioso]](/images/smilies/nuevos/furioso.gif) tengo el adaptador y el wiimote xd
  tengo el adaptador y el wiimote xd  ![como la niña del exorcista [360º]](/images/smilies/nuevos/vueltas.gif) 
  ![como la niña del exorcista [360º]](/images/smilies/nuevos/vueltas.gif) 
  
  ![Oooooo [Ooooo]](/images/smilies/nuevos/sorprendido_ani1.gif) si existe alguna forma que avisen porfavor
  si existe alguna forma que avisen porfavor  ![risita [risita]](/images/smilies/nuevos/sonrisa_ani1.gif) 
 ![a lágrima viva [buuuaaaa]](/images/smilies/nuevos/triste_ani3.gif) 
 ![a lágrima viva [buuuaaaa]](/images/smilies/nuevos/triste_ani3.gif) 
  ![a lágrima viva [buuuaaaa]](/images/smilies/nuevos/triste_ani3.gif) 
 ![llorica [mamaaaaa]](/images/smilies/nuevos/triste_ani4.gif) 
  ![llorica [mamaaaaa]](/images/smilies/nuevos/triste_ani4.gif) 
  ![llorica [mamaaaaa]](/images/smilies/nuevos/triste_ani4.gif) 
  ![llorica [mamaaaaa]](/images/smilies/nuevos/triste_ani4.gif) 
   .
.MatiasBG escribió:Lo que quiero hacer es que un botón se quede presionado.
Keyboard.leftshift = wiimote.classic.right
Quiero que al apretar "wiimote.classic.right" se quede presionado "keyboard.leftshift" hasta que vuelva a apretar "wiimote.classic.right" y entonces "keyboard.leftshift" se desactive.
No consigo hacerlo, estaría agradecido si alguien me pusiera la forma ya hecha.
Gracias de antemano.
if( wiimote.classic.right )
{
    // Invertimos el valor de una variable que utilizaremos para marcar como activada/desactivada la tecla deseada
    var.lshiftpressed = !var.lshiftpressed
    // Aplicamos a la tecla deseada el valor indicado.
    Keyboard.leftshift = var.lshiftpressed
    // Esperamos medio segundo para dar tiempo a liberar la tecla del wiimote (modificar esta cantidad según finalidad).
    wait 500ms
}