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 

Best Zelda OOT Script ever! Guaranteed!
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts
View previous topic :: View next topic  
Author Message
JRoberts



Joined: 07 Mar 2008
Posts: 6

Digg It
PostPosted: Tue Mar 11, 2008 6:07 am    Post subject:

OliverR40 wrote:
... I don't have any IR solution so I can't really use this script Sad
Sad

You dont have 2 candles?
Back to top
View user's profile Send private message
DarkMC



Joined: 30 Mar 2008
Posts: 1

Digg It
PostPosted: Sun Mar 30, 2008 1:25 am    Post subject:

Hi there
I have problems with the script.
When I load the script & start the Game everything is working, but I can't move with the nunchuck.
When I click the home button the Nunchuck stick works fine, but i can't Press any Button.
When I Press the Home Button again everything is working except the Stick of the nunchuck to move in the game...
and so on

Does someone have a solution for this?
Back to top
View user's profile Send private message
minilux



Joined: 09 Mar 2008
Posts: 4

Digg It
PostPosted: Fri Apr 18, 2008 1:46 pm    Post subject:

it is possible to have a link to the decribe pdf because the link at the beginning doesn't work Smile
Back to top
View user's profile Send private message
grossafe



Joined: 13 Jun 2008
Posts: 22

Digg It
PostPosted: Sun Jun 15, 2008 11:38 am    Post subject:

So what exactly is different about this version as compared to the Twilight controls script that was packaged with glovePIE029? I noticed that there's IR and a bunch of new features. I guess it may be easier to ask what is the same Confused
Back to top
View user's profile Send private message
grossafe



Joined: 13 Jun 2008
Posts: 22

Digg It
PostPosted: Tue Jun 17, 2008 7:45 am    Post subject:

Balas wrote:
This looks amazing, though I would not know since I can't make it to fucking work. All the other Oot scripts I try work perfectly, but this one just don't. There is non respons at all. Neither of the buttons work, and yes I have changed the controls to default. What can this be? I've even tried to use the wiimote in Words while running the script, but it does not seem to corespond to the keyboard keys at all!

Anyone know what I might be doing wrong her?

Thanks Very Happy

are you sure you're wiimote's still working properly? mine only works sometimes when i connect it up.
Back to top
View user's profile Send private message
unknownwarrior33



Joined: 20 Jun 2008
Posts: 1

Digg It
PostPosted: Fri Jun 20, 2008 11:51 pm    Post subject:

I wasn't able to get this to work, so I combined some stuff from old and new scripts to add IR pointing to an older version of the script. I DO NOT CLAIM TO HAVE MADE ANY OF THIS CODE; CARL MADE IT AND I JUST MIXED AND MATCHED. As such, it doesn't have some of the nifty features in this new one, but hopefully it will help people who can't get the new one to work at least have the IR aiming.

Also, since I couldn't get the sword swinging to work at all, I added a simple shake-to-swing mechanism. It's not as complex or fun, but it's better than nothing. If you're not having trouble with the swinging and just want to add the IR pointing, you can delete that part. So, here it is.




Quote:
// Zelda: Ocarina of Time, with Twilight Princess controls!
// Version 1 - Now with Wiimote sword swings and Nunchuk spin attack
// By Carl Kenner

//Set your emulator to these values:
//Analog Stick = PPJoy Virtual Joystick
//A-Button = X, B-Button = C, Start = S
//L-Button = A, R-Button = D, Z-Button = Z
//C-Left = j, C-Up = I
//C-Right = l, C-Down = k

// Note, I haven't played Twilight Princess. And I haven't got very
// far in Ocarina of Time. So this is just an early version.

// Note: Roll the nunchuk to the right to use your shield

// analog = movement
if not var.swinging then
ppjoy.analog0 = Wiimote.Nunchuk.JoyX
ppjoy.analog1 = Wiimote.Nunchuk.JoyY
end if

// A = Talk / open doors / interact
X = Wiimote.A

// Roll nunchuk right to use your shield
var.Shield = Wiimote.Nunchuk.Roll > 60 degrees
D = var.Shield

// B = trigger
// swing wiimote = sword
C = Wiimote.B

if abs(wiimote.RelAccX) >= 15 and (not var.swinging) and (not var.Shield) then
var.swinging = true
release(Z)
wait 100 ms
press(C)
wait 100 ms
release(C)
wait 100 ms
var.swinging = false
end if

if abs(wiimote.RelAccY) >= 15 and (not var.swinging) and (not var.Shield) then
var.swinging = true
press(Z)
wait 100 ms
press(C)
wait 100 ms
release(C)
wait 100 ms
release(Z)
wait 100 ms
var.swinging = false
end if

if abs(wiimote.RelAccZ) >= 15 and (not var.swinging) and (not var.Shield) then
var.swinging = true
press(Z)
wait 100 ms
ppjoy.analog1 = -1
wait 100 ms
press(C)
wait 100 ms
release(C)
wait 100 ms
release(Z)
wait 100 ms
ppjoy.analog1 = 0
wait 100 ms
var.swinging = false
end if

