Coder Social home page Coder Social logo

granblue-ahk's Introduction

granblue-ahk

middle school coding project adapted from https://github.com/UmaiCake/gravel-things Needs viramate

Tested on:

  • http://game.granbluefantasy.jp
  • Monitor Resolution = 1080p/1440p DPI scaling 100% (Press F1 while the script is running to resize the window correctly)
  • Browser = Chromium 52 (Bookmark toolbar turned off)
  • Language = English
  • Animation/Resolution Settings = [Animation Settings : "Standard", Resolution Settings : "High"]
  • Browser Version Settings = [Automatic Resizing : "Off", Window Size : "Medium"]
  • Viramate Settings = [Show skill cooldowns in main view : "Off", Show larger skill buttons : "Off", Show quick skill buttons : "On"]

How it works:

  1. Quest Selection Page - From the quest page, the script searches for images (selectOne,selectTwo) and then clicks on them or at an offset (selectOne_X / Y etc.).
  2. Summon Selection Phase - Upon entering the summon selection page, it looks for the summon icon of your choosing if it's not activated (summonIconType) and clicks it so that it becomes activated (summonIconTypeSelected). Once the icon is activated it clicks on a coordinate (first_summon_X / Y) to choose the summon. Once the summon is chosen, it searches for the party auto select icon (selectSummonAutoSelect) and uses an offset (select_party_auto_select_offset_X / Y) to click the OK button.
  3. Battle Phase - There's a number of ways to customize the battle phase, actions can however only be performed based on turns passed and if the result screen is skipped the turn counter gets messed up. See gbfscript_generic.ahk or gbfscript_explus.ahk on some examples.
  4. Result Phase - The script counts up on the rounds completed and can stop based on maxRounds or when the timer (ForceExitApp) has elapsed

Why doesn't it work:

If you have the exact same settings, CSS hacks, and resolution, it should work. But different versions of webkit and hence chrome tend to render images slightly different so you might need to recapture the images when the script can't find it. The offsets should be all the same unless you disable the black bar at the side, have Chrome's bookmark toolbar enabled, or are using Window's DPI scaling (its shitty anyway dont use it). AHK is pretty simple so you should be able to fix it yourself.

Todo

  • Not use counters to timeout stuff that's pretty dumb
  • Not use AHK

granblue-ahk's People

Contributors

kyoukaya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Forkers

po456asd

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.