Meowcolm024 / FGO-Automata

一个FGO脚本和API フェイトグランドオーダー自動化
https://meowcolm024.github.io/FGO-Automata/
MIT License
120 stars 34 forks source link

util imdecode error #45

Closed Zhen-Bo closed 3 years ago

Zhen-Bo commented 3 years ago

image 如果改成subporcess的方式的話貌似在import util的時候就會去把它執行過一次,而這時如果沒有adb開啟並連接的話會導致imdecode那邊出現錯誤 解決辦法看是要在util最上面加個判斷句,判斷如果沒有開啟adb的時候就開啟 而我的解決方法是把adb包成一個class然後在第一次開啟程式的時候就會先進行重啟

Meowcolm024 commented 3 years ago

啊这,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如果›]有adb†KB接的’•Œе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.

Zhen-Bo commented 3 years ago

那我改完就直接推一個PR? 主要是因為台日版你們是坐在一起,如果現在陸版能跑然後日版沒法跑,我把日版的改的能跑了之後又怕陸版的不能跑Orz

Meowcolm024 commented 3 years ago

直接开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.

Zhen-Bo commented 3 years ago

推了,話說日版沒有做自動連續戰鬥的判斷喔🤔

Meowcolm024 commented 3 years ago

推了,話說日版沒有做自動連續戰鬥的判斷喔🤔

https://github.com/Meowcolm024/FGO-Automata/blob/b3961092532b0e91b1e33cb448c7b0464fdd0e8f/core/Automata.py#L383

这一个函数有处理,采取简单粗暴的方法:不继续,然后重新点进关卡。 虽然速度慢点,但可以重用前面的逻辑:)

Zhen-Bo commented 3 years ago

了解了🤔