if abs(wiimote.RelAccZ) >= 15 and (not var.swinging) and (var.Shield) then
var.swinging = true
press(C)
wait 100 ms
release(C)
wait 100 ms
var.swinging = false
end if

if abs(wiimote.Nunchuk.RelAccX) >= 15 and (not var.swinging) and (not var.Shield) then
var.swinging = true
press(C)
wait 1 second
release(C)
wait 100 ms
var.swinging = false
end if

if abs(wiimote.RelAccY) >= 15 and (not var.swinging) and var.Shield and Wiimote.Nunchuk.ZButton then
var.swinging = true
release(D)
wait 100 ms
press(C)
wait 100 ms
release(C)
wait 100 ms
press(D)
wait 100 ms
var.swinging = false
end if



// 1 = reveals Map
S = Wiimote.One or Wiimote.Home

// 2 = toggle on screen map
A = Wiimote.Two

// up = talk with midna, er. I mean Naki
// C = first person
I = Wiimote.Up or Wiimote.Nunchuk.CButton

// left, right, down = items
j = Wiimote.Left
l = Wiimote.Right
k = Wiimote.Down


// Z = Z-Target
z = Wiimote.Nunchuk.ZButton

// + / - = item screen / status menu (maybe in other order)
if pressed(Wiimote.Minus) and var.Page=0 then
press(S)
wait 100ms
release(S)
wait 2 seconds
press Z
wait 100ms
release Z
var.Page=1
Say("Select Item")
else if pressed(Wiimote.Minus) and var.Page=1 then
press(D)
wait 100ms
release(D)
wait 1 second
press(S)
wait 100ms
release(S)
var.Page=0
else if pressed(Wiimote.Minus) and var.Page=2 then
press(Z)
wait 100ms
release(Z)
var.Page=1
Say("Select Item")
else if pressed(Wiimote.Minus) and var.Page=3 then
press(Z)
wait 100ms
release(Z)
wait 1 second
press(Z)
wait 100ms
release(Z)
var.Page=1
Say("Select Item")
else if pressed(Wiimote.Minus) and var.Page=4 then
press(D)
wait 100ms
release(D)
var.Page=1
Say("Select Item")
end if
if pressed(Wiimote.Plus) and var.Page=0 then
press(S)
wait 100ms
release(S)
wait 2 seconds
press D
wait 100ms
release D
var.Page=3
Say("Quest Status")
else if pressed(Wiimote.Plus) and var.Page=1 then
press(D)
wait 100ms
release(D)
wait 1 second
press(D)
wait 100ms
release(D)
var.Page=3
Say("Quest Status")
else if pressed(Wiimote.Minus) and var.Page=2 then
press(D)
wait 100ms
release(D)
var.Page=3
Say("Quest Status")
else if pressed(Wiimote.Plus) and var.Page=3 then
press(Z)
wait 100ms
release(Z)
wait 1 second
press(S)
wait 100ms
release(S)
var.Page=0
else if pressed(Wiimote.Plus) and var.Page=4 then
press(Z)
wait 100ms
release(Z)
var.Page=3
Say("Quest Status")
end if
C and wiimote.Rumble = (wiimote.RawForceX >= 15)
// Find pointer coordinates 1024x768
var.IRCount = 1
if var.IRCount = 1 then
if wiimote.dot1vis then
Var.IRx = (1023-wiimote.dot1x)
Var.IRy = Wiimote.dot1y
Var.IRvis = true
else
Var.IRvis = false
end if
else
if wiimote.dot1vis and wiimote.dot2vis then
Var.IRx = 1023-(wiimote.dot1x+wiimote.dot2x)/2
Var.IRy = (Wiimote.dot1y+Wiimote.dot2y)/2
Var.IRvis = true
else
Var.IRvis = false
end if
end if

// Change in pointer position is mapped to "IR Joystick"
var.IRJoyX = MapRange(Smooth(Delta(Var.IRx),2), -20,20, -1,1)
var.IRJoyY = -MapRange(Smooth(Delta(Var.IRy),2), -20,20, -1,1)

// Keep holding "IR Joystick" when aiming with pointer off the screen
if var.IRvis then
Var.Above = Var.IRy < 60
Var.Below = Var.IRy > 710
Var.ToLeft = Var.IRx < 60
Var.ToRight = Var.IRx > 960
else
if var.Above then
var.IRJoyY = 1
else if var.Below then
var.IRJoyY = -1
end if
if var.ToLeft then
var.IRJoyX = -1
else if var.ToRight then
var.IRJoyX = 1
end if
end if

// Aim when shooting, in first person, or crouching and blocking
if Pressed(Wiimote.Nunchuk.CButton or Wiimote.Classic.ZL) and (not Var.Menu) and (not Var.MenuWaiting) and (not var.FirstPerson) then
Say("First Person")
Var.FirstPerson = true
elseif (var.FirstPerson) and Pressed(Wiimote.Nunchuk.CButton or Wiimote.Classic.ZL or X or C or S or Home or End or PageUp or PageDown) and (not Var.Menu) and (not Var.MenuWaiting) then
Say("Third Person")
Var.FirstPerson = false
end if

