nettemple's Recent Forum Activity

  • My initial thoughts would be to incorporate the save_score.php form into the Construct project and then pass the data from that form to a php that adds the data to the MySQL database via Ajax and either returns a success or failure.

    I agree (see above example)

  • OK This is a working version:

    1) Created simple form with text input objects

    2) Created events that pass variable in a php URL using the Ajax object

    I included screenshots of the:

    - Form

    - Event sheet

    - Php code

    - MySQL table structure

    I tested and all works.

    I kept it simple. You will have to populate the variables based on your form and their final score.

    Form:

    Events:

    PHP:

    MySQL Table:

    Cheers!

  • Also getting this in both Chrome and safari:

    WHOOPS!

    The server returned a 500 exception. This has been recorded and will be looked at by an engineer shortly. Sorry!

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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!

nettemple's avatar

nettemple

Member since 8 May, 2018

Twitter
nettemple has 3 followers

Connect with nettemple