0 votes

Hi guys, sorry for my english ;) i'm just a french frog :D
Well, I create a save system, really simple, write in JSON file. When I launch a demo on Godot there is no problem, everything works fine. But after export (for win and android) I have an Error in debug console.

ERROR: _File::store_line: Condition ' !f ' is true.
At: core\bind\core_bind.cpp:1687 

My script :

data = {"_Save" : {"dial" : saveDial,"rep" : saveRep}}
var file = File.new()
file.open("res://json/savelogs.json", File.WRITE)

I add *.json on "Filters to export non-resource files" and I choose "Export all resources in the project". I use godot v2.1.4 on win 10 x64.

Any idea ?!

in Engine by (15 points)

1 Answer

0 votes
Best answer

generated data in game should be stored under user:// instead of res://
mostly, it's prohibited to modify resources under res://

by (9,768 points)
selected by

That works fine !! Thanks a lot ;)

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.