Still learning the ropes with my first game (based on the amazing rogue on gideros tutorial), and now am stuck on deploying to Facebook Instant Games... As mentioned in another post, Gideros is an amazing platform and works 99% out of the box, but now I am stuck, and can't unstuck myself.
I export HTML, check the Facebook box, generate a zip, add the below json file, upload, and turn it on (I also did a ton of configuration on Facebook, it's almost as bad as Google Play). At this point I can load my game when logged in (it's not approved yet, so nobody else can load it as of now). The game seems to load - the background is my first scene - but I can't get rid of the loading spinner
I have this code in my main which I was hoping to solve the problem, but it didn't do the job
pcall(function() FBInstant=require "FBInstant" end)
if FBInstant then
FBInstant.startGameAsync(function()
print("Loading screen removed")
FBInstantAPI=true
end)
else
print("FBInstant not loaded")
end |
I have one low priority suggestions on improving Facebook export (for first timers):
-Facebook requires a file fbapp-config.json. The minimal seems to be below. I figured it out after a while, but we could document this, or generate a minimal sample file upon export, but likely there is a way to keep this in the Gideros folder and have it bundled for Facebook only. I put it here in case someone else searches
{
"instant_games": {
"orientation": "LANDSCAPE",
"navigation_menu_version": "NAV_FLOATING",
}
} |
Comments
Exporting FBInstant.lua Exporting _LuaPlugins_/FBInstant.lua
It gets to "loading screen removed" in the log file. But the spinner is still not gone :-(
#1 doesn't link to FBInstant.lua and the export looks like
Exporting _LuaPlugins_/FBInstant.lua
Exporting FBInstant.lua Exporting _LuaPlugins_/FBInstant.lua
SinisterSoft: “ I don't create classes that much - classes are good for making things simpler but imho for frame rate they are also death by a thousand cuts.”
Totebo: “ Best quote ever.”
🤔
EDIT: GitHub commit: https://github.com/gideros/gideros/commit/7d02093d0bed7343e1a6a5525f69e6f292de9a2b
Likes: jimlev, SinisterSoft
SinisterSoft: “ I don't create classes that much - classes are good for making things simpler but imho for frame rate they are also death by a thousand cuts.”
Totebo: “ Best quote ever.”
🤔
@hgy29 : sorry if I am abusing, but could you take a moment on the index.html file of the html5 version of gideros player. I always have the problem with the loading on it. The html file is a lot different so I didn't achieved to adapt on it the solution you gave us for our 'standard' project.
SinisterSoft: “ I don't create classes that much - classes are good for making things simpler but imho for frame rate they are also death by a thousand cuts.”
Totebo: “ Best quote ever.”
🤔
Likes: SinisterSoft, jimlev