rhg1968's Recent Forum Activity

  • 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.

  • 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.

  • Without being to play around with it I don't have much I can suggest.

    The only thing I can add is try again with the timers, they do work. I wonder if the issue is that you're setting the state while it's running. Try commenting out the is running event and enable the other 2 and set the state to sleep on layout start. Then time should fire and set the state to awake. Now if something else causes the state to switch back to sleep that's another story.

    If you want me to look at your actual project, I could give you my email so you aren't sharing your project with everyone. Just let me know.

  • Are you interacting with the wake up timer in any other spots in the event sheet ?

  • I also wanted to point out that if your expecting that timer to happen more than once it won't. The value of 8 is only being set once on the start of the layout.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I can try to look at it a little more, but without the context of the rest of event sheet, it's a little tough.

rhg1968's avatar

rhg1968

Early Adopter

Member since 6 Jun, 2014

Twitter
rhg1968 has 9 followers

Trophy Case

  • 12-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies

Blogs