Zed-z / dragons-path-restorer

A script to restore and view the Yakuza: The Dragon's Path comic
0 stars 0 forks source link
backup comic comic-reader patcher preservation python script tool yakuza

"Yakuza: The Dragon's Path" Comic Restorer

Requirements

Setup and usage

  1. Download the project repository
    • Click the green <>Code button and press Download ZIP
    • Extract the ZIP file in a directory of your choice
  2. Obtain and put required files in the appropriate folders:
    • Requires putting a backed up copy of the website's files under data/experience
      • Special thanks to KaiZettaSlow for dumping the contents of the Yakuza Experience site!
      • index.html should be directly in the experience folder alongside files such as comic-a-twist-of-fate-1
    • Optionally, put edo-webfont.ttf and edo-webfont.woff in the data folder
      • Not neccesary to view the comic and doesn't affect the comic itself, only fixes the appearance of some navigation buttons that use the Edo font
    • The final file structure should look something like this:
      📂data/
      |-- ! put required files here !
      |-- 📂experience/
      |   |-- 📂css/...
      |   |-- 📂js/...
      |   |-- index.html
      |   |-- comic
      |   |-- map
      |   |-- comic-a-twist-of-fate-1
      |   |-- comic-a-twist-of-fate-2
      |   |-- ...
      |-- edo-webfont.ttf
      |-- edo-webfont.woff
  3. Edit the config.py configuration file to your liking:
    • Preparing assets for offline use may take a while. If you don't need that functionality, set the local_resources entry to False
    • Set css_tweaks to False if you want to view the site exactly as it used to look, without visual tweaks and improvements
    • You should leave other entries set to their default values, unless you know what you're doing
  4. Open a terminal in the main project directory
    • On Windows 11, you can right click empty space in the folder and press Open in Terminal
    • On earlier versions of Windows, you can select File Explorer's address bar, type in cmd and press enter
  5. Install required python packages with pip install -r requirements.txt
  6. Run python3 dp_restorer.py to prepare files, apply fixes and launch the comic in your browser
  7. Please read the section below!

Notes and known issues