5 Commits 8522d51719 ... 809b999ab3

Author SHA1 Message Date
  Lertsenem 809b999ab3 Fix generation from lkrz file 1 year ago
  Lertsenem 8055d8af80 Add last SSBU character: Sora 1 year ago
  Lertsenem 790fb8ad4c Fix character positions 1 year ago
  Lertsenem 46fcfd13da Fix Kazuya ID 1 year ago
  Lertsenem dabd05f216 Fix meltdown template font size 1 year ago

+ 4 - 1
lokrez/__init__.py

@@ -123,7 +123,10 @@ def get_infos_from_file(
123 123
 
124 124
     log.info("Loading data from '{}'".format(str(lkrz_file_path)))
125 125
 
126
-    if s in lkrz:
126
+    top_players = {}
127
+    tournament = None
128
+
129
+    for s in lkrz:
127 130
         section = lkrz[s]
128 131
         if s == "Tournament":
129 132
             tournament = smashgg.Tournament(

+ 12 - 1
lokrez/games/ssbu.py

@@ -1004,7 +1004,7 @@ EVERYONE = [
1004 1004
                     },
1005 1005
                 ),
1006 1006
         Character(
1007
-                smashggid = None,
1007
+                smashggid = 1846,
1008 1008
                 name = "kazuya",
1009 1009
                 codenames = [ "demon", ],
1010 1010
                 res_urls = {
@@ -1014,5 +1014,16 @@ EVERYONE = [
1014 1014
                         ],
1015 1015
                     },
1016 1016
                 ),
1017
+        Character(
1018
+                smashggid = 1897,
1019
+                name = "sora",
1020
+                codenames = [ "trail", ],
1021
+                res_urls = {
1022
+                    "spriters": [
1023
+                        "https://www.spriters-resource.com/download/163416/",
1024
+                        "https://www.spriters-resource.com/download/111395/",
1025
+                        ],
1026
+                    },
1027
+                ),
1017 1028
         ]
1018 1029
 

+ 2 - 0
lokrez/templates/_covid/covid.j2

@@ -365,6 +365,7 @@
365 365
         "04": "joker",
366 366
         "05": "joker",
367 367
     },
368
+    "kazuya": {},
368 369
     "ken": {
369 370
         "00": "ken",
370 371
         "01": "ken",
@@ -884,6 +885,7 @@
884 885
         "09": "sonic",
885 886
         "10": "sonic",
886 887
     },
