GithubHelp home page GithubHelp logo

29988122 / fate-grand-order_lua Goto Github PK

View Code? Open in Web Editor NEW
289.0 32.0 95.0 373.78 MB

Fate Grand Order auto battle script - no root needed, for Android use only

License: MIT License

Lua 98.53% Batchfile 1.47%
automation android sikuli lua

fate-grand-order_lua's Introduction

Fate-Grand-Order_Lua

Lua-5.1-SikuliGitHub license

Screw those farming events - I only wanna enjoy the (kinoko) story!

Therefore I proudly brought you this: FGO automation script.

Chaldea

This script supported CN, EN, JP and TW servers on Android devices < Oreo 8.0 and emulators.

What if I have > Android 8.1 phone?

As of 2018.12.30, this script is working without root / without being blocked or banned, although I DO NOT take responsibility for your banned account!

Disclaimer and concern about your account

Please read the Documentation.

Any questions can be asked in the "Issues" section. Don't be shy xD

Any feature request or bug report is welcome. Please create a new issue and I'll do my best.

Please consider giving our repo a star to encourage us if this script is useful to you : )

Enjoy the game!

fate-grand-order_lua's People

Contributors

29988122 avatar aqer avatar cerz0 avatar forgehe avatar mathewsachin avatar paradoxkiwi avatar potchy avatar reconman avatar ryuga93 avatar theianator avatar therealplagiariser avatar trybane avatar vit2657 avatar xianbei233 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  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

fate-grand-order_lua's Issues

エラーについて。

ama_daemonに入っているrun.batが動かない件については、
リンクの英語verのdaemonにてrun.batで解決しました、ありがとうございます。
起動後、種火ステージを右上に設定して JP_REGGULAR を実行した所
Will only select servant/danger enemy as noble phantasm
target, please check github futher detail
と出たのですが、これは私が使っている端末が 1980x1280なのが関係あるのでしょうか? 機種はXiaomi6です。

是否可以再加一個換人禮裝的功能

你好,剛剛在PTT上面看到這個程式

使用過後感覺還不錯,但若可以是否可以再外加裝一個換人禮裝的功能呢?

畢竟有換人禮裝隊伍靈活性較高

Problem in AutoSkill

Hello!
I have some problem on the autoskill function, my 3rd servant won't activate skill2 in battle 3 but only Ult.
This is my setting for skillcommand
Enable_Autoskill = 1
Skill_Confirmation = 0
Skill_Command = "i6,#,bc5,#,h6"

p.s I'm using "Stella!!!" in battle 1, and then the next servant comes out, not sure if it is related to this.

Can't get it work

I've been following all your steps but somehow it doesn't work.

It always shows this error "Will only select servant/danger enemy as noble phantasm target, unless specified using Skill Command. Please check github for further detail." on the menu screen where I set the quest that I want at upper-right corner.

In battle screen, the error is "No priority target selected". And it does nothing.

I've made sure the daemon installation is successful and copied all files in my phone.

Device: Xiaomi Redmi Note 4
Android: 7.0

Pick waver and buff all allies

You can modify the script to autopick a support waver and enable to use the skill buff all allies from chaldea code? Thanks for read. 10/10 script

Idk

Cant i ask you why this thing happend, i am aleready use the latest release 1.3.1
1504004439300-321243059

event(Jp)

For nerofest event,can i just use the event lua or i have to wait for the lua that is special for the event?

[Issue] First skill not activating?

Alright so for some reason when using skill confirmation off the first skill in the list doesn't activate. I've made a work around for this by doubling the first skill so it activates, but not sure what the reason is for it. I've poured over the code looking for what the issue is and still haven't found it. Maybe those more familiar with the code might have better luck.

As for me, I had this before - Skill_Command = "hi5,#,x21g25,#,4"
Now I have this - Skill_Command = "hhi5,#,x21g25,#,4"

The second one works like the first one should. First skill is activated on the first turn, then the second skill, then a noble phantasm. I didn't have any issues with the following stages activating skills (though there seems to be some weird behavior with the NPs in stage 3 I believe?)

Behavior

Is it a normal behavior for the script to stop at certain point?

Mine stopped when I left it running when i was sleeping.

"A thank you letter from user"

https://github.com/potchy/messages/issues/1
Thank you potchy, your message really motivates me. Glad you like it!

I just move it here so @ryuga93 would know that @potchy can also show his gratitude to you : )
ryuga93 wrote the autoskill part which is probably the most useful chunk of the script!

All hail ryuga93.
: p

