Returnal: Auto Overload/Reload (Computer Vision)
5 posts
• Page 1 of 1
Returnal: Auto Overload/Reload (Computer Vision)
This Computer Vision script is used to automatically press R2 while reloading to achieve a faster reload or chain shots much faster than normal.
Needs Returnal Helper Script to work in conjunction: https://www.consoletuner.com/greslib/?w2554
Only tested using Playstation Remote Play at 1080p
Setup:
1. Follow the steps to setup Computer Vision for GTuner here: viewtopic.php?f=15&t=15147
2. After you have finished step 1, Create a new Video Input
3. Select Display Capture
4. Click Detect Display and select the display where PS Remote play is running in Full Screen
5. On the Video Input Configuration, modify the values to only capture a part of the crosshair. Something like this:
Try to only capture as small as possible to keep the Computer Vision FPS as much as possible. I usually just use 320 x 50
5.a Video Input Configuration Values Explained
The values on the notation A:B:C:D
A: Starting Absolute X position of the screen
B: Starting Absolute Y position of the screen
C: Width in Pixels
D: Height in Pixels
So let's say you have 2 4K displays (3840 x 2160) and remote play is on the 2nd monitor on your right.
A: 3840 + (3840 / 2) - (320 / 2) = 5600
B: 0 + (2160 / 2) - (50 / 2) = 1055
C: 320
D: 50
So for this example, the values there will be 5600:1055:320:50. You can increase Values C and D if you want, but try to keep the FPS > 30 as much as possible since remote play runs at 30fps.
6. Before running the script, modify the script and ctrl+F "self.debug = False". Change False to True
7. Run the script. Try firing until your weapon goes on cooldown, the 2 white bars (at the top and bottom of the square crosshair) should lineup to your crosshair and look like this
8. You can either modify the values on step 5 if the crosshair is way off, or if the crosshair is already visible but not aligned with the screenshot above, modify the self.offsetX and self.offsetY on the script
9. If everything is correct, the computer vision script should now fire for you to overload when needed.
Video in action: https://www.youtube.com/watch?v=9L1X5kVQcBk
How it works: https://www.youtube.com/watch?v=mMRk2CRHhQk
Needs Returnal Helper Script to work in conjunction: https://www.consoletuner.com/greslib/?w2554
Only tested using Playstation Remote Play at 1080p
Setup:
1. Follow the steps to setup Computer Vision for GTuner here: viewtopic.php?f=15&t=15147
2. After you have finished step 1, Create a new Video Input
3. Select Display Capture
4. Click Detect Display and select the display where PS Remote play is running in Full Screen
5. On the Video Input Configuration, modify the values to only capture a part of the crosshair. Something like this:
Try to only capture as small as possible to keep the Computer Vision FPS as much as possible. I usually just use 320 x 50
5.a Video Input Configuration Values Explained
The values on the notation A:B:C:D
A: Starting Absolute X position of the screen
B: Starting Absolute Y position of the screen
C: Width in Pixels
D: Height in Pixels
So let's say you have 2 4K displays (3840 x 2160) and remote play is on the 2nd monitor on your right.
A: 3840 + (3840 / 2) - (320 / 2) = 5600
B: 0 + (2160 / 2) - (50 / 2) = 1055
C: 320
D: 50
So for this example, the values there will be 5600:1055:320:50. You can increase Values C and D if you want, but try to keep the FPS > 30 as much as possible since remote play runs at 30fps.
6. Before running the script, modify the script and ctrl+F "self.debug = False". Change False to True
7. Run the script. Try firing until your weapon goes on cooldown, the 2 white bars (at the top and bottom of the square crosshair) should lineup to your crosshair and look like this
8. You can either modify the values on step 5 if the crosshair is way off, or if the crosshair is already visible but not aligned with the screenshot above, modify the self.offsetX and self.offsetY on the script
9. If everything is correct, the computer vision script should now fire for you to overload when needed.
Video in action: https://www.youtube.com/watch?v=9L1X5kVQcBk
How it works: https://www.youtube.com/watch?v=mMRk2CRHhQk
-
mdnpascual - Sergeant
- Posts: 8
- Joined: Fri Nov 30, 2018 3:11 am
Re: Returnal: Auto Overload/Reload (Computer Vision)
Hello mdnpascual,
first, thanks for your Returnal script.
But unfortunately I tried now several hours and I dont get it to work. Maybe you could help me with that?
Setup worked all good. My problem are the values, I dont really understand how this works. I dont have 4K so thats (math prob :/) two HD displays (1920/1080)
So I tried combos like
2720:1055:320:50
2720:1055:100:25
25:100:2720:1055
But it wont work. I dont get the cutout focused on that crosshair. That scanning animation always stays in top left corner. But I think script and setup is good, except the values.
Maybe you got that missing hint. Help much appreciated =)
regards
-yo
EDIT:
Thats the closest I can get changing the offset values. But scanning is still in top left corner.
first, thanks for your Returnal script.
But unfortunately I tried now several hours and I dont get it to work. Maybe you could help me with that?
Setup worked all good. My problem are the values, I dont really understand how this works. I dont have 4K so thats (math prob :/) two HD displays (1920/1080)
So I tried combos like
2720:1055:320:50
2720:1055:100:25
25:100:2720:1055
But it wont work. I dont get the cutout focused on that crosshair. That scanning animation always stays in top left corner. But I think script and setup is good, except the values.
Maybe you got that missing hint. Help much appreciated =)
regards
-yo
EDIT:
Thats the closest I can get changing the offset values. But scanning is still in top left corner.
-
yohimbe - Sergeant Major
- Posts: 84
- Joined: Sun Mar 01, 2015 7:27 pm
Re: Returnal: Auto Overload/Reload (Computer Vision)
yohimbe wrote:Hello mdnpascual,
first, thanks for your Returnal script.
But unfortunately I tried now several hours and I dont get it to work. Maybe you could help me with that?
Setup worked all good. My problem are the values, I dont really understand how this works. I dont have 4K so thats (math prob :/) two HD displays (1920/1080)
So I tried combos like
2720:1055:320:50
2720:1055:100:25
25:100:2720:1055
But it wont work. I dont get the cutout focused on that crosshair. That scanning animation always stays in top left corner. But I think script and setup is good, except the values.
Maybe you got that missing hint. Help much appreciated =)
regards
-yo
EDIT:
Thats the closest I can get changing the offset values. But scanning is still in top left corner.
I think I know the problem is. I only tested this on my 4K monitor so this is a matter of scaling. I'm going to try and update the code and see if I can make a toggle for 4k and 1080p
-
mdnpascual - Sergeant
- Posts: 8
- Joined: Fri Nov 30, 2018 3:11 am
Re: Returnal: Auto Overload/Reload (Computer Vision)
I created a 1080p version. Tested for a bit and it still works. Let me know how it goes
https://www.consoletuner.com/greslib/?w2688
https://www.consoletuner.com/greslib/?w2688
-
mdnpascual - Sergeant
- Posts: 8
- Joined: Fri Nov 30, 2018 3:11 am
Re: Returnal: Auto Overload/Reload (Computer Vision)
hello and thanks for the script. like the one above stated; the setup works fine just the scanning is in the top left corner.
-
daydyamond94 - Private
- Posts: 1
- Joined: Thu Apr 15, 2021 12:49 pm
5 posts
• Page 1 of 1
Return to User's Script Documentation
Who is online
Users browsing this forum: No registered users and 104 guests