Commit Graph

133 Commits (ae6352e594fee4c3a15c6e148efa20099e71f3d0)

Author SHA1 Message Date
Lertsenem b27a485cc8 Changes in rebootlyon2020 template
- title in grey
- fix font size & spacing in footer
- change color & opacity for secondaries backgrounds
2020-08-21 11:24:13 +02:00
Lertsenem 8b924c9356 Add B&K smash.gg ID 2020-08-21 11:23:27 +02:00
Lertsenem 708ccf8d0b Fix rebootlyon2020 template footer
And fix some characters positions
2020-07-27 16:24:03 +02:00
Lertsenem d36d369005 Add covid masks for rebootlyon2020 template 2020-07-27 16:13:04 +02:00
Lertsenem 5070b5beac Fix some data in playerskins DB 2020-07-27 14:03:13 +02:00
Lertsenem df7d5a1f56 Add covid masks for rebootlyon2020 template 2020-07-26 14:39:53 +02:00
Lertsenem d1abae1986 Change rebootlyon2020 template layers order
Now the secondary and pocket characters will be drawn on top of the main
character picture.
2020-07-25 23:41:48 +02:00
Lertsenem c205c475e0 Add byleth covid masks in rebootlyon2020 template 2020-07-25 15:35:07 +02:00
Lertsenem 416f733af3 Fix covid mask include in rebootlyon2020 template 2020-07-25 15:34:42 +02:00
Lertsenem aea720d555 Fix prefix/tag spacing in rebootlyon2020 template
Using xml:space="preserve".
2020-07-25 15:03:33 +02:00
Lertsenem 799f76118a Fix bayon covid mask in rebootlyon2020 template
Bayonetta skins even and odd are different.
2020-07-25 14:57:11 +02:00
Lertsenem 3041aafda3 Change rebootlyon2020 template
Better use of for loops for simplification.
Add a covid option to mask characters and logo.
2020-07-25 14:54:22 +02:00
Lertsenem 37051f1f15 Add template-options argument
For now, we just pass a link of keywords as a template context element.
2020-07-25 14:51:10 +02:00
Lertsenem cadb53e3b4 Add context debug in export 2020-07-25 14:51:04 +02:00
Lertsenem 1b1de3b5b9 Fix template reboot2020 for inkscape
The generated svg were ok for FF, but images were wrong on Inkscape,
which can be used to create png exports...

