agafreitas's Recent Forum Activity

  • You do not have permission to view this post

  • Are you sure that's what you want? It will reload the page and so restart the project. Only the hash can be changed without reloading.

    This is a one time action and reloading the page wouldn’t be a problem as long as I could use the new url. I’m already getting some data by querying parameters and in this case it will be reloaded anyway. What would be the best way to add parameters without reloading restarting the project?

  • Is there a browser expression to add parameters to the url just like the set hash expression does on adding a string? Thanks!

    As I said, it was working fine two days ago. And since nothing changed on my machine, it must be a server related issue.

    Log:

    Error: Checking Java JDK and Android SDK versions

    ANDROID_SDK_ROOT=~~/androidSDK (recommended setting)

    ANDROID_HOME=~~/androidSDK (DEPRECATED)

    Using Android SDK: ~~/androidSDK

    :wrapper

    BUILD SUCCESSFUL in 0s

    1 actionable task: 1 executed

    Subproject Path: CordovaLib

    Subproject Path: app

    Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

    You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

    See https:/~~/command_line_interface.html#sec:command_line_warnings

    (node:374659) [DEP0128] DeprecationWarning: Invalid 'main' field in '~~/package.json' of '~~/index.js'. Please either fix that or report it to the module author

    (Use `node --trace-deprecation ...` to show where the warning was created)

    FAILURE: Build completed with 2 failures.

    1: Task failed with an exception.

    -----------

    * Where:

    Script '~~/cordova.gradle' line: 125

    * What went wrong:

    A problem occurred evaluating project ':app'.

    No match found

    * Try:

    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    ==============================================================================

    2: Task failed with an exception.

    -----------

    * What went wrong:

    A problem occurred configuring project ':app'.

    com.android.builder.errors.EvalIssueException: compileSdkVersion is not specified. Please add it to build.gradle

    * Try:

    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    ==============================================================================

    * Get more help at https:/~~/help.gradle.org

    BUILD FAILED in 804ms

    Command failed with exit code 1: ~~/gradlew cdvBuildDebug -b ~~/build.gradle

    I just did a test build and it worked fine.

    A build failing does not necessarily mean the build service is not working. It could have failed for another reason, such as a misconfigured addon or a broken third-party addon.

    It was working fine until yesterday but now im facing the same problem discussed on this thread. Its probably not related with any misconfigured addon or a broken third-party addon since ive also tried to export a plugin/addon free minimal project.

    Ashley

  • Thank you very much dop2000, it's working now.

  • construct.net/en/tutorials/load-fill-array-json-file-2515

    You can also check this thing called Google.

    Well, I know google and I'm sure you know that but that's ok if you just have time to try to be fun, no problem... And I did it search before open a new question here, but unfortunately my experience with json data manipulation apparently its not so good as yours and any of the tutorials that I found had and example like mine. Thanks anyway!

    EDIT

    And it will make more sense if you have linked this tutorial construct.net/en/tutorials/load-json-data-arrays-2566 that shows you how to load a array from a server

    Unfortunately it also doesn't work because its json array format is different from mine and using the action array load from json in my case desnt work.

  • Should I first create a json object to store the data before load the urls into an array? If so how should be formatted this json file to store each url as an array individual element value?

  • EDIT

    I have a list of URLs for individual images in JSON format on my server.

    The file looks like this:

    {"status":"success","response":{"urlLIST":["https://www.mydomain.com/43523455435765/image.png","https://www.mydomain.com/43512882435765/image.png","https://www.mydomain.com/48977352435765/image.png","https://www.mydomain.com/435243400935765/image.png","https://www.mydomain.com/435244567835765/image.png","https://www.mydomain.com/4352431212335765/image.png","https://www.mydomain.com/4356755442435765/image.png","https://www.mydomain.com/4352678879435765/image.png","https://www.mydomain.com/4352432367895765/image.png","https://www.mydomain.com/4352123433435765/image.png","https://www.mydomain.com/4352437899875765/image.png","https://www.mydomain.com/4352678567435765/image.png","https://www.mydomain.com/43524678889035765/image.png","https://www.mydomain.com/4352123423435765/image.png","https://www.mydomain.com/43524560098435765/image.png","https://www.mydomain.com/4352431265495765/image.png","https://www.mydomain.com/4354539982435765/image.png"]}}

    How would be the best way to load each one of these urls (elements) into an array?

    Thank you!

    Tagged:

  • You are right! multiplying by the expression im getting a pretty close result too (1081 × 1920) but not the exact dimensions. I will drop the updated "working" project here hope it can help someone to fin d a solution. Thank you very much for your help!

    https://1drv.ms/u/s!AmNDfP3N-nupprUZjvBru4u3C9cxGg?e=KNUeth

  • ok let me see if i understood you correctly. you are saying that what i need to do is resize the drawingcanvas object to 1080x1920, either multiply or divide it by the expression DrawingCanvas.pixelScale and then scaling out the image to fit the new DrawingCanvas object size? Since we couldn't fit the new object sizes on a screen with a smaller resolution (1280x720), should we resize the layout to a higher resolution as well? Im still getting some really weird results... Could you please take a look at the project file if you have some free time? Thanks!

    https://1drv.ms/u/s!AmNDfP3N-nupprUZjvBru4u3C9cxGg?e=KNUeth

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you very much for your reply.

    Ive checked your link and the documentation but im still struggling to understand how to use the pixelScale expression. This is the first time I use the canvas object and since i unfortunately am not able to solve the problem with all information i have found and you have provided so far, i would really appreciate if you could be more clear in telling what should be done in this case. Thanks!

agafreitas's avatar

agafreitas

Member since 9 Oct, 2012

Twitter
agafreitas has 1 followers

Trophy Case

  • 12-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies