License from €75
DE EN FR ES IT CZ

Screenshot savedgame

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  1. · 12 years ago
    Hello,
    I'm trying to create a screenshot for my saved games but it's not works.

    -- save to "screenshots" folder as "filename.png"
    createScreenshot("screenshots/filename.")
    

    Questions:
    Where is located the screenshots folder?
    If the folder is not exist?

    Could you please explain me about the screenshots?

    Thanks.
  2. Working on a game?

    The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license. Forum readers get the Indie Bundle 15 % off with the code FORUM15: €84.15 instead of €99, valid until 31 Dec 2026.

    Get 15 % off Try it for free
  3. · 12 years ago
    You need to create a folder named "screenshots" in your games root directory. Also you need to attach an extension to the screenshot. .png or .jpg etc. I recommend .png.

    Also it won't create a screenshot in that way for your save game thumbnail. I think you have to use the clear method, but I'm not sure on the syntax for that. Thumbnails for save games are usually generated automatically. If you have included any of the shader stuff in your game & all you are generating is black thumbnails then it is a bug with screenshots in relation to the shader, which I believe Simon is looking into fixing.
  4. · 12 years ago
    Hi Lee and thanks.
    I created my screenshots folder and now I can create the screenshots. ok.

    Also I need to the thumbnails for my saved games. You say that they are generated automatically, where?
    How can I use the thumbnails in my saved games?

    Many thanks.
  5. · 12 years ago
    If you are using the default save game system then the thumbnails should be displayed in the slots you created automatically. The thumbnails for save games are stored in the save files I think (not 100% sure on this).
  6. · 12 years ago
    I use the autosave features, it's the same?
    How can I show the thumbnails in the saved games screen?
    Can I resize a image with lua? How?

    Thanks.
  7. · 12 years ago
    No, the autosave is essentially a quicksave system. There's no thumbnails with that. You could however generate a thumbnail with a specific name & then use lua to set the path of a menu/scene objects image to that image file I think. You can adjust scale since 4.0.1 I think using the new scale data structure table but it will only let you adjust the entire image by a percentage rather than letting you specify absolute width/height.

    What I am saying is completely theoretical. I'm not sure if any of it will actually work as I've not attempted/tested it before.

    Why have you not used the actual save game system?
  8. · 12 years ago
    I passed to autosave system because the savegame was not working well, when I loaded a save game, it loaded other save game of a different slot... I will try to use again the save game system. In this case, how can I show the thumbnails? When I used the save game system, I have never seen the thumbnails...
  9. · 12 years ago
    The default save system requires you to draw the save slot polygons which will contain the thumbnails that should be automatically generated when you click on a save slot & then use the save game action part. I admit that the default save system leaves little to be desired as it's a bit outdated.
  10. · 12 years ago
    I drawn the save slot polygons but the thumbnails are not displayed. (see images)
    • Image in post
  11. · 12 years ago
    hmm you haven't by any chance added any images/objects to the part where the save game thumbnails are to be displayed no? There's no object center/z-index for menu scenes, so if you add an image to where the save slots will be then the image will be placed above the save slots. You can however use this to add fancy borders/highlight graphics above the save slots. You need to make sure all graphics that you want behind the save slot are added to the background or hidden with a condition on save game in that slot.
  12. · 12 years ago
    ok Lee, I have a object as background instead of a background image. If I remove this object, The thumbnails are displayed.
    I'll try to use the save game system even if I think works better the autosave.

    Many thanks.

This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.

New thread

Really delete this post?