potchy commented 8 minutes ago
@29988122 Hey, this isn't an actual issue. I just want to thank you for your FGO script. The code is concise, elegant and it's pretty easy to tweak it to my needs. It helped me a lot with 2BP grinding in Rashoumon. Unfortunately, github lacks a private message feature, so I had to create an issue to notify you. lol

[Feature Request] Add target switching to Autoskill

There have been times when I want to switch targets but not use NPs yet. What I was thinking was adding an option to turn off the default (Danger/Servant and use NP's) targeting in favor of some options in the command string.

For example:
"0,#,s1,#,s2t"
Where "s" and a number switches targets and "t" toggles the attempted use of all NPs every turn.
So battle two switch to target 1, battle 2 switch to target 2 and begin using NPs.

Or another possibility for repeated NP use:
"0,#,4o5"
Where "o" attempts to repeat the following command every turn of the current battle.
So in the example during battle 2 it uses NP 4 once and NP 5 every turn until the next battle.

Edit: Ended up implementing it myself, it wasn't very complicated and I don't yet know the proper way to suggest code, but I thought I'd share my work anyway.
regular.lua.txt

Added lines 87-90, modified lines 95, 242, 282, and 541. Also need to add line "Enable_Autotarget = 1" to FGO_XX_Regular.lua.

Functionality added is "m", "n", and "o" target enemies from left to right, should work on at least both NA and JP. Also added a option to turn of the default autotargeting.

Been working in my testing so far but I wouldn't be surprised if I broke something.

[Feature Request] Run Customizable Scripts

I currently have an FRep script that can run my ember gathering dailies for me. It's all timing based so if something takes a little too long to load, or if I accidentally touch the screen, the script gets messed up and I have to finish the quest out manually.

It would be nice to have something like this running within this framework so that it is more robust against errors, and so it could automatically start the quest again instead of needing to be manually run once per quest.

For example what my FRep script does:

  • Merlin Allies NP gauge up, Merlin's buster up on Spartacus.
  • Spartacus self NP gauge up, self buster up.
  • Bunyan Allies Buster up.
  • Attack - Spartacus NP, 1st and 2nd cards.
  • 2nd Battle, Attack - Bunyan NP, 1st and 2nd cards.
  • 3rd Battle, Battlesuit - Switch Merlin with Support AOE Berserker with LB Kaleidoscope.
  • Attack -> Berserker NP, 1st and 2nd cards.
  • Click through results screen.

What I'm hoping for is a script you could pass something like this:

  • Skill Position 7
  • Skill Position 9
  • Target Position 1
  • Skill Position 2
  • Skill Position 3
  • Skill Position 4
  • Attack
  • NP Card Position 1
  • Card Position 1
  • Card Position 2
  • Wait for Battle 2/3 (If fails run regular.lua possibly)
  • Attack
  • NP Card Position 2
  • Card Position 1
  • Card Position 2
  • Wait for Battle 3/3
  • Mystic Code
  • Code Skill 3
  • Select Battlesuit target 3
  • Select Battlesuit target 4
  • Switch
  • Wait for servant to load
  • Attack
  • NP Card Position 3
  • Card Position 1
  • Card Position 2
  • regular.lua takes over to click though results screen, use apples as necessary, and select quest again.

If the script needs a specific support to work it could wait at that screen for manual selection. Or possibly you could have a picture of a support portrait, for example Raikou with a LB Kaleidoscope, and it could refresh the support list until it sees that portrait.

Since this is all just passing positions and not any complicated image recognition (except possibly for supports) this seem like it shouldn't be terribly difficult to implement.

AnkuLua

After installed AnkuLua so phone or emulated phone has been rooted i'm unable to open fate, the app crash istantly!
what i can do?

Speed.

Can we hasten the clicking speed?

sometimes,it is too slow(just for eficiency)

i've tried using the Beta fast touch from ankulua itself,turns out it miss the 1st np and faster than the loading time.How can I seek a way for the fast touch?

Selecting Target & Card Issue

Long story short

I downloaded the new Master since Jerry Released it.

Before that everything works fine and since I'm curious whats in the update,i gave the new one a try.
I've experienced some problems.

1.Selecting target,like at firts before Ryuga tell me how.The Script won't change to the 2nd target which is has the same name/class as the first one.I've tried to change the regular.lua script like I used to.
Instead of a success,it wont even run.It shows me An error instead and won't run the script.

2.I have some trouble with the card priority.It used to Buster then arts.Now,it's like so random and often doing some Card with the same servant(which is different from what i've experienced)
Then,instead of Arts it chose Quick instead.Cmon man,quick meme is dead

so,any advice?

Discussion with my collaborator

Having a new discussion thread seemed like the fastest way for us to discuss non-commit and non-PR related issue. @ryuga93