The fix is modifying the width=auto to with=2000 while setting the
preserveRatioAspect to xMinYMin. Also, the secondary and pocket chars
needed to be put inside groups unless the main char image disappeared,
for some reason...
2020-07-23 18:02:11 +02:00
Lertsenem 67077506c6 Modify rebootlyon2020 template
Use full char images instead of head shots.
The old template is renamed as rebootlyon2020-eyesonly
2020-07-23 17:11:32 +02:00
Lertsenem 519b697202 Bump version 2020-07-23 10:14:35 +02:00
Lertsenem e1eab031ae Merge master && bump version 2020-07-23 10:08:41 +02:00
Lertsenem 452507619e Fix template rebootlyon2020 logo
Typo + Windows can't use symlinks
2020-07-23 09:49:45 +02:00
Lertsenem 4160baa524 Fix template rebootlyon2019 logo
Typo + Windows can't use symlinks
2020-07-23 09:48:09 +02:00
Lertsenem bc663474f6 Change template rebootlyon to rebootlyon2019 2020-07-22 20:30:35 +02:00
Lertsenem f807cf9c6f Fix str-to-pathlib conversion issues 2020-07-22 20:29:23 +02:00
Lertsenem c9bc474477 Add __main__.py entry point 2020-07-22 18:10:16 +02:00
Lertsenem acba570218 Add smashggid for Byleth and ZSS 2020-07-22 18:09:55 +02:00
Lertsenem a256a3045f Add relative import to smashgg 2020-07-22 18:08:49 +02:00
Lertsenem 9b2388973c Add cachedir argument for export function
Use system-specific user cache directory thanks to appdirs
2020-07-22 18:07:52 +02:00
Lertsenem 3506f8de17 Add infos in version 2020-07-22 18:06:48 +02:00
Lertsenem 3a7ffaef6d Add proxy parameter to res download function 2020-07-22 18:05:15 +02:00
Lertsenem f887f5fd84 Use pathlib and appdirs modules
Better cross-OS support of paths and config/cache dirs.
2020-07-22 18:04:13 +02:00
Lertsenem 2ea7b3afc4 Refactor arguments parsing
And change some defaults
2020-07-21 00:35:56 +02:00
Lertsenem 8b61e6b8a6 Add ROOTDIR constant
Replaces the unimplemented args.rootdir
2020-07-21 00:34:07 +02:00
Lertsenem f4115da4d0 Remove dir_root use from rebootlyon2020 template
The imgdir path should be absolute or relative, depending on what the
user wants.
2020-07-21 00:30:05 +02:00
Lertsenem 6e2d697e12 Fix imports for setuptools 2020-07-20 23:54:32 +02:00
Lertsenem 603238449b Add playerskins DB file
Based on Lyon's Smash players atm
2020-07-20 23:53:46 +02:00
Lertsenem 7bd09dc959 Add support for playersinks db
Select a default skin depending on the player tag and the character
name.
2020-07-20 18:44:49 +02:00
Lertsenem 4f115740b5 Merge branch 'stable' version 2020-07-19 22:39:49 +02:00
Lertsenem 824928145f First stable version 2020-07-19 22:27:50 +02:00
Lertsenem 3d7509e639 Add --name-seo-delimiter option 2020-07-19 22:26:34 +02:00
Lertsenem bef3d1b7b7 Add a new init subcommand
To download resources.
2020-07-19 17:04:58 +02:00
Lertsenem 0686861296 Add a specific module for characters infos 2020-07-19 15:39:39 +02:00
Lertsenem a8b274f6ce Use Gobold font in rebootlyon2020 template
Plus some adjustment on size & positions of texts
2020-07-18 15:42:42 +02:00
Lertsenem 25b5597772 Add rebootlyon2020 template 2020-07-17 21:58:51 +02:00
Lertsenem 3d59251be5 Add Captain Falcon and Dr Mario smashgg ids 2020-07-17 20:17:08 +02:00
Lertsenem 2e7dfe4bec Remove tmp svg file for inkscape export 2020-07-16 22:22:25 +02:00
Lertsenem 6370484c4e Replace None by "" for teams and twitter names 2020-07-09 18:33:30 +02:00
Lertsenem 9427672d2f Add Min Min smash.gg id translation 2020-07-09 18:33:07 +02:00
Lertsenem e5f0df6a4e Add template rebootlyon2 2020-07-09 18:32:09 +02:00
Lertsenem 4714071968 Add lkrz file loading
Should you need to modify the lkrz file by hand and regenerate the
outfile hereafter.
2020-07-09 15:24:08 +02:00
Lertsenem 1272a64d54 Add export submodule to handle output
This submodule will handle saving the outfile to whatever format you
want.

For now, it can save in svg (default), png using inkscape, png, pdf or
ps using cairosvg.
2020-07-09 14:31:22 +02:00
Lertsenem d02d788dba Change rebootlyon logo to covid special logo 2020-07-09 14:30:42 +02:00
Lertsenem b3fd2473b0 Fix broken symlink 2020-07-09 11:03:33 +02:00
Lertsenem efe9ea717e Add reboot logos 2020-07-09 10:24:29 +02:00
Lertsenem bbb3fcce19 Update rebootlyon template
Among other changes :
- remove background mask which failed with firefox
- change reboot png logo for an SVG one
- include reboot logo dynamically
2020-07-09 10:24:21 +02:00
Lertsenem 0f8d64a091 Change arguments for dir path
Now :
- rootdir is the directory all the img paths will be relative to ;
  defaults to '.'
- imgdir is the directory containing all required images ; defaults to
  'res/ssbu'. It is expected to hold a 'chars' directory
