Commit Graph

168 Commits (e103348201a47aa8c783852a514d8b574b2b1981)

Author SHA1 Message Date
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 480bd1f8a2 Update README 2020-07-23 10:06:33 +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 fddeec93a7 Fix script to change msi file
The msi modification failed because the msi file was still open when the
script started modifying it. The simplest solution was to put all that
in another separate setup_noadmin.py script.
2020-07-23 09:44:23 +02:00
Lertsenem 37eccfeaf4 Add script to fix msi generation
The generated msi will be modified so it can be installed by any user.
2020-07-22 20:46:13 +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 1f26d485f5 Fix Windows msi and exe builds 2020-07-22 18:11:43 +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