Closed Zhen-Bo closed 3 years ago
如果改成subporcess的方式的話貌似在import util的時候就會去把它執行過一次,而這時如果沒有adb開啟並連接的話會導致imdecode那邊出現錯誤
解決辦法看是要在util最上面加個判斷句,判斷如果沒有開啟adb的時候就開啟
而我的解決方法是把adb包成一個class然後在第一次開啟程式的時候就會先進行重啟
啊这,subprocess相关的我不是很懂QAQ。劳驾了。
From: Zhen-Bo notifications@github.com Sent: Friday, January 8, 2021 9:42:02 PM To: Meowcolm024/FGO-Automata FGO-Automata@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [Meowcolm024/FGO-Automata] util imdecode error (#45)
[image]https://user-images.githubusercontent.com/30999421/104021413-ab71ca80-51f9-11eb-973c-37789477f13a.png 如果改成subporcess的方式的貌似在import util的r候就グ阉绦羞^一次,而@r如果]有adbKB接的еimdecode那 出Fe` 解Qk法看是要在util最上面加判嗑,判嗳绻]有adb的r候就 而我的解Q方法是把adb包成一class然後在第一次⒊淌降r候就冗M行重
― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/Meowcolm024/FGO-Automata/issues/45, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFPRDR6L2IN7D6SRYFMZXHDSY4DSVANCNFSM4V2OXRTA.
那我改完就直接推一個PR? 主要是因為台日版你們是坐在一起,如果現在陸版能跑然後日版沒法跑,我把日版的改的能跑了之後又怕陸版的不能跑Orz
直接开pr就好了 :)
From: Zhen-Bo notifications@github.com Sent: Friday, January 8, 2021 9:59:11 PM To: Meowcolm024/FGO-Automata FGO-Automata@noreply.github.com Cc: Malcolm Law luoyicong1026@live.com; Comment comment@noreply.github.com Subject: Re: [Meowcolm024/FGO-Automata] util imdecode error (#45)
那我改完就直接推一PR? 主要是因樘ㄈ瞻婺是坐在一起,如果F在版能跑然後日版]法跑,我把日版的改的能跑了之後又怕版的不能跑Orz
― You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/Meowcolm024/FGO-Automata/issues/45#issuecomment-756768862, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFPRDR34AECQ56YQUJ6YRXLSY4FS7ANCNFSM4V2OXRTA.
推了,話說日版沒有做自動連續戰鬥的判斷喔🤔
推了,話說日版沒有做自動連續戰鬥的判斷喔🤔
这一个函数有处理,采取简单粗暴的方法:不继续,然后重新点进关卡。 虽然速度慢点,但可以重用前面的逻辑:)
了解了🤔