Commit Graph

28 Commits (21cb648422f1f9c781335042f5f46c92637eed70)

Author SHA1 Message Date
Lertsenem 18a4b6674e Add the multiple games feature 2021-07-03 20:23:48 +02:00
Lertsenem 4854993a23 Update lokrez workflow to fit other smash games
Changes to basic args, etc. Commit not functionnal yet.
2021-03-03 09:12:35 +01:00
Lertsenem 6bc8e8c9e3 Add new export-options and svg_embed_png option
New set of options to tweak the export, and the first one: a way to
embed PNG images inside the resulting SVG file.
2021-01-06 09:33:36 +01:00
Lertsenem 132c469036 Fix lokrez import 2021-01-05 14:14:25 +01:00
Lertsenem dcf9b676fa Add API functions
get_templates list
get_infos_from_url
generate_pic
2020-12-20 19:24:45 +01:00
Lertsenem a0414569ad Add premices of challonge implementation
Not sure if I will go through with this. Challonge does not allow for
characters infos as far as I can tell.
2020-12-03 09:36:17 +01:00
Lertsenem ab84b86568 Fix twitterHandle loading from lkrz file 2020-12-03 09:35:31 +01:00
Lertsenem a454625207 Add support for json url for playerskins DB 2020-09-17 15:06:23 +02:00
Lertsenem 4c6408bd61 Add --use-smashgg-prefix option
Since most local results don't use player-set prefixes from smash.gg but
rather sponsor infos from the playerskins DB, it's easier to toggle off
the download of those prefixes from smash.gg by default.
2020-09-02 09:07:36 +02:00
Niels Giorno 1eb7a022ff Fix the loading of playerskins DB on Windows
Windows does not load the file with utf8 encoding by default, so I had
to specify it.
2020-08-28 12:50:26 +02:00
Niels Giorno 46bffbe700 Add a new cachedir param 2020-08-28 12:49:55 +02:00
Lertsenem 4b2e5489e5 Fix lkrz trying to load if file does not exist 2020-08-21 11:39:13 +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 f807cf9c6f Fix str-to-pathlib conversion issues 2020-07-22 20:29:23 +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 6e2d697e12 Fix imports for setuptools 2020-07-20 23:54:32 +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 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 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 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 05cb2fa1e9 Add context and fix typos for template generation 2020-07-08 07:53:21 +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 6da2b5e27c Add basic argument parsing in main 2020-07-07 01:54:42 +02:00
Lertsenem 1423716f0e Initial Commit 2020-07-04 19:46:35 +02:00