Ashley's Forum Posts

    • Post link icon

    I'm not entirely clear from your posts what is actually happening vs. what you expect to happen. It's much easier to share project files so they can be run directly and adjusted if necessary.

    It's normal that if FuncA calls FuncB, then FuncB will complete and return before FuncA does. The exception to this is if you add 'Wait'. It's very similar to using setTimeout in Javascript, and running the rest of the function in the callback to that method. This means that the function returns early with the default return value, all other events run to completion, and then at some point later on the timeout happens and the rest of the code runs. By this point it's too late to return a value from the function: it's already finished. Therefore the return value will be ignored.

    This is, again, normal behavior in computing: as it stands Construct functions are synchronous, but anything involving 'Wait' essentially makes the events asynchronous. In general calling an asynchronous function from a synchronous one will mix up the execution order, as the synchronous function will not wait for the asynchronous one to complete. This is not specific to Construct and is typical of programming in general.

    It's common that people run in to a problem and then they immediately blame Construct. I would discourage you from doing this - not only is it somewhat tiring, it's also not the best way to investigate and diagnose a problem and will probably just send you on a wild goose chase which will only increase your frustration. A better approach is to basically take a debugging approach. For example you could add console logs frequently through the events, with messages like "Starting funcA", "Finishing funcA", "Step1", "Step2" etc. Then you can easily see in the console the specific order that everything ran in. This then helps figure out where things are diverging from what you expect, and helps you hone in on why. Chances are it's working as designed (but remember events are a pretty different paradigm to traditional programming languages, so in some cases the intended design may not be identical to other typical languages). Even if you become convinced it's a bug, you then have a project ideally set up to either share on the forum to ask about why it's working that way, or post to the bug tracker as a project demonstrating what you believe to be a bug.

    On the other hand, if you just keep making random changes to an event sheet, and always want to blame something other than the logic of your events, then yeah, you'll probably have a hard time making progress!

  • The data expression looks wrong. Try displaying it in a text object to see what it's really sending. As it stands if your balance is "abc" and the email is "xyz", it will produce balance=abcemail=xyz. Normally for URL-encoded type data you need an extra & to separate values, e.g. balance=abc&email=xyz

  • Wherever possible, please file bug reports following all the guidelines. In general it's simply impossible to provide any advice or help without all that information.

  • It looks like an optimization warning, not an error. You should be able to ignore it and continue to publish.

    I don't think its suggestion of using an app bundle would provide significant savings anyway - the APKs Construct generates are already widely cross-platform with little overhead.

  • Updated the original post with new downloads based on Chrome 77 (NW.js 0.41.0).

    • Post link icon

    Please don't post duplicate topics, closing.

  • Chrome's quota is usually based on a fraction of the available hard drive space, but it's set the quota at just 300mb, which suggests there is very little hard drive space left. For comparison my system says I have a 146 GB quota. The only other thing I can think of is are you using private browsing/incognito mode or some equivalent browsing mode? That imposes a really small quota to avoid web pages abusing storage. If not then I'm all out of ideas - maybe try a different browser...

  • That's very little quota you've got there and yep, you're using most of it. Are you sure you're not running out of hard disk space?

  • I'd point out we've documented how to get started with the Cordova CLI which covers a few of those points, and some other points don't appear to be solved by your tool either.

  • Look in Construct's About dialog, it tells you your storage quota and how much is in use there. What does that say?

  • I do think people should be encouraged to try scripting for cpu intensive tasks like this.

    Just be mindful that many people choose Construct specifically not to code, so won't be interested - as Fengist already stated.

    When we added the JavaScript coding feature several people also raised the concern that they'd no longer get useful help on the forums since people would tell them "just use code". That's something I'm keen to avoid, hence the separation of the forums.

  • Have you tried freeing up storage space like it suggests? Maybe you need to delete old NW.js versions from the version manager.

  • the Construct 3 build system still needs improvement.

    What improvement do you think there needs to be to Construct 3's build system? It looks like it already covers everything this tool does.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • A .c3p file is just a zip file of a project folder. So you can rename .c3p to .zip and unzip it, or zip a folder and rename it to .c3p to make it a project file again.

  • This is the Construct 2 bugs forum. Please report Construct 3 bugs here following all the guidelines: https://github.com/Scirra/Construct-3-bugs