XBox 360 plugin update

This is where you talk about Plugins. How they are made and how they work, show examples.

Re: XBox 360 plugin update

Postby eabrust » Sun Apr 28, 2019 12:29 pm

Greolt wrote:Taking a look at the "README" notes.

I am running Win7 32bit UCCNC 1.2109

Readme suggests that SlimDX must be x64

Do I have a problem here?



Hi Greolt,

I should probably clean up those notes a bit...

I compile and test the plugin on 64bit Windows 10, with the SlimDX DOT NET 4.0 X64 package installed.
Out in the shop, I run the plugin on 32bit Windows 7 with the SLimDX DOT NET 2.0 package installed on actual machines.

The easiest way to install is to grab the developer SDK of SlimDX which has an installer to put in both x64 and x86 files.
https://slimdx.org/download.php

As long as the plugin shows up in UCCNC plugin list to be enabled, an acceptable version of SlimDX installed. If SlimDX isn't installed correctly, the plugin will not show in the list.


regards
Eric
CraftyCNC: Plugins for UCCNC (and other neat stuff): http://www.craftycnc.com/plugins-for-uccnc/
eabrust
 
Posts: 348
Joined: Fri Sep 16, 2016 2:32 am
Location: Near Shirland IL, USA

Re: XBox 360 plugin update

Postby 1.21gigawatts » Wed Aug 14, 2019 2:28 pm

The easiest way to install is to grab the developer SDK of SlimDX which has an installer to put in both x64 and x86 files.
https://slimdx.org/download.php

As long as the plugin shows up in UCCNC plugin list to be enabled, an acceptable version of SlimDX installed. If SlimDX isn't installed correctly, the plugin will not show in the list.


The problem I'm having is that slimdx.org appears to be gone. There are various sites with various slimdx downloads available. I have tried several and am, so far, unable to get the plugin to show in the plugins list.

Windows 10 Pro 64-bit Build 1903 UCCNC 1.2049

What to do?
1.21gigawatts
 
Posts: 21
Joined: Mon Jul 29, 2019 12:07 pm

Re: XBox 360 plugin update

Postby eabrust » Thu Aug 15, 2019 1:41 am

1.21gigawatts wrote:
The easiest way to install is to grab the developer SDK of SlimDX which has an installer to put in both x64 and x86 files.
https://slimdx.org/download.php

As long as the plugin shows up in UCCNC plugin list to be enabled, an acceptable version of SlimDX installed. If SlimDX isn't installed correctly, the plugin will not show in the list.


The problem I'm having is that slimdx.org appears to be gone. There are various sites with various slimdx downloads available. I have tried several and am, so far, unable to get the plugin to show in the plugins list.

Windows 10 Pro 64-bit Build 1903 UCCNC 1.2049

What to do?


Hi 1.21,

I think your issue is that you're using the older 'stable' version of UCCNC. Try one of the development versions (1.21xx). I just went back and tried the recent xbox plugin (1.015) in 1.2049, and no it doesn't show. I can't recall if it was a change in version of .NET, or the change to 'ANY CPU' compiling that broke recent plugin versions for the old version of UCCNC (not that it matters, just can't remember).

Development versions of UCCNC here:
http://www.forum.cncdrive.com/viewtopic.php?f=2&t=240&p=16329#p16329

You can install the 'new' version of UCCNC in it's own folder and have both versions of UCCNC available to use/test, fyi.

Other alternative is to get the older versions of the XBox plugin.

PS, thanks for pointing out the SlimDX download servers are no longer available, I wasn't expecting that to happen. As you said, a general search will turn up many places to grab the SDK which has everything needed (x86, x64, runtimes, .Net2.0 & 4.0 files).

Search for file: SlimDX SDK (January 2012).msi

regards
Eric
CraftyCNC: Plugins for UCCNC (and other neat stuff): http://www.craftycnc.com/plugins-for-uccnc/
eabrust
 
Posts: 348
Joined: Fri Sep 16, 2016 2:32 am
Location: Near Shirland IL, USA

Re: XBox 360 plugin update

Postby 1.21gigawatts » Thu Aug 15, 2019 2:32 pm

Thank you, thank you. That (downloading development version of UCCNC) did the trick.
1.21gigawatts
 
Posts: 21
Joined: Mon Jul 29, 2019 12:07 pm

Re: XBox 360 plugin update

Postby eabrust » Thu Jan 02, 2020 1:02 am

Happy New Years all,

Here's an updated version of the XBox360 velocity control plugin. Now that I've learned a bit more on how to use the UC API, I've gone back and made some updates to improve this plugin with regards to controlling axis velocity.

The joystick analog movement controls are all updated in this version, making commands through the API.

Other changes/additions:

