Great Glovepie script for mario kart 64 on emulator

2 replies [Last post]
duksandfish
duksandfish's picture
100 PostsWebsite Contributor
Joined: 2008/01/11
Posts: 358
User offline. Last seen 34 weeks 3 days ago.

If you guys know how to use glovepie, and have an N64 emulator (prefeably project 64) and the ROM of mario kart 64 then use this glovepie script. It isnt a steering wheel control (im not that good at using it yet), but you steer with the analouge stick, acellerate with a, breake and reverse with b, and drift and use items with the buttons on the nunchick. Anyway the script is here:

//SCRIPT
//Set controls on emulator to:
//A:A
//B:B
//L:L
//R:R
//S:S
//Z:Z
//left:left
//right:right
//Up:up
//down:down
//C up:home
//c down:end
//C left:delete
//c right:page down

//Debug
debug = "X="+Wiimote.RelAccX+' Y='+Wiimote.RelAccY+' Z='+Wiimote.RelAccZ

//Nunchuk Movement
if 2 > Wiimote1.Nunchuk.JoyX > 0.5 then
Right = true
wait 60 ms
Right = false
endif
if -2 < Wiimote1.Nunchuk.JoyX < -0.5 then
left = true
wait 60 ms
left = false
endif
if 2 > Wiimote1.Nunchuk.JoyY > 0.5 then
down = true
wait 60 ms
down = false
endif
if -2 < Wiimote1.Nunchuk.JoyY < -0.5 then
up = true
wait 60 ms
up = false
endif

//Controller Mapping
Key.A = Wiimote1.A
Key.Z = Wiimote1.Nunchuk.ZButton
Key.R = Wiimote1.Nunchuk.CButton
Key.End = Wiimote1.Down
Key.Delete = Wiimote1.Left
Key.PageDown = Wiimote1.Right
Key.Home = Wiimote1.Up
Key.S = Wiimote1.Plus
Key.B = Wiimote1.B
Key.L = Wiimote1.1
//Reversing
if (wiimote1.b)
Key.b = 1
Wiimote.Rumble = 0
wait 120 ms
Down = True

end if

//END
//----------------------------------------------------------------------------//

Connect your wiimote to your pc using this tutorial: http://www.youtube.com/watch?v=dTvDMkt6ZJQ

set the emualtor controls to the ones mentioned in the script.
If you need and emulator, download it here: http://www.emuparadise.org/emulators/n64.php the scroll down and download Project 64 as i think it is the best one there

If you need a ROM of mario kart 64, download one here: http://www.emuparadise.org/cgi-bin/download.cgi?n64-mariokart

duksandfish
duksandfish's picture
100 PostsWebsite Contributor
Joined: 2008/01/11
Posts: 358
User offline. Last seen 34 weeks 3 days ago.

This is an even betterone that i edited from a partially working script.
There is one problym with it though, the only way to stop the script is to exit glovepie as when the script is running, the stop button is unrespoonsive.
This is the script

//Mario Kart N64 controls
//By petergriffin and TweaK Edited by duksandfish3

var.zCutoff1 = 6/30
var.zCutoff2 = 12/30
var.zCutoff3 = 23/30
// Hold the controller sideways like you do in Exite Truck 1 is A, 2 is B
// And Right (or Up if held sideways) is use item. Steering is as simple as
// Turning the Wiimote right or left. Home is Start. Plus is up and minus is //down
// A is R and B is L
// Set the Emulator so that A=A B=B Z=Z Start=S R=R L=L And the Directions set to the arrow keys
var.xRot =Wiimote.gx
var.yRot =Wiimote.gy
var.zRot =Wiimote.gz

debug = 'X:' + var.xRot + ', ' + 'Y:' + var.yRot + ', ' + 'Z:' + var.zRot

if var.zRot > var.zCutoff3 then
key.right = true
key.left = true
key.left = false
wait 20ms
key.right = false
else if var.zRot < -var.zCutoff3 then
key.left = true
key.right = true
key.right = false
wait 20ms
key.left = false
else if var.zRot > var.zCutoff2 then
key.right = true
key.left = true
key.left = false
wait 12ms
key.right = false
else if var.zRot < -var.zCutoff2 then
key.left = true
key.right = true
key.right = false
wait 12ms
key.left = false
else if var.zRot > var.zCutoff1 then
key.right = true
key.left = true
key.left = false
wait 2ms
key.right = false
else if var.zRot < -var.zCutoff1 then
key.left = true
key.right = true
key.right = false
wait 2ms
key.left = false
else
key.left = True
key.right = True
key.left = false
key.right = false
endif

key.a = Wiimote.2
key.z = Wiimote.a
key.s = Wiimote.Home
key.up = Wiimote.Plus
key.down = Wiimote.Minus
key.r = Wiimote.b
key.l = Wiimote.right
Wiimote.leds = 9

//Reversing
if wiimote1.1 = true
Key.b = 1
Down = 1
endif

if wiimote1.1 = false

key.b = 0
down = 0

endif

Connect your wiimote to your pc using this tutorial: http://www.youtube.com/watch?v=dTvDMkt6ZJQ

set the emualtor controls to the ones mentioned in the script.
If you need and emulator, download it here: http://www.emuparadise.org/emulators/n64.php the scroll down and download Project 64 as i think it is the best one there

If you need a ROM of mario kart 64, download one here: http://www.emuparadise.org/cgi-bin/download.cgi?n64-mariokart

duksandfish3 (ftw)

Dodo_JZ
Dodo_JZ's picture
100 Posts
Joined: 2007/10/11
Posts: 429
User offline. Last seen 2 years 12 weeks ago.

this would probably be better under mods and hacks.

(insert text here)

Cheers :)