Giter VIP home page Giter VIP logo

apexnorecoilmarco's Introduction

Disclaimer

The purpose of my development is for educational purposes. If you use this software to cause any damage, it has nothing to do with me. 我开发的目的是为了教育目的。如果你使用本软件造成任何损失与作者无关。

截至30/06/2024,脚本依旧可以使用

As of June 30th, 2024, the script is still usable.

Apex 无后座力力脚本 Fully working no recoil with Logitech mouse with Logitech game software & ghub

捕获

支持分辨率:Supported resolution:

要求桌面分辨率和游戏内一样且100%缩放率 Desktop resolution is required to be the same as in-game and 100% zoom rate

  • 1920X1080 最稳 best
  • 2560x1080
  • 2560X1440 最稳 best
  • 3440X1440
  • 2560X1600
  • 3840x2160
  • 4096x2160
  • 其他未知,我时间有限,能动手的请自己来 Others are unknown. My time is limited. If you can do it, please do it yourself.

支持武器:Supporting guns:

  • Alternator SMG 转换者
  • Car
  • Devotion LMG 专注 (有涡轮/无涡轮)(with turbine/without turbine)
  • G7 (不推荐安装双发班机)
  • Havoc 哈沃克 (有涡轮/无涡轮)(with turbine/without turbine)
  • HemLock 赫姆洛克突击步枪 (单点/连发)(Single point/burst)
  • L-STAR 能量机枪
  • m600 喷火轻机枪
  • p2020 手枪 (自动连发开枪)(automatic burst fire)
  • R301 卡宾枪
  • Rampage LMG 暴走 (有燃烧弹/无燃烧弹)(with incendiary bombs/without incendiary bombs)
  • powler Burst PD 猎兽冲锋枪 (连发/全自动)(Burst/full automatic)
  • RE-45 自动手枪
  • VK 平行步枪
  • Volt SMG 电能冲锋枪
  • Wing Man 辅助手枪
  • R99 冲锋枪
  • RevengGoddess 复仇女神(建议瞄胸)(It is recommended to aim at the chest)

游戏准星效果:Game crosshair effect:

效果

效果2


教程 Tutorial

Text Tutorial: 文字教程使用说明:

 important : Make sure logitech game software or Ghub is installed
