perrymac's Recent Forum Activity

  • Issue was resolved. While waiting for data to return I made far too many additional calls to my database, further down in my code. Once I fixed the logic, the correct data in the proper sequences was returned. I was also able to reduce the number of connects by reducing the number of child processes on my web server.

  • While tracing my ajax connections to the database through chrome, I've found that I have made between 200-500 connections.

    I've included a screen shot showing the tons of connections.

    I just do an Ajax "Request URL" and Ajax "On Complete" then load the last data into an array

    "http://192.168.1.83:7890/rr55.php"

    followed by

    set value tokenat(AJAX.LastData,EachX,"|")

    When I start the game I can load many rows of data rows into my array.

    However when I process the rows of data and request more rows, I find I'm having problems with nothing returning from the requests.

    Is this an option somewhere?

    Perry

  • HI Mark, How long did it take you to design your graphic for you image?

    PM

  • Issue resolved, when switching back to layout "On start of Layout" is not execute. Added another condition to keep ajax from reading again and overwriting my variable.

  • I am building a slot machine. Within the game I have a second Layout built with the prize table. After switching back from the Prize Table Layout to the main games I lose all my game credits as soon as I start the next game. I cannot find an issue with the game. All I do is remove 5 credits from the total which works, then the credits go to zero. If you do not switch to the prize table layout at all, the game works fine.

  • Thanks for all your help. The capx was download from links on your site so I just reposted,

    All I had to do was add this to my php file and it worked. .

    header("Access-Control-Allow-Origin: *");

  • I thought it might be a cross domain issue, however I moved my exported html to my website I get no data at all.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Problem Description

    Trying to read data from a php request. I'm not getting any data read by the ajax.

    I've download sample capx files from the tutorials and still no data is returned.

    Attach a Capx

    Description of Capx

    ____ Displays date and time onto page. ____

    Steps to Reproduce Bug

    • Step 1
    • Step 2
    • Step 3 etc.

    Observed Result

    ____ What happens? There is no data returned

    Expected Result

    ____ What do you expect to happen? __Just want to display data from a page through php

    Affected Browsers

    • Chrome: (YES)

    Operating System and Service Pack

    ____ Windows 8.0 64 bit____

    Construct 2 Version ID

    ____ tested with both r170 and r169____

  • Hey, can we team up and produce a couple of casino apps for a proof of concept project I am working on?

    Perry

perrymac's avatar

perrymac

Member since 10 May, 2014

None one is following perrymac yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies