WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Requesting: OOT Script to play with Button Only Controls

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts
View previous topic :: View next topic  
Author Message
LtDistracted



Joined: 21 Jan 2007
Posts: 7

Digg It
PostPosted: Tue Jan 23, 2007 1:54 am    Post subject: Requesting: OOT Script to play with Button Only Controls

This may sound stupid, but I think it would be nice to have a script that maps OOT's controls onto the buttons on the Wiimote and Nunchuk, but with no motion sensing functionality. It doesn't seem like it would be too hard (I know jack about coding for GlovePIE), could someone please put one together?

Thanks.
Back to top
View user's profile Send private message
CarlKenner
Site Admin


Joined: 29 Nov 2006
Posts: 614

Digg It
PostPosted: Tue Jan 23, 2007 2:09 am    Post subject:

I don't understand. Why do you want it to not have motion sensing? Do you mean you don't want IR either? And you don't want to use the nunchuk's rotation?
Back to top
View user's profile Send private message Send e-mail
LtDistracted



Joined: 21 Jan 2007
Posts: 7

Digg It
PostPosted: Tue Jan 23, 2007 3:30 am    Post subject:

I'm not sure really, I guess it's kind of a purist thing. I don't mean to insult your script, because I've played with it and it's great, but having grown up playing N64, I kind of want to stay retro. Really, all I'm looking for is a way to map the Wiimote and Nunchuk buttons to the N64 controls on the emulator. I was trying to do it with the script of yours that comes with GlovePIE, but it doesn't seem to work for all the buttons.

(So yes, no motion sensing, no IR, and no Nunchuk tilt)
Back to top
View user's profile Send private message
Amablue



Joined: 13 Dec 2006
Posts: 95
Location: California

Digg It
PostPosted: Tue Jan 23, 2007 5:26 am    Post subject:

That should be easy enough for you to figure out on your own. It depends on what you want each button to do really.

Start your script off with this:

PPJoy1.Analog0 = MapRange(Wiimote1.Nunchuk.JoyX, -1,1, -1,1)
PPJoy1.Analog1 = MapRange(Wiimote1.Nunchuk.JoyY, -1,1, -1,1)

That'll take care of the analog. As for the rest of the buttons, it's pretty simple. Just find the letter that the emulator is using for each button, and set it up accordingly. IIRC, project64 uses the X button for the N64's a button, so you'd do this:

x = Wiimote.A

So just decide which key corresponds to which wiimote button, and follow that pattern.
Back to top
View user's profile Send private message
LtDistracted



Joined: 21 Jan 2007
Posts: 7

Digg It
PostPosted: Tue Jan 23, 2007 7:58 pm    Post subject:

Thanks, I was able to make a working script, but I have one issue. When in Z targeting, while going backwards or strafing, pressing the A button is supposed to make Link jump. instead, pressing the A button on the Wiimote causes Link to either roll or do a jump attack. This problem is also present in Carl's OOT scripts, can you think of any fix??
Back to top
View user's profile Send private message
CarlKenner
Site Admin


Joined: 29 Nov 2006
Posts: 614

Digg It
PostPosted: Tue Jan 23, 2007 11:28 pm    Post subject:

Hmmm... Maybe it is because of the shield. I'll have a look at it later.
Back to top
View user's profile Send private message Send e-mail
LtDistracted



Joined: 21 Jan 2007
Posts: 7

Digg It
PostPosted: Wed Jan 24, 2007 12:57 am    Post subject:

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group