I can't figure out the function calling here:

function menu()
    atkround = 1
    npClicked = 0
    turnCounter = {0, 0, 0, 0, 0}
    click(Location(1900,400))
    wait(1.5)
    if Refill_or_Not == 1 and stoneused < How_Many then
        refillstamina()
    end
    click(Location(1900,500))
    wait(1.5)
    click(Location(2400,1350))
	wait(8)
end

function refillstamina()
    if StaminaRegion:exists("stamina.png", 0) then
        if Use_Stone == 1 then
            click(StoneClick)
            click(Location(1650,1120))
            stoneused = stoneused + 1
        else
            click(AppleClick)
            click(Location(1650,1120))
            stoneused = stoneused + 1
        end
    wait(1.5)
    menu()
    end
end

The 3rd line from last memu() called inside refillstamina() was the one you recently added.
Wouldn't it caused a lot of wait(1.5)?

1.Every time when refillstamina() was called but game's not currently at AP refill window.
2.Every time memu() was called).

Or I got the whole function calling inside function concept wrong?

Can't find path specified

When I go to install via the run.bat, a cmd window pops up with this message. I thought it was a folder permission problem but I am not able to change it. I checked the bat file to see if the file paths are correct, and redownloaded the the Fate_Grand_Order__Lua. None of it seems to fix the problem of running the run.bat file. I tried downloading a daemon off of another place and running its .bat and experienced the same message "Can't find path specified". Was wondering if anyone else has had a similar issue or if you have an idea on what to do.

Apple refill touch confirmation 1/3 of second before.

^This, what I see is:
1.Click the quest.
2.Click the apple.
3.Click the Confirm button 1/3 of second before, and get stuck in the confirmation windows.
4.???? Script trying to click the quest forever.
I play the EN script.

國服/B服版本需要有人抓圖, 我才能改一個可用的版本出來

我這兒沒有b服的號...

抓圖細節請看首頁的readme,我裡邊有講方法
基本上,需要抓的圖仿照現有的其他服的版本(要在哪個屏幕抓圖,抓下來之後要怎麼resize等),都抓好給我我改一個版本出來,您測試沒問題我就放上去release了。

或是您真的不懂的話,在這邊回應,我能夠給您詳細的指示。

An Opinion and wanted some advice.

with the auto skill,the script is good for farm exp/qp.

But,in my case it's not 'decent' for event.the script keep choosing for buster card which makes the servant can't fill the np.I was testing it on the NA for Saber wars,like i said.They can't fill the NP which makes my party got wiped out :/

some of the bosses need to be NPed even tho I have Damage CE.

So,any advice?

btw,Great job adding the Auto skill features.It helped a lot for farming exp!
Hope this project will be optimized for Event in the future.Keep doing the great work and good luck!

nox playerでの使い方について。

日本語での質問よろしいでしょうか。

nox player6.0.0でFate-Grand-Order_Luaを使いたいのですが、上手くインストール出来ません。

noxにankuluaをインストールしてusbデバッグを有効にした後、
PCからNox\bin\nox_adb.exe” connect 127.0.0.1:62001でnoxへ接続しました。
\ama_daemon\nox_player.run.batを実行すると、"Daemon installation complete."と表示されました。

次に、noxでUSBデバッグを無効にしてからankuluaを起動すると、
"Daemonが発見しました"と表示されます。
しかし、"スクリプトを選ぶ"から.luaファイルを選ぼうとしても
/sdcard/以下のどのフォルダにも.luaファイルが見つかりません。

これはインストールに失敗したのでしょうか?
何か思い当たる原因があれば教えて下さい。

Galaxy S8 not working

Since the screen ratio is different, that might be an issue. Any known solutions or fixes?

Request event

Could you add the saber wars event to the English version? Thank you very much

Autoskill fail in stage 3 (TW)

I enable autoskill to run free quest on TW server.
Servant can cast skill in the first two stage,
but they never cast skill in 3rd stage.
Version: 1.8.1
補充:關卡是第五章夏洛特的FQ,看起來是偵測stage時無法認出是stage3

Suddenly Unable to Conect to Nox

I've been using this for a few days now, but for some reason while the Daemon can still start successfully it is now unable to connect to Nox.

I tried restarting my computer and updating Fate-Grand-Order_Lua and neither worked.

Not sure what the problem is?

Maybe Nox updated itself, but normally I'd at least be notified before an update was made.

So I'm not sure how the problem developed or how to fix it.

Fixing Refill for EN

Hello,
I need to update FGO_EN_REGULAR.lua to include
NotJPserverForStaminaRefillExtraClick = 1
so the refill works properly.
It seems I can't push my local branch and make a pull request. Could you put the fix in or grant me push permission? It will enable US players to use this script.

谢谢!

New system Command Code in JP server will likely break card affinity recognition

As title.

Reports are welcome since I don't bother watching its execution while doing my daily farming.

Damn although the current recognition area size is quite enough, still I have no idea what might happen.
Only if we can read memory of process......well, 做夢比較快/寝言は寝てから言え/Stop daydreaming.

Preset command choice?

First, the script saved me so much farming time I want to say thank you.
However, I feel like each time I have change a command sequence I have to enable root->change script-disable root->re-enable daemon -> start game. I would like to configure a list of preferred sequence in FGO_XX_REGULAR.LUA and have an UI to choose what I want to execute.
I am willing to make the change when I have time. Can I have permission to create pull requests?

Thanks,
Ray

Resolution problem

你好我又來惹
這兩天換了新手機但是是18:9的解析度(2160x1080)
開啟FGO會出現左右的藍條,應該是這個緣故導致座標都亂了,腳本無法作用
想請問有沒有什麼方式可以校正
(目前我試了把腳本內所有起始X座標+120和按照2560&1920的比例+160都沒用)

screenshot_2018-05-23-17-07-22-912_com komoe fgomycard

Shorten the animation when servants or enemies dead

Hello,
I know there is almost a エネミー消滅短縮 option in the battle menu on the JP server.

But I hope you can add the function that can shorten or skip the exit animation of enemies or servants for other servers.

I think that is very easy to implement by just keeping clicking a region before a new round comes.

run.bat 找不到指定的路徑..

從電腦上執行手機裡的run.bat 找不到指定的路徑
default

驅動程式有裝過了
default

手機是ASUS Zenfone 3, 作業系統是win 7 64bit
USB偵錯也有開..不知道是甚麼導致的
還是我的步驟有問題嗎?

Can't install daemon

it seems i cannot install the daemon on my phone.

'.\tools\lua5.1.exe' is not recognized as an internal or external command,
operable program or batch file.

it says like that

Friendly redditor "ANON" asked: is the script safe from being banned?

I'll leave this and my reply here for further ref, I guess people are interested in this.

Everyone, feel free to ask anything here, we(me and other fellow FGO player/contributor) will try to answer them while we're able to do so.

Fate-Grand-Order_Lua
from ***ANON*** sent 17 hours ago

Hi!
Googled to see if I could find the author of "Fate-Grand-Order_Lua" github repo. Thank you for creating something so interesting.

I'm interested in contributing to the project (and using it for myself), but I have invested a bit of money in FGO and I wanted to do some research on the...chance of being banned from using it, before diving it. Would you know of the risk. At least, so far? I know there's no such thing as 0 risk. But would you know of the number of people who have reported being banned?

I've been trying to do research into various PC-casting apps for automation, since all other forms of automation require developer tools enabled... but not much luck there.

Unable to battle

Hi,
When I run the script in the battle screen, no button is being clicked, but i can see "No priority target selected" repeatedly shows up in the screen, the screen just stay like that.

I do suspect it might be screen resolution issue.
My phone screen resolution is 1080 x 1920 pixels, 16:9 ratio.

Possible to give some advise on how to solve this?

thank you

Select favorite servant

If friends servant select,I want select "Gilgames" but,not display friends, so I want refresh and use image file select "Gilgames"

Sorry it cant work on me

My phone is xiaomi note 4 i already follow the instruction until when it says for me to run the .bat on the pc
It always sho the error "the system cannot find the path specified" please help me i already toggle the usb debugging on my phone
Thank you

Got runtime error at the begin of the battle

After I modified the script "FGO_TW_REGULAR" and ran on NOX app player, I got the runtime error at the beginning of the battle. If only run the original script "FGO_TW_REGUALR", it can work without generating any errors. Also, I found that only the problem may happen in Skill_Command. If only give Skill_Command = "bcde5,#,0", it can work. When I give Skill_Command = "bcde5,#,h", the error would generate. Could you give me some advice?

The following instruction that I modified in FGO_TW_REGULAR.lua
Refill_or_Not = 1
Use_Stone = 0
How_Many = 5
Enable_Autoskill = 1
Skill_Confirmation = 0
Skill_Command = "bcde5,#,h6,#,0"

bug

Script blocks on certain points

The script is blocking on certain points, i tried to use it for the story and sometimes it doesn't recognize the next icon on the quest, it doesn't skip the story and it blocks after the quest is completed at the rewards screen after it finishes the quest.

Are those things bugs or are those features not implemented yet?

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.