888
+    "sora": {},
887 889
     "squirtle": {
888 890
         "00": "squirtle",
889 891
         "01": "squirtle",

+ 9 - 0
lokrez/templates/confismash/characters_corrections.j2

@@ -117,6 +117,15 @@
117 117
     "simon": { "default": (-60, -1) },
118 118
     "snake": { "default": (-48, 0) },
119 119
     "sonic": { "default": (-20, 4) },
120
+    "sora": {
121
+        "default": (20, -20),
122
+        "01": (-10, -40),
123
+        "02": (-50, -60),
124
+        "03": (30, -20),
125
+        "05": (-50, -60),
126
+        "06": (30, -20),
127
+        "07": (30, -20),
128
+    },
120 129
     "squirtle": { "default": (-7, 8) },
121 130
     "steve": { "default": (0, 0) },
122 131
     "terry": { "default": (-60, -7, 0.65) },

+ 29 - 7
lokrez/templates/meltdownlyon2020/characters_corrections.j2

@@ -18,7 +18,7 @@
18 18
     "captain falcon": { "default": (-20, 0) },
19 19
     "charizard": { "default": (23, -22) },
20 20
     "chrom": { "default": (2, -12) },
21
-	"cloud": {
21
+    "cloud": {
22 22
         "default": (-20, -10),
23 23
         "01": (-57, -10),
24 24
         "03": (-57, -10),
@@ -33,7 +33,7 @@
33 33
     "donkey kong": { "default": (19, -6) },
34 34
     "dr mario": { "default": (40, -6) },
35 35
     "duck hunt": { "default": (30, -38) },
36
-    "falco": { "default": (28, -7) },
36
+    "falco": { "default": (28, -20) },
37 37
     "fox": { "default": (30, -10) },
38 38
     "ganondorf": { "default": (-30, -6) },
39 39
     "greninja": { "default": (26, -20) },
@@ -51,12 +51,25 @@
51 51
     "isabelle": { "default": (40, -20) },
52 52
     "ivysaur": { "default": (20, -33) },
53 53
     "jigglypuff": { "default": (30, -15) },
54
-    "joker": { "default": (20, -18) },
54
+    "joker": {
55
+        "default": (0, -15),
56
+        "00": (10, -15),
57
+        "02": (10, -15),
58
+        "04": (10, -15),
59
+        "06": (10, -15),
60
+            },
61
+    "kazuya": {
62
+        "default": (0, -8),
63
+        "00": (20, -15),
64
+        "02": (20, -15),
65
+        "04": (20, -15),
66
+        "06": (20, -15),
67
+    },
55 68
     "ken": { "default": (20, -10) },
56 69
     "king dedede": { "default": (20, -10) },
57 70
     "king k rool": { "default": (20, -7) },
58 71
     "kirby": { "default": (30, -17) },
59
-    "link": { "default": (-10, -20) },
72
+    "link": { "default": (0, -30) },
60 73
     "little mac": { "default": (20, -5) },
61 74
     "lucario": { "default": (30, -13) },
62 75
     "lucas": { "default": (26, -15) },
@@ -68,7 +81,7 @@
68 81
     "meta knight": { "default": (10, -38) },
69 82
     "mewtwo": { "default": (10, -16) },
70 83
     "mii fighter": { "default": (0, 0) },
71
-    "mii gunner": { "default": (0, 0) },
84
+    "mii gunner": { "default": (37, -10) },
72 85
     "mii swordsman": { "default": (0, 0) },
73 86
     "min min": { "default": (10, -23) },
74 87
     "mr game and watch": { "default": (26, -13) },
@@ -84,7 +97,7 @@
84 97
     "pokemon trainer": { "default": (25, -5) },
85 98
     "richter": { "default": (20, -20) },
86 99
     "ridley": { "default": (15, -37) },
87
-    "rob": { "default": (15, -4) },
100
+    "rob": { "default": (25, -4) },
88 101
     "robin": {
89 102
         "default": (-32, -8),
90 103
         "01": (-70, -17),
@@ -106,6 +119,15 @@
106 119
     "simon": { "default": (-20, -11) },
107 120
     "snake": { "default": (-8, -10) },
108 121
     "sonic": { "default": (20, -6) },
122
+    "sora": {
123
+        "default": (20, -20),
124
+        "01": (-10, -40),
125
+        "02": (-50, -60),
126
+        "03": (30, -20),
127
+        "05": (-50, -60),
128
+        "06": (30, -20),
129
+        "07": (30, -20),
130
+    },
109 131
     "squirtle": { "default": (33, -2) },
110 132
     "steve": { "default": (0, 0) },
111 133
     "terry": { "default": (-20, -20, 0.65) },
@@ -119,7 +141,7 @@
119 141
     "zelda": { "default": (-20,-7) },
120 142
     "zero suit samus": { "default": (-13, -11) },
121 143
     "pyra" : { "default": (-90, 0) },
122
-    "pyra & mythra" : { "default": (-140, 0) },
144
+    "pyra & mythra" : { "default": (-55, -18) },
123 145
     "mythra" : { "default": (-30, 0) },
124 146
     "mythra & pyra" : { "default": (-80, 0) },
125 147
 } %}

+ 3 - 3
lokrez/templates/meltdownlyon2020/template.svg.j2

@@ -4641,7 +4641,7 @@
4641 4641
              style="font-style:italic;font-variant:normal;font-weight:bold;font-stretch:condensed;font-size:16.5882px;font-family:Arial;-inkscape-font-specification:'Arial Bold Italic Condensed';fill:{{ ["#edc708", "#b2b2b2", "#c0552f", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff"][loop.index0] }};fill-opacity:1;stroke-width:0.259192px">{{loop.index if loop.index not in [6,8] else loop.index0}}</tspan></text>
4642 4642
       </g>
4643 4643
       <text
4644
-         style="text-align:end;text-anchor:end;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:condensed;font-size:20.4611px;line-height:125%;font-family:Impact;-inkscape-font-specification:'Impact Condensed';letter-spacing:-0.105833px;word-spacing:0px;fill:#93e700;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
4644
+         style="text-align:end;text-anchor:end;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:condensed;font-size:20px;line-height:125%;font-family:Impact;-inkscape-font-specification:'Impact Condensed';letter-spacing:-0.105833px;word-spacing:0px;fill:#93e700;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
4645 4645
          x="323"
4646 4646
          y="120.59898"
4647 4647
          id="player{{loop.index}}_txt"
@@ -4652,7 +4652,7 @@
4652 4652
          <tspan
4653 4653
            sodipodi:role="line"
4654 4654
            id="tspan3186"
4655
-           style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:condensed;font-size:20.4611px;font-family:Impact;-inkscape-font-specification:'Impact Condensed';fill:#93e700;fill-opacity:1;stroke-width:0.264583px"
4655
+           style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:condensed;font-size:20px;font-family:Impact;-inkscape-font-specification:'Impact Condensed';fill:#93e700;fill-opacity:1;stroke-width:0.264583px"
4656 4656
            >
4657 4657
            {{p.prefix|upper|e}}
4658 4658
            <tspan xml:space="preserve"></tspan>
@@ -4660,7 +4660,7 @@
4660 4660
         {% endif %}
4661 4661
         <tspan
4662 4662
            id="tspan3190"
4663
-           style="font-size:20.4611px;fill:#ffffff;fill-opacity:1;stroke-width:0.264583px"
4663
+           style="font-size:20px;fill:#ffffff;fill-opacity:1;stroke-width:0.264583px"
4664 4664
            >
4665 4665
            {{p.gamerTag|upper|e}}
4666 4666
         </tspan>

+ 22 - 7
lokrez/templates/rebootlyon2020/characters_corrections.j2

@@ -12,7 +12,7 @@
12 12
     "captain falcon": { "default": (13, 0) },
13 13
     "charizard": { "default": (23, -22) },
14 14
     "chrom": { "default": (2, -12) },
15
-	"cloud": {
15
+    "cloud": {
16 16
         "default": (-20, -10),
17 17
         "01": (-57, -10),
18 18
         "03": (-57, -10),
@@ -27,7 +27,7 @@
27 27
     "donkey kong": { "default": (19, -6) },
28 28
     "dr mario": { "default": (40, -6) },
29 29
     "duck hunt": { "default": (30, -38) },
30
-    "falco": { "default": (28, -7) },
30
+    "falco": { "default": (28, -20) },
31 31
     "fox": { "default": (30, -10) },
32 32
     "ganondorf": { "default": (-30, -6) },
33 33
     "greninja": { "default": (26, -20) },
@@ -46,12 +46,18 @@
46 46
         "04": (10, -15),
47 47
         "06": (10, -15),
48 48
             },
49
-    "kazuya": { "default": (0, 0) },
49
+    "kazuya": {
50
+        "default": (0, -8),
51
+        "00": (20, -15),
52
+        "02": (20, -15),
53
+        "04": (20, -15),
54
+        "06": (20, -15),
55
+    },
50 56
     "ken": { "default": (20, -10) },
51 57
     "king dedede": { "default": (20, -10) },
52 58
     "king k rool": { "default": (20, -7) },
53 59
     "kirby": { "default": (30, -17) },
54
-    "link": { "default": (-10, -20) },
60
+    "link": { "default": (0, -30) },
55 61
     "little mac": { "default": (20, -5) },
56 62
     "lucario": { "default": (30, -13) },
57 63
     "lucas": { "default": (26, -15) },
@@ -63,7 +69,7 @@
63 69
     "meta knight": { "default": (10, -38) },
64 70
     "mewtwo": { "default": (10, -16) },
65 71
     "mii fighter": { "default": (0, 0) },
66
-    "mii gunner": { "default": (0, 0) },
72
+    "mii gunner": { "default": (37, -10) },
67 73
     "mii swordsman": { "default": (0, 0) },
68 74
     "min min": { "default": (10, -23) },
69 75
     "mr game and watch": { "default": (26, -11) },
@@ -79,7 +85,7 @@
79 85
     "pokemon trainer": { "default": (25, -5) },
80 86
     "richter": { "default": (6, -30) },
81 87
     "ridley": { "default": (20, -20) },
82
-    "rob": { "default": (15, -4) },
88
+    "rob": { "default": (25, -4) },
83 89
     "robin": {
84 90
         "default": (-32, -8),
85 91
         "01": (-70, -17),
@@ -101,6 +107,15 @@
101 107
     "simon": { "default": (-20, -11) },
102 108
     "snake": { "default": (0, -3) },
103 109
     "sonic": { "default": (20, -6) },
110
+    "sora": {
111
+        "default": (20, -20),
112
+        "01": (-10, -40),
113
+        "02": (-50, -60),
114
+        "03": (30, -20),
115
+        "05": (-50, -60),
116
+        "06": (30, -20),
117
+        "07": (30, -20),
118
+    },
104 119
     "squirtle": { "default": (33, -2) },
105 120
     "steve": { "default": (0, 0) },
106 121
     "terry": { "default": (20, 50, 0.66) },
@@ -114,7 +129,7 @@
114 129
     "zelda": { "default": (-20,-7) },
115 130
     "zero suit samus": { "default": (-13, -11) },
116 131
     "pyra" : { "default": (-30, -10) },
117
-    "pyra & mythra" : { "default": (-65, -18) },
132
+    "pyra & mythra" : { "default": (-55, -18) },
118 133
     "mythra" : { "default": (30, -10) },
119 134
     "mythra & pyra" : { "default": (-20, -10) },
120 135
 } %}