重要:需要安装罗技鼠标驱动lgs或者ghub
(lgs supports more guns than ghub although it still detects the weapon some weapons won't have recoil script tid to it in ghub)
(lgs 支持的枪支比 ghub 多,尽管它仍然可以检测到武器,有些武器在 ghub 中不会有对应的无后座脚本)

 Please make sure your game language is set to Chinese, or the script will not work unless you update the weapon screen shots to english snapshots.
  请确保游戏语言设置为中文,否则脚本将无法工作,除非您更新武器屏幕截图为英文快照

1. make sure you installed jdk-18_windows-x64_bin.msi 
   确保安装java jdk,安装文件已经打包在下载里

2. start program
   启动软件
   
3. upload correct marco script to your mouse driver (LGS/GHUB) in MarcoScripts Folder
   上传正确的分辨率脚本文件到对应的罗技驱动,lgs/ghub. 文件在MarcoScripts里面
   
4. save and run the script in lgs or ghub
   保持运行脚本

lgs和ghub有版本区别问题:如果遇到问题请提交debug启动器的截图,我会尽快修复

There is a version difference problem between lgs and ghub: if you encounter problems, please submit a screenshot of the debug launcher and I will fix it as soon as possible

注意!先开软件再开脚本。确保两个都开着!

Notice! Open the software first and then the script. Make sure both are on!

视频教程检查

Video Tutorial check

 https://github.com/JiaqinKang/apexNoRecoilMarco/blob/master/%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B%E5%92%8C%E9%97%AE%E9%A2%98/tutorial(1).mkv

Envrioment

IDE: intellij
libary: opencv-460
java : 1.8

Huge thanks for 空话lua的解码

打赏杯咖啡或者给我点点星

Tip a cup of coffee or give me some stars

Paypal:

https://paypal.me/JiaqinKang?country.x=GB&locale.x=en_GB

WeChat:

图片_20240309223340


请自行排查一下可能出现的问题, 查看前请看看你的: Please check for possible problems by yourself. Before checking, please check your:

    游戏灵敏度调成1.6了吗 ? Has the game sensitivity been adjusted to 1.6?

    鼠标驱动报告率1000了吗 Is the mouse driver reporting rate 1000?

    游戏里的ADS是不是被你调过了,默认是1.0(建议直接按恢复默认)Have you adjusted the ADS in the game? The default is 1.0 (it is recommended to press restore default directly)

    屏幕缩放设置100%(不会的自行baidu,这个太简单了自己搜一下)Set the screen zoom to 100% (if you don’t know how, you can google by yourself, this is too simple and you can search it yourself)

    注意:如果觉得视觉移动慢,可以提高鼠标驱动面板的DPI来弥补 Note: If you feel that visual movement is slow, you can increase the DPI of the mouse driver panel to compensate.

    导入脚本教程请自己找一下,小破站上一大堆。自行搜索lsg/ghub 导入脚本。 你也可以绑定apex的启动程序,在SteamLibrary里面,
    Please look for the import script tutorial yourself, Search for the lsg/ghub import script yourself. You can also bind the apex launcher in SteamLibrary,
            例如 For Example:
            D:\SteamLibrary\steamapps\common\Apex Legends\r5apex.exe

GHUB失灵 GHUB failure

安装旧版本ghub(项目里有提供一个版本),以管理员身份启动ghub,
Install the old version of ghub (a version is provided in the project), start ghub as administrator,
实在不行请尝试重新安装GHUB
If that doesn't work, try reinstalling GHUB.

压过头怎么办 What to do if you overdo recoil

先检查游戏灵敏度有没有设置1.6和ADS设置1.0
First check if the game sensitivity is set to 1.6 and ADS is set to 1.0
如果设置了还是压过头,就一点点的降低游戏灵敏度,直到自己觉得最合适为止
If the setting is still too overdo recoil, reduce the game sensitivity little by little until you feel it is most suitable.

压枪左右抖动很厉害怎么办 What should I do if the pressure gun shakes badly from side to side?

查看你的WIN10版本是否是2004或20H2,如果是这两个版本,会有几率导致压枪不稳,自行降级系统。
Check whether your WIN10 version is 2004 or 20H2. If it is these two versions, there is a chance that the gun will be unstable and the system will be downgraded on its own.

桌面有压枪效果,游戏里面没效果怎么办 What should I do if there is a pressure gun effect on the desktop but no effect in the game?

在任务栏小图标那里退出鼠标驱动,然后管理员权限启动鼠标驱动就可以了,实在不行重启系统
Just exit the mouse driver from the small icon on the taskbar, and then start the mouse driver with administrator rights. If it doesn't work, restart the system.

为什么突然会截图失败?类似以下报错 Why does the screenshot suddenly fail? similar error message

Error cv:Exception: Opencv(4.6.0) C:\build\master_winpack-buildings-win64-vc14-static\Opencv\imgproc\src\templmatch.cpp:1164: error:(-215:Assertion failed)(depth==CV_8U||depth==CV_32F)&&_img.dims()<=2 infunction 'cv::match Template'

1.**360或者其他杀毒软件,未经过用户同意把你的文件占用扫描了
1.Stupid 360 anti-virus or other anti-virus software scans your files without the user’s consent.

2.你分辨率缩放不是100%导致截图的大小比分辨率大然后程序崩溃
2. Your resolution scaling is not 100%, causing the size of the screenshot to be larger than the resolution and then the program crashes.

如果想改成默认启动就是管理员权限,右键鼠标驱动图标,打开文件位置,再右键,属性,点顶部的【兼容性】,勾上【以管理员权限运行此程序】

If you want to change it to the default startup, you need administrator rights. Right-click the driver icon, open the file location, right-click again, select Properties, click [Compatibility] at the top, and check [Run this program with administrator rights]

Stargazers over time

Stargazers over time

apexnorecoilmarco's People

Contributors

jiaqinkang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

apexnorecoilmarco's Issues

遇到问题: 只压第一枪

只压第一枪
在桌面是能看到鼠标只移动了一下
(游戏内连续开枪看不出来)
我安装了java驱动
成功运行了武器检测软件,能成功检测武器
安装了您提供的版本的ghub,并且导入了1080P的lua脚本
鼠标1000回报率,关闭鼠标加速
游戏1.6速度 ,关闭了游戏内鼠标加速,ADS为1
屏幕缩放是100%
系统是win10 22H2
截图上传我不知道是不是成功上传了,我再描述一下我想截图的内容
(我是双屏,所以截图是两个屏幕并排的)
检测武器软件成功的识别了武器,GHUB在1080P.lua的界面,控制台输出了 第一枪 当前武器 平性步枪
游戏这边是开了很多枪 总体上看不出来压枪效果
大概就是这样

尝试找出哪里出了问题

我的情况是: 会只压几枪就停止
我在原本的代码里加了两个output
image
然后我按住右键瞄准, 再按住左键之后
控制台会输出这样的结果
image
就只循环了这么几次就停了,我还在尝试看懂更多代码,不知道这些信息是不是有助于排除bug
另外,我用5.0版本是能正常压的, 6.5相比5.0都加了什么东西 从这里面找问题

关于连发

1.在游戏中第二开火键已绑定p键,p2020手枪连发没效果(是还需要什么启动键么)
2.兔子跳的启动按键,鼠标侧键是写g5还是直接写一个5

连发功能问题

注意到作者默认是开启单点枪连发功能的 但是好像没找到任何文档说明这个怎么用 实际运行click代码的时候 发现有问题就是即使不点鼠标左键了仍然在不停的开枪 虽然设置了仅在开镜状态才一直开枪 但还是对这个功能的使用感到疑惑

没有main.lua

导入提示 cannot open C:/Users/Public/Downloads/main.lua: No such file or directory Line Number:1
这3个文件没有啊
dofile("C:/Users/Public/Downloads/main.lua")
dofile("C:/Users/Public/Downloads/thermite.lua")
dofile("C:/Users/Public/Downloads/turbo_state.lua")

关于自动开枪的事

我的设备是gpw2
使用的软件是ghub
不知道为什么使用单点武器的时候 点几下会自动开枪 包括但不限于g7 猎兽等枪械
表现为 一直按着鼠标左键 不会触发自动开枪 点两三次左键 也不会触发自动开枪 但是只要点过三次以上 就算我不点鼠标也会一直自动开枪 这导致打架的时候会直接把子弹打完 而且不能打药 模拟自动开枪 会模拟左键取消打药 十分困扰
有看过之前的问题 可是还是没有得到解决 例如把第十六行的代码 由1改成0 另外 我并没有设置第二开枪键
希望作者可以解答或者解决我的问题 或者修复这个bug

感觉没有压枪效果

大佬我想问问我这个什么情况,所有设置都跟教程设置的一样,但是感觉没有什么压枪效果,ghub版本也是在这里下载的
2023-03-25 (1)
2023-03-25 (5)
2023-03-25

怎样导入

请问一下这个宏具体要怎么导入呀

关于弹道挂带武器和兔子跳

由于枪械名称截图左侧部分白色导致弹道的挂带武器并不能被识别,我自己更换截图测试后则挂带武器可以被识别。
还有兔子跳lgs详细的设置是如何 我改下蹲为I 数字修改后并不生效

程序打不开

下载了apex6.50

启动器.cmd

打开就退 不知道什么情况?

bugs

1.导入lua脚本的时候提示没有ScriptSeason14.lua,结束程序的时候会删掉C:\Users\Public\Downloads\ScriptSeason14.lua文件
2.导入lua脚本时找不到C:\Users\Public\Downloads\123.lua文件,运行程序也不会生成123.lua
3.程序运行时报错,提示找不到weapon\null里的一些图片文件
4.把weapon\1440文件夹里的图片复制到新建的null文件夹后程序仍然报错,异常信息为
Exception in thread "main" CvException [org.opencv.core.CvException: cv::Exception: OpenCV(4.6.0) C:\build\master_winpack-bindings-win64-vc14-static\opencv\modules\imgproc\src\templmatch.cpp:1175: error: (-215:Assertion failed) _img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width in function 'cv::matchTemplate'
]
at org.opencv.imgproc.Imgproc.matchTemplate_1(Native Method)
at org.opencv.imgproc.Imgproc.matchTemplate(Imgproc.java:7339)
at autoMarco1080pAnd1440p.imageDetection(autoMarco1080pAnd1440p.java:423)
at autoMarco1080pAnd1440p.scan(autoMarco1080pAnd1440p.java:312)
at autoMarco1080pAnd1440p.(autoMarco1080pAnd1440p.java:237)
at autoMarco1080pAnd1440p.main(autoMarco1080pAnd1440p.java:443)

关于武器后座模式参数不一致问题

我测试发现 ER45 R99 R301 这三把枪在按住右键瞄模式准射击时参数是对的,压的很稳。
但是在右键切换瞄准的模式中 参数和按住模式是不同的 总是压过了。
我要替换哪里才能把按住瞄准的参数替换到切换瞄准。
还有猎手冲锋枪,现在有了全自动模式 但是切换全自动射击模式后脚本会让它像G7一样 单发点射。

报错了

请问这是什么情况,今天突然这样
Error: cv:Exception: OpenCV(4.6.0) Cibuildmaster_ winpack bindings win64-vc14 staticlopenevimoduleslimgprocisreltempimatch.cpp:1164: error: (215:Assertion failed) (depth = CV_8U |I depth == CV_32F) && type = templtype() && _jmg.dims() <= 2 in function cv:matchTemplate"

识别优化

        // 将BufferedImage转换为字节数组
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
        ImageIO.write(inBuffImg, "PNG", byteArrayOutputStream);
        byte[] byteArray = byteArrayOutputStream.toByteArray();

        // 将字节数组转换为OpenCV的Mat对象
        MatOfByte matOfByte = new MatOfByte(byteArray);
        Mat mat = Imgcodecs.imdecode(matOfByte, Imgcodecs.IMREAD_UNCHANGED);
        return mat;

可以用这个 转换方法 避免频繁写入 硬盘 在内存处理

请问支持4K了吗

请问支持4K了吗,脚本没看到2160p。
另外我用起来只有复仇女神没有压枪效果其他都有,
还有 lianfa改成0后依然会连发。
谢谢~

有些问题想提问

脚本下载后可以正常使用,但使用时遇到一些问题:

  1. 直接下载下来后档案内没有含jar档,README.md内没有写得很清楚要将哪部分包装成jar(本人不会java),所以我将bin->META-INF资料夹内的MANIFEST.MF移动到bin资料夹下(没有移动来就包装的jar无法运作)后执行cmd指令jar -cvfm apex.jar MANIFEST.MF ./来包装jar
    想问这样的建立顺序是否正确? (包装好的jar可以使用)

  2. 承1,这样方法建立完后执行jar会跑出一个名为apex腰射的UI视窗(有16把枪跟静音与否的选项),但这个脚本使用起来对腰射没有任何反应,只有右键瞄准后自动压枪的功能,这样是正常的吗?

  3. 承1,这个压枪脚本只会判定UI上选择为绿色的单一枪支,试用起来不会自动判定我手上拿着什么枪,那\weapon\1080或\weapon\1440里面那些武器屏幕截图有什么功能?

  4. README.md的第二项内说要放到lgs/ghub的文件在MarcoScripts里面,但里面没有找到这个名称的资料夹,所以我使用\src内的GHUB_1440p.lua,请问使用的是这个脚本吗?

  5. 承4,我引入GHUB_1440p.lua脚本后,脚本头尾还要加入以下两行能用:
    function OnEvent(event, arg)
    ...
    end

  6. 承4,这份脚本内最后一行dofile("C:/Users/Public/Downloads/ScriptSeason14.lua")
    在直接执行时会报错说找不到这个档案,我手动将下载下来的ScriptSeason14.lua放至这个路径下才能使用,但在README.md没有提要要这么做,还是我哪个步骤做错了才需要手动复制档案到那边?

报错

[ WARN:[email protected]] global C:\build\master_winpack-bindings-win64-vc14-static\opencv\modules\imgcodecs\src\loadsave.cpp (239) cv::findDecoder imread_('weapon/null/dead.jpg'): can't open/read file: check file path/integrity

新发现

我先用6.5的Java那个程序, 搭配了6.0的script, 正常

hello

有没有联系方式之类可以指导我使用这个 我有点搞不清楚怎么使用自动识别版本
Is there any contact information that can guide me to use this? I'm a little confused about how to use the automatic identification version

提问

大佬,可不可以加个微信,因为您的这个我没有使用明白,完全是个小白,想和您咨询一下

导入lua和运行jar报错

image
下载的这个jar包名字有乱码
修改jar包名字然后点击运行jar包的时候:报脚本文件释放失败(看到其他问题说是中文乱码问题,但是不知是哪里的中文乱码问题)
image

感谢您 我写了一个复仇女神的参数 希望能对该项目有所贡献

看到您的代码写的非常完善 目前所有的压枪宏都没这好使 非常感谢 我注意到您的代码其实是写了复仇女神并能直接识别的 我调了一个不错的参数 可以直接粘贴到cn那附近使用
CN_offset_list = {

{1 ,0,4,5},					{2 ,0,5,5},					{3 ,0,4,5},

{4 ,0,0,5},					{5 ,0,4,5},					{6 ,0,5,5},

{7 ,0,4,5},					{8 ,0,0,5},					{9 ,0,4,5},

{10,0,5,5},					{11,0,4,5},					{12,0,0,5},

{13,0,4,5},					{14,0,5,5},					{15,0,4,5},

{16,0,0,5},					{17,0,4,5},					{18,0,5,5},

{19,0,4,5},					{20,0,0,5},					{21,0,4,5},

{22,0,5,5},					{23,0,4,5},					{24,0,0,5},

{25,0,4,5},					{26,0,5,5},					{27,0,4,5},

{28,0,0,5},					{29,0,4,5},					{30,0,5,5},

{31,0,4,5},					{32,0,0,5}					

}

感觉颜色辨识范围太广了

4.0版本感觉颜色辨识范围太广了? 轻弹跟能量弹的枪收起来、颜色变暗后,依然会被判定为拔枪状态,会影响到手上拿的枪

另外,赫姆洛克有被侦测到,但是没有自动压枪

感谢大佬一直更新!

ER45 R99 R301腰射压枪 总是压过了

ER45 R99 R301腰射压枪 总是压过了,你可以去靶场试试,
按住瞄准压枪和腰射压枪似乎用的不是同一套参数 ,我以前认为是瞄准方式的问题,现在才发现如果用切换瞄准开镜,其实用的是腰射压枪的参数。
你可以在下次更新把这三把枪的腰射参数替换成按住瞄准的压枪参数吗?求求了

關於有時執行壓槍會失靈

我沒有遇到任何問題,只是來提醒一下大家有可能遇到的一種壓槍失靈情況,如果您發現啟動器的命令提示字元有成功偵測到槍種但沒有正常壓槍,那麼試試打開羅技軟體後將自動遊戲模式偵測改為內建記憶體模式,然後再度改回自動遊戲模式,大概率就能正常壓槍了。

然後順便感謝開發者們開發了這款工具,每一個版本我都有按讚,真的十分感謝。

自动开枪问题

image

这里的“自动开枪请按照设置第二开枪按键”是什么意思

image
我已经在游戏里面的开火按键2绑定为鼠标按键5但是P20P20还是不能连续开枪
可以详细说明下这个第二开枪按键是什么意思?

可不可以出一个bug调试版本

因为6.5的在我电脑上,会有点bug,他运行了,但是并没有完全运行, 而我又不知道他是在哪一个节点出了错
可否在代码运行的不同节点,加入一些OutputLogMessage,这样我运行一下,就知道他在哪里没有正常运行

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.