Code Monkey home page Code Monkey logo

fehbuilder's Introduction

FEH BUILDER

Tool that mimics hero builds from the Fire Emblem Heroes game. It uses the Pillow Python library for generating the picture after the user interacts and send the data on a webpage. All hero/weapon/passive data is obtained by querying the public non-official wiki API, so please help maintain this tool by keeping the wiki updated

The application is still in a rough state so the code quality is low and may contain bugs on stat calculation, missing icons for the skills/weapons and a long etc. Please use the report bug feature on this repository.

Setting up

You can host this app yourself by following the next steps (no technical explication or configuration examples are provided for now):

  1. Clone this source code
  2. Run the units.py, skills.py, downloadimages.py and other.py from the scripts folder to obtain the most recent data from the wiki (the current one as of 18/07/2021 is included in this repo)
  3. Ideally you want to replace the Roboto font included under the data folder with the Heroes own font for more fidelity. However I'm uncertain of the nature of the license for that file so it cannot be shared and it's up to you to look it up.
  4. Setup nginx/apache or whatever your webserver of choice is to serve the static folder normally
  5. Setup the python application so it listens and serves the image generation requests. A Dockerfile is provided for ease of setup
sudo docker build -t=fehbuilder .;
sudo docker run -d --rm --name=fehbuilder -p 8000:8000 -v $(pwd)/data:/data fehbuilder
  1. Add a configuration on your webserver so all requests to /get_image.png are redirected to your local webserver at port 8000
  2. Everything should be working now. Don't hesitate to ask questions.

License

All python, javascript, html and css code in this repository is licensed under GPL3. You are free to modify and redistribute it as long as you provide the modified code to the users of your distribution. Please refer to the include LICENSE file for more details. The Roboto font included is licensed by Google under Apache License, Version 2.0. Please refer to https://fonts.google.com/specimen/Roboto#license

fehbuilder's People

Contributors

aarchilla avatar eskuero avatar

Watchers

 avatar  avatar

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.