On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

Sure!  

In the concept for our tool, we're planning to implement a dropdown in for Unity that just reaches out to Drafft, executes a CLI command to sync with the remote DB (If configured) and perhaps a separate command to export the game's content based on the current settings configuration to a JSON.  That way, game designers can just quickly "sync" their local copy of game data from within the editor rather than mess with file versioning, etc.

Hey, just to let you know that this on my radar, but I was thinking, instead of having a cli command (which may be really helpful with CI/CD and scripts, but may require extra work to run headless) What about having a very simple API that returns the JSON, (and maybe some endpoint to force a sync)

The caveat is that in it will require that the user have the app open. Also, this would mean that this API could be potentially hit from any computer (with network access) Also, this would mean that, it could be possible in theory, and some imagination… to hook up the game engine to use the API directly for some live preview goodness.

Is not a headless/“offline” solution but its definitely simpler to implement!

That would actually work quite nicely!  Anything that could cut down on the export time/process would help a lot. 

Hello! Some updates about this feature, which is available in v1.4.0

It’s not exactly what we had in mind at first but might be helpful. The problem of running headless is that the local pouchdb is stored in the browser. Also electron requires a display to run headless so it a bit tricky. So for now, we have a REST API that runs when a project is loaded (if enabled in the options) that can get you a game export and a database dump.

Docs: https://drafft.aboni.dev/en/docs/documentation/api_docs.html

Other thoughts:

  • I’m planning to make a little cli app does the fetching but any standard GET request method would work. This tool could probably have some mechanism to dump from a remote couchdb instance as well.