Danwood's Recent Forum Activity

  • I would recommend to leave a shitload of comments, so both of you can fully understand every part of the project. If you work on different areas of the event sheet, and these areas are not interconnected, you can avoid thet (i still leave a lot of comments for myself, or, as i like to say," the me of the future" )

  • Good, i'll do that

  • Danwood

    You could use NW.JS action "Show folder dialog"

    You could also try to make a system which deletes snapshots ignored by player when player quit your game in order to prevents a high data storage

    ALready done, old snapshots are deleted if player discards the game and starts a new one. So if i use Show Folder dialog, can i save the selected path to a variable and use it to point all the future snapshots, in order to avoid prompting the dialog every time?

  • If there is a way to prompt the user a path selection that would work for all the future snapshots, then yes. But so far i just allowed the users to save each snapshot where they want, which resulted in annoyance since the selection pops-up frequently, they asked to remove it and make it automatic actually!

  • Thanks! I was missing the wait 0.5 part, lol

  • What?? How can i generate it from the game? o.O

  • Maybe i did something wrong previously, but now it's all smooth

  • Ok, i managed to make it work silently, dunno how (as always), hate when things work and i dont know why, i prefer they dont

  • I moved the bat file in the Dinosystem directory, and it has this:

    rmdir /Q /S History

    Edit: changed with DEL /Q /S "%USERPROFILE%\Documents\DinoSystem\History\*.*"

    works better and doesnt need to stay in the same folder. But the confirmation pop-up problem is still there

  • Yep it works! Thank you

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yea, it's not very professional indeed xD

  • It works as it is now, here's the js:

    "var fs = require('fs');fs['writeFileSync']('" &replace(NodeWebkit.UserFolder&"\Documents\"&"\DinoSystem\"&"\History\" & "DScreen" & SnapN & ".jpg","\","\\")& "','" &CanvasSnapshot& "'.split(',')[1], {'encoding': 'base64'});"

    the SnapN is just a variable to number the screens

    Is there any advantage in changing to the way you suggested?

    PS: is there a way to tell the game to delete a folder? Looks like i can delete only a single file, but i want to delete all files in the given folder or the whole folder. Just an optional thing though.

Danwood's avatar

Danwood

Member since 2 Jan, 2014

None one is following Danwood yet!

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x5
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

16/44
How to earn trophies