Hi there I have problem with a savegame.save on my android after install

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By linux.linux
:warning: Old Version Published before Godot 3 was released.

I have install in my android phone my project but i create here the file:

var savegame = File.new() #file
var save_path = “res://savegame.save” #place of the file
var save_data = {“highscore”: 0} #variable to store data

res:// path doesn’t work with android?

Anybody can solve that, for create a new file?

in my assets can locate savegame.save file too

thanks a lot

:bust_in_silhouette: Reply From: Ceilingdoor

res:// becomes read-only after compiling the game(you can only read files from it, not write). Use user:// instead.

Ok i discover what happning.After files was created with a create_file( ) function they there created with res:// after i deleted user:// accepted.

thank you for help

linux.linux | 2016-08-02 18:05