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 server side or the canvas functionality on your browser after the user interacts with the webpage.

All static data is obtained by parsing HertzDevil's dumps:

https://github.com/HertzDevil/feh-assets-json

And then obtains the required assests such as heroes art and skills icons from the fandom wiki:

https://feheroes.fandom.com/wiki/Main_Page

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
$ git clone https://github.com/Eskuero/fehbuilder
  1. Run the images-wiki.py (this is only needed for the first setup) and renewdata.sh from the scripts folder to obtain the most recent data and assets.
$ cd scripts/other;
$ python3 images-wiki.py;
$ cd ..;
$ sh renewdata.sh;
  1. 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 included in this repo.
  2. Setup nginx/apache or whatever your webserver of choice is to serve the static folder normally. I also recommend adding configuration to instruct clients to cache the images longer. This is a sample version:
location / {
	root /fehbuilder/static/;
	index index.html;
	location ~* \.(jpeg|jpg|webp|png|woff2)$ {
		add_header Cache-Control "max-age=86400, must-revalidate";
	}
	location ~* \.(json|js|css|html)$ {
		add_header Cache-Control "no-cache";
	}
}
  1. Everything should be working now. Don't hesitate to ask questions.

License

All Python and Javascript code in this repository is licensed under AGPL v3. You are free to modify and redistribute it as long as you provide the modified code to the users you make it available to (either via distribution or over a network). 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

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

Watchers

 avatar  avatar  avatar  avatar  avatar

fehbuilder's Issues

Change unit rarity

Just out of curiosity...will we be getting the ability to change a unit's ★ rating in the future, or will we have to use their maximum of 5★?

  • Cross

Random Tier List Save File Corruption

As the title suggests, at random, the save for one of my tier lists will get corrupted. It will make all tiers white, erase all their text, and reformat the text so that it will not display properly. Sometimes, it only happens to 1 or 2 tiers, but most of the time it happens to all of them. I am unsure what causes, especially as the trigger isn't exactly consistent.

Steps To Reproduce

  • Make a tier list.
  • Save it in a slot that isn't Default
  • Leave and come back or refresh the page.
  • Load the tier list again.

At pure random, this bug will occur, and seemingly not generating an error with the console. IDK if it's because of the edits I make in-between saves or what, but this does keep happening.

Edit: It did produce an error, here it is.

image

Res Stat Miscalculation

Hi there

Just wanted to bring to your attention a mismatch between an in game res stat and the res shown by the Unit builder.

I'm checking my Units stats from the edit teams screen to stop invisible buffs applying.

The Wing Sword refine in both cases is the flashing Blades ability if you wish to recreate this.

Screenshot_20210807-014839

This is my in game stat screen with 40 res. And now recreating the hero in unit builder

image

Thanks for all the hard work!

Tier List Generator Doesn't Save Second Tier List

Steps To Reproduce:

Go to the tier list editor.
Make a tier list.
Click Save
Create A New Tier List that isn't in the default spot.
Click Save Again and make sure it's saved to the correct spot.
Close the page.
Go back to the page
Load the tier list that isn't in the Default spot.

Once done, you will find that the tiers are cleared, but not only are they not filled with the tier list that was thee, but the tiers renamed in the default list will not change to what they are in the new list.

Expected Outcome: If you save a tier list in a spot that isn't default, it should still be there the next time you load it up

Tier List Generator Doesn't Save If The Tiers Are A Different Name From Default

Steps To Reproduce:

Go to the tier list editor.
Make a tier list.
Click Save
Create A New Tier List that isn't in the default spot.
Make sure that at least one of the tiers is named differently from its equivalent on default.
Click Save Again and make sure it's saved to the correct spot.
Close the page.
Go back to the page
Load the tier list that isn't in the Default spot.

Once done, you will find that just like in the last bug I reported, you'll wind up with an empty tier list and all of the tiers named the same as in Default.

Expected: Loading the tier list would properly show all the tiers correctly as organized before with their correct labelling.

image

I had also opened the console to see what is happening, and this is the error I discovered.

Tier List Download gives empty text file.

Steps To Reproduce:

  1. Go to the tier list editor.
  2. Make a tier list.
  3. Attempt to download it.

When this done, instead of downloading the tier list, you wind up downloading an empty text file instead.

Expected Outcome: Downloading the tier list in the form of an image.

Engaged special skill won't change in Condensed and Echoes Stats UI

With the addition of Emblem Hero and Engage mechanic in the game. As the title says. Any unit equipped/Engaged with Emblem Marth (so far) won't change his/her special skill icon to its appropriate Emblem Hero with ring frame, changes the text to green, and grants additional permanent stats (if merges apply) in the builder Condensed and Echoes stats UI, My Unit however has no issue.

I.e. +1 merged Emblem Marth should grant Legendary Caeda +1 HP while Engaged (39 -> 40).

Screenshot_20240205-064115~2
Screenshot_20240205-064122~2

Innaccuracy War God Thorr stat

I tried to experimental build on Thorr since the Arcane Axe will be coming soon, but the stat on the builder are not accurate and different from my current Thorr.

Please fix this issues

Tiki: Legendary Dragon cannot equip Passive C Skill, "With Everyone!" or "With Everyone! II" if her weapon is "Arcane Grima"

In the Unit Builder, if "Tiki: Legendary Dragon" is selected, if the specific weapon "Arcane Grima" is equipped, Tiki cannot be given the "With Everyone!" or "With Everyone! II" Passive C Skills. This only seems to affect the weapon, "Arcane Grima". Weapons other than "Divine Mist" outside of "Arcane Grima" can be selected, and her non-inheritable C skills can still be selected.

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.