arrall's Recent Forum Activity

  • https://arrall.com/helpscreen

    https://arrall.com/helpviewer

    This Construct 2 project is an attempt to help a friend with an elderly parent. They needed to be able to remotely program a very simple display which would update automatically. The editor lets you add text, adjust its size and position, and save that info to a database. The viewer simply fetches the entire database every 60 seconds. The friend seemed to like the approach.

    I am looking for general suggestions, but specifically, if anyone knows of an existing solution to this problem I would like to be able to give the friend some alternatives.

    The only major issue that worries me is security. Anyone with the link can edit it. I plan to simply pass along a password to the PHP to verify any edits.

  • I think you can pass the ID variable through the iframe's url. like <iframe blah blah = iframe_app_part.php?varid=<?php echo "$varid"; ?> I think the doIt(); belongs in the iframe_app_part.php in this case. I have not tried the embedded export, but iirc it works in the similar situation when you export with the project split into iframes for ads. Just make sure to save the variable in the main index.php file to pass along to the app's url. Then load it pretty much exactly the same in the iframe's php.

    Let me know if you get it working or not.

  • Pumpkinparade Are you using the most recent version of C2? I just exported a Chrome Web Store app a few minutes ago with release 190.

    If I recall correctly, I ran into that issue in an earlier version of C2. I think I got around it by manually formatting the app.manifest, but, honestly, it has been so long I'm not sure if that was what fixed it for me.

    https://www.scirra.com/forum/chrome-web-store-export-needs-updating_t109991

  • Ragevortex Here is an example of loading multiple variables from the single project/card ID. Slight changes to php and results layout. You can use the arrow keys for movement.

    (I overwrote the existing site, you will need to refresh the page until it starts with the 'male/hat' list boxes showing.

    http://arrall.com/c2/rcam

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ragevortex I could not get the webcam's UserMedia.SnapshotURL to transmit properly, nor the canvas2Image.

    I take the webcam snapshot with the button, then load it into a dummy sprite. The sprite is on its own layer with a transparent background. I hide the HUD layer, stop and hide the webcam, and take a snapshot of the canvas. I then send the snapshot to the php that cuts off all the excess transparency and then saves the file to the server with a unique filename. (c2cam.php) After it creates the image file on the server, it connects to the mysql database and makes an entry into it for that image with an auto incremented ID field and a field for the complete URL for the newly created file. Something like "http://arrall.com/c2/rcam/i/alsktjasltastts.png" The php then looks at the database for that filename and spits out its ID. That ID is echoed back to the C2 app which then loads that image whenever fed that ID.

    This example only saves the image file and the ID for that 'project'. You would want to extend it to have fields in the database for the other parameters, but it could all be accessed with a similar single variable direct link. ie: index.php?picid=12451

    I'm not sure if this will work for you or not. It is the only solution to saving an image to a server I have found that works. There are probably others, hopefully someone else will shed some light on this. This involves using Imagick via php.

    I'll look again at what you sent me. Let me know if any of this makes sense.

  • Are you shooting for something like this?

    (it takes a while after you click the upload button to refresh the page.

    http://arrall.com/c2/rcam/

    with direct links like:

    http://arrall.com/c2/rcam/index.php?picid=1

  • Ragevortex I would try sending the php file a manually typed request and putting some echo "Debug: made it this far"; into the php, then see what loads. If you can post a simplified capx and the php I can try to help. I'll try to make an example too.

  • http://endrage.com

    http://endrage.com/test/ (with the custom images)

    The "ColorMorphing" variant of this app is completed and on the Chrome Web Store. Endrage has been changing a lot, so I'm splitting it into this WIP topic, if that suits everyone. Mostly simple stuff, but it churns out some nice images.

    -Users can drag and drop their own images to replace the center and particle graphics (only works in some modes/devices).

    -There are now 2 cloud/plasma layers

    -Cleaned up the capx to below 2MB

    There are so many settings to change now, I was hoping for user interface suggestions/examples. Any constructive feedback is appreciated.

    I would like to move away from the form controls. From what I've read those are not exported properly to every platform.

  • http://endrage.com

    -Added a Whirl and a Centered formation

    -Randomized the color shifts a bit more

    -Adjusted some min/max settings

    -Explosion now starts off a bit more explosively

    -Auto/random size changes now take effect over time, instead of abruptly

    It does run into the screen tearing in Chrome in the Whirl formation.

    I'm all for better stock images, just not sure where/what to use.

  • Answer for my situation: https://www.scirra.com/forum/no-sound-on-ipad_p854247?#p854247

    I think I am running into this issue on iOS 8.1.1 on an iPad mini and an iPad 4. The first time the website is loaded all the sounds play properly. If I refresh the page, no sounds play. When I change from wudiware.com/gg to http://www.wudiware.com/gg, it will work once, and then not again. I uploaded a few different versions with preloading an effect on/off, and played around with the loader layout. Each time the app would play sounds once and then never again from the same link. I tried closing the tabs. I tried forcing down the browsers. I tried hosting the website on a different server. I tried clearing the cache and app data in chrome. Same result. The sound work fine on multiple reloads using Chrome on Win7. C2 r188 on most trials, and the last stable release on one set of trials. The window is being touched plenty, still no sound.

    Any ideas?

  • Ragevortex Let me know how it goes. I do not know enough about using strings as images. I do know you can save an image file to a server via the app, crop out its excess transparency, add the URL of the created image to a database, and then retrieve that image(along with other project data) with php/ajax. That method involves way more php than transferring strings, but I know it works because it is how my app's part uploading and thumbnail creation work.

    I should look into that tutorial. Does it go into security and protecting the database against malicious queries? All I do is something like $var = mysql_real_escape_string($var); and I'd guess that is insufficient.

  • Ragevortex and anyone reading this: unless someone knows how to get the client's browser and the server to handle links that are really really long, this method will not work. The strings resulting from the image extraction of the sprites I was testing with were >16000 characters. Not sure how you would send someone a link that was +16k characters reliably.

    The only solution I can think of for the "send personalized user images to an app via parameters to the url" is to save the captured/custom image to a server and add it to a database. Then send links to your app like "http://myapp.com/load?id=projectid" which you could then process via AJAX without running into that max url/i limit.

    Very sorry for the wasted effort.

arrall's avatar

arrall

Member since 24 May, 2014

None one is following arrall yet!

Connect with arrall

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies