Forum GameFS Some questions about GameFS

Discussion and help relating to the PlayerIO game asset hosting and CDN solution, GameFS.

Some questions about GameFS

Postby robertflesch » November 1st, 2017, 4:30 pm

Hi Henrik, I want to thank you for your increased participation in the forums, it's been helpful!

Over the past month I have been moving my game from a private server to GameFS. It has been interesting and more challenging than it should have been IMHO.

The doc's
https://playerio.com/documentation/services/gamefs/
seem a bit behind the times in that I can't find hide nor hair of Permanent Urls or Tiny Loaders in the control panel.
Plus there just needs to be a LOT more examples.

The setup of the actual files in GameFS eluded me for a while too.
Here is how mine is setup. Not sure why I have to have a top level folder call VoxelVerse, and then I needed a subfolder called VoxelVerse with the actual info in it.
https://imgur.com/a/Gzjr5

And just today did I figure out that I should be pointing at the playerIO site, and not the CDN.
So here is an example of my index.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<style type="text/css">
html, body { height:100%; overflow:hidden; }
body { margin:0; }
</style>
<title>VoxelVerse - Release</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" />
<link rel="shortcut icon" href="icon.ico">
<embed src="https://r.playerio.com/r/MY_GAME_ID/VoxelVerse/VoxelVerse.swf" width="100%" height="100%" wmode="direct" menu="false" scale="noScale" allowFullscreen="true" allowFullScreenInteractive="true" allowScriptAccess="always" >
<embed/>
</object>
</head>
</html>

And here is how I configured my google domain.
https://imgur.com/a/hxGDr

So maybe this will help someone else.

I am doing something wrong? or how can I make it better?
Now that browsers are blocking flash, how do I detect that and redirect to a video or webpage?
robertflesch
Paid Member
 
Posts: 136
Joined: April 22nd, 2013, 9:18 pm

Re: Some questions about GameFS

Postby robertflesch » November 2nd, 2017, 1:39 pm

More questions

I call a url on GameFS like this
http://r.playerio.com/r/voxelverse-lpej ... _en/en.xml
GameFS will then choose to either server the file up locally, or do a 302 redirect to akamaihd asset.

I changed the contents of the en.xml in the control console. I see the version change if I refresh the page.
But when I invoke the url to the en.xml, I get the older version from akamiahd.

So I should expect to get back the latest version from local copy on GameFS?
robertflesch
Paid Member
 
Posts: 136
Joined: April 22nd, 2013, 9:18 pm

Re: Some questions about GameFS

Postby robertflesch » November 2nd, 2017, 9:34 pm

One more for you.

I don't seem to be able to establish a https connection to my game on GameFS, is that available?
Do I need to do something special to enable it?
robertflesch
Paid Member
 
Posts: 136
Joined: April 22nd, 2013, 9:18 pm

Re: Some questions about GameFS

Postby Henrik » November 5th, 2017, 10:19 pm

Wow, lots of questions! :-)

There's actually two slightly different systems involved here. GameFS and Sitebox. GameFS is just an asset storage system, and it's meant to be used by clients calling the GameFS methods (https://playerio.com/documentation/refe ... rio.gamefs) to get a URL to assets.

Sitebox is a different system built on top of GameFS, and that's the system that allows you to host a website or a facebook app. When you create a domain in Sitebox, we create a folder in your game's GameFS filesystem, to hold the assets for that site, and to be the root folder of your site.

In your html files, the most important thing to remember is to use the url tag to embed resources, or the swf tag to embed Flash objects:

https://playerio.com/documentation/serv ... /templates

When you use those, you give it a relative path to the asset you're embedding, which is then converted by Sitebox to the best possible absolute path for the asset, so don't put in an absolute path to r.playerio.com or something, that's not good.
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: Some questions about GameFS

Postby Henrik » November 5th, 2017, 10:27 pm

As for blocking flash, there should still be ways around it to get the browser to at least display the "click to activate" button. Annoying, but the browsers are hell-bent on killing off Flash, sadly. :-/

I know there are updated versions of swfobject.js around that work, the original maintainers of that project have unfortunately moved on.
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: Some questions about GameFS

Postby Henrik » November 5th, 2017, 10:37 pm

The problem with HTTPS is that you need a certificate for the domain you want to serve your webpage over, and there are rules for how wildcard domains work that are really annoying. We have some hidden workarounds for how to server your sitebox webpage over https, and there's been a bunch of people asking about it, so we're going to make an official solution for it.
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: Some questions about GameFS

Postby Henrik » November 11th, 2017, 7:43 am

There we go, we made a permanent, official, solution for Sitebox and HTTPS:

https://playerio.com/news/18-https-supp ... ox-domains
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: Some questions about GameFS

Postby robertflesch » November 11th, 2017, 7:20 pm

Awesome, thanks.

I see that I can get to the https version using
https://voxelverse--com.siteboxhost.com

Is there a way to redirect to a more user friendly version?
like
https://voxelverse.com
robertflesch
Paid Member
 
Posts: 136
Joined: April 22nd, 2013, 9:18 pm

Re: Some questions about GameFS

Postby Henrik » November 11th, 2017, 9:23 pm

No, sorry, the https domains must match the ssl certificates that we have. We don't allow you to upload ssl certificates for the domains you own, that's a security nightmare of absolutely epic proportions.
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: Some questions about GameFS

Postby robertflesch » November 12th, 2017, 8:41 pm

Thanks for your responses, just a thought on the subject.

Every game will want https://mygame.com, the https://mygame--com.siteboxhost.com is a solution in name only IMHO.

If you guys are using Amazon, I know that Amazon will give you free certs for your apps. Will they give unlimited certs? good question.
But eventually I would suspect your customers are going to need https://mygame.com
robertflesch
Paid Member
 
Posts: 136
Joined: April 22nd, 2013, 9:18 pm

Re: Some questions about GameFS

Postby Henrik » November 13th, 2017, 2:46 am

It's not getting the certificates that is a problem, it's how to securely handle them and serve them out. Companies way larger than ours have tried, and failed spectacularly, so we're taking the cautious approach.

Don't get me wrong, we would love to be able to do it, and we see the need, but we can't offer this service right now.
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: Some questions about GameFS

Postby jacksonjayden » March 11th, 2022, 1:43 pm

People love the pursuit of mastery and video games are a great way to pursue that. Video games offer a safe place to improve your skill and get better at something. ... Even if they stink, there are natural motivators in games to bring them back for more. They get rewards the more they play.
.................................................
Fashion Mentions is one-stop destination for Latest Fashion Trends, Skin Care,insider beauty secrets, Makeup product reviews, and more
jacksonjayden
 
Posts: 1
Joined: March 11th, 2022, 1:39 pm


Return to GameFS