#Error
10 messages · Page 1 of 1 (latest)
in Godot 4 the "File" class was replaced by "FileAccess"
so you'd have to do:
var storage_data_file = FileAccess.open("res://data/Storages.json", FileAccess.READ)
unsure about the JSON parse thing
You have to adjust these calls to match new API as written in the docs.
If you had a link, I looked earlier but didn't find anything
Godot Engine documentation
Inherits: Resource< RefCounted< Object Helper class for creating and parsing JSON data. Description: The JSON enables all data types to be converted to and from a JSON string. This useful for seria...
You don't need to do .result either. Just cast to the type