Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Explains Godot 4.3+ save/load strategies (ConfigFile, JSON, Resource files) with security guidance and code examples for each.
86% 95%+9 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 19 of 22 without it.
This test ran on v1. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
Reference for skills/save-load/SKILL.md — JSON.stringify / JSON.parse_string for game save state. Full GDScript and C# implementation.
← Back to SKILL.md
Use JSON for game saves. It is portable, debuggable, and easy to version-migrate.
# save_manager.gd — add as autoload named SaveManager
extends Node
const SAVE_DIR := "user://saves/"
const SAVE_EXTENSION := ".json"
const CURRENT_VERSION := 2
func _ready() -> void:
DirAccess.make_dir_recursive_absolute(SAVE_DIR)
# ── Save ──────────────────────────────────────────────────────────────────────
func save_game(slot_name: String) -> bool:
var player := get_tree().get_first_node_in_group("player")
var world := get_tree().get_first_node_in_group("world")
var data: Dictionary = {
"version": CURRENT_VERSION,
"timestamp": Time.get_unix_time_from_system(),
"player": _serialize_player(player),
"world": _serialize_world(world),
}
var json_string := JSON.stringify(data, "\t")
Next to this one in the catalogue, plus more from the same author.