From 4111706dbd7ae922857b667c7f0d53f370b4bee7 Mon Sep 17 00:00:00 2001 From: nopo Date: Fri, 16 Dec 2022 20:56:07 +1100 Subject: [PATCH 1/3] change readme to a markdown file --- README.txt => README.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) rename README.txt => README.md (55%) diff --git a/README.txt b/README.md similarity index 55% rename from README.txt rename to README.md index b86274c..7f93ac7 100644 --- a/README.txt +++ b/README.md @@ -1,25 +1,25 @@ ---- Pokemon Scarlet and Violet Randomizer by XLuma ---- +# --- Pokemon Scarlet and Violet Randomizer by XLuma ---- + +**THIS RANDOMIZER WORKS ONLY WITH VERSION 1.0.1 AND ABOVE, DO NOT USE 1.0 AS YOUR GAME UPDATE** -*** THIS RANDOMIZER WORKS ONLY WITH VERSION 1.0.1 AND ABOVE, DO NOT USE 1.0 AS YOUR GAME UPDATE *** PREFACE: Make sure you have at least Python 3.10 installed on your computer, anything lower will not work! PS: If after installing, and running the randomize batch script you see the Microsoft store open instead, in your windows search bar type "Manage App Execution Aliases" and turn off the ones that have "python.exe" and "python3.exe" under them (They are named App Installer) -HOW TO USE: - -- If not done, install Python 3.10 from either the Microsoft Store, or the official python website +### HOW TO USE: +If not done, install Python 3.10 from either the Microsoft Store, or the official python website -Step 1: Open the config.json in any text editor (even notepad works) and configure the file how you want it. To enable an option, type yes between quotes. If you want to disable , then type no instead. -Step 2: Save your edits to the config.json, and double click the randomize.bat file. A window will appear with some logs, and eventually a Press Enter to continue will appear, then you can close that window. -Step 3: A new folder called "output" will be created. Go inside of it, and you will see a romfs folder as well as a randomizer.zip file. The randomizer.zip is the compressed, ready-to-use modpack to be imported in Trinity Mod Loader. a romfs folder is still provided if you want to use an alternative patching method. -Step 4: Open Trinity Loader, click "Add Mod" and select the randomizer.zip inside the output folder, make sure it is ticked in the window, and then click Apply mod. Copy the resulting romfs folder to your mods folder on your switch or emulator, and launch the game -Step 5: Enjoy :) +- Step 1: Open the config.json in any text editor (even notepad works) and configure the file how you want it. To enable an option, type yes between quotes. If you want to disable , then type no instead. +- Step 2: Save your edits to the config.json, and double click the randomize.bat file. A window will appear with some logs, and eventually a Press Enter to continue will appear, then you can close that window. +- Step 3: A new folder called "output" will be created. Go inside it, and you will see a romfs folder as well as a randomizer.zip file. The randomizer.zip is the compressed, ready-to-use modpack to be imported in Trinity Mod Loader. a romfs folder is still provided if you want to use an alternative patching method. +- Step 4: Open Trinity Loader, click "Add Mod" and select the randomizer.zip inside the output folder, make sure it is ticked in the window, and then click Apply mod. Copy the resulting romfs folder to your mods folder on your switch or emulator, and launch the game +- Step 5: Enjoy :) -TITLEID'S +### TITLEID'S -Scarlet: 0100A3D008C5C000 +Scarlet: 0100A3D008C5C000 Violet: 01008F6008C5E000 ---- General Info ---- +### --- General Info ---- This is a rework of my previous randomizer that I made via code injection. This randomizer went through multiple reworks, at first having individual randomizers, now to having an easy-to-use configuration file and program that does all the randomization and packaging for you. It currently randomizes Wild Encounters, Trainers, Static encounters, Personal Data (Abilities, and Movesets), Starters (and all gifted pokemons by extension), @@ -27,7 +27,7 @@ and also provides a few extra options to customize your randomisation. It packag If you use this program for content, credits in the description is not required, but always appreciated ! If there are any problems with the program whatsoever, yall know where to find me :) -KNOWM BUGS/ISSUES +### KNOWN BUGS/ISSUES - Palafin and his alt form will not get their normal ability randomized, due to being absolute garbage without it (and then game crashing if the ability is given via PkHex). Thus, only the hidden ability is randomized. Furthermore, no other pokemon can obtain the Zero to Hero ability. - Following the first issue: Some abilities might not work in game, like form-changing abilities. If such a case ever happens, please let me know. From 729ed28121708f06f104bd2aa763e86c3d1d77ed Mon Sep 17 00:00:00 2001 From: nopo Date: Fri, 16 Dec 2022 21:08:32 +1100 Subject: [PATCH 2/3] add linux support --- Randomizer.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Randomizer.py b/Randomizer.py index cd04c27..cc81fe2 100644 --- a/Randomizer.py +++ b/Randomizer.py @@ -7,14 +7,16 @@ import Randomizer.StaticSpawns.statics as StaticRandomizer import shutil import subprocess +import platform #thanks zadenowen for the function def generateBinary(schema: str, json: str, path: str): - flatc = "flatc/flatc.exe" + iswindows = platform.system() == "Windows" + flatc = os.path.abspath("flatc/flatc.exe") if iswindows else "flatc" # works for me, won't work if you don't have flatc installed, probably works on mac outpath = os.path.abspath("output/romfs/" + path) print(outpath) proc = subprocess.run( - [os.path.abspath(flatc), + [flatc, "-b", "-o", outpath, From 846e3f320e839e817beb096f4c35f20248ada7b6 Mon Sep 17 00:00:00 2001 From: nopo Date: Fri, 16 Dec 2022 21:29:19 +1100 Subject: [PATCH 3/3] mention flatc --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7f93ac7..3a4be4f 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ PREFACE: Make sure you have at least Python 3.10 installed on your computer, anything lower will not work! PS: If after installing, and running the randomize batch script you see the Microsoft store open instead, in your windows search bar type "Manage App Execution Aliases" and turn off the ones that have "python.exe" and "python3.exe" under them (They are named App Installer) +Linux Users: Make sure to install flatc (binary name) FlatBuffers (display name) from your package manager ### HOW TO USE: If not done, install Python 3.10 from either the Microsoft Store, or the official python website