Having fun modifying the engine to get the html5 export to work.

Almakos

  • Posts: 632
Hey guys.
I am on 9148 and can't run my game at all:
Code: [Select]
plaf/haxe/lib/stencyl/1,00/com/stencyl/graphics/shaders/PostProcess.hx:357: characters 9-27 : Redefinition of variable shader in subclass is not allowed. Previously declared at openfl.display.DisplayObject
plaf/haxe/lib/stencyl/1,00/com/stencyl/graphics/shaders/PostProcess.hx:308: characters 2-13 : openfl.display.Shader has no field bind
plaf/haxe/lib/stencyl/1,00/com/stencyl/graphics/shaders/PostProcess.hx:125: characters 17-31 : openfl.display.Shader has no field uniform
plaf/haxe/lib/stencyl/1,00/com/stencyl/graphics/shaders/PostProcess.hx:126: characters 16-30 : openfl.display.Shader has no field uniform
plaf/haxe/lib/stencyl/1,00/com/stencyl/graphics/shaders/PostProcess.hx:130: characters 15-31 : openfl.display.Shader has no field attribute
Maybe I've missed a few. But all in all game just doesn't run
I am not using PostProcess as far as I remember. Any way to disable it and run without it?
Thank you
Fishing Fantasy Trailer


Justin

  • *
  • Posts: 4716
It should work in b9158.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

Almakos

  • Posts: 632
yup, thats correct
I've successfully built and run the game, but it's not loading my game after first scene. It's kind of frozen on the very first scene and there is no way I can read any logs to find out what's going on.
Any advice how I can debug my game a bit?
Fishing Fantasy Trailer


Justin

  • *
  • Posts: 4716
I'm not sure exactly what you mean by frozen on the first scene (it sounds to me like you're saying that it doesn't freeze at all, you just can't go to another scene). Keeping in mind that html5 is still "experimental", if you want to send me your game I wouldn't mind taking a look.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

ceosol

  • *
  • Posts: 2279
html5 seems to work best in firefox and maybe chrome. If you use safari, IE or some other browser, that may be the issue.

gurigraphics

  • Posts: 690
Quote
yup, thats correct
I've successfully built and run the game, but it's not loading my game after first scene. It's kind of frozen on the very first scene and there is no way I can read any logs to find out what's going on.
Any advice how I can debug my game a bit?

The most basic reason:

If you use "scene transition effect" the "scene loading" freezes.
Use simple transition in 0 seconds.

« Last Edit: May 07, 2016, 07:18:50 am by gurigraphics »

1MrPaul1

  • *
  • Posts: 1285
Hi letmethink

Sponsor bought my game but he want to play it on mobile.
And there is 3 main problems for it.
- Memory leaks
- Games not scaling to the browser window
- Problems in touch coordinates

So, is it possible to resolve this issues?

letmethink

  • *
  • Posts: 2545
I imagine I can fix the last two. Not so sure about the memory leaks. I recently got asked about the scaling in browser window so I was going to look into it today anyway.
~Letmethink

letmethink

  • *
  • Posts: 2545
For the game to scale just add this to the openfl settings (settings > advanced > openfl settings)

<window resizable="true" if="html5" />
~Letmethink

1MrPaul1

  • *
  • Posts: 1285
Great, thank you letmethink
Last two is the most important because as long as fist bug is annoying but I can resolve it myself by decreasing create/kill actions
Did you tried it on mobile yourself?  May be we got to skip HTML5 for now?


detted

  • Posts: 41
Hey! Hows the progress going? I'm very interested in doing HTML5 games and you guys have done a tremendous job getting it to Stencyl!
I have noticed some weird issues with scaling on Safari. See my thread here:
http://community.stencyl.com/index.php/topic,49624.0.html
Composer • Sound designer • Producer
www.tedwennerstrom.com
@TedWennerstrm