New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What's an effective way of finding the correct 3 pixels? #27
Comments
What pixels did I pick?The detection logic is very simple. It chooses three special pixels of the weapon and checks whether the colour there is white or not (white = true). How do I get all the pixels?Before, I used a tool built by myself on the Step:
I also provide some voice tips to tell which weapon you are holding for debugging. Uncomment them to use. ContributingYou are welcome! You can submit a pull request and I will find a way to help users config their resolution later. |
I tried to get pixels myself, but it didn't seem to work. ; heavy weapon ; heavy weapon pattern ; then check the weapon type |
@VStorm001 Check the diff I made in the commit history. Check those commits for which I added support to new weapons. Or you can just wait till the next update. Feeling tired after going back home during the workday and will update the script this weekend. |
CAR_PIXELS := [1605, 970, true, 1586, 973, true, 1605, 971, true] |
It still doesn't work. |
@VStorm001 Check the latest commit: d66dbd4 |
@VStorm001 Really? Are u using the latest version of the script? |
Here, I would also record the way how to generate First, use some silly script to map the 1080p pixels to the one you want, for example: 1080 / 3 * 4 = 1440, so: func main() {
str1 := `havoc_terbocharger = "1621,1006"
devotion_terbocharger = "1650,1007"`
tmp := strings.Split(str1, "\n")
fmt.Println(len(tmp))
for _, v := range tmp {
t1 := strings.Split(v, " = ")
res := t1[0] + " = \""
t2 := strings.Split(t1[1][1: len(t1[1]) - 1], ",")
for i, v := range t2 {
t3, _ := strconv.ParseInt(v, 10, 64)
if t3 > 1 {
t3 = t3 * 4 / 3
}
res += strconv.FormatInt(t3,10)
if i != len(t2) - 1 {
res += ","
}
}
res += "\""
fmt.Println(res)
}
}
Then, run the game and do some checks. For those which cannot work, use the pixel capture approach I mention above to do some more modifications. |
I tried to output 1280x720, but some weapons didn't work |
Check this video @VStorm001 @DNBRMK3 : Apex-NoRecoil-2021 AHK | Customized Resolution |
Hi,
Not sure if this is the right place to put this im not a git hub user.
I've been playing around to get 1440p to work with your code... (I'm no developer). All I did was increase the pixel values by 33.333% which works for all the weapons apart from the p2020 or the R99. What's an effective way of finding the correct 3 pixels?
Happy to share with you the changes if you want to post a working 1440p version.
DNBR
The text was updated successfully, but these errors were encountered: