Ashley's Forum Posts

  • You should always check the browser console first. In this case it logs a warning telling you that requests from a HTTPS to HTTP page are blocked for security reasons (mixed content warning). That would have saved you all the trouble sifting through logs and all.

    You should absolutely run your server on HTTPS. Many web platform features no longer work on HTTP, so you may also find some features stop working when you publish your project to an insecure server.

  • Windows does understand either kind of slash. Maybe the problem is the missing drive letter instead.

  • It doesn't matter. Windows understands paths with forwards slashes too.

  • The first place to look is the browser console for any error messages.

  • Currently browsers prevent writing files back to disk for security reasons. It may be possible in future though.

  • Updated the original post with new downloads based on Chrome 73 (NW.js 0.37.0). There's also a fix for the C3 runtime's worker mode not working in preview.

  • We haven't made any attempt to resolve this in the latest betas, and as noted, there's nothing much we could do even if we wanted to.

  • It looks like you're trying to use the Facebook API (a different service) on Instant Games, and it's encountering an error trying to do that. It would not surprise me if the Facebook API was intentionally blocked in Instant Games.

  • It's an issue with Facebook's code, please take it up with them:

    The term scriptElt does not occur anywhere in the Construct runtime. So I believe the problem occurs in Facebook's side so should be taken up with them.

  • How do i Prompt a wall post using instant games, your answer was:

    You've confused two different services. They both happen to be run by Facebook, but they are different.

    The Facebook plugin uses the Facebook API which can share wall posts to the user's Facebook account. However it's mostly defunct now in favour of the new Instant Games service.

    The Instant Games plugin uses the Instant Games API which can share to the current Messenger thread. It can't make wall posts, because it's designed to run in Messenger, an instant messaging app.

    Both are run by Facebook, but this doesn't change the fact you can't make wall posts from Instant Games.

    I'm afraid you have confused the capabilities of the two services. Getting upset won't help anything. Please refer to the Forum & Community guidelines; you will be held to these rules regardless of the issue at hand.

  • Why not use the NW.js macOS export option?

  • Please request official features in the SDK - don't just go and dig up undocumented, unsupported features.

  • Also, to demonstrate the importance of this:

    For exemple this.inst.GetWorldInfo()._SetLayer()

    The reason _SetLayer() is marked private (via the underscore) and is undocumented, is because it is an internal engine call. It must be used simultaneously with a range of other calls across the engine, otherwise it will corrupt the internal state of the runtime and break the game. In other words, it's not useful on its own, and using it will break things. This is true of any other features you find that are undocumented.

    This has been a huge pain for us and other people before. Please do not go and write code using stuff like this.

  • I must emphasise that if you look for features using the debugger, you will find undocumented features that are not supported and could break at any time. See this warning in the SDK documentation:

    The runtime APIs allow access to all parts of the engine. Do not use undocumented features, or other object's properties or methods beginning with an underscore, which is a convention used to indicate private features. These features are subject to change at any time, including backwards-incompatible changes, or complete removal, that may break your addon. If your addon uses these features and is broken by a change, we will not offer any support, since you should not have been using them in the first place. If users complain about the breakage, we will forward them on to you. It is important to allow flexibility in the core engine to ensure we can make optimisations, do necessary refactoring, implement new features, and so on, which is why we will only support the documented, public APIs.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Your screenshot shows an invalid expression, because the double quotes are wrong. In general you can't paste JSON unmodified in to an expression, because " starts and ends string expressions, and the " around JSON properties will cause syntax errors. You have a few options to work around that:

    - use "" inside a string to produce a single character without ending the string

    - paste it in to a Text object or some other plaintext object and use that object's text as an expression

    - paste it in to a project file and load it with AJAX