Added deadbands for both sticks, both directions
Ability to set maximum velocity on each stick (in units/min) - ie, can run x/y with one max velocity, and z with another on right stick.
Ability to disable sticks independently
Added Ability to have combined velocity for each stick (ie, x & y driven simultaneously at independent velocities).
Added Taskbar notification ICON, can enable/disable jog by double clicking on Icon.
Plugin can now be hidden to taskbar notification ICON (form and taskbar hide). Bring back by right-clicking on the notification icon and using 'show plugin' from menu.

The zip file has one plugin file (xboxcontroller.dll), compiled as 'ANY CPU'. It can run on 32 or 64 bit machines.

I also included both x86 and x64 versions of the slimDX.dll. If you previously used the plugin and had installed slimDX runtime or SDK, you likely don't need it. However, you can now if you choose uninstall the slimDX runtime or SDK, and simply place the proper version of the included slimDX.dll (either x86 OR x64) into the main UCCNC directory you are installing for.

The zip file was just a little to big to upload to the forum, so it can be gotten from here:
http://www.craftycnc.com/download/511/ or found here in downloads list: http://www.craftycnc.com

regards,
Eric
CraftyCNC: Plugins for UCCNC (and other neat stuff): http://www.craftycnc.com/plugins-for-uccnc/
eabrust
 
Posts: 348
Joined: Fri Sep 16, 2016 2:32 am
Location: Near Shirland IL, USA

Re: XBox 360 plugin update

Postby JeffN11 » Sat Jan 11, 2020 1:14 pm

This is great! Got it all installed yesterday. A few questions - Can we have an option to swap the axes on the d-pad as well? My machine control orientation lends itself to X - being up and down. I've swapped the axis on the joysticks but the dpad is now opposite. I would love an option to lock/unlock the controller on a button so I don't have to worry when I set it down. The velocity buttons are awesome. Thanks!
JeffN11
 
Posts: 11
Joined: Tue Feb 12, 2019 10:48 pm

Re: XBox 360 plugin update

Postby eabrust » Sat Jan 11, 2020 1:34 pm

JeffN11 wrote:This is great! Got it all installed yesterday. A few questions - Can we have an option to swap the axes on the d-pad as well? My machine control orientation lends itself to X - being up and down. I've swapped the axis on the joysticks but the dpad is now opposite. I would love an option to lock/unlock the controller on a button so I don't have to worry when I set it down. The velocity buttons are awesome. Thanks!



Hi JeffN11,

Glad you like it and thanks for the feed back.

I'll note selection of axes for dpad in a list for future updates and improvement, in the mean time, just hold your controller sideways :) (just joking of course) :lol:

I could just make the dpad and shoulder buttons completely select-able by button codes (similar to the other buttons), that way if someone wanted the dpad to do something other than step jog, it could. Anyone have any feedback on doing that?

regards,
Eric
CraftyCNC: Plugins for UCCNC (and other neat stuff): http://www.craftycnc.com/plugins-for-uccnc/
eabrust
 
Posts: 348
Joined: Fri Sep 16, 2016 2:32 am
Location: Near Shirland IL, USA

Re: XBox 360 plugin update

Postby andrewsmith » Sat Jan 11, 2020 2:51 pm

Eric
I installed the SlimDX sdk and theplugin files. My UCCNC is ver 1.2111 on Win 10 home 64 bit.
The plugin shows up on the UCCNC plugin window and I can set the button choices, but nothing happens when I try to run my machine. NO jogging, no reset...etc.
The stock plugin works fine, only have one enabled at a time.
Any help or suggestions welcome.

Thanks
Andrew
andrewsmith
 
Posts: 4
Joined: Sat Jan 11, 2020 1:48 am

Re: XBox 360 plugin update

Postby eabrust » Sat Jan 11, 2020 8:19 pm

Hi Andrew,



Once you have the plugin showing up and running, you're past the tricky part of making sure slimDX is found.

Do you see the values change under the 'test buttons out' area to the left? If not, your controller isn't being found.

If it is working and you see the joystick actions working, did you:
Set a 'max velocity' value on the sticks?
Assigned the sticks to an axis?
Enabled the controller w/ the checkbox on the bottom of page (or by double clicking the notification bar icon)?


Please Post a screenshot of how you are setup on the plugin's controls tab and lets get it working. If your control isn't working, what is your controler?

regards
Eric
CraftyCNC: Plugins for UCCNC (and other neat stuff): http://www.craftycnc.com/plugins-for-uccnc/
eabrust
 
Posts: 348
Joined: Fri Sep 16, 2016 2:32 am
Location: Near Shirland IL, USA

Re: XBox 360 plugin update

Postby andrewsmith » Sat Jan 11, 2020 8:37 pm

Hi Eric,

I get no values on the left static or changing. The controller is an Xbox 360 wired.
As I indicated on my original post, the standard UCCNC xbox360 plugin works fine.

Here is my config:
Xbox UCCNC plugin setup.png


Thanks
Andrew
andrewsmith
 
Posts: 4
Joined: Sat Jan 11, 2020 1:48 am

PreviousNext

Return to Plugins

Who is online

Users browsing this forum: No registered users and 7 guests