Hey I’m trying to ovewrite an already created save file. But changes are not saved when using store_line. The first save (when the file doesn’t exist) the data is stored correctly. dataToSave is a JSON variable.
func save_game(fileNumber):
var savegame = FileAccess.open("user://savegame_" + str(fileNumber) +".save", FileAccess.WRITE_READ)
var dataToSave = saveData()
var json_string = JSON.stringify(dataToSave)
savegame.store_line(json_string)