This tool exists for use with the Intersect Engine (Ascension Game Dev GitHub).
Its purpose is to UPDATE one sqlite database with the changes that a developer will make while using the engine's editor, while RETAINING the values of the "server variables" table that may have existed in the production sqlite database.
This allows things like leaderboards, or global timers, or dungeon states to be retained when a server's gamedata.db file is updated (which you would do when you want to add new items, maps, quests, events, etc, to your production server)
You must have python3 installed to run the script. This script is also useless unless you already have some delineation between:
- Your "development/dev" server - where you connect to to make changes in your editor
- Your "production/prod" server - where your PLAYERS connect to to play your game
- Clone this directory
- Place your DEV
gamedata.db
file, found in/your-local-server/resources/gamedata.db
, into the directory of this project marked/dev
- Place your PROD
gamedata.db
file, found in/your-hosted-server/resources/gamedata.db
, into the directory of this project marked/prod
- Run the
server-var-saver.py
script. - Navigate to this project's directory
/updated
, and copy thegamedata.db
file there - this is your updated database! - MAKE A BACKUP OF YOUR HOSTED
gamedata.db
FILE ON YOUR HOSTED MACHINE - Paste the new
gamedata.db
file on your hosted machine, in/resources/
- Restart your server and voila!