Giter VIP home page Giter VIP logo

paradox-launcher-playset-exporter's Introduction

What is this?

The Paradox Launcher wasn't syncing my HOI 4 playsets automatically, and I noticed the import/export playset button. But it required me to export one at a time which was annoying.

The launcher stores these configs in an SQLite DB, so I wrote a small tool to

  • Connect to the local SQLite DB
  • Retrieve all the playSets
  • Display all playSets, choose the ones to export or export all of them if none are selected
  • Export valid configs to %APPDIR%/output/%PLAYSET_NAME%.json

These configs can them be imported via the Paradox Launcher.

The tool should auto-detect the launcher-v2.sqlite file based on your OS. But if it can't find the file it'll prompt you for it.

The launcher-v2.sqlite file can be found in the Paradox Interactive folder detailed here.

Notes

Right now this is hard-coded for HOI 4 since I don't really play other Paradox games. I might take a look at it in the future. Or you're welcome to create a PR.

I'll probably add another mode to this that dumps all the data necessary to just insert all the playsets directly into the other devices launcher-v2.sqlite. Instead of using the import function in the Launcher.

How To Use

I took this opportunity to test out nx. 100% overkill for a tiny tool, but it was a smaller environment to get familiar with it.

  • Make sure pnpm is installed globally by running npm i -g pnpm
  • Run pnpm i
  • Run nx run paradox-launcher-playset-manager:serve

Enjoy!

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.