FGL sdk GameMaker Studio Crash

9 posts (showing 1-9)
blueFire

Market Level 0Community Level 2
70 posts

I obtained the FGL sdk (version 1.7) from https://www.fgl.com/sponsor_pages/html5opportunities/ and implemented the logo branding into a test game.  When I uploaded it to the internet to test it I found it did not work with Chrome or FireFox.

I got the following error message in Chrome:

Dream Builder.js?PQUYB=43616307:250 Warning: Canvas position fixed. Ignoring position alterations
Dream Builder.js?PQUYB=43616307:250 Application Surface resized: w=480, h=640
Dream Builder.js?PQUYB=43616307:944 Uncaught SecurityError: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The cross-origin image at http://sites.mpstatic.com/html5/sdks/fgl-branding-placeholder.png may not be loaded.

I got the following error message from FireFox:

SecurityError: The operation is insecure. Dream%20Builder.js:944:0
"Warning: Canvas position fixed. Ignoring position alterations" Dream%20Builder.js:250:238
"Application Surface resized: w=375, h=501" Dream%20Builder.js:250:238

The game works perfect in Internet Explorer.

As the title states I am using the GameMaker Studio plug-in.

Any ideas on how to fix this?

Jason

posted 2015-03-07T18:06:05-08:00 | edited 2015-03-07T18:06:54-08:00
blueFire

Market Level 0Community Level 2
70 posts

Upon further experimentation I have discovered that this does not happen if I disable WebGL.  It only happens when WebGL is enabled or set to auto detect.  I prefer to use WebGL whenever possible so if there is any way to make it work with WebGL enabled let me know.

Jason

posted 2015-03-07T18:30:00-08:00
FGL_Dave

FGL AdminCommunity Level 4
319 posts

Unfortunately we have not been able to add support for WebGL to the FGL SDK plugin for GameMaker yet. There is a hack that is supposed to work, if you'd like to try it - http://gmc.yoyogames.com/index.php?showtopic=645433. Please report back (or send me a PM) if it works, my intention is to get this integrated into the next version of the SDK.

posted 2015-03-08T01:09:23-08:00 | edited 2015-03-08T01:09:35-08:00
blueFire

Market Level 0Community Level 2
70 posts

I tried the hack but it did not work very well on all browsers (still failed on Chrome (PC), Firefox (PC) and ios).  I will keep using WebGL disabled until A solution is found.

Jason

posted 2015-03-09T17:13:22-07:00
blueFire

Market Level 0Community Level 2
70 posts

After doing some research I discovered this page:

http://blog.chromium.org/2011/07/using-cross-domain-images-in-webgl-and.html

It shows how to enable cors headers on the server hosting the image to allow WebGL to access them.

Has FGL tried this?

Jason

posted 2015-03-09T17:33:45-07:00
FGL_Dave

FGL AdminCommunity Level 4
319 posts

Yes, the problem is that Game Maker's engine doesn't accept the CORS header on the client side. We actually serve the branding images with CORS set up correctly for Phaser support (with the Game Maker plugin sharing the same resource), but Game Maker ignores them -- the hack linked above attempts to get around this (but apparently not entirely successfully).

Unfortunately until we either find another workaround or the Game Maker developers fix the problem on their end, there's not much that can be done :(

posted 2015-03-09T17:40:05-07:00 | edited 2015-03-09T17:41:03-07:00
blueFire

Market Level 0Community Level 2
70 posts

I have submitted a bug to YoYo games (the developers of Game Maker Studio) about this issue.  Hopefully it will get fixed soon.

Jason

posted 2015-03-09T18:09:24-07:00
sandeep410

Market Level 1Community Level 3
180 posts

blueFire said:

I have submitted a bug to YoYo games (the developers of Game Maker Studio) about this issue.  Hopefully it will get fixed soon.

Jason

Lols dude there are lot of webgl related bugs submiited to gamemaker and nothing has ever got fixed, this wont either. Yoyo doesnt care for their html5 product and thats truth.

posted 2015-03-09T18:42:09-07:00
FGL_Dave

FGL AdminCommunity Level 4
319 posts

Unfortunately that does seem to be the case. Even worse, Yoyo have recently signed a deal to sell Game Maker to another company; I'm not up on the details but I can all but guarantee that doesn't bode well for bugfixes like this.

posted 2015-03-09T19:14:29-07:00