Fengist's Recent Forum Activity

  • As a small form of payback for all the dumb questions I've gotten answered: scirra.com/tutorials/4887/tracking-your-users-with-ajax-php-and-mysql

  • omg, I'm an ijut. It works. You have no idea how many hours I've spent googling and reworking the .php files over a typo. Thanks LittleStain. Proof another pair of eyes are sometimes needed.

  • I certainly can (I've replace the URL's though with fake ones). Here's a description of what it does. 2 buttons, 2 Text plugins. One button sends an Ajax post and the other sends and Ajax request formed into a GET (I'm testing both). When a button is clicked, it contacts the .php file. The php file reads the GET or POST and simply echoes the word "Finished." In theory, Text2 should contain the word "Done" when the Ajax event is completed or "Working" when it's in progress. Text2 should be updated when the onProgress and onCompleted events fire. The system timer event I added to see if the Ajax plugin was actually getting data back since the events weren't firing.

    The Text does filled with the "Finished" from the Ajax.LastData but only when the timer fires and checks it. So I know it's sending and receiving data, it's just not firing off the completed or progress events.

  • I've done a bit more testing. I set the System every x seconds to check and see if there was any Ajax.LastData. And, the .php script is sending data back to the Ajax Plugin as the LastData is exactly what I'm echo'ing out of the php script. But the Ajax plugin is still not detecting an on Completed or on Progress event. I've tried changing the headers on the .php file and nothing.

    So, data is flowing back and forth, the Ajax plugin simply can't tell if it's done or not.

    I'll take ANY ideas at this point.

    Since the IAP isn't working with Chrome Web I'm having to look at PayPal integration and in order to check registrations, I'm gonna need to run a .php script. Since there is no simple GET or POST with C2 and since the browser opens everything in another window, Ajax is my only hope.

    If I do succeed, I'll post instruction on how I managed this.

  • Ashley, Thanks. I'll leave this up but unpublished and check the next beta.

  • Ashley, Google finally approved another upload of my app, one with testing turned off, and is app store available still comes back false.

    I manged to get another upload in. I removed the isstoreavailable and went straight to purchase. clicking on the button did nothing. So, either I'm doing something wrong or it's not working.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm sending data to a php file via the Ajax Request. I'm formatting the URL as if it were a GET request. The .php file is receiving the data and processing it. But, the Ajax plugin doesn't seem to be getting the on progress or on completed. I've checked, the tags match. Before I added in the header('Access-Control-Allow-Origin: *'); the on error was firing.

    Is there something I need to put into my .php file to let the Ajax plugin know it's done?

  • Yea, I've seen Google come out with so many new, flashy, must have things... only to completely ax them a month later. Thanks for looking this up but from what I'm reading, this only affects people who were selling directly from their website. If I had my choice, and had an easy way to do it, I've been using PayPal's IPN to register my shareware for years without issue and would continue to do so with C2. Right now though, I can't get the Ajax plugin to contact a .php file on my server so verifying registrations is out.

  • Ashley, Ok, so today Google decided to allow me to publish my Chrome Web app without fanfare or reason. But:

    1. I got one chance to run it and the IAP isStoreAvailable came back false. I had test mode turned on so I decided to turn it off and upload another version.

    2. At which point, my app got flagged yet again for 'review' and now I'll be waiting another 24 hours or so to see if that works.

    If this is the kind of experience I can expect... I'm not pleased.

    How exactly does IAP determine which store I'm trying to get info from? Is it via the export?

  • I dunno that it does either. I'm hoping so. I did read in in the release notes for r169 that Ashley had included support for Google Wallet. Here's a quote from the r169 changelog "IAP plugin: experimental support for Chrome Web Store purchases using Google Wallet. Let us know if it works for you."

    I have looked through the forums and can't find any solid proof that it does or doesn't work so, I thought I'd try and hope for the best. It seems now that I'll have to wait a few days to find out though.

  • Oh, and as for handing your friends one .exe... I'd recommend a program called InstallSimple (google it). It's a free Windows installer that you can package up all those .dll files and such with and they can run one .exe, install and, if they wish, uninstall your game. It'll add your program to the Windows startup and create the icons. It's not super full featured, but for installing a C2 game, it would definitely do the job and get it down to one .exe like you want.

  • Thanks Ashley, that was my question. Good to know.

    Now, to figure out what I did that caused me to get flagged. The only file operations I'm doing is saving vars and .json files to local storage. I did just notice that I had the file chooser plugin in the list of objects but wasn't using it. It'll be interesting to see what Google has to say. I'll let you know what they tell me.

Fengist's avatar

Fengist

Member since 6 Nov, 2015

Twitter
Fengist has 5 followers

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • x3
    Coach One of your tutorials has over 1,000 readers
  • x2
    Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies