Stweve's Forum Posts

  • Roger that. Thanks Ashley.

  • In 204.2, I cannot get a new browser window to open in iOS. It works fine in Preview. A build made using the latest C3 circa November '19 opens a window just fine, but 204.2 wont do it. It works fine in preview.

    I'm using On Tap Gesture --> Browser: Go to <url> in a new window ("NewWindow")

    From an older thread, I tried: Is touching nested in On any Touch End. No workie.

    The only other change from the working build other than the newer C3 version is that I'm using Xcode 11 instead of 10.2.

    Anyone else seeing this?

  • +1 for this failing on 204.2. An upgrade to 204.2 today gives an unknown error saving to OneDrive. Happens on multiple machines running the latest Chrome.

    Rolling back to 197.2 allows it to save again.

    Console errors:

    sandbox.js:1 PUT https://graph.microsoft.com/v1.0/me/drive/items/366AA09824F980D6!11145:/PT%20Keys%201.7.8d.c3p:/content?@microsoft.graph.conflictBehavior=replace net::ERR_FAILED (anonymous) sandbox.js:1 request sandbox.js:1 (anonymous) sandbox.js:1 async function (async) (anonymous) sandbox.js:1 t sandbox.js:1 ǃera sandbox.js:1 (anonymous) sandbox.js:1 main.js:210 Error saving: {response: "", code: 0, status: "", message: ""}

    Sorry for the bump, but this is for the Googlers. This can be due to a problem with a behavior or plugin.

    In my case, I had one machine that could open the project and another one that could not.

    Checking the error console, I saw it was the Lunarray litetween behavior causing an issue. I uninstalled it, then downloaded the same plugin (same version) from the working machine and installed it on the problematic one. Viola. I should try to repro this again and submit a bug, on account of the misleading error message.

  • Brilliant. Thank you so much for sharing that. The build service returned the project with the plugin! Now, to test the plugin.

  • LocalStorage is important for users of my C2 courseware app.

    I'm currently using NativeStorage in C2 runtime to bridge storage from Canvas+ (to get my users off of Canvas+ death and put their data in WkWebview storage). This method works great with C2 Runtime. I add the plugin to config.xml and add a few script lines to index.html which passes data to C2 functions.

    I have to get this plugin working in C3 Runtime now, using the build service. If I compile a C3 Cordova project, add NativeStorage as a plugin to config.xml, then send the archive to the build service via Export Manager, the build service returns a project without the plugin added. The plugin should be whitelisted as of this official request. I've also tried adding a spec tag with the version mentioned in that request. I probably am not using the right procedure.

    What is the correct procedure for using such a plugin with the build service?

    There is no NativeStorage addon I can find. I've just been adding the plugin to config.xml and a script block to index.html (with success).

    This all works in C3 runtime if I test with PhoneGap, but I can't deliver with PhoneGap because that service still won't build when the target platform is iOS 12, so I need to the use the build service. I'm doing this on both Android and iOS, but am talking iOS right now for simplicity.

    CloudStorage is scoped for the future but not until I get all data off of Canvas+.

    Thanks for reading! I look forward to your ideas. -Steve

  • Will do, AllanR. Thanks for testing! If you don't mind sharing the iPhone/iPad you tested, I'll add that to the report. My iPad is an Air 2 but I suspect this would occur on others.

    And, if anyone has workaround ideas, please chime in.

  • This one took me a while to file down, as I thought Cordova would be a factor..

    I've been seeing an issue with my testers when, after init, they must tap once before any touch input is recognized. I eventually found it was happening only on iPads (but not iPhones), which is interesting. Looking further, I see that its C2 Runtime related and reproducible in Remote Preview, without Cordova.

    So, I'm seeing that touch input isn't working until the user taps somewhere at least once in the following conditions:

    - Construct r164.2

    - C2 Runtime

    - iPad Air 2 (12.4.1)

    - Remote Preview w/ latest Chrome (or PG/Cordova, doesn't matter)

    So, an iPhone 6+ w/C2 Runtime, for example doesn’texhibit the issue. Switch to C3 runtime and the issue goes away. It's pretty interesting that it seems to be iPad specific and reproducible in Remote Preview. I can repro this in a HelloWorld click test, attached.

    Any ideas for mitigation or workaround?

    I want to continue using C2 runtime for just a bit longer for my global user base and their varying iOS levels, as my app is courseware and not performance intensive. If this would be considered a defect, I can file a bug for the old runtime but am interested in any workaround ideas from the community.

    Here is an example project but its simply a click test, nothing else.

    http://www.xensori.com/files/scirra/posts/iPadTouchTest.c3p

    Thanks! -Steve

  • Cool. I used an online CSV -> JSON tool before but resolved to just getting the array editor to work after fiddling with it too much to get the right format. Should have stuck with it. I suppose I can just do an ajax JSON download of the current functioning array during runtime, verify the format there and use that as a workaround until I can modify the code. Thanks for the guidance and helping me get out of my own head on this. Will go the JSON route!

  • I do use Excel to generate the data to begin with. I did not consider that Excel could save to JSON in a format that C3 would recognize. I shall try that next. Thank you.

  • I've been migrating my app from C2 to C3. It is heavily dependent on an array as there are about 320 references to it in the event sheet.

    I've been using the CSVToArray plugin to load the array (using the "Row as X" feature), which I need to ditch in order to use C3 runtime. The new array editor is great and will be much better, but I need to flip the X and Y axis at runtime from what is entered in the view, for major ease of use purposes (and so the array editor and debug array listing are consistent).

    I'd rather not edit 320 events (they assume row as X) and I don't want to load the array and then swap it out at runtime with a loop to change the axis. If I look at the available expressions, I don't see how to load the json into the array using x as the row (swapping X and Y).

    Anyone know of a good solution not mentioned above to swap X and Y when the json is loaded into the array? What I'm currently debating is using regular expressions to change the 320 events in a text editor.

    Thanks!

    -Steve

    Tagged:

  • You do not have permission to view this post

  • I'd like to figure out how to migrate my app from Canvas+ to WkWebView and then write a tutorial for the community.

    Has anyone ever migrated their localstorage data to another type of webview? If I just upgrade my Canvas+ app to Webview, localstorage object data is not preserved because of the switch from storage space from Canvas+ to WebView. I have a workaround on this for Android but not for iOS. I need a way around wiping out all of my user's data in order to get to a supported platform.

    I've looked at 3 solutions:

    1. The cordova-plugin-nativestorage plugin looks like a great method, but I can't get it to read/write. Reads come up with "0". I may post a separate thread on this.

    2. Cloud storage or Firebase would be options, but Canvas+ doesn't support them due to limited DOM access.

    3. I can spawn a Webview instance from Canvas+ using Cocoon.App.Webview and pass localstorage.setitem commands for the userdata keys. if I then Upgrade the app to Webview and try localstorage.getitem (via browser.ExecJS), I see the data I created in Canvas+. So, this works! Buuuut... only for an Android. iOS Webview (UI or WK, PhoneGap or Cocoon) doesn't see anything created in localstorage before upgrade.

    Any interesting thoughts on this?

    Thanks!

    -Steve

  • Thanks for the test offer! I've just sent a friend request.

    (st333v #933)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads