Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

DragonRuby Game Toolkit

An intuitive 2D game engine. Fast, cross-platform, tiny, hot loaded. · By DragonRuby

Error publishing - API error 400 invalid game

A topic by narath created Jul 12, 2019 Views: 3,146 Replies: 4
Viewing posts 1 to 4

Hey team, I'm trying to use the publish feature, but getting an invalid game error (based on google searches it seems to be some kind of issue with correct naming).

Running ".dragonruby/itchio-butler/butler push '.dragonruby/builds/swiss-cheese-windows-amd64.exe' narath/swiss-cheese:windows-amd64" ...
creating build on remote server: itch.io API error (400): /wharf/builds: invalid game
itch.io butler reported failure!

I have this in my game metadata:

devtitle=Swiss Cheese
gameid=swiss-cheese
gametitle=Swiss Cheese

(as a side note, I am using git for version control while developing my game, any way you can have it ignore the .git folder which it seems to include when doing the publish)

Developer
creating build on remote server: itch.io API error (400): /wharf/builds: invalid game

Often times this means you're logged into a different itch.io account; this happens to me moving between my personal account and the one I publish to. Try running ".dragonruby/itchio-butler/butler logout" in the directory where you ran dragonruby-publish, and then try publishing again, where it will prompt you to auth with itch.io again.

The other reason you'll see this error is if your username or the gamename is wrong in the metadata. If the game is publishing to, for example, https://dragonruby.itch.io/flappydragon , then your devid should be dragonruby and the gameid is flappydragon.

Also, if you haven't actually created the game page on itch.io at all yet, do that first.

Developer
(as a side note, I am using git for version control while developing my game, any way you can have it ignore the .git folder which it seems to include when doing the publish)

I just pushed a build that ignores .git (and .svn, and .hg), so you should be good to go on this part once you update!

Creating the game page and ensuring the game id was correct - and publishing worked.

Awesome - thanks so much