Lertsenem
ab84b86568
Fix twitterHandle loading from lkrz file
2020-12-03 09:35:31 +01:00
Lertsenem
bdfdc398de
Add SSBU char Steve
2020-12-01 17:39:07 +01:00
Lertsenem
f7e4ff3fbd
Adjust chars pos in rebootlyon2020
2020-11-18 12:10:23 +01:00
Lertsenem
732b201a99
Update playerskins db
2020-09-17 17:29:17 +02:00
Lertsenem
7b8d56bc9c
Add redirect to players DB
2020-09-17 17:29:08 +02:00
Lertsenem
a454625207
Add support for json url for playerskins DB
2020-09-17 15:06:23 +02:00
Lertsenem
b9e7ed45b7
Move chars in meltdown template
...
Move palutena, terry and ridley.
2020-09-17 12:29:16 +02:00
Lertsenem
5a0744744d
Update players skins DB
2020-09-17 12:20:19 +02:00
Lertsenem
4be84b9d0c
Move pichu in reboot template
2020-09-17 12:19:59 +02:00
Lertsenem
4a8426b887
Move Tink in meltdown template
2020-09-17 12:19:45 +02:00
Lertsenem
e2d3e41a38
Add Ridley smashgg id
2020-09-17 12:18:21 +02:00
Lertsenem
24c5c2d12b
Update playerskins DB
2020-09-09 13:19:14 +02:00
Lertsenem
db9c6210fd
Update data in playerskins DB
2020-09-05 16:31:06 +02:00
Lertsenem
8454bfe335
Update playerskins DB
2020-09-04 12:49:44 +02:00
Lertsenem
9904d37e10
Update byleth f position in template meltownlyon2020
2020-09-04 12:46:59 +02:00
Lertsenem
6d12851ea5
Update playerskins DB
2020-09-04 12:46:23 +02:00
Lertsenem
83c62d45aa
Add char scaling to template rebootlyon2020
2020-09-03 15:51:41 +02:00
Lertsenem
3a5d7a5f2b
Update skins in playerskins DB
2020-09-03 13:44:05 +02:00
Lertsenem
b02093addf
Fix chars positions in template meltdownlyon2020
2020-09-02 09:13:07 +02:00
Lertsenem
0a219ca856
Add shadow to template meltdownlyon2020
...
Add a backdrop shadow behind the player rank for better readability.
2020-09-02 09:12:01 +02:00
Lertsenem
292a5cf413
Fix chars positions in template rebootlyon2020
2020-09-02 09:11:36 +02:00
Lertsenem
f35d467a40
Fix export issue
...
PNG came out wrong because of concurrency (?) issues where the SVG file
was converted before being fully generated. The solution was to close
the temporary file between each operation.
2020-09-02 09:09:35 +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
Lertsenem
9fd12d7a90
Add smashgg id for chrom and richter
2020-09-02 09:06:38 +02:00
Lertsenem
61d8074a67
Update playerskins DB
2020-09-02 09:06:12 +02:00
Niels Giorno
e5907ad380
Fix jinja2 dump in temporary file for Windows
...
tempfile.NamedTemporaryFile() creates **and opens** the file.
jinja2.stream().dump() will try to open the file too, if given a str
(filename). This does not cause issue on Linux, but on Windows the same
file cannot be open twice at the same time...
The solution was to pass a file pointer to 'dump()' instead of the
filename, so jinja2 does not need to open it again.
2020-08-28 12:53:46 +02:00
Niels Giorno
01f90de9c2
Fix export when cairosvg module is not found
...
If not found, the program should not try to export the image using it
anyway.
2020-08-28 12:52:53 +02:00
Niels Giorno
deb2e031a1
Fix temporary file suffix svg -> .svg
2020-08-28 12:51:49 +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
Niels Giorno
a70184923b
Fix typo in template meltdownlyon2020
...
Forgot closing parenthesis when referencing images clips, which caused
the SVG to display correctly in browser but not in inkscape (hence
malformed PNG exports).
2020-08-28 12:47:46 +02:00
Lertsenem
cc4a2f1053
Add new meltdownlyon2020 template
2020-08-28 08:58:47 +02:00
Lertsenem
3835adc079
Fix & Update playerskins data
2020-08-28 08:58:04 +02:00
Lertsenem
f8861f553e
Update playerskins db
2020-08-27 09:27:34 +02:00
Lertsenem
041c36045f
Add some missing smashgg ids for some characters
2020-08-26 18:21:58 +02:00
Lertsenem
34cdfc8606
Add skin-dependant framing for reboot2020 template
...
Some characters have skins different enough that they need to be framed
differently (bowser jr, bayonetta, etc). Now the character
"corrections" used by the template to frame the characters correctly can
be set independently for each skin.
2020-08-21 22:50:10 +02:00
Lertsenem
edd220a521
Add data to players db
2020-08-21 22:49:27 +02:00
Lertsenem
4b2e5489e5
Fix lkrz trying to load if file does not exist
2020-08-21 11:39:13 +02:00
Lertsenem
d6f792c01d
Fix players db typos
2020-08-21 11:38:51 +02:00
Lertsenem
8ca17429de
Add sponsor infos in DB
2020-08-21 11:34:02 +02:00
Lertsenem
bdc46de226
Fix some chars positions in rebootlyon2020
...
In the long run, positions should become skins dependent since some
chars alts can't be framed identically (case in point : Bowser Jr).
2020-08-21 11:27:21 +02:00
Lertsenem
9931944def
Remove covid masks for BJr alts in rebootlyon2020
2020-08-21 11:26:16 +02:00
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