Trine (PC Version) Wii controller glovepie scripts

For discussion about Trine, firstly released in 2009 for Windows and on PlayStation Network.
djdna
Posts: 37
Joined: Mon Jun 29, 2009 6:57 pm

Trine (PC Version) Wii controller glovepie scripts

Postby djdna » Thu Jul 02, 2009 1:32 am

ok just a little info on how it works, you need a pc with blue tooth adaptor (some adaptors apparently dont work with the wii remote, not sure which tho) a wii remote/nunchuck, wii sensor bar, a free program called glovepie ( 0.29 available free here http://carl.kenner.googlepages.com/glovepie_download ) and a script to run...

heres my script/config (its designed to work with the default mouse/keys setup in trine and its an edited version of the "my best IR mouse" by carl kenner and is also only tested on the steam demo version of trine so far) edit it as you need to, or just use the in game config to reassign keys etc...


config:


wii controller | action |


wii pointer = aim (mouse cursor)

B button = attack (mouse left button)

A Button = jump (space bar)

Z Button (nunchuck) = mouse right button (grapple/shield/levitate)

C Button (nunchuck) = use (e)

dpad left = choose wizard (1)

dpad down = choose thief (2)

dpad right = choose warrior (3)

home = escape/menu back/skip cutscene

minus = inventory (i)

plus = wizard break object (q)

nunchuck analog = left, right, up, down (w,s,a and d) (the dead zone is adjustable using the 0.9 and 0.2 parameters near the end of the script, 0.9 = high deadzone, 0.1 = low deadzone)


a+b+1+2 = stop glovepie script running (panic button!)








script code follows, copy into glovepie (script also attached) :




// My best IR Mouse Script, with 5DOF Tracking
// By Carl Kenner (adapted by djdna for Trine)

// Change these values:
var.SensorBarSeparation = 7.5 inches // distance between middles of two sensor bar dots
var.NoYawAllowed = true // Calculates X if no yaw is allowed, otherwise calculates Yaw but not X
var.IRMulX = 1.2
var.IRMulY = 1.2
var.IROffsetX = 0 // add to mouse.x
var.IROffsetY = 0 // add to mouse.y
var.IRLeftButton = Wiimote.b
var.IRRightButton = nunchuk.zbutton


// Compensate for roll
var.c = cos(Smooth(wiimote.roll, 10))
var.s = sin(Smooth(wiimote.roll, 10))
if wiimote.dot1vis then
var.dot1x = var.c*(511.5-wiimote.dot1x)/511.5 - var.s*(wiimote.dot1y-383.5)/511.5
var.dot1y = var.s*(511.5-wiimote.dot1x)/511.5 + var.c*(wiimote.dot1y-383.5)/511.5
end if
if wiimote.dot2vis then
var.dot2x = var.c*(511.5-wiimote.dot2x)/511.5 - var.s*(wiimote.dot2y-383.5)/511.5
var.dot2y = var.s*(511.5-wiimote.dot2x)/511.5 + var.c*(wiimote.dot2y-383.5)/511.5
end if

// if both dots are visible check which is which and how far apart
if wiimote.dot1vis and wiimote.dot2vis then
if var.dot1x <= var.dot2x then
var.leftdot = 1
var.dotdeltay = var.dot2y - var.dot1y
else
var.leftdot = 2
var.dotdeltay = var.dot1y - var.dot2y
end if
var.dotdeltax = abs(var.dot1x-var.dot2x)
var.DotSep = hypot(var.dotdeltax, var.dotdeltay) * 511.5
var.IRDistance = var.SensorBarSeparation * 1320 / var.DotSep
end if

// sort out the position of the left and right dots
if var.leftdot = 1 then
if wiimote.dot1vis and wiimote.dot2vis then
var.LeftDotX = var.dot1x
var.LeftDotY = var.dot1y
var.LeftDotVis = true
var.RightDotX = var.dot2x
var.RightDotY = var.dot2y
var.RightDotVis = true
else if wiimote.dot1vis then
if hypot(var.leftdotx-var.dot1x,var.leftdoty-var.dot1y) <= hypot(var.rightdotx-var.dot1x,var.rightdoty-var.dot1y) then
// is the real dot 1
var.LeftDotX = var.dot1x
var.LeftDotY = var.dot1y
var.RightDotX = var.dot1x + var.dotdeltax
var.RightDotY = var.dot1y + var.dotdeltay
var.LeftDotVis = true
var.RightDotVis = false
else
// was originally dot 2, but now called dot 1.
var.leftdot = 2 // this dot (1) is actually the right dot
var.LeftDotX = var.dot1x - var.dotdeltax
var.LeftDotY = var.dot1y - var.dotdeltay
var.RightDotX = var.dot1x
var.RightDotY = var.dot1y
var.RightDotVis = true
var.LeftDotVis = false
end if
else if wiimote.dot2vis then
var.LeftDotX = var.dot2x - var.dotdeltax
var.LeftDotY = var.dot2y - var.dotdeltay
var.RightDotX = var.dot2x
var.RightDotY = var.dot2y
var.RightDotVis = true
var.LeftDotVis = false
end if
else if var.leftdot = 2 then
if wiimote.dot1vis and wiimote.dot2vis then
var.LeftDotX = var.dot2x
var.LeftDotY = var.dot2y
var.LeftDotVis = true
var.RightDotX = var.dot1x
var.RightDotY = var.dot1y
var.RightDotVis = true
else if wiimote.dot1vis then
if hypot(var.leftdotx-var.dot1x,var.leftdoty-var.dot1y) <= hypot(var.rightdotx-var.dot1x,var.rightdoty-var.dot1y) then
var.leftdot = 1 // dot 1 is now the left dot
var.LeftDotX = var.dot1x
var.LeftDotY = var.dot1y
var.RightDotX = var.dot1x + var.dotdeltax
var.RightDotY = var.dot1y + var.dotdeltay
var.LeftDotVis = true
var.RightDotVis = false
else
// the real dot 1 (on the right)
var.LeftDotX = var.dot1x - var.dotdeltax
var.LeftDotY = var.dot1y - var.dotdeltay
var.RightDotX = var.dot1x
var.RightDotY = var.dot1y
var.RightDotVis = true
var.LeftDotVis = false
end if
else if wiimote.dot2vis then
var.RightDotX = var.dot2x + var.dotdeltax
var.RightDotY = var.dot2y + var.dotdeltay
var.LeftDotX = var.dot2x
var.LeftDotY = var.dot2y
var.LeftDotVis = true
var.RightDotVis = false
end if
else
var.LeftDotX = var.dot1x
var.LeftDotY = var.dot1y
var.RightDotX = var.LeftDotX
var.RightDotY = var.LeftDotY
var.LeftDotVis = true
var.RightDotVis = true
end if


// Find the imaginary middle dot
var.MiddleDotX = (var.leftdotx + var.rightdotx)/2
var.MiddleDotY = (var.leftdoty + var.rightdoty)/2
var.MiddleDotVis = wiimote.dot1vis or wiimote.dot2vis

if var.MiddleDotVis then
var.TotalPitch = atan2(511.5*var.MiddleDotY,1320) + Wiimote.Pitch
var.DotYaw = atan2(-511.5*var.MiddleDotX,1320) // assume yaw is 0
var.WiimoteYawNoX = atan2(511.5*var.MiddleDotX,1320)
var.WiimoteXNoYaw = -sin(var.dotyaw)*var.IRDistance
var.WiimoteY = -sin(var.totalpitch)*var.IRDistance
var.WiimoteZ = (-sqrt(sqr(var.IRDistance) - sqr(var.WiimoteY)))*var.IRDistance/RemoveUnits(var.IRDistance)
end if

// scale it to the screen range 0 to 1
var.IRx = var.IRMulX*var.middledotx/2 + 0.5
var.IRy = var.IRMulY*var.middledoty*2600/1600/2 + 0.5
var.IRvis = wiimote.dot1vis or wiimote.dot2vis
var.IROnScreen = 0 <= var.IRx <= 1 and 0 <= var.IRy <= 1

// is it off the screen?
var.IRTooFarLeft = var.IRx < 0 or (var.IRx < 0.1 and (not var.IRvis))
var.IRTooFarRight = var.IRx > 1 or (var.IRx > 1-0.1 and (not var.IRvis))
var.IRTooFarUp = var.IRy < 0 or (var.IRy < 0.1 and (not var.IRvis))
var.IRTooFarDown = var.IRy > 1 or (var.IRy > 1-0.1 and (not var.IRvis))

// Heavily smooth small movements, but do zero lag for quick movements
var.MoveAmount = 1024*hypot(delta(var.IRx), delta(var.IRy))
if smooth(var.MoveAmount) > 12 then
var.SmoothX = var.IRx
var.SmoothY = var.IRy
var.LastSureFrame = PIE.Frame
else if (PIE.frame-var.LastSureFrame) > 18 then
var.SmoothX = Smooth(var.IRx, 18, 4/1024)
var.SmoothY = Smooth(var.IRy, 18, 4/1024)
else if (PIE.frame-var.LastSureFrame) > 14 then
var.SmoothX = Smooth(var.IRx, 14, 4/1024)
var.SmoothY = Smooth(var.IRy, 14, 4/1024)
else if (PIE.frame-var.LastSureFrame) > 10 then
var.SmoothX = Smooth(var.IRx, 10, 4/1024)
var.SmoothY = Smooth(var.IRy, 10, 4/1024)
else if (PIE.frame-var.LastSureFrame) > 6 then
var.SmoothX = Smooth(var.IRx, 6, 4/1024)
var.SmoothY = Smooth(var.IRy, 6, 4/1024)
else if (PIE.frame-var.LastSureFrame) > 2 then
var.SmoothX = Smooth(var.IRx, 2, 4/1024)
var.SmoothY = Smooth(var.IRy, 2, 4/1024)
end if

// Freeze the mouse cursor while they start pressing the button
// otherwise it will make the cursor jump
var.Freeze = (var.IRLeftButton or var.IRRightButton) and KeepDown(pressed(var.IRLeftButton) or pressed(var.IRRightButton), 10ms)

// Only change the mouse position if pointing at the screen
// otherwise they can still use a real mouse
if var.IRvis and (not var.Freeze) then
mouse.x = var.SmoothX
mouse.y = var.SmoothY
end if

// display 6DOF data
if var.NoYawAllowed then
debug = 'X: '+var.WiimoteXNoYaw+', Y: '+var.WiimoteY+', Z: '+var.WiimoteZ+', Yaw: 0, Pitch: '+Wiimote.Pitch+', Roll: '+Wiimote.Roll
else
debug = 'X: 0, Y: '+var.WiimoteY+', Z: '+var.WiimoteZ+', Yaw: '+var.WiimoteYawNoX+', Pitch: '+Wiimote.Pitch+', Roll: '+Wiimote.Roll
endif



keyboard.q = wiimote1.plus
Keyboard.i = wiimote1.minus
keyboard.esc = wiimote1.home
keyboard.shift = wiimote1.two
keyboard.ctrl = wiimote1.one
keyboard.space = wiimote1.a
mouse.leftbutton = wiimote1.b
mouse.rightbutton = wiimote1.nunchuk.zbutton
keyboard.e = wiimote1.nunchuk.cbutton
keyboard.1 = wiimote1.left
keyboard.2 = wiimote1.down
keyboard.3 = wiimote1.right





var.nunchukjoyy = wiimote.Nunchuk.JoyY
var.nunchukjoyx = wiimote.Nunchuk.JoyX
if var.nunchukjoyy > .9
Keyboard.S = 1
else if var.nunchukjoyy < -.9
Keyboard.w = 1
else
Keyboard.S = 0
Keyboard.w = 0
endif
if var.nunchukjoyx > .2
Keyboard.D = 1
else if var.nunchukjoyx < -.2
Keyboard.A = 1
else
Keyboard.D = 0
Keyboard.A = 0
endif








Shift+P+I+E = Wiimote1.a+Wiimote1.b+wiimote1.one+wiimote1.two

DarkJee
Posts: 166
Joined: Mon May 04, 2009 7:10 pm

Re: Trine (PC Version) Wii controller glovepie scripts

Postby DarkJee » Thu Jul 02, 2009 1:55 am

Woah.. I didn't read the code because I don't even have bluetooth on my comp so its useless, but, with that you can play with wiimote+nunchuk? :O

djdna
Posts: 37
Joined: Mon Jun 29, 2009 6:57 pm

Re: Trine (PC Version) Wii controller glovepie scripts

Postby djdna » Thu Jul 02, 2009 2:06 am

DarkJee wrote:Woah.. I didn't read the code because I don't even have bluetooth on my comp so its useless, but, with that you can play with wiimote+nunchuk? :O


yep :)

i actually think its probably the best way to play it personally, or at least its definitely going to suit those who want mouse/keys style controls but who also want to play on an HDTV/TV and bed/sofa/couch without wires etc...

djdna
Posts: 37
Joined: Mon Jun 29, 2009 6:57 pm

Re: Trine (PC Version) Wii controller glovepie scripts

Postby djdna » Fri Jul 03, 2009 4:43 pm

ps: if you do edit this script for your own use, i recommend not touching any of the IR pointer code at all... just alter the suggested parameters in the script and the keyboard/button config and analog stick assignments at the bottom of the script...

DarkJee
Posts: 166
Joined: Mon May 04, 2009 7:10 pm

Re: Trine (PC Version) Wii controller glovepie scripts

Postby DarkJee » Fri Jul 03, 2009 4:50 pm

I would try it if when I bought my computer I had put bluetooth option in it :/

Rahabib
Posts: 45
Joined: Sat Jun 27, 2009 6:30 pm

Re: Trine (PC Version) Wii controller glovepie scripts

Postby Rahabib » Mon Jul 06, 2009 3:34 am

thanks.

just tried it, didn't work for me. not sure why. The mouse IR didnt work (Wii was on for power to the IR bar) and also the wasd didnt work with the controller. the A and B buttons worked at least.

