[GCV/GPC] Apex Legends CV Anti-Recoil
Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision
Flashiex wrote:i got everything to work, but it keeps saying 'Weapon undetected'. Anyone that can help me out? :(
Please post a screenshot of the Computer Vision panel running the GCV script in the game, so we can check what may be causing the detection not to work.
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision
Opioids wrote:This is quite amazing.
Computer Vision will change the game as we know it.
I tried both using XIM -> T2 and Mouse -> T2 -> XIM
Passing through the raw mouse input worked a lot better. Micro movements with XIM -> T2 for some reason were almost impossible. Not sure why.
Also Elgato HD60 Pro works amazing with computer vision. No latency so the recoil adjustments kick in instantaneously. I'd recommend it to anyone else trying this.
Thank you Opioids for the feedback and support. Appreciated.
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision
Chaka wrote:I've noticed that it seems to be a lot of work to capture the guns for different games for different recoils. I have free time at the moment (as do most of us). Is it possible for me to help out and capture the data for Modern Warfare so that you can turn it into a script? Id be more than happy to try and help out.
Yes, the process is very time consuming. I am slowing doing Modern Warfare and will release the GCV Script for it as soon as possible.
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision
Including me, there are 3 people that receive rapidfire but no antirecoil.
My intention is to make my setup 100% replicable. If anyone with a working raw mouse movement antirecoil can then compare settings, that would be perfect.
To test without capture card, XIM, or Apex Legends:
https://imgur.com/a/Bod4hh2
1. Open one of my images in full screen or set as desktop background.
2. Use display capture in Gtuner to record the display.
3. Set T2 output to "USB Multi Interface HID"
4. Plug T2 output calbe into a PC
5. Run GPC script on slot (mouse should pass through T2 and move cursor)
6. Click and hold mouse. If AR is working, the cursor should move.
Exact .py settings:
Exact GPC code (from page 27):
GPC code in slot 1:
*Note:This is only the script. No input translator on the slot. Would we ever have a translator when using XIM? Does DATA_SET = 2 requires a T2 mouse translator?
Titan Settings:
Mice tried. All 1000hz:
MM710 @ 800dpi, 3200 dpi, 32000dpi
G502
G403
Deathadder
Physical Setup:
PC(Gtuner) -> T2 programming port and then as follows:
Mouse -> T2 (USB Multi Interface HID output, Disable Joystick from HID output)-> XIM(has controller) -> Console
My intention is to make my setup 100% replicable. If anyone with a working raw mouse movement antirecoil can then compare settings, that would be perfect.
To test without capture card, XIM, or Apex Legends:
https://imgur.com/a/Bod4hh2
1. Open one of my images in full screen or set as desktop background.
2. Use display capture in Gtuner to record the display.
3. Set T2 output to "USB Multi Interface HID"
4. Plug T2 output calbe into a PC
5. Run GPC script on slot (mouse should pass through T2 and move cursor)
6. Click and hold mouse. If AR is working, the cursor should move.
Exact .py settings:
- Code: Select all
# The anti-recoil computed values directly depends on the gaming system and
# game sensitivity configuration. !IMPORTANT! Go to FIRING RANGE and adjust
# the horizontal and vertical global scaling below for the best results to
# your gaming system and in-game sensitivity.
GLOBAL_HSCALE = 1.00
GLOBAL_VSCALE = 1.00
# Set DATA_SET = 1 to compute anti-recoil values for for regular controllers
# or XIM. If using mouse and the official keyboard and mouse Input Translator
# for Apex Legends, configure DATA_SET = 2 to compute the anti-recoil values
# for mouse raw input.
DATA_SET = 2
Exact GPC code (from page 27):
- Code: Select all
#include <keyboard.gph>
#include <mouse.gph>
init {
keymapping();
mousemapping();
}
main {
key_passthru();
mouse_passthru();
static bool rapidfire;
if(gcv_ready()) {
switch(gcv_read(0)) {
case 0: {
rapidfire = gcv_read(1);
} break;
case 2: {
int16 hoffset, voffset;
gcv_read(1, &hoffset);
gcv_read(3, &voffset);
mxyconverter_hoffset(hoffset);
mxyconverter_voffset(voffset);
} break;
}
}
static bool mbutton_1;
if(mouse_status(MBUTTON_1)) {
if(rapidfire) {
combo_run(Rapidfire);
}
mbutton_1 = TRUE;
} else if(mbutton_1) {
mxyconverter_hoffset(0);
mxyconverter_voffset(0);
combo_stop(Rapidfire);
mbutton_1 = FALSE;
}
}
combo Rapidfire {
mouse_set(MBUTTON_1, 1);
wait(24);
mouse_set(MBUTTON_1, 0);
wait(16);
}
GPC code in slot 1:
*Note:This is only the script. No input translator on the slot. Would we ever have a translator when using XIM? Does DATA_SET = 2 requires a T2 mouse translator?
Titan Settings:
Mice tried. All 1000hz:
MM710 @ 800dpi, 3200 dpi, 32000dpi
G502
G403
Deathadder
Physical Setup:
PC(Gtuner) -> T2 programming port and then as follows:
Mouse -> T2 (USB Multi Interface HID output, Disable Joystick from HID output)-> XIM(has controller) -> Console
-
ungabunga9 - First Sergeant
- Posts: 61
- Joined: Thu Jun 01, 2017 1:37 pm
Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision
J2Kbr wrote:Chaka wrote:I've noticed that it seems to be a lot of work to capture the guns for different games for different recoils. I have free time at the moment (as do most of us). Is it possible for me to help out and capture the data for Modern Warfare so that you can turn it into a script? Id be more than happy to try and help out.
Yes, the process is very time consuming. I am slowing doing Modern Warfare and will release the GCV Script for it as soon as possible.
Ok not a problem, if you need help with capturing the data and this can be done without having to share any code you don't want public i'm happy to help.
-
Chaka - Master Sergeant
- Posts: 36
- Joined: Tue Feb 05, 2019 4:18 am
Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision
ungabunga9 wrote:Physical Setup:
PC(Gtuner) -> T2 programming port and then as follows:
Mouse -> T2 (USB Multi Interface HID output, Disable Joystick from HID output)-> XIM(has controller) -> Console
I can't work out why you have the xim set up going straight into the console? You want it to be XIM(kb/m + controller)-->TITAN2(XIM Port A)-->CONSOLE
this would allow you to have passthrough working, the XIM controls mouse and keyboard with an ST and the titan reads the mouse inputs. To get it working the way you've got it set up you would need an input translator installed and your TITAN would be controlling mouse input/output.
You would then want to change your output protocol to usb automatic to run it the way i have suggested.
As we discussed if you run it the way myself and others have been running it you will get minor spikes in your cursor affecting your anti recoil and pulling it down/sideways (mostly down).
Jeff has replied and said he's aware of the issue as has @ME and @Buffy. They will fix it when they get their head around how exactly to solve the issue. From what i've gathered they know why it is doing it but haven't got a 100% solution working yet.
All we need is some patience and understanding as we all know that this is extremely technical and half (or more) of us have little coding expertise.
-
Chaka - Master Sergeant
- Posts: 36
- Joined: Tue Feb 05, 2019 4:18 am
Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision
Chaka wrote:I can't work out why you have the xim set up going straight into the console? You want it to be XIM(kb/m + controller)-->TITAN2(XIM Port A)-->CONSOLE
I prefer to have it set up the way that you are describing but Gjin Yuko and Opioids said that they have better results with raw mouse movements. I have used raw mouse movements for other antirecoil scripts and it alleviates the issues that I have been experiencing here. (Extreme downward movements and dragging feeling when aiming at an enemy)
-
ungabunga9 - First Sergeant
- Posts: 61
- Joined: Thu Jun 01, 2017 1:37 pm
Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision
ungabunga9 wrote:Chaka wrote:I can't work out why you have the xim set up going straight into the console? You want it to be XIM(kb/m + controller)-->TITAN2(XIM Port A)-->CONSOLE
I prefer to have it set up the way that you are describing but Gjin Yuko and Opioids said that they have better results with raw mouse movements. I have used raw mouse movements for other antirecoil scripts and it alleviates the issues that I have been experiencing here. (Extreme downward movements and dragging feeling when aiming at an enemy)
Yeah i prefer the way i describe. They're using input translators, so mouse is controlled by titan two. Sorta defeats the purpose of having the XIM as well as titan. They're designed to work together
-
Chaka - Master Sergeant
- Posts: 36
- Joined: Tue Feb 05, 2019 4:18 am
Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision
I would like to see J2Kbr, Gjin Yuko, or Opioids confirm that a mouse translator is being used for Mouse>T2>XIM. That would ease my mind lol..
-
ungabunga9 - First Sergeant
- Posts: 61
- Joined: Thu Jun 01, 2017 1:37 pm
Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision
If you need to use the Xim in your setup.
Then note,
only the setup displayed on the left will work with theses GVC scripts.
The one on the right WILL NOT WORK. Don't waste your time.
Then note,
only the setup displayed on the left will work with theses GVC scripts.
The one on the right WILL NOT WORK. Don't waste your time.
-
DontAtMe - Captain
- Posts: 502
- Joined: Tue Oct 02, 2018 4:49 am
Return to Gtuner Computer Vision
Who is online
Users browsing this forum: No registered users and 70 guests