Swordshield Data Save Abandoned

⚔️🛡Pokémon Sword and Shield Data Dump parser in optimised JSON format. (Includes DLCs data).

Project README

Pokémon Sword and Shield Data Dumps

NOT MAINTAINED

⚠️ IMPORTANT NOTICE: This project won't be maintained anymore and it has been superseded by https://github.com/itsjavi/supereffective-assets

This project parses the RAW data dumps from the Pokémon Sword and Shield games into machine-readable format (optimized JSON).

Installation

For the ones only interested in the data:

git clone https://github.com/route1rodent/swordshield-data.git

For running the parser scripts:

git clone https://github.com/route1rodent/swordshield-data.git
cd swordshield-data
composer install

Note that you will need at least PHP 7.3 and composer installed in order to be able to run the parsers.

Usage

Once you clone this project you have available the data folder and the parsing scripts that generate the non "raw" part of it. All parsed data can be found already under the data/json directory, while the original source data dumps live under data/raw.

The parser script parses and exports all RAW data into JSON files, you only need to run it inside the cloned project directory:

./scripts/parse.php

The optimized json format

Since reading a whole JSON file in memory might be expensive with large data sets, the JSON files of this project are formatted in a way that each line represents a full JSON object in a list.

This way, you can read big files line by file, decoding each line from JSON to an object.

The only thing your JSON parser needs to do is to skip the first and last lines (which are [\n and {}]\n respectively) and trim the trailing comma , of each line.

Credits

Thanks to @kwsch aka. @Kaphotics and SciresM for the data dumps.

Open Source Agenda is not affiliated with "Swordshield Data" Project. README Source: itsjavi/swordshield-data
Stars
42
Open Issues
0
Last Commit
1 year ago

Open Source Agenda Badge

Open Source Agenda Rating