Godot Version
4.5
Question
Hello Godot enjoyers. I work as a on a cannabis farm in Canada and made a little app to help with tracking our waterings and reporting using control nodes. It tracks how we fertilized the plants and how much water we use daily and saves it to a nested dictionary on a class I made, which I stringify as JSON files. I later export these as csv files. On windows the following function reliably parses my JSON files, and fills out all the nested dictionaries when the app opens.
However when I copied the project to my raspberry pi 5, it no longer does and my objects just have the empty dummy dictionary they get created with. I use a very similar function to load my fertilizer formulas, user list, and lot list without issue.
This is on the ready() of an autoload.
If anyone has an idea of a workaround or a different way to duplicate the info I’d be pretty grateful. My print out for the filepath shows as correct, and this works on my windows pc.
func _ready() → void:
load_list() #Loads an array strings that are the Dictionary keys
for i in lot_list:
-
var new_lot = GrowLot.new()* -
new_lot.info.lot_number = i* -
var new_lot_path = "user://%s.JSON" % i* -
load_lot(new_lot_path, new_lot)* -
lot[i] = new_lot* -
print(lot_list)* -
print(lot)*