XIM Community

XIMCommander.NET w/RDR Weapon select preview  (Read 1055 times)

Offline kodek64

  • MVP
  • *
  • Posts: 502
    • View Profile
XIMCommander.NET w/RDR Weapon select preview
« on: 01:29 PM - 09/14/11 »
Hey guys,

I re-made XIMCommander a few days ago, and I recently modified it for some people who were wanting a way to select weapons on games with wheel-style menus. A prime example of this is Red Dead Redemption. To change weapons, one must hold down the weapon-select key, then push the right stick towards one of the weapons.

I added a mode where one can hold down "Q" (my weapon select key), then move the mouse towards the weapon of choice. I have not added a way to change the key binding yet, and it is not possible to disable this. If this ends up being an issue during the preview, I can spend more time on it, but for now, I'd just like to know if the method itself is good. Once that's taken care of, I can work on the harder stuff.

Give it a try on RDR, and let me know if this is a good idea or not. You can also try to reach me over XBL @ "X4 KodeK" as I'll be around for the next few hours.

NOTES:
You must place a copy of XIMBridge.dll inside the same directory as the executable.
You must have .NET Framework 4 installed.
Please unplug any joysticks that you may have plugged in, as there's some other test code in there that will interfere with the application if it detects a joystick plugged in :)
XIM Sensitivity Calculator!
http://xim3-app.heroku.com/

Offline tuffrabit

  • MVP
  • *
  • Posts: 7354
    • View Profile
    • tuffrabit's Twitch.tv channel
  • Gamertag: TuFFrabit
Re: XIMCommander.NET w/RDR Weapon select preview
« Reply #1 on: 01:36 PM - 09/14/11 »
oh neato... wish i had a transfer cable... and red dead.

bah


XIM4 Anti Aim-assist curve: http://xim4.com/community/index.php?topic=31309.msg400143#msg400143
All you ever wanted to know about headsets and chat for the 360: http://www.xim3.com/community/index.php?topic=16461.0

Offline roads

  • MVP
  • *
  • Posts: 19727
    • View Profile
Re: XIMCommander.NET w/RDR Weapon select preview
« Reply #2 on: 02:36 PM - 09/14/11 »
No cable here, I hope this cable is not a feature killer.No way I will connect a PC again. I bought a XIM3 to get rid of it daamit.
Crusade atm: none

Offline tuffrabit

  • MVP
  • *
  • Posts: 7354
    • View Profile
    • tuffrabit's Twitch.tv channel
  • Gamertag: TuFFrabit
Re: XIMCommander.NET w/RDR Weapon select preview
« Reply #3 on: 02:42 PM - 09/14/11 »
You are going to have to have a cable to use any of the SDK apps.


XIM4 Anti Aim-assist curve: http://xim4.com/community/index.php?topic=31309.msg400143#msg400143
All you ever wanted to know about headsets and chat for the 360: http://www.xim3.com/community/index.php?topic=16461.0

Offline roads

  • MVP
  • *
  • Posts: 19727
    • View Profile
Re: XIMCommander.NET w/RDR Weapon select preview
« Reply #4 on: 03:14 PM - 09/14/11 »
I get that but I dont want to. So i hope this makes it to the mothership.
Crusade atm: none

Offline kodek64

  • MVP
  • *
  • Posts: 502
    • View Profile
Re: XIMCommander.NET w/RDR Weapon select preview
« Reply #5 on: 03:27 PM - 09/14/11 »
I get that but I dont want to. So i hope this makes it to the mothership.

While you probably won't miss any must-have features, you would surely enjoy testing them out before they become official. You'd also be able to voice your opinion on which features would be better to be officially implemented, and which features are too gimmicky for the developers to even bother.
XIM Sensitivity Calculator!
http://xim3-app.heroku.com/

Offline tuffrabit

  • MVP
  • *
  • Posts: 7354
    • View Profile
    • tuffrabit's Twitch.tv channel
  • Gamertag: TuFFrabit
Re: XIMCommander.NET w/RDR Weapon select preview
« Reply #6 on: 03:29 PM - 09/14/11 »
It amuses me to think of how many potential features OBsIV could end up copying from whatever SDK apps pop up over the coming months into the XIM3 firmware.  That would probably make his job easier.  He'd get to see what features the community really poopy their pants over...
...
...
...

Mebe that was OBsIV's plan all along.


XIM4 Anti Aim-assist curve: http://xim4.com/community/index.php?topic=31309.msg400143#msg400143
All you ever wanted to know about headsets and chat for the 360: http://www.xim3.com/community/index.php?topic=16461.0

Offline kodek64

  • MVP
  • *
  • Posts: 502
    • View Profile
Re: XIMCommander.NET w/RDR Weapon select preview
« Reply #7 on: 03:34 PM - 09/14/11 »
It amuses me to think of how many potential features OBsIV could end up copying from whatever SDK apps pop up over the coming months into the XIM3 firmware.  That would probably make his job easier.  He'd get to see what features the community really poopy their pants over...
...
...
...

Mebe that was OBsIV's plan all along.

I'm sure it's part of his plan, and I'm glad about it. It ends up benefiting us all!
XIM Sensitivity Calculator!
http://xim3-app.heroku.com/

Offline tuffrabit

  • MVP
  • *
  • Posts: 7354
    • View Profile
    • tuffrabit's Twitch.tv channel
  • Gamertag: TuFFrabit
Re: XIMCommander.NET w/RDR Weapon select preview
« Reply #8 on: 02:07 PM - 09/21/11 »
kodek... this app would be the ideal place to implement things like the chatpad and walk(half stick throw) features.  Any thoughts?


