JSON Save Files Tutorial for GODOT v4.0+

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ส.ค. 2024
  • 👍👍👍 and subscribe for more GODOT videos: / @and1hof
    Check out my best selling AppSec book: amzn.to/3pGO4Vz
    Create JSON save files and build a save file manager in this video tutorial. Learn how to consume JSON save files and export cross-platform save files in your GODOT version 4.0+ game. #godot #godottutorial

ความคิดเห็น • 11

  • @and1hof
    @and1hof  8 หลายเดือนก่อน +3

    Please set the video quality to maximum in order to better read the code in the video.

  • @ignaciodangelo6385
    @ignaciodangelo6385 4 หลายเดือนก่อน +9

    Windows: %APPDATA%\Godot\app_userdata\[project_name]
    macOS: ~/Library/Application Support/Godot/app_userdata/[project_name]
    Linux: ~/.local/share/godot/app_userdata/[project_name]

  • @Helpforever
    @Helpforever 8 หลายเดือนก่อน +1

    Welcome back bro merry chirstmas

  • @HunterSlimeG
    @HunterSlimeG 6 หลายเดือนก่อน

    This was extremely helpful!

  • @debhalder4602
    @debhalder4602 26 วันที่ผ่านมา

    is there any updated video about it?

  • @FunNiceGuy444
    @FunNiceGuy444 3 หลายเดือนก่อน

    nice video, i think you could make yourself a bit louder

  • @ritzenhauf
    @ritzenhauf 8 หลายเดือนก่อน +2

    Any advantages to using json instead of godot resource?

    • @and1hof
      @and1hof  8 หลายเดือนก่อน +6

      There are a few. One that comes to mind is if you are building a server-based multiplayer game (not peer to peer) - it's really easy to consume the JSON on the server and parse the data.
      Programming JSON is a bit easier too if you come from a web dev background. JSON files can be opened / viewed in any code editor (e.g. VSCode). It's a much more well defined and tested standard (millions of app/websites) than Resource/ResourceSaver.
      The JSON model isn't great if you want to accurately track the positions of thousands of in-game objects in a single player game (larger file-size), but if your game resets most of it's state except unlockables each time you use it (e.g. a rogue-lite) JSON may be the better option in terms of developer productivity.

    • @shanefoster5305
      @shanefoster5305 4 หลายเดือนก่อน +2

      Easy to create a hash to prevent people from manipulating the data if you are concerned about them editing the .json file. Or have it store server side if using it for multiplayer. Godot resource is difficult for multiplayer. If you're just doing a solo only game you can use resource. It's a little less code, but not as functional.

    • @ccrackblazingwarlock
      @ccrackblazingwarlock 3 หลายเดือนก่อน

      I remember reading somewhere that using resource save you cant modify the data while running but in json you can I dont know if its true tho

  • @truenincillo805
    @truenincillo805 2 หลายเดือนก่อน

    Tutorial sistem building 2d games please 🙏🙏