-
Notifications
You must be signed in to change notification settings - Fork 1
New Banners
Stu Baker edited this page Mar 3, 2020
·
5 revisions
- Link to official rates
- Image for banner art
- Found in game files at:
files/contents/1/files/i18n/en/files/ui/lottery/bg
- Found in game files at:
- Image for banner selector
- Found in game files at:
files/contents/1/files/i18n/en/ui/lottery/lottery_top_cell
- Found in game files at:
- Python scraper
- Update
getbanner.pywith 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
- Variable values to update in
- Update
- JSON files
- Add banner details to
encounter-banners.json;banner_short_nameis used in CSS,banner_fileis name of the rates file in banners folder,banner_imageis banner art (not to be confused with banner selector image)
- Add banner details to
- 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
.normalversion on top and the.highlightedversion below
- Besides the raw image files mentioned above, you'll need:
- CSS
- Add new
a.banner-select.NEWBANNERusing the same format as the others;NEWBANNERshould be whatever short name you decide to use in encounter-banners.json
- Add new
- HTML
- Update version on CSS and
encounter-banners.jsonto trigger updates for cached files- Ex:
css/encounter-sim.css?v=wX32u9pSLzchanged tocss/encounter-sim.css?v=Vt70FaP4Ov
- Ex:
- Update version on CSS and