2020-07-09 10:19:03 +02:00
Lertsenem d5a85266c8 Add skin support
characters are now a tuple ("charname", "charskin").
2020-07-09 09:52:31 +02:00
Lertsenem ee1104e36e Fix WFT typo 2020-07-09 09:52:20 +02:00
Lertsenem d700a351f9 Move templates dir up from res.
Templates should not be considered 'resources'.
2020-07-09 09:16:12 +02:00
Lertsenem 11c9528c7a Ignore generated lkrz files
Rename the sample lkrz file too.
2020-07-08 07:55:12 +02:00
Lertsenem 05cb2fa1e9 Add context and fix typos for template generation 2020-07-08 07:53:21 +02:00
Lertsenem 7dc1a4f48b Fix template typos 2020-07-08 07:53:06 +02:00
Lertsenem b73f10a8ba Fix typos in CHARACTERS translation dict 2020-07-08 07:52:37 +02:00
Lertsenem dccde354bd First kinda working version
We can download the infos from smash.gg, but the SVG generation fails
for now.
2020-07-07 16:13:56 +02:00
Lertsenem 874188a20d Update queries 2020-07-07 16:13:23 +02:00
Lertsenem ba7843e3f5 Fix run_query() use of args by adding arguments
run_query() was copied from elsewhere and relied on args being
available to get the token and proxy config. Those are now passed as
function arguments.
2020-07-07 16:11:51 +02:00
Lertsenem e58ba0a3b3 Update Tournament location in conf()
Now with full address, city and country code.
2020-07-07 16:11:12 +02:00
Lertsenem 67fff05bb8 Fix Tournament slug
'slug' in the smash.gg API means all the string
"tournament/tournament-slug", but we only want the "tournament-slug"
part.
2020-07-07 16:10:14 +02:00
Lertsenem 290445a26d Add get_mains() method
Returns the list of chars used ordered by the number of time they were
used.
2020-07-07 16:09:22 +02:00
Lertsenem f5350d506f Order Player chars list based on choices in conf() 2020-07-07 16:08:47 +02:00
Lertsenem a21e8f80b6 Fix Player __init__
Players were all sharing the same chars attribute.
Use int instead of strings for placement and seeds.
2020-07-07 16:07:47 +02:00
Lertsenem 19a1c293c3 Add character translation in smashgg
Translate smash.gg weird characters ids into readable strings
2020-07-07 16:07:06 +02:00
Lertsenem 689261a720 Add imports in smashgg 2020-07-07 16:06:25 +02:00
Lertsenem 2d889db4f1 Rename template rebootlyon 2020-07-07 13:38:34 +02:00
Lertsenem 1d089466ae Modify getCharacters query to use entrantIds
instead of playerIds
2020-07-07 10:09:57 +02:00
Lertsenem 199822d44f Add rebootlyon template 2020-07-07 01:55:54 +02:00
Lertsenem 6da2b5e27c Add basic argument parsing in main 2020-07-07 01:54:42 +02:00
Lertsenem f4116f46cb Add Player and Tournament classes in smashgg
These classes do not match 1:1 with their smash.gg equivalent, but are
more specific to this app.
2020-07-07 01:52:16 +02:00
Lertsenem 01533d3d7b Add more infos in the getTournament* queries
Ask for player twitterHandle, tournament venue and date, etc.
2020-07-07 01:51:04 +02:00
Lertsenem 997cfc153c Refine the lkrz format
prefix players section with "player" for ease of use. Replace 'link' in
the 'Tournament' section by a simpler 'slug'.
2020-07-07 01:49:45 +02:00
Lertsenem 660fa7a7a9 Add basic smash.gg request function 2020-07-07 00:48:14 +02:00
Lertsenem e9df751d9e Add smashgg requests
- get Tournaments top8 (or topX) by slug or id
- get characters selections by Tournament id and Players ids
2020-07-07 00:38:59 +02:00
Lertsenem daf18f10cb Add version.py 2020-07-06 10:39:39 +02:00
Lertsenem a7d6da5146 Add sample lkrz file 2020-07-04 22:17:56 +02:00
Lertsenem 1423716f0e Initial Commit 2020-07-04 19:46:35 +02:00