XIM4 Anti Aim-assist curve: http://xim4.com/community/index.php?topic=31309.msg400143#msg400143
All you ever wanted to know about headsets and chat for the 360: http://www.xim3.com/community/index.php?topic=16461.0

Offline kodek64

  • MVP
  • *
  • Posts: 502
    • View Profile
Re: XIMCommander.NET w/RDR Weapon select preview
« Reply #9 on: 02:11 PM - 09/21/11 »
kodek... this app would be the ideal place to implement things like the chatpad and walk(half stick throw) features.  Any thoughts?

I can see how the walk feature could be implemented, but the chatpad?
XIM Sensitivity Calculator!
http://xim3-app.heroku.com/

Offline tuffrabit

  • MVP
  • *
  • Posts: 7354
    • View Profile
    • tuffrabit's Twitch.tv channel
  • Gamertag: TuFFrabit
Re: XIMCommander.NET w/RDR Weapon select preview
« Reply #10 on: 03:12 PM - 09/21/11 »
kodek... this app would be the ideal place to implement things like the chatpad and walk(half stick throw) features.  Any thoughts?

I can see how the walk feature could be implemented, but the chatpad?

Keep track of where the cursor is and the previous key pressed.  Move the cursor and press "A" per keypress.


XIM4 Anti Aim-assist curve: http://xim4.com/community/index.php?topic=31309.msg400143#msg400143
All you ever wanted to know about headsets and chat for the 360: http://www.xim3.com/community/index.php?topic=16461.0

Offline kodek64

  • MVP
  • *
  • Posts: 502
    • View Profile
Re: XIMCommander.NET w/RDR Weapon select preview
« Reply #11 on: 03:15 PM - 09/21/11 »
kodek... this app would be the ideal place to implement things like the chatpad and walk(half stick throw) features.  Any thoughts?

I can see how the walk feature could be implemented, but the chatpad?

Keep track of where the cursor is and the previous key pressed.  Move the cursor and press "A" per keypress.

But that's going to be incredibly slow! Try going into the keyboard and push the d-pad as fast as you possibly can. I'll take a look at it later and let you know :)

BTW, the biggest problem with XIMCommander (both the original one and my clone) is that the wheel pan is not detected and on top of that, it makes the application lose focus. Do you have any idea how that could be fixed?
XIM Sensitivity Calculator!
http://xim3-app.heroku.com/

Offline tuffrabit

  • MVP
  • *
  • Posts: 7354
    • View Profile
    • tuffrabit's Twitch.tv channel
  • Gamertag: TuFFrabit
Re: XIMCommander.NET w/RDR Weapon select preview
« Reply #12 on: 03:20 PM - 09/21/11 »
kodek... this app would be the ideal place to implement things like the chatpad and walk(half stick throw) features.  Any thoughts?

I can see how the walk feature could be implemented, but the chatpad?

Keep track of where the cursor is and the previous key pressed.  Move the cursor and press "A" per keypress.

But that's going to be incredibly slow! Try going into the keyboard and push the d-pad as fast as you possibly can. I'll take a look at it later and let you know :)

BTW, the biggest problem with XIMCommander (both the original one and my clone) is that the wheel pan is not detected and on top of that, it makes the application lose focus. Do you have any idea how that could be fixed?

How are you capturing input?


XIM4 Anti Aim-assist curve: http://xim4.com/community/index.php?topic=31309.msg400143#msg400143
All you ever wanted to know about headsets and chat for the 360: http://www.xim3.com/community/index.php?topic=16461.0

Offline kodek64

  • MVP
  • *
  • Posts: 502
    • View Profile
Re: XIMCommander.NET w/RDR Weapon select preview
« Reply #13 on: 03:22 PM - 09/21/11 »
How are you capturing input?

DirectInput. Same as OBsIV.

Btw, I just checked out the keyboard on the xbox, and it's not THAT slow. Maybe this is doable. I would have to think of an efficient way to code this, as efficiency would be super important here.

Edit: I made a function that spams the D-Pad as fast as possible, and it's just too slow. It'd be better to interface with the Xbox.com website and send messages like that instead.

I think we should let the team worry about this one.
« Last Edit: 03:39 PM - 09/21/11 by kodek64 »
XIM Sensitivity Calculator!
http://xim3-app.heroku.com/

Offline tuffrabit

  • MVP
  • *
  • Posts: 7354
    • View Profile
    • tuffrabit's Twitch.tv channel
  • Gamertag: TuFFrabit
Re: XIMCommander.NET w/RDR Weapon select preview
« Reply #14 on: 03:40 PM - 09/21/11 »
DirectInput. Same as OBsIV.

Hrm... you using forms or wpf??? Nevermind that shouldn't matter.  You try setting up event handlers on the main form for keypress and mouse moves?  That way the form would always have focus.  It will probably be slow though, i dunno.

Btw, I just checked out the keyboard on the xbox, and it's not THAT slow. Maybe this is doable. I would have to think of an efficient way to code this, as efficiency would be super important here.

Use a dictionary/hashtable.  Key is the char, value is the index of the char on the on screen keyboard.  That way you can do array style item referencing.  Not the most memory efficient, but it will be fast.


XIM4 Anti Aim-assist curve: http://xim4.com/community/index.php?topic=31309.msg400143#msg400143
All you ever wanted to know about headsets and chat for the 360: http://www.xim3.com/community/index.php?topic=16461.0