The frame data for FightCore both in database form as well as several scripts that have helped within the creation of this data.
The frame data is stored in PostgreSQL 17. The most recent backup is
database/postgres-latest-dump.sql, with dated backups in database/dumps/.
In the data folder are the CSV files are a mix of different JSON and CSV files.
These are used in different FightCore products, but are free to be used by others.
Please note that these files are generated by the
backendproject and edits will not be accepted in pull requests.
Requirements: Docker and the .NET 9 SDK.
The commands below use < and > file redirection, so on Windows run them in
Git Bash or WSL, not PowerShell.
cd database
docker compose up -dThis starts Postgres on localhost:5432 (user postgres, password localcontainer)
and stores its data in database/db-data.
docker exec fightcore_postgres createdb -U postgres FrameData docker exec -i fightcore_postgres psql -U postgres -d FrameData -v ON_ERROR_STOP=1 < database/postgres-latest-dump.sql
The backup already contains every script in migrations/, so there is nothing
else to apply after a restore.
cd backend
dotnet run --project FightCore.GraphQLThe connection string is in backend/FightCore.GraphQL/appsettings.Development.json.
The exporters read appsettings.json from the current directory, so run them
from their project folder. Output goes to the folder set in Exports:Folder
(default C:/tmp/exports), which can then be copied into data/.
cd backend/FightCore.Exporters dotnet run cd ../Fightcore.MeleeSearchExporter dotnet run
-
Add a numbered SQL script to
migrations/(e.g.023-description.sql). -
Apply it to your local database:
docker exec -i fightcore_postgres psql -U postgres -d FrameData -v ON_ERROR_STOP=1 < migrations/023-description.sql
-
Update the backup:
docker exec fightcore_postgres pg_dump -U postgres FrameData > database/postgres-latest-dump.sql
Optionally keep a dated copy in
database/dumps/namedpostgres_localhost-YYYY_MM_DD_HH_MM_SS-dump.sql.
While we welcome others to contribute to the FightCore database, we would prefer
if these contributions would be in the form of SQL Scripts.
Both the backup files as well as the JSON in the data folder is only for generation
and not manually edited.