05-22-2008, 02:29 PM
|
#41 (permalink)
|
|
Jr. Zuner
Join Date: Mar 2008
Posts: 36
|
zune 30 controlls please



|
|
|
05-22-2008, 03:09 PM
|
#42 (permalink)
|
|
Zuner
Join Date: May 2008
Posts: 61
|
How To: Zune 30 Controls.
(sorry for not doing this myself, I don't have a zune right now so if i wrote it i couldn't test it).
In the file \Systems - Managers\InputWrapper.cs line 19 to 30 where it says:
Code:
public struct ThumbStick
{
public float X;
public float Y;
public void Update(Vector2 vector)
{
X = vector.X;
Y = vector.Y;
// ADD your custom logic here
}
}
This is not the ideal situation, however it should let people who have a Zune 30 play the game.
The code should be something along the lines of:
Code:
if (Microsoft.Xna.Framework.Input.GamePad.GetState(PlayerIndex.One).DPad.[Direction] == Microsoft.Xna.Framework.Input.ButtonState.Pressed)
{
X or Y = 1 or -1; depending on which button
}
Hope this helps, sorry I can't impliment it and more importantly test it myself right now. Whoever impliments it (after testing it) feel free to submit a patch to the project.
|
|
|
05-22-2008, 03:27 PM
|
#43 (permalink)
|
|
lost in paradise with rae
Support Team Moderator Expert Zuner
Join Date: Nov 2007
Location: Pennsylvania
Posts: 2,632
|
Well, I just added that, and now i'll test it out. I will let everyone know how it goes.


|
|
|
05-22-2008, 03:39 PM
|
#44 (permalink)
|
|
Support Team Expert Zuner
Join Date: Nov 2007
Posts: 3,027
|
Sweet, zune 30 controls. I'll try and get em in now.
__________________


|
|
|
05-22-2008, 03:58 PM
|
#45 (permalink)
|
|
lost in paradise with rae
Support Team Moderator Expert Zuner
Join Date: Nov 2007
Location: Pennsylvania
Posts: 2,632
|
well, i added all of that code and it works pretty well
I don't see any need to do it differently, I mean it does everything that the d-pad should do. You don't need to worry about sensitivity like you do for touch or anything.
add this to the area stated by Pauliver
Code:
if (Microsoft.Xna.Framework.Input.GamePad.GetState(PlayerIndex.One).DPad.Down == Microsoft.Xna.Framework.Input.ButtonState.Pressed)
{
Y -=1;
}
if (Microsoft.Xna.Framework.Input.GamePad.GetState(PlayerIndex.One).DPad.Up == ButtonState.Pressed)
{
Y += 1;
}
if (Microsoft.Xna.Framework.Input.GamePad.GetState(PlayerIndex.One).DPad.Left == ButtonState.Pressed)
{
X -= 1;
}
if (Microsoft.Xna.Framework.Input.GamePad.GetState(PlayerIndex.One).DPad.Right == ButtonState.Pressed)
{
X += 1;
}


|
|
|
05-22-2008, 04:26 PM
|
#46 (permalink)
|
|
Super Zuner
Join Date: Nov 2007
Location: In a hypocritical world
Posts: 1,663
|
That would be excellent if I knew exactly where to place it.

|
|
|
05-22-2008, 04:28 PM
|
#47 (permalink)
|
|
Experienced Zuner
Join Date: May 2007
Posts: 167
|
Is there any chance of adding AI support?


|
|
|
05-22-2008, 04:36 PM
|
#48 (permalink)
|
|
lost in paradise with rae
Support Team Moderator Expert Zuner
Join Date: Nov 2007
Location: Pennsylvania
Posts: 2,632
|
Quote:
Originally Posted by Tobososlow
That would be excellent if I knew exactly where to place it.
|
Go to the Systems - Managers folder. under that is inputwrapper.cs. Open that
Expand the region PINPUT near the top. under that you'll find the public Struct Thumbstick, and under that is the update, add that code to the update method


