greencoder Posted October 24, 2019 Share Posted October 24, 2019 (edited) Sorry, I have been trying to export a prototype on the instant game export and it's throwing this error, appreciate any help in the right direction : Upload error: {"message":"An unknown error occurred","type":"OAuthException","code":1,"error_subcode":1540097,"is_transient":false,"error_user_title":"Bundle Config is Missing","error_user_msg":"You must include a bundle config in your upload. To create a bundle config, please refer to: https://developers.facebook.com/docs/games/instant-games/sdk/bundle-config." Edited January 1, 2020 by greencoder Quote Link to comment Share on other sites More sharing options...
BillyKane Posted October 25, 2019 Share Posted October 25, 2019 @enpu @enpu @enpu greencoder 1 Quote Link to comment Share on other sites More sharing options...
greencoder Posted October 25, 2019 Author Share Posted October 25, 2019 (edited) Found the issue, it was the game name in the config file. It should be exactly the same as facebook app name, else facebook will block in uploading the build. Edited October 25, 2019 by greencoder Wolfsbane 1 Quote Link to comment Share on other sites More sharing options...
greencoder Posted November 20, 2019 Author Share Posted November 20, 2019 (edited) Now its broken again, I believe facebook changed somethings drastically. @enpu ... Edited November 20, 2019 by greencoder Quote Link to comment Share on other sites More sharing options...
Stephan Posted November 21, 2019 Share Posted November 21, 2019 Can you check if there is a fbapp-config.json file in the root of your zip file? see also: https://developers.facebook.com/docs/games/instant-games/bundle-config greencoder 1 Quote Link to comment Share on other sites More sharing options...
greencoder Posted November 21, 2019 Author Share Posted November 21, 2019 (edited) I downloaded a very old instant games build that Panda2 exported and it did contain fbapp-config. So I believe this file is created on export from Panda2, atleast with the current workflow. Since the export function doesn't work anymore due to the error, there is no zip created when I export to instant games. Let me try to export a zip and manually put the fbapp-config and see whether I can manually upload it to facebook. Edited November 21, 2019 by greencoder Quote Link to comment Share on other sites More sharing options...
Stephan Posted November 22, 2019 Share Posted November 22, 2019 Good approach. In the end you need a valid zip file to upload and it is expected that you have to make some custom adjustments in the process before you upload it. you might also try to upload the old (working) game again and see if it succeeds or fails. This might help you to figure out how a valid zip looks like. greencoder 1 Quote Link to comment Share on other sites More sharing options...
greencoder Posted November 23, 2019 Author Share Posted November 23, 2019 (edited) So, answering your question : upload the old (working) game again and see if it succeeds or fails - it fails. I had to modify fbapp-config.json to this and the old prototype works : {"instant_games": { "custom_update_templates": { "play_turn": { "example":"Edgar played their move" } }, "platform_version":"RICH_GAMEPLAY", "orientation": "PORTRAIT", "override_web_orientation": "LANDSCAPE", "navigation_menu_version": "NAV_FLOATING" } } Now the only way to create a new instant game project with Panda2 is : Create your new project in Panda2 Add the instantgames plugin Add plugin to game.main .require add the following to game.config instantGames: { system: { resize: true } } Create a bundle folder with app display name (like on facebook without spaces) Add the above mentioned fbapp-config.json Copy the media folder of your project to this folder Add an index.html with <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Panda Game</title> <script type="text/javascript" src="game.min.js"></script> </head> <body> </body> </html> Export the project as "Minify" into the bundle folder, this should export the game.min.js Zip the bundle with same name as the facebook app display name without spaces and upload it The build should run, ideally. Gonna try out this a couple of times with different prototypes of mine now and will post back if it doesn't work. Edited November 23, 2019 by greencoder Wolfsbane 1 Quote Link to comment Share on other sites More sharing options...
Stephan Posted November 23, 2019 Share Posted November 23, 2019 That is great. Well done! I am happy to hear you resolved the issue. ? Quote Link to comment Share on other sites More sharing options...
greencoder Posted November 23, 2019 Author Share Posted November 23, 2019 (edited) Thanks for the pointers @Stephan. Tried a couple of prototypes, I believe the preloader is broken, on the platform, the game stays at 0% and then goes straight into the game without any progress update. Otherwise, yes its functioning as needed. Next step, playfab! Edited November 23, 2019 by greencoder Quote Link to comment Share on other sites More sharing options...
Stephan Posted November 23, 2019 Share Posted November 23, 2019 Yeah, bring it on! Quote Link to comment Share on other sites More sharing options...
Wolfsbane Posted November 25, 2019 Share Posted November 25, 2019 On 11/23/2019 at 2:02 PM, greencoder said: The build should run, ideally. Gonna try out this a couple of times with different prototypes of mine now and will post back if it doesn't work. Thanks for sharing green, helpful for the rest of us. ? Quote Link to comment Share on other sites More sharing options...
greencoder Posted November 25, 2019 Author Share Posted November 25, 2019 @Stephan hehe! @Wolfsbane, ... UPDATE : Preloader is working as intended, no issues as I thought. Wolfsbane and Stephan 2 Quote Link to comment Share on other sites More sharing options...
greencoder Posted April 30, 2020 Author Share Posted April 30, 2020 @enpu, I saw that you did a couple of small updates to the IDE, is there a fix for the instant upload in the pipe? The work around works but might save some time if there is a fix ... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.