You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Godot Version: Godot 4 Beta-3
When doing the following to read a JSON file it all works within the editor and PC but when exported to Android it fails to read the JSON files. I imported everything from the JSON into the dictionary that it's supposed to import the information into and the code works completely fine. I have already gone to the Export presets, set it to export all resources, and put "*.json" in the filters.
var mine_buildings := {}
var mines_file := FileAccess.open("res://resources/buildables/mines.json", FileAccess.READ)`
var mines_json = JSON.parse_string(mines_file.get_as_text())
for mine in mines_json:
var data = {}
data.id = int(mine.id)
data.output = int(mine.output)
data.cost = int(mine.cost)
data.color = mine.color
data.name = mine.name
Data.mine_buildings[data.id] = data
Left is the code working fine right is my android phone displaying a zero meaning the JSON could not be read.
Steps to reproduce
Create a mini system to read the JSON file like show in the code above.
Then just have a Label text and set it to show the length of the new dictionary "mine_buildings".
When exporting to Android it will show no length of the list but 0.
when running on the editor it works fine with no issues what so ever.
Or just use the zip below and it will show the issue just run on both pc and android
Godot version
4.0.dev
System information
Windows 11
Issue description
Godot Version: Godot 4 Beta-3
When doing the following to read a JSON file it all works within the editor and PC but when exported to Android it fails to read the JSON files. I imported everything from the JSON into the dictionary that it's supposed to import the information into and the code works completely fine. I have already gone to the Export presets, set it to export all resources, and put "*.json" in the filters.
Left is the code working fine right is my android phone displaying a zero meaning the JSON could not be read.

Steps to reproduce
Or just use the zip below and it will show the issue just run on both pc and android
Minimal reproduction project
Temp.zip
The text was updated successfully, but these errors were encountered: