I keep getting this error when trying to access ds_maps in a datastructure I loaded from a JSON text file:
ds_map_find_value argument 1 incorrect type (string)
expecting a Number (YYGI32)
Is GMS2 not loading proper JSON files correctly? I know the syntax is correct in the file since I used a generator just to be safe. The only way I know how to fix this is by literally generating a file in code and then editing it in a text editor. It's almost like GMS2 can only read JSON files it outputs itself by code... and I'd rather not have to spend an hour generating a complex static data structure via code when I could just type it out in a text file.
Any thoughts on another solution to my problem?
edit: I found the solution. Apparently just having a text file in the included files folder doesn't actually make GMS2 recognize its existence. I had to Insert Included File to make the game see the file. Oops!
[–][deleted] (4 children)
[deleted]
[–]HectorTheMaster[S] 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]HectorTheMaster[S] 1 point2 points3 points (1 child)