Maybe Ill take a stab at it for use in controller mode. that way it can work for multiple wiimotes (co-op mode).

DarkJee
Posts: 166
Joined: Mon May 04, 2009 7:10 pm

Re: Trine (PC Version) Wii controller glovepie scripts

Postby DarkJee » Mon Jul 06, 2009 4:17 am

Maybe if this thread could be sticky? because I know a lot of players would love to play it with wiimote..

djdna
Posts: 37
Joined: Mon Jun 29, 2009 6:57 pm

Re: Trine (PC Version) Wii controller glovepie scripts

Postby djdna » Mon Jul 06, 2009 3:07 pm

Rahabib wrote:thanks.

just tried it, didn't work for me. not sure why. The mouse IR didnt work (Wii was on for power to the IR bar) and also the wasd didnt work with the controller. the A and B buttons worked at least.

Maybe Ill take a stab at it for use in controller mode. that way it can work for multiple wiimotes (co-op mode).


damn thats a real shame man... should work really (did u try stopping/restarting it etc...) also disconnecting/reconnecting the nunchuck to the wiimote, often gets the nunchuck working if its not...

also i think controller mode isnt going to work, i had loads of problems with it also i dont think you get the mouse control over the icon anyway so that would render the wii pointer a bit useless anyway (might be better to setup wii classic controllers if you wanna use controller mode?)

