Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Neptune_Imaging on March 30, 2012, 04:41:32 PM

Title: [SOLVED] No Response to Inputs
Post by: Neptune_Imaging on March 30, 2012, 04:41:32 PM
Hey guys, posted this in the Unity forums, and decided to move it here (first post btw)... I am working on a project where I need to set up my inputs (Using Playmaker) and as a test I set up my character to move with the Left and Right Arrow Keys... strangely when I go to test the game, and I press the arrow keys, nothing happens whatsoever. I have had to reset the input manager SEVERAL times, to make sure I wasn't losing my marbles. Even in playmaker, the controls do not respond to my inputs WHATSOEVER.

And this kind of hinders the production of my game a bit, so I am wondering if anyone else has run into this issue and what is a possible fix. In the play mode, the animations do work when I preview them, it is just the inputs don't respond... thank you.

Here is a screenshot of the state I am using:

Strange that my inputs are not responding...

(http://dl.dropbox.com/u/158971/Playmaker%20Basic%20Motion%20FSM.png)
Title: Re: No Response to Inputs
Post by: jeanfabre on March 30, 2012, 05:04:33 PM
Hi,

 can you make a screenshot of the actions contains in the state?

 double check also that you don't get an error ( maybe you just mistyped the input name)

 Bye,

 Jean
Title: Re: No Response to Inputs
Post by: Neptune_Imaging on March 30, 2012, 05:31:07 PM
I didn't get an error, and upon further testing, I got my inputs to work in the webplayer... :) check it out

http://dl.dropbox.com/u/158971/Control%20Test/WebPlayer/WebPlayer.html
Title: Re: No Response to Inputs
Post by: Alex Chouls on March 30, 2012, 05:32:16 PM
On the Unity Forum you mentioned you were using Get Key Down. While we should still figure out why that's not working, it's generally better to use named Axis setup in the Input Manager. You have a lot more control over the behavior and support for keys, mouse and game controllers.

For example, this case looks tailor made for Axis Event:
https://hutonggames.fogbugz.com/default.asp?W681



Title: Re: No Response to Inputs
Post by: Neptune_Imaging on March 30, 2012, 05:43:55 PM
I have to setup my input manager to support the controllers... but I am glad the arrow keys work when the game is built... is there a reason why the controls don't work when in play mode in the editor?
Title: Re: No Response to Inputs
Post by: Alex Chouls on March 30, 2012, 05:51:04 PM
Not sure... what system are you using?

The default "Horizontal" and "Vertical" axis should let you test with WASD, cursor keys, and most controllers...

Checked out your webplayer - very cool! Great looking model and animation! Can't wait to see more!
Title: Re: No Response to Inputs
Post by: Neptune_Imaging on March 30, 2012, 05:53:33 PM
I am using the Xbox360 remote...and I am building my game on a 64-bit system... the jump is not looped for god knows why, and also the keys don't work in the standalone build :(

And there is more to come for these characters


And how would I use these axis events? I could just set up each event, and link them to the proper animations?
Title: Re: No Response to Inputs
Post by: Alex Chouls on March 30, 2012, 06:04:35 PM
Yeah, just replace the Get Key Down actions with Axis Event and hook up the events to send.

I wonder if there are some Unity input bugs on 64 bit systems... Get Key Down etc. just wrap Unity commands... I'll do a little investigating...
Title: Re: No Response to Inputs
Post by: Neptune_Imaging on March 30, 2012, 06:07:32 PM
Thanks man... in the meantime, I will keep building my controller that will be the basis for all of the characters in my game... i also need to ask if this can handle combo inputs, such as P, P, Forward+Punch? :)

And for the horizontal, I am aware I may have to use a float for horizontal negative, etc.
Title: Re: No Response to Inputs
Post by: justifun on March 30, 2012, 07:19:47 PM
I've been playing around in my head a good system for setting up a combo attacking system and its proved quite complicated so far.

The biggest hurdle i've found is dealing with the animations playing and whether or not you want them to get cut off early or forced to play entirely before going to the next attack animation while still being able to keep it feeling responsive to the player.

My first idea was to create a branching tree like structure of FSM's
each branch would be a combo possibility with a get key down action that transitions you to the next state
but if you press the button while a animation is playing, it will abruptly stop the animation and goto the next one too quickly.  Blending the animations doesn't work well with really short animations.

If you put some sort of wait in there to allow the animation to fully complete before switching then you run into situations where the player can hit the punch button  10 times before the first punch completes then it feels unresponsive.

anywhoo, still working on that, but hopefully someone else might have some ideas about it.
Title: Re: No Response to Inputs
Post by: Neptune_Imaging on March 30, 2012, 07:23:23 PM
UPDATE: I configured my input manager to take advantage of the DPad and nothing works :( I also used Axis Event to set it all up...
Title: Re: No Response to Inputs
Post by: Alex Chouls on March 30, 2012, 07:27:59 PM
Do you have the default "Horizontal" and "Vertical" axis?
Title: Re: No Response to Inputs
Post by: Neptune_Imaging on March 30, 2012, 10:26:46 PM
No... I changed it so that it would work on the 6th Axis... I could go back and set everything back to the default... using the XBox360 control pad with the Microsoft drivers
Title: Re: No Response to Inputs
Post by: Alex Chouls on March 31, 2012, 12:00:14 AM
Have you seen this:
http://answers.unity3d.com/questions/8094/what-are-all-the-joystick-buttons-for-an-xbox-360p.html

Not sure if that helps...
Title: Re: No Response to Inputs
Post by: Neptune_Imaging on March 31, 2012, 12:14:33 AM
tried it...didn't work :(
Title: Re: No Response to Inputs
Post by: Neptune_Imaging on March 31, 2012, 12:50:09 AM
UPDATE: Ran my game in standalone mode, and when i went to check the input, the axis were not correct although it is set properly in the input manager.... I think the inputs are bugged big time...

I.E.: Horizontal inputs are set to 6th axis, but it is the 5th axis in Stand alone mode... very weird
Title: Re: No Response to Inputs [SOLVED]
Post by: Neptune_Imaging on April 04, 2012, 09:30:42 PM
Hey I solved the input issue...and it was something simple as resetting the registry that controls the inputs... :)
Title: Re: No Response to Inputs [SOLVED]
Post by: devotid on June 23, 2012, 02:22:53 PM
if you downloaded some "other unity games" you may have had to "change" your registry....... some Direct Input controllers have to do this to detect the axis's correctly.

The game usually comes with an .exe to return the reg to normal.....is that what you found and used to fix your problem?

just curious, as i am about to release a game with the "reg" hack in place and was thinking about starting to make a complete new controller callibration system with playmaker to avoid having my customers use the "hack".....

Thanks.

Kevin