Universal Control Remapper (UCR) - v0.1.22 28th Oct 2018

Post gaming related scripts
Udit
Posts: 9
Joined: 24 Jun 2017, 07:11

Re: Universal Control Remapper (UCR) - v0.1.16 11th Jun 2017

24 Jun 2017, 09:53

Could you add support for https://github.com/dschu012/XOutputPlugin in UCR so that it won't need vjoy?
User avatar
evilC
Posts: 4822
Joined: 27 Feb 2014, 12:30

Re: Universal Control Remapper (UCR) - v0.1.16 11th Jun 2017

25 Jun 2017, 06:39

BOBBIESWAG wrote:hi guys, does anyone know how to enable the scroll bar, i can not get more than 8 button to button commands because there is no scroll bar. If not possible can someone link me to a add-on that will let me?
What, you have no scroll bar at all? I know there are problems with it, but I have not heard of them completely failing to appear.
It's really strange - someone reported some issues with it the other day, so I fired up UCR on my machine and reproduced it no problem, but now when I sat down just now to try and fix it, it is not happening :(
User avatar
evilC
Posts: 4822
Joined: 27 Feb 2014, 12:30

Re: Universal Control Remapper (UCR) - v0.1.16 11th Jun 2017

25 Jun 2017, 06:43

Udit wrote:Could you add support for https://github.com/dschu012/XOutputPlugin in UCR so that it won't need vjoy?
No, as that is in python, and UCR uses AutoHotkey.
Does FreePIE have an API that can be used to control it's XBox emulation? If so, it would be possible to add support for that, but it would be a lot of work.
Udit
Posts: 9
Joined: 24 Jun 2017, 07:11

Re: Universal Control Remapper (UCR) - v0.1.16 11th Jun 2017

25 Jun 2017, 07:13

evilC wrote:
Udit wrote:Could you add support for https://github.com/dschu012/XOutputPlugin in UCR so that it won't need vjoy?
No, as that is in python, and UCR uses AutoHotkey.
Does FreePIE have an API that can be used to control it's XBox emulation? If so, it would be possible to add support for that, but it would be a lot of work.
FreePIE has a gui in which I have to type or load a script to assign the buttons or axis

the script I use is:

Code: Select all

from System import Int16

if starting:
   x = 0
   y = 0
   sensibilidadX = 750
   sensibilidadY = 750

x += mouse.deltaX * sensibilidadX

y -= mouse.deltaY * sensibilidadY

if (x > Int16.MaxValue):
   x = Int16.MaxValue
elif (x < -Int16.MaxValue):
   x = -Int16.MaxValue

if (y > Int16.MaxValue):
   y = Int16.MaxValue
elif (y < 0):
   y = 0
   
xoutput[0].lx = x
xoutput[0].ly = y

if keyboard.getKeyDown(Key.Space):
	xoutput[0].ly = xoutput[0].AxisMin
if keyboard.getKeyDown(Key.Z):
	xoutput[0].ly = xoutput[0].AxisMax

if keyboard.getKeyDown(Key.A):
	xoutput[0].rx = xoutput[0].AxisMin 
if keyboard.getKeyDown(Key.S):
	xoutput[0].ry = xoutput[0].AxisMin
if keyboard.getKeyDown(Key.D):
	xoutput[0].rx = xoutput[0].AxisMax
if keyboard.getKeyDown(Key.W):
	xoutput[0].ry = xoutput[0].AxisMax

if mouse.leftButton:
	xoutput[0].L1 = xoutput[0].TriggerMax
if keyboard.getKeyDown(Key.C):
	xoutput[0].L2 = xoutput[0].TriggerMax
if mouse.middleButton:
	xoutput[0].R2 = xoutput[0].TriggerMax
xoutput[0].R1 = keyboard.getKeyDown(Key.Q)
xoutput[0].R3 = keyboard.getKeyDown(Key.B)
xoutput[0].L3 = keyboard.getKeyDown(Key.X)

xoutput[0].Back = keyboard.getKeyDown(Key.Backspace)
xoutput[0].Start = keyboard.getKeyDown(Key.P)
xoutput[0].Guide = keyboard.getKeyDown(Key.Return)

xoutput[0].A = mouse.rightButton
xoutput[0].B = keyboard.getKeyDown(Key.Escape)
xoutput[0].X = keyboard.getKeyDown(Key.E)
xoutput[0].Y = keyboard.getKeyDown(Key.R)

xoutput[0].Up = keyboard.getKeyDown(Key.UpArrow)
xoutput[0].Down = keyboard.getKeyDown(Key.DownArrow)
xoutput[0].Left = keyboard.getKeyDown(Key.LeftArrow)
xoutput[0].Right = keyboard.getKeyDown(Key.RightArrow)
User avatar
evilC
Posts: 4822
Joined: 27 Feb 2014, 12:30

Re: Universal Control Remapper (UCR) - v0.1.16 11th Jun 2017

25 Jun 2017, 07:25

Right. This is a totally different way to how UCR works, so I am afraid this will never happen.
What could conceivably happen is support for FreePie IO, though this would then mean re-writing your script as a UCR plugin.
Crabi
Posts: 18
Joined: 23 Feb 2017, 19:09

Re: Universal Control Remapper (UCR) - v0.1.16 11th Jun 2017

26 Jun 2017, 09:27

Hi EvilC !

Thanks for your awesome soft :)

I have an issue, UCR seems to not want to install a vXbox controller (no xbox controller in the game controller panel).
I configured all my buttons they work well in UCR, I installed SCPvBus and checked vJoyLog and all seems to be normal !

Code: Select all

