User:Matrethewey!9776/SMALttPR/Installation: Difference between revisions

From ALttPR Wiki
Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="float:right;">[https://old.reddit.com/r/miniSNES/comments/8hh3y9/anyone_else_tried_the_metroidzelda_lttp/dyu738f/ src]</div>
<div style="float:right;">[[../../ALttPR/Installation|ALttPR]]<br />[https://old.reddit.com/r/miniSNES/comments/8hh3y9/anyone_else_tried_the_metroidzelda_lttp/dyu738f/ src]</div>
# Download the code
# Download the code
#* Clone/Download <code>[https://github.com/tewtal/alttp_sm_combo_randomizer_rom alttp_sm_combo_randomizer_rom]</code>
#* Clone/Download <code>[https://github.com/tewtal/alttp_sm_combo_randomizer_rom alttp_sm_combo_randomizer_rom]</code>
Line 6: Line 6:
#*: ''Extract to <code>C:\SMALttPR\randomizer\</code>''
#*: ''Extract to <code>C:\SMALttPR\randomizer\</code>''
# Install some apps
# Install some apps
#* Install [https://git-scm.com/download/win Git]
#*: ''Uncheck "Windows Explorer Integration"''
#* Install [https://windows.php.net/download php] to <code>C:\SMALttPR\PHP</code>
#*: ''Edit <code>php.ini-production</code> and remove the <code>;</code> from the beginning of <code>extension=curl</code>''
#* Install [https://python.org python] to <code>C:\Python\</code>
#* Install [https://python.org python] to <code>C:\Python\</code>
#*: ''Be sure to Add Python to Environment Variables''
#*: ''Be sure to Add Python to Environment Variables''
#* Install [https://windows.php.net/download php] to <code>C:\SMALttPR\PHP</code>
#* Install [https://visualstudio.microsoft.com/downloads/ Visual C++ Redistributable] (under "Other Tools and Frameworks")
#*: ''Edit <code>php.ini-production</code> and remove the <code>;</code> from the beginning of <code>extension=curl</code>''
#* Install [https://git-scm.com/download/win Git]
#*: ''Uncheck "Windows Explorer Integration"''
#* Install [https://getcomposer.org Composer]
#* Install [https://getcomposer.org Composer]
#*: ''Select the PHP executable from <code>C:\SMALttPR\PHP</code>
#*: ''Select the PHP executable from <code>C:\ALttPR\PHP</code>''
# Acquire ROMs
# Acquire ROMs
#* Super Metroid
#* Super Metroid
Line 22: Line 23:
#* Open a command-line prompt and navigate to <code>C:\SMALttPR\randomizer\</code> folder
#* Open a command-line prompt and navigate to <code>C:\SMALttPR\randomizer\</code> folder
#* Run <code>composer install</code>
#* Run <code>composer install</code>
#*: ''I needed to add the <code>--ignore-platform-reqs</code> flag to make it run <code>:shrug:</code>''
# Do a little clean-up
# Do a little clean-up
#* Be sure to have the latest stable release of the code
#* Be sure to have the latest stable release of the code
Line 30: Line 32:
#* Run <code>C:\SMALttPR\combiner\build.bat</code>
#* Run <code>C:\SMALttPR\combiner\build.bat</code>
#*: This creates your base ROM for SMALttPR at <code>C:\SMALttPR\combiner\build\zsm.sfc</code>
#*: This creates your base ROM for SMALttPR at <code>C:\SMALttPR\combiner\build\zsm.sfc</code>
#* Copy <code>zsm.sfc</code> to <code>C:\SMALttPR\randomizer\output\</code>
#* Copy <code>zsm.sfc</code> to <code>C:\SMALttPR\randomizer\input\</code>
# Run the thing!
# Run the thing!
#* Generate a random SMALttPR game file
#* Generate a random SMALttPR game file
#*: Navigate to <code>C:\SMALttPR\randomizer\</code>
#*: Navigate to <code>C:\SMALttPR\randomizer\</code>
#*: Run <code>php artisan alttp:randomize --skip-md5 --mode=open --variation=combo .\output\zsm.sfc .\output\</code>
#*: Run <code>php artisan alttp:randomize .\input\zsm.sfc .\output\</code>


If nothing blew up, you should have a randomized SMALttPR game file in <code>C:\SMALttPR\randomizer\output\</code>
If nothing blew up, you should have a randomized SMALttPR game file in <code>C:\SMALttPR\randomizer\output\</code>


For each new code update that you want to implement (provided you haven't altered any of the files yourself) repeat Steps 5 & 6
For each new code update that you want to implement (provided you haven't altered any of the files yourself) repeat Steps 5 & 6

Latest revision as of 00:44, 26 July 2023

ALttPR
src
  1. Download the code
  2. Install some apps
    • Install Git
      Uncheck "Windows Explorer Integration"
    • Install php to C:\SMALttPR\PHP
      Edit php.ini-production and remove the ; from the beginning of extension=curl
    • Install python to C:\Python\
      Be sure to Add Python to Environment Variables
    • Install Visual C++ Redistributable (under "Other Tools and Frameworks")
    • Install Composer
      Select the PHP executable from C:\ALttPR\PHP
  3. Acquire ROMs
    • Super Metroid
      Rename to sm_orig.sfc
    • Zelda no Densetsu Kamigami no Triforce 1.0
      Rename to alttp_orig.sfc
  4. Run some stuff
    • Open a command-line prompt and navigate to C:\SMALttPR\randomizer\ folder
    • Run composer install
      I needed to add the --ignore-platform-reqs flag to make it run :shrug:
  5. Do a little clean-up
    • Be sure to have the latest stable release of the code
    • Re-extract the code repositories, overwrite all files
    • Create a folder at C:\SMALttPR\randomizer\output\
    • Create a folder at C:\SMALttPR\combiner\build\
    • Move sm_orig.sfc & alttp_orig.sfc into C:\SMALttPR\combiner\resources\
    • Run C:\SMALttPR\combiner\build.bat
      This creates your base ROM for SMALttPR at C:\SMALttPR\combiner\build\zsm.sfc
    • Copy zsm.sfc to C:\SMALttPR\randomizer\input\
  6. Run the thing!
    • Generate a random SMALttPR game file
      Navigate to C:\SMALttPR\randomizer\
      Run php artisan alttp:randomize .\input\zsm.sfc .\output\

If nothing blew up, you should have a randomized SMALttPR game file in C:\SMALttPR\randomizer\output\

For each new code update that you want to implement (provided you haven't altered any of the files yourself) repeat Steps 5 & 6