Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - harmor

Pages: 1
1
Wiimote Glovepie projects / Re: My N64 GlovePIE script
« on: January 13, 2009, 12:10:39 PM »
I modified the script on the first post to save ROM state. Directions on how to save are in the comment block of the script.

2
Wiimote Glovepie projects / [Script]Mario Tennis 64
« on: January 13, 2009, 07:52:41 AM »
This is a little script I made for Mario Tennis 64.

Code: [Select]
/*
Mario Tennis 64
By Andrew Harmor
For Project64 (Using default controls)

Roll the Wiimote side to side to move character
Holding the "B" button will allow you to use the directional pad for menus

"A" Button on remote is "X" key on keyboard
"Down" arrow on remote is "C" key on keyboard
*/
Key.Up = Wiimote1.Right
Key.Left = Wiimote1.Up
//Key.Down = Wiimote1.Left
//Key.Right = Wiimote1.Down
Key.Enter = Wiimote1.Home
Key.X = Wiimote1.A
Key.C = Wiimote1.Down
Key.Z = Wiimote1.B
Key.A = Wiimote1.Minus
Key.S = Wiimote.Plus

if Wiimote.A then
  Wiimote.Rumble = true
else
  Wiimote.Rumble = false
end if

//debug = Wiimote1.RelAccX

// set these to the offsets when the wiimote is at rest
// will be different for each wiimote
var.x = Wiimote.RawForceX +1.00 //trim to 0
var.y = Wiimote.RawForceY -35.00 // trim to 0
var.z = Wiimote.RawForceZ +10.00 //trim to 0

//precision
var.threshx = 10


debug = "Var: " + var.x + " Thresh: " + var.threshx

//first sensitivity setting
//xaxis
if Wiimote.B == false{
   if var.x > var.threshx{
      Key.Right = false
      Key.Left = true
      var.x = 0
   }
   if var.x < -var.threshx{
      Key.Left = false
      Key.Right = true
      var.x = 0
   }
}else{
 Key.Left = Wiimote1.Left
 Key.Right = wiimote1.Right
 }

3
Wiimote Glovepie projects / Re: My N64 GlovePIE script
« on: January 13, 2009, 01:27:15 AM »
This GlovePIE script is for Ken Griffy Jr.'s Slugfest


Code: [Select]
/*
Ken Griffy Jr Slugfest
By: Andrew Harmor

*Use Project64 default controls*

--Controls--
Format: Keyboard/Wiimote

Up/Up
Down/Down
Left/Left
Right/Right
C/B
X/A
Enter/Home

Swing the Wiimote to swing the bat
*/


Key.Up = Wiimote1.Up
Key.Left = Wiimote1.Left
Key.Right = Wiimote1.Right
Key.Enter = Wiimote1.Home
Key.Down = Wiimote1.Down
Key.C = Wiimote1.B
Key.A = Wiimote1.Minus
Key.S = Wiimote.Plus

if Wiimote.A then
  Wiimote.Rumble = true
else
  Wiimote.Rumble = false
end if

//debug = Wiimote1.RelAccX

// set these to the offsets when the wiimote is at rest
// will be different for each wiimote
var.x = Wiimote.RawForceX +1.00 //trim to 0
var.threshx = 50



debug = "Var: " + var.x + " Thresh: " + var.threshx

//first sensitivity setting
//xaxis

if var.x > var.threshx{
   //Key.Right = false
   Key.X = true
   var.x = 0
}else{
 Key.X = Wiimote1.A
}




4
Wiimote Glovepie projects / My N64 GlovePIE script
« on: January 12, 2009, 04:23:32 AM »
This script is mostly used with platformers such as Super Mario 64 and Conker's Bad Fur Day. The only portion I copied was for the analog stick, I typed out the rest. Forgive me if there is a similar script in the 'WiiMote' directory that comes with GlovePIE.

Code: [Select]
/*
GlovePIE script by Andrew H.
For Project64 (Using default controls)

--Controls On WiiMote---
Left, Up, Right, Down directional pad arrows control the "C" buttons respectively
'A' button is A
'B' button is B
'Home' button is start
'Z' button is Z on nunchuck
Analog Stick on nuncuck controls character
'Minus' button is L
'Plus' button is R
*/

//To save the the game hold the "C" button on the nunckuck and press the "Home" button on the Wiimote

/*The reason I mapped the Wiimote arrow keys to the 'C' buttons is because
it'd be too awkward to play if they were maped to the N64 controllor arrow buttons*/



Key.Left = (-1.2 < wiimote.Nunchuk.JoyX < -0.5)
Key.Right = (0.5 < wiimote.Nunchuk.JoyX < 1.2)
Key.Up = (-1.2 < wiimote.Nunchuk.JoyY < -0.5)
Key.Down = (0.5 < wiimote.Nunchuk.JoyY < 1.2)


Key.NUMPAD4 = wiimote1.Left
Key.NUMPAD6 = wiimote1.Right
Key.NUMPAD8 = wiimote1.Up
Key.NUMPAD2 = wiimote1.Down


Key.X = wiimote1.A
Key.Z = Wiimote1.Nunchuk.ZButton
Key.C = Wiimote1.B
Key.A = Wiimote1.Minus
Key.S = Wiimote.Plus


if Wiimote1.Up{
Key.Home = Wiimote1.Up
//debug = "1"
}else{
   Key.Home = ''
}

if Wiimote1.Right{
Key.PageDown = Wiimote1.Right
//ebug = "2"
}else{
   Key.PageDown = ''
}

if Wiimote1.Down{
Key.End = Wiimote1.Down
}else{
   Key.End = ''
}

if Wiimote1.Left{
Key.Delete = Wiimote1.Left
//debug = "4"
}else{
   Key.Delete = ''
}

if wiimote1.nunchuk.CButton && wiimote1.Home{
   Key.F5 = true
}else{
   Key.F5 = false
   Key.Enter = Wiimote1.Home
}

//I added this because the LED's like to light up after connecting the remote
//To BlueTooth and it's distracting.
wiimote.Leds = false

5
Great reply.
I guess I'll have to borrow my grandma's USB dongle.

6
I have a cell with bluetooth. I can plug the phone into the computer via USB but I can't figure out a way to use my phone as a bluetooth dongle. Is there a program that allows your phone to emulate as an USB device so I can use BlueSoliel?

Pages: 1