Skip to content

This repository contains ruby scripts helping to map PokeAPI data to usable data like Pokémon Studio data files.

Notifications You must be signed in to change notification settings

NuriYuri/poke-api-mapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PokeAPI Mapper

This repository contains ruby scripts helping to map PokeAPI data to usable data like Pokémon Studio data files.

Setup

When schema is already generated

  1. Have Ruby
  2. Run git submodule update --init
  3. Open IRB at repository root
  4. Run require_relative 'generated/schema'
  5. Run PokeAPI.load_all
  6. Run PokeAPI.save_all

This allows other script to run faster by not having to parse CSV files.

When schema is not generated or you want to regenerate the schema

  1. Run ruby scripts/generate_schema.rb
  2. Do setup instruction for When schema is already generated

Scripts

  • ruby scripts/generate_type_by_gen.rb GEN_ID: generates the Pokémon Studio types into out/types based on the generation you want.
  • ruby scripts/generate_type_text.rb: Generate the CSV file containing the type names in the available locales (in PSDK format).
  • ruby scripts/generate_abilities_by_gen.rb GEN_ID [--no-unofficial]: generates the Pokémon Studio abilities into out/abilities based on the generation you want.
  • ruby scripts/generate_type_text.rb VER_ID: Generate the CSV file containing the ability names and description in the available locales (in PSDK format) based on the version group you want.
  • ruby scripts/generate_dex.rb: Generate all the Dex in Studio format (Note: form are not yet supported).
  • ruby scripts/generate_dex_text.rb: Generate the CSV file containing the Dex names.

About

This repository contains ruby scripts helping to map PokeAPI data to usable data like Pokémon Studio data files.

Resources

Stars

Watchers

Forks

Languages