Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
0
Members

Batch Asset Importer Script

A topic by David Su created Feb 01, 2016 Views: 688 Replies: 1
Viewing posts 1 to 2
(2 edits) (+2)

Hey all!

I've just started using Superpowers last month to build an "interactive song" game piece, and it's proved to be a blast so far. I'm really excited to dig deeper into the game engine and development environment.

One thing I've been dealing with is importing and updating assets, especially since I'm using quite a lot of music files and adding/updating them one-by-one using the GUI takes a while. I might just not be noticing a batch import function somewhere in the engine, and maybe something like this will be available in the new v1.0, but in the meantime I've written a little Python script to help with batch importing assets. You can find it at https://github.com/usdivad/bagatelles/blob/master/seize/samples_export/import_superpowers_assets.py

It's rather naive and probably takes a bit of effort to set up (the "entry_parent_id_list" and "asset_json"* parameters in particular are implemented quite poorly and should be replaced/redone eventually), but it's already been helping me manage my asset development workflow, so I thought it might be of use to some others here as well. In any case, thought I'd share!

* Right now the "asset_json" parameter only works for Sound assets, as those are the only ones I've been batch importing. Other asset types will probably require more work to automate, in which case you can set "asset_update_json" to False and do the JSON manually.

Moderator(+1)

Cool stuff! :) If anyone wants to help get batch import directly into Superpowers, see https://github.com/superpowers/superpowers/issues/...