Skip to content

New Banners

Stu Baker edited this page Mar 3, 2020 · 5 revisions

What you'll need

  • Link to official rates
  • Image for banner art
    • Found in game files at: files/contents/1/files/i18n/en/files/ui/lottery/bg
  • Image for banner selector
    • Found in game files at: files/contents/1/files/i18n/en/ui/lottery/lottery_top_cell

Changes to make

  • Python scraper
    • Update getbanner.py with new banner details and run script to create new file in the banners folder
      • Variable values to update in main (i.e. url, banner_name, rate_up) can all be found on the official rates page
  • JSON files
    • Add banner details to encounter-banners.json; banner_short_name is used in CSS, banner_file is name of the rates file in banners folder, banner_image is banner art (not to be confused with banner selector image)
  • Images
    • Besides the raw image files mentioned above, you'll need:
      • a cropped version of the banner art to remove some of the fade to black/white on each side; make sure to shrink on tinypng as it's still very large after cropping
      • create a sprite for the banner selector; see 91003.combo for an example, but it'll just be the .normal version on top and the .highlighted version below
  • CSS
    • Add new a.banner-select.NEWBANNER using the same format as the others; NEWBANNER should be whatever short name you decide to use in encounter-banners.json
  • HTML
    • Update version on CSS and encounter-banners.json to trigger updates for cached files
      • Ex: css/encounter-sim.css?v=wX32u9pSLz changed to css/encounter-sim.css?v=Vt70FaP4Ov
Clone this wiki locally