Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | cnkids |
Already add *.json to non-resource export filter. But it didn’t work.
Windows and Test work well.
rename to txt and remove import settings and it should work
rakkarage | 2020-08-22 20:13
still not work.
var jsonPath = “res://hit.txt”
func read_json():
jsonFile = read_file(jsonPath)
if jsonFile:
jsonTxt = parse_json(jsonFile)
print(jsonTxt)
terminal can print
and where is “remove import settings”?
cnkids | 2020-08-23 02:56
ya sorry i guess i was thinking of csv files, when you create one in project directory it makes a “test.csv.import” file and does not load on android unless rename to txt and remove
import Godot can't load CSV file as TextFile resource · Issue #38245 · godotengine/godot · GitHub
sorry
rakkarage | 2020-08-23 14:27
Thank you for your help so much.
At last the problem I found was that the fonts file was named in Chinese, which may have caused the path to be read incorrectly.
Now the problem solved.
cnkids | 2020-08-23 17:07