woshica / jiaguomeng-autoclicker Goto Github PK
View Code? Open in Web Editor NEW《家国梦》自动化脚本生成,可以自动收集金币、升级、运货等。
《家国梦》自动化脚本生成,可以自动收集金币、升级、运货等。
能否麻烦告知如何获得正确的授权按钮坐标?在我的模拟器上,这个按钮是横贯整个屏幕的,所以X坐标应该没问题,Y坐标是跟模拟器的原型home按钮在一条线上,请问坐标如何计算?程序里面的那个数字是百分比吗?
"qqLogin": (71.57, 82.77), 这个是没问题的,可以点到
"qqLogin2": (50.0, ?) 这个我试了几个都不对,应该是比82.77要大的数值。
可以只收硬币和火车,不升级么
之前几个版本无此情况
收硬币倒是可以,收货物和升级建筑就不行
-epicId 3 -lvup 1 --train
感谢作者新添了一个国家之光弹窗,我之前也没有发现这个,睡醒才发现出问题了!
如题,谢啦
脚本生成命令如下
python JiaGuoMeng.py -epicId 0 5 7 8 -exchange 2 0 4 0 2 -generate autoTrainYellowOnly
其中0,5,7,8为黄色建筑,1,2,3,4,6为蓝色或者紫色。初始的交换是正确的,永远是用列表里的第一个(0)替换当前。然而,替换回来的时候,我这边观察的是依然采取相同的逻辑,即用备选列表里的第一个(0)换回来,我在-exchange里面设置的index并没有被使用。另外,我想建议,替换的时候不要一次把所有的非黄建筑物换掉,因为这会导致替换列表里的建筑物时刻都在变动,相对好的策略是就在当前的建筑物上,交换,然后换回,再移动到下一个,这样用户设置的时候就方便多了。
我看了下代码,if else 那没有执行autoCollect(),还有能不能做一个升级政策的
使用版本:4.130.10.1003
无法使用ctrl+shift+7唤出脚本功能,查询快捷键设置也没有相应功能,使用仓库的安装器和日本官网的安装器均无法唤出,界面字体是繁体,预装谷歌应该是国际版没跑了。
c:\jia>python JiaGuoMeng.py -epicId [4,5,6]
usage: JiaGuoMeng.py [-h] [-epicId N [N ...]] [-lvup N [N ...]] [--train]
[--yellow-only]
JiaGuoMeng.py: error: argument -epicId: invalid int value: '[4,5,6]'
是我的输入方式有问题么
powershell报错如下
PS D:\Aria2_Downloads> python .\JiaGuoMeng.py -epicId 5 -lvup 0 --yellow-only Traceback (most recent call last):
File ".\JiaGuoMeng.py", line 203, in
autoTrainYellowOnly()
File ".\JiaGuoMeng.py", line 184, in autoTrainYellowOnly
j = newMission.generateJson("自动火车发货(仅黄色)", "Y")
File ".\JiaGuoMeng.py", line 113, in generateJson
a = open("output\" + name + ".json", "w")
FileNotFoundError: [Errno 2] No such file or directory: 'output\自动火车发货(仅黄色).json'
点了一下右侧的按钮然后就关闭了
rt
感谢更新,辛苦了!
手机装了Python能搞么
python版本3.7.4,运行的时候报错:
c:\jia>python JiaGuoMeng.py -lvup 3
Traceback (most recent call last):
File "JiaGuoMeng.py", line 207, in
autoUpgrade()
File "JiaGuoMeng.py", line 140, in autoUpgrade
j = newMission.generateJson("自动升级建筑", "U")
File "JiaGuoMeng.py", line 113, in generateJson
a = open("output\" + name + ".json", "w")
FileNotFoundError: [Errno 2] No such file or directory: 'output\自动升级建筑.json'
c:\jia>python JiaGuoMeng.py -epicId 3 -lvup 1 --train
Traceback (most recent call last):
File "JiaGuoMeng.py", line 205, in
autoTrain()
File "JiaGuoMeng.py", line 160, in autoTrain
j = newMission.generateJson("自动火车发货", "T")
File "JiaGuoMeng.py", line 113, in generateJson
a = open("output\" + name + ".json", "w")
FileNotFoundError: [Errno 2] No such file or directory: 'output\自动火车发货.json'
c:\jia>
c:\jia>python JiaGuoMeng.py --train
Traceback (most recent call last):
File "JiaGuoMeng.py", line 205, in
autoTrain()
File "JiaGuoMeng.py", line 160, in autoTrain
j = newMission.generateJson("自动火车发货", "T")
File "JiaGuoMeng.py", line 113, in generateJson
a = open("output\" + name + ".json", "w")
FileNotFoundError: [Errno 2] No such file or directory: 'output\自动火车发货.json'
c:\jia>python JiaGuoMeng.py --train
Traceback (most recent call last):
File "JiaGuoMeng.py", line 205, in
autoTrain()
File "JiaGuoMeng.py", line 160, in autoTrain
j = newMission.generateJson("自动火车发货", "T")
File "JiaGuoMeng.py", line 113, in generateJson
a = open("output\" + name + ".json", "w")
FileNotFoundError: [Errno 2] No such file or directory: 'output\自动火车发货.json'
C:\Users\viliv\Desktop\JiaGuoMeng-AutoClicker-master>python JiaGuoMeng.py -all
Traceback (most recent call last):
File "JiaGuoMeng.py", line 314, in
nm.export(i)
File "JiaGuoMeng.py", line 142, in export
func(*args, **kwargs)
File "JiaGuoMeng.py", line 248, in autoUpgrade
for everybuilding in self.buildingsNeedUpgrade:
TypeError: 'NoneType' object is not iterable
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.