Nepeo's Recent Forum Activity

  • Data from the BinaryData, JSON, Array, Dictionary and XML plugins can all be nested within each other, provided you know the correct transformations. This of course makes them compatible with the localstorage plugin as well.

    The "procedural terrain generation" example project uses JSON to store data for zones of the terrain, converts it to a string then places it into a Dictionary. The keys for the Dictionary are based on the location so they can be easily looked up and replaced.

  • Animate glad I could help, the "hard" option isn't really that hard I guess. When I was working it out it just seemed to be more complicated I guess, so long as you understand it!

  • Well the feature is still new, maybe suggest a "Follow object" action to Ash.

  • There's a lot of information here, but I can't see any clear issue I'm afraid.

    There is a known issue with tracking prevention in Safari 13 which is preventing login sessions from persisting, but it doesn't cause any major issues as far as I'm aware. The following log messages are related to that:

    Blocked a frame with origin "https://account.construct.net" from accessing a frame with origin "https://editor.construct.net". Protocols, domains, and ports must match.
    
    _MaybeSwitchToMemoryFallback — localforageadaptor.js:19
    
    [Error] Unable to use local storage, reverting to in-memory store: (2)
    
    SecurityError: IDBFactory.open() called in an invalid security context — kvstorage.js:22
    
    "IDBFactory.open() called in an invalid security context"
    
    _MaybeSwitchToMemoryFallback (localforageadaptor.js:19)
    
    (anonymous function) (localforageadaptor.js:36)
    
    asyncFunctionResume
    
    (anonymous function)
    
    promiseReactionJob
    

    By the looks of your browser information you may also experience a bug when using TiledBackground or 9Patch objects in worker mode, worker mode has been disabled by default in the latest beta release because of this.

  • It's a little awkward because most of the actions set a value on a parent, which makes it hard to replace the root object. So there's kinda 2 ways forward, depending on what restrictions you have on the format:

    1. Easy option: keep the root as a JSONObject and place the array into a field like so:

    	{
    		"array": [
    			{ "answer": 0, "incorrect": 0, "correct": 0 },
    			{ "answer": 0, "incorrect": 0, "correct": 0 },
    			{ "answer": 0, "incorrect": 0, "correct": 0 }
    		]
    	}
    

    2. Hard option: Use the "parse" action to replace the root with an array, increase the size of the array using the "push value" action with dummy values, then replace those dummy values with objects using the "set object" action.

  • We're planning to update the billing library, the cordova plugin for Mobile IAP is forked off a third party project so we have been waiting on them to complete the work. It's been a couple of weeks since I've checked, so they might have finished. I will take a look today, it would be nice to get it in place for the next stable.

  • I'm afraid not, the whole plugin definition is treated as a static type object. After it has been created it doesn't do much other than hold information. Trying to read back the value of a plugin property is also pretty hard, as the definition of the property is decoupled from the actual value. Took a fair bit of gymnastics to get dynamic variables to work.

    We could probably add something like this, but it could add weird side effects ( plugin list becomes non-deterministic ), and I'm not sure what the advantage is?

  • luckyrawatlucky you can't create multiple ones at the moment I'm afraid. The easiest solution is probably to store the values into an array object. The only thing you lose doing this is the index wrap around when trying to read values, but I'm guessing not many people are relying on that.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Looking at the licensing document provided by fredriksthlm you appear to only be able to use it for "static content". So you can create an image with prerendered text, and add that to your game. But using it to render text either via a text object or sprite font is not allowed.

    Fonts have 2 generalized forms of license; desktop and web. Adobe's license sounds very "Desktop". Desktop allows you to use it on your computer, and with design software. Web allows you to put it on your server, so that people visiting your website can use it. The limitations depend who you buy it off, but typically web fonts cost more. For example looking at "myfonts.com" they charge a one off fee for Desktop usage, but charge per use if you want to put it on a server.

    I would recommend avoiding closed source fonts and just picking an open source one, it's very easy to find good open source fonts nowadays. Google Fonts has a large collection which can be downloaded easily fonts.google.com

  • For Android we generate the version code from the project version. Using the sum (((((MAJOR * 100) + MINOR) * 100) + MAINTENANCE) * 100) + BUILD where the format of the project version is MAJOR.MINOR.MAINTENANCE.BUILD. If you don't use all 4 values, then the omitted values are treated as 0.

  • The C2 runtime and the C3 runtime both include some cordova plugins by default, and they vary slightly. So it's possible. I'll try recreating your project as close as I can and see if I get the permission.

  • I did some test builds to see what the results were for various plugins:

    Google Play

    • android.permission.ACCESS_NETWORK_STATE

    Mobile Advert

    • android.permission.ACCESS_NETWORK_STATE
    • android.permission.WAKE_LOCK
    • com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE

    Share

    • none

    Mobile IAP

    • com.android.vending.BILLING

    Additionally I tried uploading an APK to the Google Play Console to see if WRITE also caused READ to appear. It doesn't, so something is explicitly adding the READ permission in your app, but I'm not sure what it is at the moment.

Nepeo's avatar

Nepeo

Member since 8 Mar, 2016

Twitter
Nepeo has 583,792 followers

Trophy Case

  • 8-Year Club
  • x4
    Coach One of your tutorials has over 1,000 readers
  • x3
    Educator One of your tutorials has over 10,000 readers
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

13/44
How to earn trophies

Blogs