ps: remember you can edit some of the parameters in the script

ie this part...

// Change these values:
var.SensorBarSeparation = 7.5 inches // distance between middles of two sensor bar dots
var.NoYawAllowed = true // Calculates X if no yaw is allowed, otherwise calculates Yaw but not X
var.IRMulX = 1.2
var.IRMulY = 1.2
var.IROffsetX = 0 // add to mouse.x
var.IROffsetY = 0 // add to mouse.y
var.IRLeftButton = Wiimote.b
var.IRRightButton = nunchuk.zbutton

if you try to reassign the A & B buttons at the bottom of the script, youll need to change the "IRleftbutton and rightbutton" to the same config, to stop any confusion/conflicts in the script too

also make sure you try pointing all over the place, just to see if the IR pointer has its center point calibrated off to the side/top/bottom for any reason


other than that i have no idea why it isnt working tho, sorry...

djdna
Posts: 37
Joined: Mon Jun 29, 2009 6:57 pm

Re: Trine (PC Version) Wii controller glovepie scripts

Postby djdna » Mon Jul 06, 2009 3:12 pm

DarkJee wrote:Maybe if this thread could be sticky? because I know a lot of players would love to play it with wiimote..


i think it could be linked in a sticky thread? that would be fine (just so people can get access to it easily) but thats up to the forum owners/frozenbyte developers...

