 |
WiiLi.org a new revolution
|
| View previous topic :: View next topic |
| Author |
Message |
wrathofzhan
Joined: 26 Dec 2007 Posts: 19
Digg It |
Posted: Wed Jun 04, 2008 1:35 am Post subject: PPJoy does not work with wiimote nunchuk joystick |
|
|
I am currently using Thagerty's joystick code for Assassin's Creed
http://www.wiili.org/forum/assassins-creed-script-great-fun-t3846.html
Even though I have put in 4 axes and 20 buttons for mapping, when I label the axes as analog.0 to analog.4, and use scan to detect movement, when I move the joystick forward, nothing happens, the scan does not detect anything. MY nunchuk works well enough, only analog joystick movements aren't detected. When I go into Assassin's creed, my guy just turns around in circles. The same thing is happening for other games using ppjoy as well. What is wrong with my nunchuk joystick? |
|
| Back to top |
|
 |
wrathofzhan
Joined: 26 Dec 2007 Posts: 19
Digg It |
Posted: Wed Jun 04, 2008 2:01 am Post subject: |
|
|
| by the way, my computer has 32 vista. |
|
| Back to top |
|
 |
jeromote

Joined: 19 Mar 2008 Posts: 53
Digg It |
Posted: Wed Jun 04, 2008 7:46 pm Post subject: |
|
|
for a good script assassin's creed (ppjoy) dl in wiidows.fr
you can put lines of commands that you use, if you want, for help.
_________________
and my little advertising
|
|
| Back to top |
|
 |
wrathofzhan
Joined: 26 Dec 2007 Posts: 19
Digg It |
Posted: Wed Jun 04, 2008 10:31 pm Post subject: |
|
|
Thanks jeromote, but I'd rather not use your scrutable self promoting ads. I've cleaned up my script to this.
/*ASSASSIN's CREED - PPJOY - SCRIPT BY TERRY HAGERTY
Apr 11 - 08 V1.2
To play you need to have PPJOY installed with at least 4 axis's and 20 buttons.
The reason I chose to use PPJOY is because the game moves differently with the
mouse and keyboard. Also you get Analogue control over Movement!
Run this script and launch Assassin's Creed. Choose Options, then
customise controls. Select your PPJOY Virtual Joystick as the Controller.
Then assign each of the controls the same as below:
Move Forward/Back/Left/Right = Nunchuk Analogue Stick
Feet (GREEN) = Wiimote A
Armed Hand (BLUE) = wiimote.left
Open Hand (RED) = wiimote.right
Head (YELLOW) = wiimote.up
High Profile = Wiimote B
Center Camera = Press and Release Nunchuk Z Button
Target Lock = wiimote.minus
Action Camera = wiimote.plus
Map = wiimote.home
Esc/pause = Wiimote One
With Nunchuk Z Button held down:
Pan Camera up = Wiimote.Up
Pan Camera down = Wiimote.Down
Pan Camera left = Wiimote.Left
Pan Camera right = Wiimote.Right
Make sure you release the Wiimote Up/Down/Left/Right button before releasing
the Z Button, or the Camera will continue to spin. If this happens, just push
and release the Z button again.
With Nunchuk C Button held down:
Hidden Blade = Wiimote.Up
Fists = Wiimote.Down
Short Blade / Throwing Knives = Wiimote.Left
Sword = Wiimote.Right
Now you are ready to play!
Motion Gestures:
Swing Wii Remote in any direction for Armed Hand Attack (BLUE). This is for
fighting with your weapons.
If you are in a fight, you can hold down the B button and swing the Wii remote
in any direction and it will do a counter attack. While in the middle of your
counter-attack, let go of B and swing to sometimes do more damage to your
opponent.
Swing the Nunchuk in any direction for Open Hand (RED). This is for Dropping
down, Gentle Push, etc...
Hold down the B button and Flick the Nunchuk (Forward,back,left,right) to grab
and throw someone. Don't move the Nunchuk Analogue Stick while doing this as the
direction you Flick the Nunchuk will determine automatically what direction the
person gets thrown.
However, if you are in a fight, then the Nunchuk flick will just grab someone
and throw them forward.
That's it! Have Fun!!!
*/
//This varible controlls the ammount of force you need to use when moving the
//wiimote or nunchuk, make it lower if you want to use less force when moving the
//wiimote or nunchuk
var.ForceSensitivity=15
PPJoy.Analog2=wiimote.Nunchuk.JoyX
PPJoy.Analog3=wiimote.Nunchuk.JoyY
var.grabright= (Wiimote.nunchuk.RawAccx > var.ForceSensitivity, Wiimote.nunchuk.RawAccx < -var.ForceSensitivity) and wiimote.b=true
var.grableft = (Wiimote.nunchuk.RawAccx < -var.ForceSensitivity, Wiimote.nunchuk.RawAccx > var.ForceSensitivity) and wiimote.b=true
var.grabback =(Wiimote.nunchuk.RawAccy > var.ForceSensitivity, Wiimote.nunchuk.RawAccy < -var.ForceSensitivity) and wiimote.b=true
ppjoy.digital15=(Wiimote.RawAccX > var.ForceSensitivity or Wiimote.RawAccX < -var.ForceSensitivity) or (Wiimote.RawAccy > var.ForceSensitivity or Wiimote.RawAccy < -var.ForceSensitivity)
ppjoy.digital3=(Wiimote.nunchuk.RawAccx > var.ForceSensitivity or Wiimote.nunchuk.RawAccx < -var.ForceSensitivity) or (Wiimote.nunchuk.RawAccy > var.ForceSensitivity or Wiimote.nunchuk.RawAccy < -var.ForceSensitivity)
ppjoy.digital1=wiimote.b
ppjoy.digital2=wiimote.a
ppjoy.digital4=wiimote.minus
ppjoy.digital6=wiimote.plus
ppjoy.digital7=wiimote.home
ppjoy.digital8=wiimote.one
if Wiimote.Nunchuk.cbutton =false and Wiimote.nunchuk.zbutton=false then
ppjoy.digital9=wiimote.up
ppjoy.digital15=wiimote.left or (Wiimote.RawAccX > var.ForceSensitivity or Wiimote.RawAccX < -var.ForceSensitivity) or (Wiimote.RawAccy > var.ForceSensitivity or Wiimote.RawAccy < -var.ForceSensitivity)
ppjoy.digital1=wiimote.b
ppjoy.digital2=wiimote.a
ppjoy.digital3=wiimote.right or(Wiimote.nunchuk.RawAccx > var.ForceSensitivity or Wiimote.nunchuk.RawAccx < -var.ForceSensitivity) or (Wiimote.nunchuk.RawAccy > var.ForceSensitivity or Wiimote.nunchuk.RawAccy < -var.ForceSensitivity)
endif
//Grab left
if var.grableft=true then
ppjoy.digital3=true
wait 50 ms
PPJoy.Analog2=-1
wait 350ms
ppjoy.digital3=false
PPJoy.Analog2=false
endif
//Grab right
if var.grabright=true then
ppjoy.digital3=true
wait 50 ms
PPJoy.Analog2=1
wait 350ms
ppjoy.digital3=false
PPJoy.Analog2=false
endif
//Grab Back
if var.grabback=true then
ppjoy.digital3=true
wait 50 ms
PPJoy.Analog3=1
wait 350ms
ppjoy.digital3=false
PPJoy.Analog3=false
endif
//Weapons
if Wiimote.Nunchuk.cbutton and Wiimote.nunchuk.zbutton=false then
ppjoy.digital11 = Wiimote.Up
ppjoy.digital12 = Wiimote.Down
ppjoy.digital13 = Wiimote.Left
ppjoy.digital14 = Wiimote.Right
endif
// Hold Nunchuk Z Button for full aim and movement
// Press and Release Z Button for Center Camera
if var.camera and Wiimote.nunchuk.zbutton=true then
ppjoy.digital17 = Wiimote.Up
ppjoy.digital18 = Wiimote.Down
ppjoy.digital19 = Wiimote.Left
ppjoy.digital20 = Wiimote.Right
endif
if var.camera=false then
ppjoy.digital5 = Released(Wiimote.nunchuk.zbutton)
endif
var.camera = HeldDown(Wiimote.nunchuk.zbutton, 300 ms)
However, the axers for the joystick control is horrible. I can hardly walk my character without having him stagger like a stupid drunk. Can someone provide a solution? |
|
| Back to top |
|
 |
