I want to create and serialized index of all the weapons (~150 or so), names, stats, etc in my game and load them in at run time. I have tried doing this in JSON and then again in a cfg file (which I think works a bit better for GDScript to interpret) that I have saved as res://config/weapons.cfg
. However in the editor I cannot get it to show up as anything other than an empty folder. I have to open VSCode to edit the files which isn't terrible but I was loving the all inclusive editor experience up until this issue.
I guess first question is is it possible / how would I add arbitrary code files to the code editor. And maybe as a follow up question, is this the best way to index a bunch of serialized game data or does Godot have something else designed for that sort of thing?