|
|
|
05-22-2008, 04:39 PM
|
#49 (permalink)
|
|
Jr. Member
Join Date: Dec 2007
Location: Your house, stalking you!
Posts: 376
|
ima gonna try for 30 gb release

|
|
|
05-22-2008, 04:52 PM
|
#50 (permalink)
|
|
Super Zuner
Join Date: Nov 2007
Location: In a hypocritical world
Posts: 1,663
|
Quote:
Originally Posted by Link9228
Go to the Systems - Managers folder. under that is inputwrapper.cs. Open that
Expand the region PINPUT near the top. under that you'll find the public Struct Thumbstick, and under that is the update, add that code to the update method
|
Thanks! That's what I was looking for.

|
|
|
05-22-2008, 04:53 PM
|
#51 (permalink)
|
|
lost in paradise with rae
Support Team Moderator Expert Zuner
Join Date: Nov 2007
Location: Pennsylvania
Posts: 2,632
|
No problem, glad to help, i would just upload it, but there's little point when it's just like 8 lines of code.


|
|
|
05-22-2008, 05:08 PM
|
#52 (permalink)
|
|
Squirt
Join Date: Jul 2007
Posts: 14
|
Please post the zune 30 package
Having a bit of errors with the code
|
|
|
05-22-2008, 05:17 PM
|
#53 (permalink)
|
|
lost in paradise with rae
Support Team Moderator Expert Zuner
Join Date: Nov 2007
Location: Pennsylvania
Posts: 2,632
|
Ok, this is a link to the z30 fixed controls... and pauliver, let me know when you get an update, i'll remove this link.
http://files.filefront.com/wormsrar/.../fileinfo.html


|
|
|
05-22-2008, 05:19 PM
|
#54 (permalink)
|
|
Experienced Zuner
Join Date: May 2008
Posts: 182
|
Quote:
Originally Posted by mojo
Please post the zune 30 package
Having a bit of errors with the code
|
Me too, I feel like a retard and can't get it to work.

|
|
|
05-22-2008, 05:22 PM
|
#55 (permalink)
|
|
lost in paradise with rae
Support Team Moderator Expert Zuner
Join Date: Nov 2007
Location: Pennsylvania
Posts: 2,632
|
Quote:
Originally Posted by miceylulu
Me too, I feel like a retard and can't get it to work.
|
I posted the link, it's right above your post.


|
|
|
05-22-2008, 05:34 PM
|
#56 (permalink)
|
|
Experienced Zuner
Join Date: May 2008
Posts: 127
|
Whoa, this is a huuuge advancement over the last version. And kudos to Arthur also, the art is really sweet. Amazing game man can't wait until the wireless multiplayer, and all of that other good stuff gets put in
Last edited by DareckT; 05-22-2008 at 05:41 PM.

|
|
|
05-22-2008, 05:42 PM
|
#57 (permalink)
|
|
lost in paradise with rae
Support Team Moderator Expert Zuner
Join Date: Nov 2007
Location: Pennsylvania
Posts: 2,632
|
Me either, this will be a sweet 2 v 2 for when you're bored... i can't wait for the future of zune games... if we could get an rpg with coop that would be so amazingly fun... just 2 people playing an rpg wirelessly....


|
|
|
05-22-2008, 06:17 PM
|
#58 (permalink)
|
|
Squirt
Join Date: Sep 2007
Posts: 18
|
Wow nice game
we just need bot support and an auto end button this game could be a time waster for sure
__________________
|
|
|
05-22-2008, 06:20 PM
|
#59 (permalink)
|
|
Support Team Expert Zuner
Join Date: Nov 2007
Posts: 3,027
|
Wow, this game is a lot funner when you can move!! And btw, we need a way to end turns.
__________________


|
|
|
05-22-2008, 06:35 PM
|
#60 (permalink)
|
|
Experienced Zuner
Join Date: May 2008
Posts: 182
|
Quote:
Originally Posted by Link9228
I posted the link, it's right above your post.
|
Thank you

|
|
|
|