MizaGBF / GBFAL

GBF Asset Lookup, an image viewer for Granblue Fantasy
https://mizagbf.github.io/GBFAL/
MIT License
26 stars 1 forks source link
granblue-fantasy granbluefantasy image-finder image-viewer javascript python

GBF Asset Lookup

pages-build-deployment
Web page to search for Granblue Fantasy assets.
Click Here to access it.

Updater Requirements

Front-End

There are two pages:

[!NOTE]
These pages are static and are currently hosted on Github Pages, but it can technically be hosted anywhere.

Back-End

Two of the JSON files in the json folder are the core of the system:

Others JSON files are used for debug or update purpose:

More JSON files not specified here might appear in this folder, for development or testing purpose.

updater.py

This script is in charge of updating the JSON files.

[!CAUTION]
Using it can be time and bandwidth consuming.

Running python updater.py without any parameters will give you an up-to-date list of parameters, but here's a description of them at the time of writing this README: Start parameters:

Action parameters (Only one of those can be used at a time):

[!TIP]
For an "every day" use case, you'll only need to:
Use -run after game updates.
Use -update for element uncaps or if an older NPC got new arts, with their IDs.
Use -eventedit if a new event didn't get its thumbnail automatically set.
Use -job and -jobedit when new MC classes or skins are released to find and set their datas.

[!TIP]
For maintenance purpose, you might need, once in a while, to:
Use -lookup to manually update the lookup table. It's usually called automatically after -update.
Use -scenefull or its variants to update specific scene files. For example, if a new file name has been noticed to be missing, you can add the related suffixes in updater.py to SCENE_SUFFIXES and then run -scenefull followed by the suffix to only search for those files and save on time and bandwidth. This commands supports resuming.
Use -sound to update sound files. Unlike -scenefull, you can't search for specific files but you can set IDs to update. Or you can update_chara_sound_file_prep in updater.py to reduce the scope to certain files and save time. This commands supports resuming.
Use -buff to update old buffs with their new variants.

Pause

You can pause updater.py with a simple CTRL+C. It opens a CLI letting you save, exit or resume with text commands.
It'll also show you the current number of cleared tasks.
This number can be provided to some commands (like -scenefull and -sound) to resume later.

[!NOTE] For example, let's say you must stop -scenefull. Do CTRL+C. Type save to save any pending changes.
Take note of the current State shown. For our example, let's say it's 3547/11763.
If you wish to resume this command later, you can do python updater.py -scenefull 3500, plus whatever other parameters you used for that command.
Due to the asynchronous nature of the script, always use a slightly lower number (3500 for 3547 in this example) to be sure to catch any non completed tasks.

Additional Notes