DiegoM's Forum Posts

  • It seems you need to enable custom user data before you are able to use it.

    docs.mongodb.com/realm/users/enable-custom-user-data

  • Is this how you are setting the custom data?

    docs.mongodb.com/realm/web/access-custom-user-data

    I would try doing it that way, and then see if retrieving it works. There is a note about write permissions, which I am not too sure what it means, but it might be worth to keep it in mind if you can't write the data.

  • What have you tried doing to set the custom data?

    I am not very familiar with the library, but if it is returning an empty object, then it is likely nothing was set to begin with.

  • Look for the Date & time example in the start page of C3. Just type Date & time in the search box and you should find it.

    The example shows a bunch of things you can do with the Date plugin. Calculating the time between the current date and a future date is one of them.

    There are quite a few things going on in the example, so just ask again if there is something you don't understand after taking a look.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Here is an example showing how you could do it.

    dropbox.com/s/oxxg1rstsju2rmv/DrawingCanvasCanvasJS.c3p

    The script creates an element for the library to use and makes sure it is hidden. Then sends it to the library, does the rendering and finally extracts the results from it's "canvas" property into the drawing canvas plugin instance.

    There is a little caveat to the whole process though. The drawing canvas is not available for use through the scripting API until at least 1 tick has passed, so the script in the example makes sure to wait for that.

    Hopefully we will sort that out sometime in the near future, but until then you'll have to do with the little hack.

  • There aren't any plans to implement this.

    When the feature was first introduced we thought that we would consider implementing moving along a bezier curve if there was an interest in the feature.

    As far as I am aware it has never been mentioned on the forums or the suggestions platform.

  • eleanorjmorel

    As with any other bug, the best you can do to report it, is to come up with the smallest project that reproduces the bug.

    Just from looking at the video I really can't tell that anything is wrong at at all.

  • No. It updates a WebGL texture dynamically, which while much faster than drawing to a canvas and then creating a new texture from that... we don't get to use any of the built in features of a canvas.

  • This actually is more difficult than it seems.

    It's one of those features that is taken for granted, but when it turns out you have to implement it... well... it's more difficult than you initially thought.

    And that is the case here, we can not take advantage of an existing browser feature and just hook it up to C3, instead it has to be an implementation of our own.

  • You can set a layer to be global, it's a dropdown in the properties of a layer in the properties bar.

    After setting the layer to be global, go to another layout, create a new layer in it and give it the same as the global layer you set previously.

    After doing all of that, the new layer will have the same content as the original global layer. This can be repeated in as many layouts as needed.

  • tarek2

    Currently files are sorted alphabetically before importing. This means that if your files have names which have the minimum number of digits, Ej. 1,2,3,4,5,6,7,8,9,10, then the list will be sorted as 1,10,2,3,4,5,6,7,8,9. That happens because the names of the files are seen as strings of characters, rather than numbers.

    I can add the option to choose between different sorting modes to the configuration file, but until I do that you can resort to naming your files in a way they will be sorted correctly every time. One way would be padding the names with zeroes Ej. 001,002,003,004,005,006,009,010

    That will make sure the alphabetical sorting sorts the numbers as expected.

  • I saw this a while ago and thought that it wasn't supported, but it turns out it is. It's just not immediately obvious.

    Here is a small project showing how to do it.

    dropbox.com/s/rpjdia0aj3y87o7/AwaitCallFunction.c3p

    The project has 4 buttons showing what is the execution flow when using different combinations of asynchronous functions, await and wait for previous actions to complete.

    For this example I use a function which only uses the Wait action, just to demonstrate that something is being waited for.

    Button 1

    The first button will do all the things. The script block uses

    await runtime.callFunction
    

    It works because the Asynchronous checkbox was ticked.

    You can see there is a short wait between the text changing. An alert is shown afterwards because there is a wait for previous actions to complete after the script block, which prevents execution of the event sheet from continuing before any previous asynchronous work is complete.

    Button 2

    The second button does the same as the first, but it doesn't use wait for previous actions to complete. So the alert is shown immediately after the script block. After closing the alert box, the short wait between the text changing is still present though, this is because

    await runtime.callFunction
    

    is still stopping execution in the scope of the script block.

    Button 3

    This one just shows what happens when you don't wait for anything. The alert is shown instantly and the text doesn't wait to change. This one is just to show what you don't want to do when working with asynchronous functions.

    Button 4

    This is the same as the first, but calls a function declared in a script.

    eleanorjmorel

    I think that covers everything. Not really sure what you need to do, hopefully one of those is what you are looking for.

  • I haven't tried it out, but I am wondering what is that base64 encoded data?

    I tried looking at the json on on it's own in Notepad++ and it struggled to show anything. Taking several seconds to open the file and then scrolling through it as sluggishly as you could possibly scroll.

    I am thinking the data is an image because 16 megabytes of raw text would be a lot of text.

    I know it is tempting to just cram an image in text format in a json file and then just load the json. But in this case maybe it is better to hold an identifier in the json and then use that to load the image through the browser's normal methods.

  • I did a search for net::ERR_CACHE_WRITE_FAILURE and it seems to be related with the browser not being able to cache very large files.

    Is your server gzipping and minifying the json? If the file is being served as is, that might help.

    You can also try an incognito mode tab to see if it works there.

  • No plans. There are a few issues with fully supporting scene graph transformation on form controls.

    The main problem is that form controls don't rotate, so even if we added the support now, the immediate caveat is that they would not be affected by rotation of a parent, which is a pretty big caveat.

    I am not quite sure how much work would be to add support for form controls rotation, but like everything else, I am sure it would be more difficult than it sounds.

    I imagine the implementation would somehow involve CSS transformations (because it is the only way to apply rotation and scaling to DOM elements), but that is as far as I can picture. It seems like it is possible, just not a pressing issue.