rhg1968's Recent Forum Activity

  • I am using this.runtime.getProjectFileUrl in my plugin to load files that are included/imported into the project. Which works great in preview mode, but I am noticing some issues in the export that I would like to know if anyone else has some suggestions.

    When exporting to android it stopped loading the files, so I decided to export to html so I could easily see what may be going wrong.

    On the Html side the imported files are just exported in the root directory of the zip file generated by construct 3, not in any subfolder.

    When stepping through this.runtime.getProjectFileUrl function it sets the path to file to media/filename, which of course it can't find the file in that location.

    If I modify the path in the debugger it works.

    So my question is, when exporting projects that have imported files, should they be put in the appropriate subfolder by construct 3 or is that something we have to manage ?

    Note: I am also assuming that something similar is going on with the android export.

    Note Note: I know I could check if I'm in preview mode and not use that function and just the filename that it'll work since it's in the root.

    Any suggestions would be appreciated. Thanks...

  • Ashley

    I currently have completed my C3 plugin, JsonManager, running on the old run time. I am struggling to get it working on the new run time. My main issue is that I can't seem to find documentation of all of the exposed public api's. Looking through the docs I can't find anything on retigger, getting the current event, etc... I was able to discover some of this in chrome debugger but my call in the new run time fails on the Retrigger method in my loop. With the old runtime for C3, the retrigger method works as expected.

    So my question, finally :), are there spots in the documentation I am missing or example plugins I can look at in the new run time that implement looping ?

    My suggestion is can you guys also create just an api page that has all of the public facing apis listed with links to details on each one.

    Just wanted to throw this out there.

    Also just wanted to throw another comment in here that I really love construct 3 and keep up the great work.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The addon page has been unavailable with a 500 error for a couple of days now.

  • I just published version 0.5.1. It allows json files to be loaded by url also. It's mentioned in the release notes and in the documentation, you do have to be careful with this.

    The plugin was originally designed to work with files local to the project.

    The preview windows runs with https(ssl) so if you try to call to your web server on your local machine to serve up a json file with http, it will fail.

    You can get around these issues for local testing by using http://127.0.0.1:port# , Since this is trusted by browsers and it will allow a call from https to http. However you may need to set your local web server to respond with Cors headers to get it to work.

    When I did this I was able to load the two files in the included example plugin test and a third one from a url on my local machine.

  • Ok, I posted a note in the documentation pointing out that it only works with local files right now and I'll add support for remote files

  • I am actually explicitly looking in the local files in a project for the json file. I can modify the code to be able to make external requests also.

  • The sample that I included seems to work for me so I'll have to look at that if that's not working for you

  • Was that your application or the sample one that I included ?

  • I just posted a json plugin last night. Maybe it will meet your needs

  • Are your json files in the files folder ?

    I didn't set up or test loading files from an external source, which in theory should work. However, additional work would be required to allow cross origin requests.

    Did you try the example I included, it works with files located locally in the projects ?

  • I did just post the plug in. I'm sure it may need some more functionality, but it appears to be working correctly. Please look at the included example project for details of how to use it.

  • I did just post the plug in. I'm sure it may need some more functionality, but it appears to be working correctly. Please look at the included example project for details of how to use it.

rhg1968's avatar

rhg1968

Early Adopter

Member since 6 Jun, 2014

Twitter
rhg1968 has 9 followers

Trophy Case

  • 12-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies

Blogs