also dark jee, you could buy a usb blue tooth adaptor for your pc in order to use the wiimote with your pc theres a list of compatible ones here > http://wiibrew.org/wiki/List_of_Working ... th_Devices

i use a linksys USBBT100v2 which works fine on the default drivers, so thats the only one i can recommend

but please be aware its all a bit complicated and temperamental, so it may require reading stuff and fiddling with programs to get where you want... using premade scripts is pretty easy, but finding one for specific games and setup how you like them could be difficult

User avatar
fb_juha
Posts: 71
Joined: Mon Nov 14, 2005 6:18 pm

Re: Trine (PC Version) Wii controller glovepie scripts

Postby fb_juha » Mon Jul 06, 2009 3:34 pm

I made this sticky as it's something people might be interested in. At least I'm going to get a bluetooth adapter to try it out :wink:.

djdna
Posts: 37
Joined: Mon Jun 29, 2009 6:57 pm

Re: Trine (PC Version) Wii controller glovepie scripts

Postby djdna » Mon Jul 06, 2009 3:44 pm

fb_juha wrote:I made this sticky as it's something people might be interested in. At least I'm going to get a bluetooth adapter to try it out :wink:.


thankyou very much :) i appreciate it and i hope you like the script (tho really its carl kenner you need to thank as he did the hard bits!)

if you do buy a BT adaptor, make sure you get a compatible one!, some dont work with wiimotes (compatible ones listed above, the only one i can recommend first hand is the USBBT100v2 by linksys though as thats what i use)

my only complaints with the script so far are theres a little more lag in the wii pointer control than id ideally like (i think thats the scripts fault tho as some official wii games have less lag) and sometimes the character just walks left even when im pressing right but letting go and pressing left again fixes that so mostly its ok, its only when it happens during combat or platforming that it can interfere with gameplay... also because of the large dead zone on the analog stick, climbing up/down the thiefs grappling hook isnt perfect (but i dont mind it myself)

Preyer
Posts: 11
Joined: Fri Jul 03, 2009 5:22 pm

Re: Trine (PC Version) Wii controller glovepie scripts

Postby Preyer » Mon Jul 06, 2009 3:49 pm

I haven't tried this yet, but you who have, is it easy to bind the wiimote as a game controller? Just wondering if I could easily set up co-op with mouse&keyboard and my wiimote.

Rahabib
Posts: 45
Joined: Sat Jun 27, 2009 6:30 pm

Re: Trine (PC Version) Wii controller glovepie scripts

Postby Rahabib » Tue Jul 07, 2009 12:21 am

Preyer wrote:I haven't tried this yet, but you who have, is it easy to bind the wiimote as a game controller? Just wondering if I could easily set up co-op with mouse&keyboard and my wiimote.


you wont be able to do that as the wiimote will be emulating the keyboard - so its as if the keyboard is already in use. Until the patch comes out allowing multiple keyboard and mice you can only use one wiimote and the rest will have to be controller only.

Rahabib
Posts: 45
Joined: Sat Jun 27, 2009 6:30 pm

Re: Trine (PC Version) Wii controller glovepie scripts

Postby Rahabib » Tue Jul 07, 2009 12:25 am

doh... ignore this.
Last edited by Rahabib on Tue Jul 07, 2009 12:36 am, edited 1 time in total.

Rahabib
Posts: 45
Joined: Sat Jun 27, 2009 6:30 pm

Re: Trine (PC Version) Wii controller glovepie scripts

Postby Rahabib » Tue Jul 07, 2009 12:26 am

djdna wrote:
Rahabib wrote:thanks.

just tried it, didn't work for me. not sure why. The mouse IR didnt work (Wii was on for power to the IR bar) and also the wasd didnt work with the controller. the A and B buttons worked at least.

Maybe Ill take a stab at it for use in controller mode. that way it can work for multiple wiimotes (co-op mode).


damn thats a real shame man... should work really (did u try stopping/restarting it etc...) also disconnecting/reconnecting the nunchuck to the wiimote, often gets the nunchuck working if its not...

also i think controller mode isnt going to work, i had loads of problems with it also i dont think you get the mouse control over the icon anyway so that would render the wii pointer a bit useless anyway (might be better to setup wii classic controllers if you wanna use controller mode?)

ps: remember you can edit some of the parameters in the script

ie this part...

// Change these values:
var.SensorBarSeparation = 7.5 inches // distance between middles of two sensor bar dots
var.NoYawAllowed = true // Calculates X if no yaw is allowed, otherwise calculates Yaw but not X
var.IRMulX = 1.2
var.IRMulY = 1.2
var.IROffsetX = 0 // add to mouse.x
var.IROffsetY = 0 // add to mouse.y
var.IRLeftButton = Wiimote.b
var.IRRightButton = nunchuk.zbutton

if you try to reassign the A & B buttons at the bottom of the script, youll need to change the "IRleftbutton and rightbutton" to the same config, to stop any confusion/conflicts in the script too

also make sure you try pointing all over the place, just to see if the IR pointer has its center point calibrated off to the side/top/bottom for any reason


other than that i have no idea why it isnt working tho, sorry...


na, glovepie was working fine. tried other scripts I knew worked and it did just fine. Ill take another shot at it, maybe I just need to tweak the script.

Also, I see what you are saying about the controller but I think I remember seeing a script somewhere for using the pointer and IR to emulate the right analog stick somewhere for flight games, although its been ages and I cant find it yet. If not, then I guess we wait for the patch for coop mode and multiple wiimotes to work.

I own a PS3 so Ill probably pick that version up instead, but the wiimote option just sounded like a really good idea.

Rahabib
Posts: 45
Joined: Sat Jun 27, 2009 6:30 pm

Re: Trine (PC Version) Wii controller glovepie scripts

Postby Rahabib » Tue Jul 07, 2009 6:28 pm

OK, I got it working. It was my first time using the IR bar and it wasn't as easy as just turning on your wii to get it to work (you have to sync the controller with the PC first and then turn on the wii with a second controller and get into the menu so the IR bar can turn on). I had to do a bit of trial and error to get that to work.

The WASD controls I had to cut and paste from another script to get it to work (and unbind "up" on the nunchuck because it was too touchy). Not sure why your script didn't work for me.

As you stated before the cursor on the screen wasn't as smooth as using the mouse. Its definitely workable but not as good as just using the mouse and keyboard. However this may be better than using an controller for people who don't like controllers.

If people want my script Ill post it, but it seems there isn't anyone using wiimotes for this game.

rmarx
Posts: 24
Joined: Fri Mar 06, 2009 12:50 pm

Re: Trine (PC Version) Wii controller glovepie scripts

Postby rmarx » Tue Jul 07, 2009 6:47 pm

Rahabib wrote:If people want my script Ill post it, but it seems there isn't anyone using wiimotes for this game.


That's not true :) I'm going to try it myself tomorrow and the more scripts I have to try, the more chance to get it up and running (and comment on those scripts).

So please : post your script :wink:

Rahabib
Posts: 45
Joined: Sat Jun 27, 2009 6:30 pm

Re: Trine (PC Version) Wii controller glovepie scripts

Postby Rahabib » Tue Jul 07, 2009 7:31 pm

rmarx wrote:
Rahabib wrote:If people want my script Ill post it, but it seems there isn't anyone using wiimotes for this game.


That's not true :) I'm going to try it myself tomorrow and the more scripts I have to try, the more chance to get it up and running (and comment on those scripts).

So please : post your script :wink:


ok Ill post it tonight.

djdna
Posts: 37
Joined: Mon Jun 29, 2009 6:57 pm

Re: Trine (PC Version) Wii controller glovepie scripts

Postby djdna » Sat Jul 11, 2009 4:25 pm

Rahabib wrote:OK, I got it working. It was my first time using the IR bar and it wasn't as easy as just turning on your wii to get it to work (you have to sync the controller with the PC first and then turn on the wii with a second controller and get into the menu so the IR bar can turn on). I had to do a bit of trial and error to get that to work.

The WASD controls I had to cut and paste from another script to get it to work (and unbind "up" on the nunchuck because it was too touchy). Not sure why your script didn't work for me.

As you stated before the cursor on the screen wasn't as smooth as using the mouse. Its definitely workable but not as good as just using the mouse and keyboard. However this may be better than using an controller for people who don't like controllers.

If people want my script Ill post it, but it seems there isn't anyone using wiimotes for this game.



ahh sorry yeah, the trick is to sync and connect your wiimote(s) to your pc first THEN turn the wii on to send power to the sensor bar...

thats weird that the WSAD didnt work, only thing i can think is maybe thats related to PPJOY? but if it is its possibly too complicated for me to troubleshoot, sorry... (i used some PPJOY config guide, which was on wiili.org and was from a basic analog enabled wii classic controller glovepie script... it used controller 3, thats about all i know :P)

well yeah its also good for anyone who wants mouse/keys style control but doesnt want to sit at a desk (which is what im using it for) and i agree the pointer lag isnt ideal but the nunchuck is a lot nicer than using the keyboard, so i think overall this is still my fave way to play this game (its not like you need pc-fps game pointing precision anyway) :)

jammeista
Posts: 4
Joined: Mon Jul 13, 2009 2:58 am

Re: Trine (PC Version) Wii controller glovepie scripts

Postby jammeista » Tue Jul 14, 2009 9:54 pm

Any other tips getting the mouse cursor to work?

I have:
- installed BlueSoleil for connection and paired up Windows Vista and the Wiimote
- loaded the script from the first post into GlovepIE and started it

The buttons on the Wiimote work in the game (jump/action) but the pointer is dead.

I also tried to start the Wii with another remote, still no luck with the pointer.
At some point the Wii took over the connection from the Wiimote connected to the PC so had to re-connect.

On thing I noted is that the Wiimote's all 4 lights are blinking during connection,
I read somewhere related to GlovePIE that only lights 1 and 4 should stay lit permanently.
Not sure if this is important though, buttons still work in Trine.

Note - after a couple of minutes the Wii does steal the connection to the Wiimote.

Rahabib
Posts: 45
Joined: Sat Jun 27, 2009 6:30 pm

Re: Trine (PC Version) Wii controller glovepie scripts

Postby Rahabib » Wed Jul 15, 2009 1:03 am

here is what I did.

1- connect your wiimote
2- start glovepie - and script (verify its working)
3- turn on the wii with a second controller and get into the main menu (you have to push A to get to teh menu after it boots)
4- (obvious) make sure you are pointing at a screen where the sensor bar is located (so move your sensor bar to your pc monitor if you are using your PC)

my bet is that you didnt get to the wii's main menu as I did before.

jammeista
Posts: 4
Joined: Mon Jul 13, 2009 2:58 am

Re: Trine (PC Version) Wii controller glovepie scripts

Postby jammeista » Wed Jul 15, 2009 4:32 pm

Thanks Rahabib, I am pretty sure I did enter the Wii menu pressing A with controller nr. 2 but I will try again when I get home :)

Did you use the script posted in the first post here, if not could you post your script perhaps?

And one more thing, after bluetooth connection / Glovepie Run - how is the status of the lights on your connected Wiimote (all lights blinking, turned off etc..)?

Cheers!

Rahabib
Posts: 45
Joined: Sat Jun 27, 2009 6:30 pm

Re: Trine (PC Version) Wii controller glovepie scripts

Postby Rahabib » Wed Jul 15, 2009 7:44 pm

jammeista wrote:Thanks Rahabib, I am pretty sure I did enter the Wii menu pressing A with controller nr. 2 but I will try again when I get home :)

Did you use the script posted in the first post here, if not could you post your script perhaps?