jeromote

Joined: 19 Mar 2008 Posts: 53
Digg It |
Posted: Thu Jun 05, 2008 12:46 am Post subject: |
|
|
my assassin's creed script does not need configuration options in the game, it works directly as a joystick, moreover, it is only 32 lines.
_________________
and my little advertising
|
|
| Back to top |
|
 |
thagerty
Joined: 01 Feb 2007 Posts: 34
Digg It |
Posted: Thu Jun 05, 2008 4:34 pm Post subject: |
|
|
No it doesn't work as a joystick...there is no possible way to get analogue movement with your scripts. You HAVE to use PPJOY for that...
The controls are also different than when set for mouse and keyboard.
And for the future, don't advertise your scripts in my Posts thank you...
As for the problem....
I'm not totaly sure, but i think there may be some bugs or issues with ppjoy in vista. Make sure you have the newest version of PPJOY.
Try running the script, then stopping it, then running it again. then plug your Nunchuk in after that. If you have the stick moving while plugging it in, it will mess up the calibration.
Try a different Wii Remote as well.
As, try running the calibration for your ppjoy controller in the Game Controller - Properties - settings tab. |
|
| Back to top |
|
 |
jeromote

Joined: 19 Mar 2008 Posts: 53
Digg It |
Posted: Thu Jun 05, 2008 5:26 pm Post subject: |
|
|
http://www.mediafire.com/?mbjytnguxxn
script assassin's creed ppjoy, just test in xp 32, i think that ppjoy don't work in vista 64, but I'm not sure.
And my ppjoy 0.83.
_________________
|
|
| Back to top |
|
 |
|
|
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
|