vJoy Install Detected. Trying to load vGenInterface.dll...
Checking C:\Program Files\vJoy\x86\vGenInterface.dll... FOUND.
Trying to load.. OK.
Checking driver enabled... OK.
Loaded vJoy DLL version 536
SCPVBus is installed
User avatar
evilC
Posts: 4822
Joined: 27 Feb 2014, 12:30

Re: Universal Control Remapper (UCR) - v0.1.16 11th Jun 2017

26 Jun 2017, 09:48

When you bind an output to vXBox in UCR, at that point you should hear a "USB Notification" sound like you would get if you plugged in a real xbox controller.
An xbox controller should also appear in Joy.cpl at that point.

Is this not happening?
Crabi
Posts: 18
Joined: 23 Feb 2017, 19:09

Re: Universal Control Remapper (UCR) - v0.1.16 11th Jun 2017

26 Jun 2017, 09:59

No notifications ! Where is Joy.cpl ? I didn't found it in UCR and vJoy folders
ficarra1002

Re: Universal Control Remapper (UCR) - v0.1.16 11th Jun 2017

26 Jun 2017, 12:23

"A vJoy install was found in C:\Program Files\vJoy\, but the relevant registry entries were not found.
Please update vJoy to the latest version from

http://vjoystick.sourceforge.net.

Currently the newest version is already installed, and works (Tested it with a program that lets a Vive controller emulate a flight stick, works fine). I've tried uninstalling and reinstalling to no avail.
Crabi
Posts: 18
Joined: 23 Feb 2017, 19:09

Re: Universal Control Remapper (UCR) - v0.1.16 11th Jun 2017

26 Jun 2017, 13:27

evilC wrote:joy.cpl is the windows joystick control panel window

Start->Joy.cpl
Ahh ok, so no nothing appear...

But i configured a vjoy pad instead of a vxbox pad and all work pretty well ^^

Thx for your help man ! :)
User avatar
evilC
Posts: 4822
Joined: 27 Feb 2014, 12:30

Re: Universal Control Remapper (UCR) - v0.1.16 11th Jun 2017

26 Jun 2017, 14:19

It will basically work identically, except that the triggers will report as one merged axis
ie it will not be possible to set the triggers to both be pulled - one or other can be pulled, but not both.
paulu013

Re: Universal Control Remapper (UCR) - v0.1.16 11th Jun 2017

27 Jun 2017, 02:24

I was wondering if it's possible to start UCR with a specific profile loaded on startup? So that I can create a shortcut / batch file that runs a specific game and starts UCR.exe with the corresponding profile.
Also it would be nice if it would be possible to run UCR in a editor and readonly mode. So that when running UCR.exe (in readonly mode) when after playing a game and closing UCR.exe UCR doesn't throw the "save settings" dialog but just exits without saving. Would be nice to have as commandline switches but I have no idea if that's even possible. example: UCR.exe -profile "My Game 1" -mode "readonly"
or maybe just run in readonly mode when a commandline parameter is passed and run in editor mode when no commandline parameter is passed.
Spitfire ZX

Re: Universal Control Remapper (UCR) - v0.1.16 11th Jun 2017

27 Jun 2017, 20:01

Hi, I was directed to this thread earlier, as I was having an issue with UJR, and now the same issue with UCR after switching to that.

I seem to be able to bind an axis as desired, but the functionality of UCR seems to go away when it is not the active window. As an example, if I have a web browser open, and UCR open next to it, when I click on UCR the control input and output axes read correctly and seem to achieve the desired result, however, when I click on the browser, I can no longer see a response from UCR and the axes remain in the centered positions, regardless of control input. The same occurs with any games that I try to use UCR in.

I was just wondering if there is a fix that needs to be applied on my end (which I suspect since UJR did the same), or if this is something that could happen with UCR? Any help you could provide would be greatly appreciated.

Thanks
paulu013

Re: Universal Control Remapper (UCR) - v0.1.16 11th Jun 2017

28 Jun 2017, 06:46

Tried the CLI.ahk in conjunction with UCR and can confirm it still works. Thanks for pointing it out.
Crabi
Posts: 18
Joined: 23 Feb 2017, 19:09

Re: Universal Control Remapper (UCR) - v0.1.16 11th Jun 2017

05 Jul 2017, 19:08

Hi @evilC i comeback to you because i finally need the vxbox driver to work with UCR and i know why this happen but don't know how to fix that.
I use 4 controllers :
- 1 ps3
- 1 ps4
- and 2 xin-mo for my arcade panel

I use SCPToolKit who install vxbox for my sony controllers, without that i can't use them. Then when i try to install another vxbox pad this time with UCR, a conflict happen and my sony pads don't work anymore.

I suppose SCPToolkit use the exact same "driver" !
Do you think there is a solution to use scptoolkit and UCR at the same time ?

Thanks in advance !
Crabi
Posts: 18
Joined: 23 Feb 2017, 19:09

Re: Universal Control Remapper (UCR) - v0.1.16 11th Jun 2017

06 Jul 2017, 09:05

@evilC, alright i'll try to post in his forum ! Thank you :)
User avatar
evilC
Posts: 4822
Joined: 27 Feb 2014, 12:30

Re: Universal Control Remapper (UCR) - v0.1.16 11th Jun 2017

12 Jul 2017, 17:23

For those of you who write UCR plugins or tinker with the UCR source, I have properly packaged up a version of the Scite4Autohotkey editor that includes a number of fixes that make debugging UCR and plugins possible, plus makes the variable browser much, much better.
https://autohotkey.com/boards/viewtopic ... 17#p159117

Remember that to be able to debug a plugin, you must #include it in UCRDebug.ahk, as normally plugins are dynamically loaded, and the debugger does not support debugging dynamically included script.

Return to “Gaming Scripts (v1)”

Who is online

Users browsing this forum: No registered users and 36 guests