GithubHelp home page GithubHelp logo

pokemon-forme-insertion's Introduction

This program automates the forme insertion for XY, ORAS, and USUM that was initially developed by Axyn for XY.

Notes and Warnings:

I. Preparation:

  1. If you have previously followed steps 1 to 4, you can just use "Load CFG & CSV" to load your previously saved config and CSV file. (If you are upgrading from a pre-CSV version, execute steps 3 and 4 after loading your CFG and you should be good).

  2. Select game from dropdown menu.

  3. Select the paths to your extracted Model, Personal, Levelup, and Evolution GARC folders. The file dialog will tell you which GARC you are looking for based on your selected game. Following this, you can save your paths into a config file, so you can use those settings every time you work on this particular game.

  4. Click "Create/Save CSV" to select a location to save your CSV file. This will record all the inserted formes, their indices in Personal, and what Model files correspond to which Forme. When you create the CSV, it will do so with the appropriate Forme names. Once you insert your formes, you can open the CSV and enter your custom forme names (it will give the new formes numerical designations). If you later use this tool to insert more formes, it will load your custom names. You can also change any stock forme name as desired.

  5. Click "Save CFG & CSV" to save the selected game and filepaths.

II. Please note that:

  1. Keep an eye on the console (text window), if anything goes wrong you will (hopefully) see errors I can use to identify and fix the problem there, and you will also get some feedback on what it's doing.

  2. The first time you create your csv file, you might need to save it and reload in order for the additions to populate properly in the window.

  3. The config file is created by this tool to save your settings, so you do not have to reselect all the other options and filepaths every time you use this tool for a given thing.

  4. THe CSV file is a report generated by this tool that records which files each Pokemon/Forme has its data in, as well as listing every single Pokemon and Forme. This is required for this tool to work after the first insertion (as it references this table to know where everything is), and also allows you, the user, to easily see what you have added and what is where.

II. Use Instructions:

  1. Select the the Species (e.g. Bulbasaur) you are adding Forme(s) to from the leftmost column. You can search for the desired name in the text box, choose it by double-clicking the menu below (I coded almost the entire thing before I learned that tkinter doesn't have a module for the modern "type into the dropdown menu to narrow things down" thing, so I used this hacky setup until one is added or I find a nicer implementation).

2a) By default, this program will copy the Personal, Levelup, and Evolution files from the base forme of the selected species to set things up. If you want to copy any of those from a different specific instance, deselect the "Same as species" options above the desired custom selector, and select the desired source. Inserted formes will be named <#th forme>. Once the CSV file is updated with the inserted formes, you can change that default forme name with a custom one for tracking purposes (this will be reflected in the loaded lists in the tool when the updated CSV file is then reloaded).

2b) If you want to add unique data for an existing cosmetic forme (e.g. Female Venusaur or Pyroar, the different colors of Florges, etc.), uncheck "Initialize Model Files". If the program detects that there are not as many free cosmetic formes for the selected Pokemon as you told it Formes to add, it will report as such in the console and abort.

  1. Enter the number of formes you want to insert.

  2. Hit "Insert Forme(s)"

  3. Rebuild your Personal, Levelup, and Evolution GARCs, then close Pk3ds and return them to their appropriate locations in the romfs file structure.

  4. Load Pk3ds and confirm that the formes are properly inserted. If so, you may now edit the new formes as desired. Please note that the index numbers of all formes will be sorted by nat dex number (e.g. the first alt-forme will be Venusaur after the last species, instead of Deoxys). This was implemented because the game requires all alternate formes of a given species to have consecutie index numbers, so adding formes to any Pokemon with existing formes requires shuffling around the indices, at which point it was actually simplest to just sort them like this.

  5. The new model files (8 (gen VI) or 9 (gen VII) files) will be inserted after every other existing files for that species. The model files are tracked in the generated CSV file.

A tutorial can be found at https://youtu.be/gu5JrxL3v4g

pokemon-forme-insertion's People

Contributors

abzb avatar grimreaper avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.