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

80 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] [-S] -T  [...] [--dryrun | --checksum]

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

options:
  -h, --help            show this help message and exit
  -O , --output_path    Image generate ouput path, default is "./image"
  -S , --search_id      Search specific event with unique ID
  -T  [ ...], --type  [ ...]
                        Select fetches border type
  --dryrun              Don't generate border-image and output folder to disk
  --checksum            Don't generate any file or folder, test API response
  --static              Don't fetch any thing from internet, test image generate with existing JSON file

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 body is jf open 粉圓