README.adoc 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. Lokrez
  2. ======
  3. A smash.gg-aware local-results generator for Super Smash Brothers Ultimate.
  4. Usage
  5. -----
  6. ----
  7. $> lokrez -t [your-smash.gg-auth-token] top8 [tournament-slug-or-id]
  8. ----
  9. The resulting outputs will be in +tournament-slug.lkrz+ (text version) and
  10. +tournament-slug.svg+ (image version).
  11. Use the +--help+ option for further details.
  12. Requirements
  13. ------------
  14. === Modules
  15. - *appdirs* is needed to find the right emplacements for config, cache and data
  16. files according to the OS ;
  17. - *jinja2* is needed for templating ;
  18. - *requests* is needed for HTTP(s) requests ;
  19. - *cairosvg* can be used for some rasterized exports (see corresponding
  20. section)
  21. === Templates
  22. The *rebootlyonXXX* templates needs the *Impact* font (available by default on
  23. Windows, install +ttf-mscorefonts-installer+ on Ubuntu or Debian).
  24. The *rebootlyon2020* template also need the *Gobold Regular* font, available at
  25. https://www.dafont.com/gobold.font (free for personnal use).
  26. === Exports
  27. The default and preferred output format is *SVG*.
  28. You can also export to *PNG*, *PDF* and *PS* by using the corresponding
  29. extension in the filename supplied to +--outfile+. Those exports are based on
  30. the *SVG* output.
  31. To export in *PNG*, lokrez will first try to use *Inkscape* command line. If
  32. that fails (inkscape is not installed, or lokrez can't find it in your PATH),
  33. it will try to use the *cairosvg* module (which can create artefacts for some
  34. SVG objects).
  35. To export in *PDF* or *PS*, lokrez will try to use the *cairosvg* module.
  36. === Images
  37. The SSBU characters images are not included (since this is both copyrighted
  38. work and a lot of heavy bitmaps). The +init+ command is designed to download
  39. them for you and rename them according to lokrez expectations. Use it with
  40. +lokrez init ssbu+. Then you can go make yourself a cup of coffee or two,
  41. because that's about 3G you're going to download.
  42. By default, the images are
  43. For reference, the images names look like :
  44. -----
  45. {charactername}/chara_{formatnumber}_{charactername}_{skinnumber}.png
  46. -----
  47. where:
  48. - +charactername+ is the character name (see <<_SSBU_charaappendix for valid names)
  49. - +formatnumber+ indicates what kind of image it is
  50. * +0+ is a 128x128 head crop
  51. * +1+ is a 512x512 bust crop
  52. * +2+ is the stock icon
  53. * +3+ is a large bust crop
  54. * +4+ is the ingame portrait
  55. * +5+ is the full image
  56. * +6+ is the 512x256 eyes crop
  57. * +7+ is a ?x300 upper bust crop
  58. - +skinnumber+ indicates the character skin (00 being the default)
  59. Annexes
  60. -------
  61. === SSBU Characters names
  62. These are the string used to name SSBU characters.
  63. - +banjo & kazooie+
  64. - +bayonetta+
  65. - +bowser+
  66. - +bowser jr+
  67. - +byleth+
  68. - +captain falcon+
  69. - +charizard+
  70. - +chrom+
  71. - +cloud+
  72. - +corrin+
  73. - +daisy+
  74. - +dark pit+
  75. - +dark samus+
  76. - +diddy kong+
  77. - +donkey kong+
  78. - +dr mario+
  79. - +duck hunt+
  80. - +falco+
  81. - +fox+
  82. - +ganondorf+
  83. - +greninja+
  84. - +hero+
  85. - +ice climbers+
  86. - +ike+
  87. - +incineroar+
  88. - +inkling+
  89. - +isabelle+
  90. - +ivysaur+
  91. - +jigglypuff+
  92. - +joker+
  93. - +ken+
  94. - +king dedede+
  95. - +king k rool+
  96. - +kirby+
  97. - +link+
  98. - +little mac+
  99. - +lucario+
  100. - +lucas+
  101. - +lucina+
  102. - +luigi+
  103. - +mario+
  104. - +marth+
  105. - +mega man+
  106. - +meta knight+
  107. - +mewtwo+
  108. - +min min+
  109. - +mr game and watch+
  110. - +ness+
  111. - +olimar+
  112. - +pac-man+
  113. - +palutena+
  114. - +peach+
  115. - +pichu+
  116. - +pikachu+
  117. - +piranha plant+
  118. - +pit+
  119. - +pokemon trainer+
  120. - +richter+
  121. - +ridley+
  122. - +rob+
  123. - +robin+
  124. - +rosalina and luma+
  125. - +roy+
  126. - +ryu+
  127. - +samus+
  128. - +sheik+
  129. - +shulk+
  130. - +simon+
  131. - +snake+
  132. - +sonic+
  133. - +squirtle+
  134. - +terry+
  135. - +toon link+
  136. - +villager+
  137. - +wario+
  138. - +wii fit trainer+
  139. - +wolf+
  140. - +yoshi+
  141. - +young link+
  142. - +zelda+
  143. - +zero suit samus+