var.Aiming = ((Wiimote.B and not var.Ocarina) or var.FirstPerson or (var.Shield and (not var.ZTargetting))) and (not var.HomeMenu)

// analog = movement
if not var.Swinging then
// When aiming, add IR Joystick to real joystick
// If trying to set it to more than 1, keep track of the leftovers
// and add them on next time.
if var.Aiming then
var.jx = Wiimote.Nunchuk.JoyX + Wiimote.Classic.Joy1X + var.IRJoyX + var.LeftOverX
var.LeftOverX = 0
if var.jx > 1 then var.LeftOverX = Var.jx - 1
if var.jx < -1 then var.LeftOverX = Var.jx + 1
var.jy = Wiimote.Nunchuk.JoyY + Wiimote.Classic.Joy1Y + var.IRJoyY + var.LeftOverY
var.LeftOverY = 0
if var.jy > 1 then var.LeftOverY = Var.jy - 1
if var.jy < -1 then var.LeftOverY = Var.jy + 1
debug = var.LeftOverX+', '+var.LeftOverY
ppjoy.analog0 = EnsureRange(var.jx, -1, 1)
ppjoy.analog1 = EnsureRange(var.jy, -1, 1)
else
// When not aiming, just use joystick
ppjoy.analog0 = EnsureRange(Wiimote.Nunchuk.JoyX+Wiimote.Classic.Joy1X, -1, 1)
ppjoy.analog1 = EnsureRange(Wiimote.Nunchuk.JoyY+Wiimote.Classic.Joy1Y, -1, 1)
// and remember direction Link is facing
if abs(Wiimote.Nunchuk.JoyX)>0.1 or abs(Wiimote.Nunchuk.JoyY)>0.1 then
var.JoyDirX = Wiimote.Nunchuk.JoyX
var.JoyDirY = Wiimote.Nunchuk.JoyY
end if
end if
end if

// Nunchuk throw = Throw
if ((Wiimote.Classic.Up) or (abs(wiimote.Nunchuk.RelAccY) >= 15 and abs(Wiimote.Nunchuk.RelAccX) < abs(Wiimote.Nunchuk.RelAccY)*0.6)) and (not var.swinging) and (not var.Menu) and (not var.MenuWaiting) then
var.swinging = true
press(X)
wait 100 ms
release(X)
wait 100 ms
var.swinging = false
end if





Note: If the IR aiming isn't working when you go into aiming mode, try pressing C on the nunchuk. This basically just layers aiming and regular first-person mode.
Back to top
View user's profile Send private message
shaddowlink



Joined: 16 Jul 2008
Posts: 1

Digg It
PostPosted: Wed Jul 16, 2008 8:30 pm    Post subject:

Mh this script don#t works for me Embarassed

Maybe I do something wrong ?!
I got my Bluetooth Stick today and can't waiting to Play games with the wiimote.

Other little scripts worked fine for me.

But this script doesn't work at all !
My sensor bar is placed under my Monitor and my Wii is Turned on.
... do i have to change anything at the Projekt 64 or at PPjoy ??? or maybe at GLovepie??? I can use nunchuck or a Classic Controller.


For exampe this script Really Made it:
Code:
//Controls for Zelda: Ocarina of Time with nunchuck
//Written by Kunal Khiyani(based on vkapadia script)
//
//
//Set your emulator to these values:
//Analog Stick = Up, Down, Left, and Right Arrow Keys
//Start = S
//Z-Button = z
//R-Button = d
//A-Button = x
//B-Button = c
//L-Button = a
//C-Up = I
//C-Down = k
//C-Left = j
//C-Right = l
//Controls are as follows:
//D-Pad = Analog Stick
//A-Button = A-Button
//Minus = Left (L)
//Plus = Right (R)
//Home = C-Up
//One = C-Left
//Two = C-Right
//Shake Wiimote = B-Button
//A and B = Start
//B= Z button

Right = 1 > Wiimote1.Nunchuk.JoyX > 0.5
Left = -1 < Wiimote1.Nunchuk.JoyX < -0.5
down = 1 > Wiimote1.Nunchuk.JoyY > 0.5
up = -1 < Wiimote1.Nunchuk.JoyY < -0.5

S = wiimote.A and wiimote.B
Z = wiimote.B
D = wiimote.Plus
A = wiimote.minus
i = Wiimote.Up
j = Wiimote.Left
l = Wiimote.Right
k = Wiimote.Down
x = Wiimote.A
c and wiimote.Rumble = (wiimote.RawForceX >= 15)



but it is really not the same feeling like playing Twightlight princess

Maybe someone Can Help me.

Sry for my bad english i'm German
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
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 6 of 7

 
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