WackyToaster's Recent Forum Activity

  • I´m pretty sure your function does work for 0, however, it gets overwritten later down the line.

    I´ve marked all the cells containing 0 in your array, all those will be checked inside the "For each XY element" loop, then icons will be picked where "id = int(tokenat(Array.At(Array.CurX,Array.CurY),3,", "))" will resolve to "0", then the text will be set to "tokenat(ArrayAt........." which also resolves to 0 and then the icons animation frame will be set to "int(tokenat(.........." which again resolves to 0.

    I think the easiest fix would be to add a regex check before you pick icons to see if you are actually on cell that contains the relevant data, so something like

    If that isn´t the fix I can only help you if I get my hands on the events.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don´t think that´s possible. You gotta put everything on one layout (but you can use layers of course)

  • It´s hard to tell exactly what is happening just from the screenshot, but my guess is that it´s because you use "array for each XY" as the following sub-event where you pick "icons" will also work for every cell in the array that just contains 0. I think using "array for each X" and some adjustments should solve this.

  • Unixtime is in milliseconds. You have to use floor(unixtime/86400000)

    It´s also mentioned in the thread you linked, just a bit further down.

  • Start Construct with internet available once and wait for it to say something like "construct is now ready to work offline" in a little blue box. From then on it will work offline for 1 week.

  • Hmmm.... and if you don´t use any? Because if it still fails then the issue is somewhere else. Imo it´s not really that important to have it activated anyway, it isn´t even actual encryption, it´s just minification. Best case it cuts some kilobytes of your file and there´s plenty of tools to reverse it, so why bother.

  • I really don´t know if that helps. I suppose the best idea is to not use the advanced one and opt for the regular instead?

  • I am not aware that it would fail, I use a bunch of loop functions and haven´t seen any issues. Also I think you misunderstood what dop said in that post.

    If your loop fails, maybe there is something wrong in your events?

  • Ok so I did several more tests with the window in focus and it seems that they semi-consistently fail after 5 minutes. Specifically they failed after 295, 299, 299, 314, 299, 318 and again 299 seconds.

    So maybe that helps?

  • It still isn´t reliable with suspending. If it fails after unsuspending it does so immediately, but often times it just doesn´t fail. I´ll try having the window in focus and see if it also fails without suspending.

    Here´s the file I´m testing with, it basically just sends an AJAX request every second until it fails.

    wackytoaster.at/parachute/ajaxtimer.c3p

    EDIT: First test it failed after only 136 seconds even with the window permanently in focus.

    EDIT2: The second test is now at 29 minutes and still going... :V

    I decided to end the test after almost 40 minutes and suspended the window for 5 minutes. Guess what, it STILL didn´t fail? What the hell? I´ve now suspended and unsuspended several times and it´s still going. I think it´s safe to say this one just won´t fail no matter what.

  • I´m working on it, but it fails extremely sporadically. After several tests it failed shortest after 51 seconds and longest only after almost 15 minutes. I´d guess it´s related to this github.com/Scirra/Construct-3-bugs/issues/4422

    I think the issue may be related to suspending the window (which also suspends the engine) and maybe also suspends that part that is supposed to refresh the service worker.

  • Yeah, the issue absolutely still exists as of the latest beta, it happens with and without worker mode (which was the proposed cause of the issue). I´ll try to get a repro ready and post it in the issue tracker.

WackyToaster's avatar

WackyToaster

Online Now

Member since 18 Feb, 2014
Last online 23 Feb, 2025

Twitter
WackyToaster has 26 followers

Connect with WackyToaster

Blogs