nettemple's Forum Posts

  • Not sure if this is a bug or browser "Critical Error" message but its only been happening to me the last two days? Many times it will work after I reload. Anyone else getting this? Mac OS and Chrome browser FYI

    Critical error

    This should not of happened. Please contact support.

    System.IndexOutOfRangeException: Index was outside the bounds of the array. at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at C3.Code.Controls.Application.Caching.Redis.PubSub.PubSubController.OnSubscribed(RedisChannel channelName) in C:\Construct.net\Source\C3Alpha2\Code\Controls\Application\Caching\Redis\PubSub\PubSubController.cs:line 58 at C3.Code.Controls.Application.Caching.Redis.PubSub.PubSubController.SubscribeToCacheKey(RedisChannel cacheKey, Action`2 onMessageReceived) in C:\Construct.net\Source\C3Alpha2\Code\Controls\Application\Caching\Redis\PubSub\PubSubController.cs:line 46 at C3.Code.Controls.Application.Caching.Manager.Manager.Callbacks.OnGotten[T](String cacheKey, CacheType fromType, T objectGot) in C:\Construct.net\Source\C3Alpha2\Code\Controls\Application\Caching\Manager\Callbacks.cs:line 99 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 136 at C3.Code.Helpers.SEO.Functions.GetUsersCurrentRegion(UserSession currentSession) in C:\Construct.net\Source\C3Alpha2\Code\Helpers\SEO\Regions.cs:line 125 at C3.Pages.Master_Pages.Global.Page_Init(Object sender, EventArgs e) in C:\Construct.net\Source\C3Alpha2\Pages\Master Pages\Global.Master.cs:line 114 at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    Tagged:

  • I will try to do a sample based on your form page (including php files) and zip up for you - but it will be later tomorrow if thats okay?

  • Thank you (Connected, look for email)

  • If I understand you correctly - newt is correct - use an AJAX call. Here is an example that I used to do basically the same thing.

    Your receiving php page must GET or POST the values being sent and then INSERT in the proper fields that you have set up in your MySQL db. If this is not clear enough, I will follow up with code from my php receiving file so that it is a bit more clear.

  • I am not certain. I do know there are some issues and I am in the same boat trying to resolve as well. If I find a solution - I will let you know (you do the same). I believe there are other threads here that are addressing this as well. I will look for them.

  • You do not have permission to view this post

  • I have a game fully developed but am a stickler for optimization and efficiency. I am looking for a C3 Guru who is a master of the Events and programming to assist in optimizing my visual code and assisting me in taking it across the finish line (Placing on iOS and Android App stores). I need specific expertise in implementing IAP and Ad monitization. Built in C3.

  • Does this help? "Implementing In App Purchases (IAP) in Construct 3"

    youtube.com/watch

  • Now thats excellent support and help - excellent sample file! Dop2000!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • On the iPhone, the safari browser presents error as "A problem repeatedly occurred on "http://preview.construct.net/#5gbqmhij".

    Not sure if this helps or means anything for guidance?

    I will troubleshoot a bit more before sharing my sheets only because it is quite extensive and I don't want to ask that of anyone, yet :-) ... Let me see what I can find...

    Thank you and stay tuned...

  • Efficient suggestion - I used that and it worked perfectly.

  • This what finally worked for me:

    arrayNames.at(floor(random(arrayNames.width)),floor(random(arrayNames.height)))

    Supplied by SQUIDDSTER at:

    construct.net/en/forum/construct-2/how-do-i-18/select-random-variable-array-47277

    Thank you Squiddster!

  • I found this for possible solution: construct.net/en/forum/construct-2/how-do-i-18/select-random-variable-array-47277

    Basically this:

    arrayname.At(int(random(10)))

    But you must know the length of your array (i.e. 10)

    UPDATE::::: ACTUALLY THE ABOVE SOLUTION IS NOT WORKING FOR ME??????

  • Works great! Now to push it further.... How can I pull out a random entry from the array or dictionary...

    Logic like so based on your comments:

    Works as static: arrayNames.At(2)

    Desire this though:

    arrayNames.At(+int(random(0,4))+)

    //// So the desired result might be:

    arrayNames.At(1)

    or

    arrayNames.At(4)

    or

    arrayNames.At(0)

  • I have two layout:

    1_ Splash screen

    2_ Select Character

    3_ Game

    When Construct loads in Remote Preview mode (on iPhone), It shows 1 propoerly then after 2 seconds goes to 2 properly, but when I hit PLAY button (in layout 2), it recycles back to the 1 and then 2, but wont go to 3.

    Note: It only does this when previewing remotely on Phone - playing and testing in browser works fine - no issues.

    The only thing I can think of is I have a GLOBAL event sheet that I "include" in layout 3. This means I have a ON START OF LAYOUT in both event sheets - "global events" and "game events"...

    It is hit and miss. I restarted browser, flushed cache, and then it worked fine via remote. Then the issue started again. I repeated restart and flush, but this time the issue persisted.

    It's basically flakey?

    Any thoughts?