Skip to content

New Banners

Stu Baker edited this page Jul 17, 2021 · 5 revisions

What you'll need

  • Link to official rates page
    • open the game, Menu > Dreams, then put your phone in airplane mode; click on 'More details here' and you should get an error popup with the link for that particular banner
  • Images from game files
    • Base path on a rooted emulator: Root/data/data/games.wfs.anothereden
    • Banner art path: /files/contents/2/files/i18n/en/files/ui/lottery/bg
    • Banner selector images path: /files/contents/2/files/i18n/en/ui/lottery/lottery_top_cell
      • Note: Devs seem to occasionally move these to a different parent folder; if you don't find images at the above path(s), try files/contents/3/..., files/contents/4/..., etc.

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