And one more thing, after bluetooth connection / Glovepie Run - how is the status of the lights on your connected Wiimote (all lights blinking, turned off etc..)?

Cheers!


yea sorry. I havent been on my gaming PC for over a week now. I think I have some time to get my script posted tonight. As far as lights are concerned, I didnt look. most of the scripts I run, the lights are set by the script itself, so Ill have to see what happens with my wiimote.

there are a few other mouse IR scripts online as well - just make sure its for the IR bar and not just accelerometer scripts. try loading up some of those to see if its the script or the IR sensor as well.

Rahabib
Posts: 45
Joined: Sat Jun 27, 2009 6:30 pm

Re: Trine (PC Version) Wii controller glovepie scripts

Postby Rahabib » Thu Jul 16, 2009 5:33 am

ok further inspection on how to get everything going.

1) Connect your wiimote to windows (I use wiiconnect utility) - when connecting hold 1 and 2 down until it finds your device. sometimes you have to run it a few times. The systray will show the drivers connecting then it should say "1 device(s) found." During the Process all the lights are blinking for me. When its done connecting all lights turn off and will stay off during play even when pushing buttons. So dont panic if none of the lights are on.

2) Start up Glovepie and script (just use the one djdna posted - it works). verify that at least the buttons work. I just open up notepad and see if the wasd work with the nunchuck. This was the part where I thought the wasd controls were not working when in fact its the fact that glovepie is just very picky about the nunchuck. I had to disconnect it and reconnect it several times then suddenly the buttons would start working. You dont have to stop and start the script if this happens just keep disconnecting and reconnecting the nunchuck and testing buttons. Also make sure the D-Pad work (it should be 1,2,and 3).

3) Start up the wii using a second controller. Press A to get to the menu screen (very important). Put down that wiimote somewhere, and then point your first wiimote, that was connected to your PC earlier, at the screen with the IR bar. verify that the mouse moves around. If not, then there is something else wrong that could be anything. I am not an expert on glovepie, so try other IR mouse scripts posted elsewhere on the internet.

4) Start up Trine and enjoy.

Now for those all coming in, its not really all that complicated, this is just a micromanaged approach to help trouble shoot.

Thanks to djdna for doing most of the legwork. enjoy.

djdna
Posts: 37
Joined: Mon Jun 29, 2009 6:57 pm

Re: Trine (PC Version) Wii controller glovepie scripts

Postby djdna » Sat Jul 25, 2009 2:22 pm

Rahabib wrote:ok further inspection on how to get everything going.

1) Connect your wiimote to windows (I use wiiconnect utility) - when connecting hold 1 and 2 down until it finds your device. sometimes you have to run it a few times. The systray will show the drivers connecting then it should say "1 device(s) found." During the Process all the lights are blinking for me. When its done connecting all lights turn off and will stay off during play even when pushing buttons. So dont panic if none of the lights are on.

2) Start up Glovepie and script (just use the one djdna posted - it works). verify that at least the buttons work. I just open up notepad and see if the wasd work with the nunchuck. This was the part where I thought the wasd controls were not working when in fact its the fact that glovepie is just very picky about the nunchuck. I had to disconnect it and reconnect it several times then suddenly the buttons would start working. You dont have to stop and start the script if this happens just keep disconnecting and reconnecting the nunchuck and testing buttons. Also make sure the D-Pad work (it should be 1,2,and 3).

3) Start up the wii using a second controller. Press A to get to the menu screen (very important). Put down that wiimote somewhere, and then point your first wiimote, that was connected to your PC earlier, at the screen with the IR bar. verify that the mouse moves around. If not, then there is something else wrong that could be anything. I am not an expert on glovepie, so try other IR mouse scripts posted elsewhere on the internet.

4) Start up Trine and enjoy.

Now for those all coming in, its not really all that complicated, this is just a micromanaged approach to help trouble shoot.

Thanks to djdna for doing most of the legwork. enjoy.


good post/advice there, glad youve got it working :)

how do you find my mappings by the way? any good or have you had to remap stuff?


Return to “Trine”

Who is online

Users browsing this forum: No registered users and 4 guests