Skip to content

MLTD JP server event fetcher and border-image generator

License

Notifications You must be signed in to change notification settings

LTurret/mltd-border-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MLTD JP server event fetcher and border-image generator

English | 繁體中文

A Python based Rank fetcher and border-image generator

Usage

$ ./AnnaBorder --help
usage: AnnaBorder.exe [-h] [-O] [-I] [-T  [...]] [--dryrun | --checksum | --static]

Generator that fetches hosting event information and border datasets then generates border image.

optional arguments:
  -h, --help            show this help message and exit
  -O , --output_path    Image generate output path, default is "./image"
  -I , --identify       Search specific event with unique ID
  -T  [ ...], --type  [ ...]
                        Select fetches border type
  --dryrun              Not generates image but generates dataset, fetching dataset from API, used for testing dataset
  --checksum            Not generates image and dataset, used for testing API correspondence
  --static              Not generates dataset but generates image using local dataset, will not fetching from API

Option decription

[-T [...]] is border type, using *args format, provides PT-rank("pt"), HighScore("hs"), LoungePoint("lp")
it can enter multiple border types, generates more than one border-image

Customization

.psd file in the ./components folder makes everyone change border-background to their own style

Configuration

config.json is event informations data, border data, fonts, background file location, with customization, convenient the file organization

Build

Developing libraries:

aiohttp
argparse
asyncio
PIL

For packaging library:

pyinstaller

Example prefix and parameters:

pyinstaller -F "main.py" -i "icon.ico"

License

Licensed under MIT.

The copyright of any characters in the image(includes .psd, .png) belongs to Bandai Namco Entertainment.
All the event information is provided by api.matsurihi.me
Font used in the image title is ChiuKong Gothic
Font used in the image subtitles and body are jf open 粉圓