rhg1968's Forum Posts

  • If you indicate that the function has a return value, then it can only be called as an expression and not as an action. Only functions without any return parameter can be used as an action

  • If I remove the one custom font I have in my project, the apk starts up everytime without issue.

    If I put the font back in, every once in awhile itll start up but most of the time it gets stuck on the c3 loader screen.

  • I have had this issue for awhile now. I have submitted a bug on it, but it got marked that they couldn't reproduce it. To me it seems to be around adding custom fonts, *.woff or *.woff2.

    It will work sometimes when exported to an apk, but most of the time it gets stuck on the C3 loading screen.

    If I remove the fonts, it works every time.

  • Thank you. Just added it.

    github.com/Scirra/Construct-3-bugs/issues/2691

  • Before I enter a bug, I wanted to see if anyone else has had this issue.

    In my game I use a web font, I have both woff and woff2 files. It runs fine on my desktop browser and in my mobile browser in galaxy s8+

    However when I export it as an apk to run as an app on my phone it just hangs on the construct 3 default loading image.

    If I remove the fonts from the project, then export it again, it doesnt hang and works fine, well except the font is not what I want.

    I just wanted to see if maybe I'm doing something wrong before filing a bug.

    Tagged:

  • That's the absolute value. So whatever is the result of the subtraction is, positive or negative, it will return the positive of the result.

    so abs(10-12) = 2

    abs(12-10) = 2

  • Ashley

    Good point. Thanks

  • Ashley

    My plugin caches some data that allows it to easily maintain information between application runs. The default is for it to be off, but it can be switched on. I saw when I looked at the code that you were using localforage, but I didn't know if I could count on it being there if I wasn't actually using the locaol storage plugin. So I wrote my own access layer to indexdb using promises, which my plugin currently uses.

    Just thought it was an idea, but I can understand your points.

  • Ashley

    I would like to put out there that maybe adding an interface to the local storage plugin in the sdk would be useful. In one of my plugins I currently rolled my own interface to IndexDB, which I know you use for local storage. I think it would simply plugin in development if we are able to use your well used and tested interface to local storage instead of handling it ourselves. Just a thought.

    I also wanted to add that I really appreciate all the work you and your team does and I totally enjoy developing my game and plugins for construct 3.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Your project has to be set for the c3 runtime. Also make sure you're using the latest release

  • Sure, no problem

  • I am seeing an error in the browser when trying to go into the forum.

    The real reason I am writing this is to let you know how much information is being displayed when an error occurs.

    Critical error

    This should not of happened. Please contact support.

    System.TypeInitializationException: The type initializer for 'GoogleAnalytics' threw an exception. ---> StackExchange.Redis.RedisTimeoutException: Timeout performing GET Currency.1, inst: 80, mgr: Inactive, err: never, queue: 14, qu: 0, qs: 14, qc: 0, wr: 0, wq: 0, in: 0, ar: 0, clientName: PRD-VM-WEB-1, serverEndpoint: Unspecified/Construct3.redis.cache.windows.net:6380, keyHashSlot: 2443, IOCP: (Busy=0,Free=1000,Min=1,Max=1000), WORKER: (Busy=17,Free=32750,Min=1,Max=32767) (Please take a look at this article for some common client-side issues that can cause timeouts: stackexchange.github.io/StackExchange.Redis/Timeouts) at StackExchange.Redis.ConnectionMultiplexer.ExecuteSyncImpl[T](Message message, ResultProcessor`1 processor, ServerEndPoint server) in c:\code\StackExchange.Redis\StackExchange.Redis\StackExchange\Redis\ConnectionMultiplexer.cs:line 2120 at StackExchange.Redis.RedisBase.ExecuteSync[T](Message message, ResultProcessor`1 processor, ServerEndPoint server) in c:\code\StackExchange.Redis\StackExchange.Redis\StackExchange\Redis\RedisBase.cs:line 81 at StackExchange.Redis.RedisDatabase.StringGet(RedisKey key, CommandFlags flags) in c:\code\StackExchange.Redis\StackExchange.Redis\StackExchange\Redis\RedisDatabase.cs:line 1647 at C3.Code.Controls.Application.Caching.Distributed.DistributedCacheController.Get[T](String cacheKey) in C:\Construct.net\Source\C3Alpha2\Code\Controls\Application\Caching\Distributed\DistributedCacheController.cs:line 92 at C3.Code.Controls.Application.Caching.Manager.Manager.Get[T](String key, Func`1 getFromExternFunction, Boolean skipLocalCaches) in C:\Construct.net\Source\C3Alpha2\Code\Controls\Application\Caching\Manager\Manager.cs:line 158 at C3.Code.Settings.GoogleAnalytics..cctor() in C:\Construct.net\Source\C3Alpha2\Code\Settings.cs:line 552 --- End of inner exception stack trace --- at C3.Code.Helpers.GoogleAnalytics.Functions.ShouldTrackRequest(User currentUser, String ipAddress) in C:\Construct.net\Source\C3Alpha2\Code\Helpers\GoogleAnalytics\Functions.cs:line 12 at ASP.pages_master_pages_global_master.__DataBinding__control20(Object sender, EventArgs e) at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)StackExchange.Redis.RedisTimeoutException: Timeout performing GET Currency.1, inst: 80, mgr: Inactive, err: never, queue: 14, qu: 0, qs: 14, qc: 0, wr: 0, wq: 0, in: 0, ar: 0, clientName: PRD-VM-WEB-1, serverEndpoint: Unspecified/Construct3.redis.cache.windows.net:6380, keyHashSlot: 2443, IOCP: (Busy=0,Free=1000,Min=1,Max=1000), WORKER: (Busy=17,Free=32750,Min=1,Max=32767) (Please take a look at this article for some common client-side issues that can cause timeouts: stackexchange.github.io/StackExchange.Redis/Timeouts) at StackExchange.Redis.ConnectionMultiplexer.ExecuteSyncImpl[T](Message message, ResultProcessor`1 processor, ServerEndPoint server) in c:\code\StackExchange.Redis\StackExchange.Redis\StackExchange\Redis\ConnectionMultiplexer.cs:line 2120 at StackExchange.Redis.RedisBase.ExecuteSync[T](Message message, ResultProcessor`1 processor, ServerEndPoint server) in c:\code\StackExchange.Redis\StackExchange.Redis\StackExchange\Redis\RedisBase.cs:line 81 at StackExchange.Redis.RedisDatabase.StringGet(RedisKey key, CommandFlags flags) in c:\code\StackExchange.Redis\StackExchange.Redis\StackExchange\Redis\RedisDatabase.cs:line 1647 at C3.Code.Controls.Application.Caching.Distributed.DistributedCacheController.Get[T](String cacheKey) in C:\Construct.net\Source\C3Alpha2\Code\Controls\Application\Caching\Distributed\DistributedCacheController.cs:line 92 at C3.Code.Controls.Application.Caching.Manager.Manager.Get[T](String key, Func`1 getFromExternFunction, Boolean skipLocalCaches) in C:\Construct.net\Source\C3Alpha2\Code\Controls\Application\Caching\Manager\Manager.cs:line 158 at C3.Code.Settings.GoogleAnalytics..cctor() in C:\Construct.net\Source\C3Alpha2\Code\Settings.cs:line 552

  • I couldn't see where you defined the variable in the event sheet screen shots. If you want to have a local variable maintain it's value between tick event or each time the event sheet is executed, you need to mark the local variable as static. Otherwise it gets reset with time through the event sheet

  • One last thing I'll throw out. I can't tell from the screen shots you included if this event sheet is the main one or an included one. If it's not the main one, are you sure you included it ?

    Other than that I'm at a loss without being able to see the project.

  • Just to show you an example of using timers successfully in my project. Maybe it'll spark an idea for you.