lemo's Forum Posts

  • Nice work, I think the line and the block look nicer now

    Still not so sure about the moon, anyway here is some inspiration for you

    But yeah with not as much contrast as this illustration, otherwise you still won't be able to differentiate the foreground like Ryan said

  • Okay how about this example? Looks very binary to me

    http://stackoverflow.com/questions/7329 ... ng-node-js

    Maybe Ashley would be interested otherwise to add "Write Image File" in the official Nw.js plugin if it's possible?

    It could work with the base64 plugin we can use already, or any base64 input (like CanvasSnapshot)

    So basically Sprite > Load image from url > Extracct base64 > Write image file

  • Yeah I can confirm #1, I tried yesterday to load jpg versions of the same text files, and it was much faster

    Not to mention the filesizes, as one of the pic was only 100kb in jpg, and goes above 1mb in it's base64 equivalent :p

    I'm mostly concerned about loading times, as saving happens once, only each time there's a new entry

    While loading happens every time the app launches, for each of the entries

    But yeah to be able to load fast I need to save those in jpg first through the code

    And could be interesting to see the difference in saving times for synchronous events indeed

    Are you sure they're saving in base64 in the link I posted? <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">

    I can't fully understand the code, but what about the "binaryData", and correct "png" extension there?

    require("fs").writeFile("out.png", binaryData, "binary", function(err)[/code:104tt3eb]
    Ok maybe the first answer looks base64, but how about the second answer "full solution" on that page?
    I posted that link coz the docs only have a "utf8" encoding exemple, so it's hard to tell what's possible or not
    [url=https://nodejs.org/api/fs.html#fs_fs_writefile_file_data_options_callback]https://nodejs.org/api/fs.html#fs_fs_wr ... s_callback[/url]
  • That's one of the plugins I tried yeah, but nope it opens a "save as" dialog on nw.js, so not really manageable for automating 100+

  • Okay so I tried many different plugins and solutions already, but nothing really seems to be doing that at the moment

    I need to save those images (0 to 100+) on the user disk, to load them back the next time they use the app

    Been using base64 loaded from txt files so far, but now I realize this slows down boot times immensely with many pictures...

    So the nw.js action "write file" can write text or a base64 string, but I believe it can also save image as binary files?

    Anyway that's what those guys seems to be doing? Let me know if someone can make sense of this into a plugin

    I need "automatic" save in a custom folder, without user dialog, just like "write file" does, but for actual image data

    http://stackoverflow.com/questions/6926 ... ge-to-disk

  • Yes I think the current "static" tag system is hard to work with for "dynamic" requests, like launched all at once through a loop, hence with the same tag

    And while the Request URL action can currently allow to write a tag+variable name, the On Completed can't really make sense of it?

  • Yes please, feels like it's very hard to differentiate AJAX instances sometimes

  • Thanks nevermind, if found this in the meantime, which seems to work for my use

  • Hey armaldio, this is actually pretty handy! Did you try to optimize it for very large lists?

    I'm trying to load a list of about 13k lines...

    Limiting to 3k seems to load in ~15sec, but loading the full set usually freezes chrome :/

  • These are both really cool tech indeed, will keep in mind for later

  • Hmm I dunno, the outer edges of the main ice block look very aliased

    While on the other end, its inner edges can look very blurry in some levels...

    Also I think the moon is out of place, maybe you have instead of a photo an illustration like the rest

  • Cool idea, maybe just a few things to polish in the graphics : ] (the dotted line looks cheap especially)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks rexrainbow, that's a very handy plugin, works great on nw.js too

    I just have one issue now, as the frame seems to lose "focus" in my case, meaning the youtube timeline doesn't come back as usual when hovering with the mouse...

    Then I have to click the frame to get back focus, which usually (annoyingly) pauses the video, but afterwards the controls work just fine on hover

    Sorry I can't provide a capx, as I haven't managed to reproduce it in a new project... (and my capx is quite huge), any idea what could cause losing the focus?

    I'm not using it in fullscreen, or full window, just a portion of my layout (btw you have a small typo "full windoe")

  • GeometriX Thanks the upload, and yeah that's also the same event I've been testing

    Same results for me as what I described above I'm using a Nexus 7 first gen btw

    Well good for you if it works, let's see what rekjl see in case that's just on some devices...

    (PS: any compass app from the play store works perfectly on my tablet otherwise)

  • GeometriX I mean the evolution of each is not proportional/linear from 0 to 180 (or 360)

    The lag or delay doesn't bother me, what does is strange values between 0 to 90

    Also Alpha range should be 0-360, did you ever manage to have it between 100-260 in C2?

    Yeah it should be just like an absolute compass

    And in theory it should point North with "Set Angle to > 360 - Touch.Alpha", but it doesn't