|
Post by Cat Empress on Dec 31, 2022 15:45:10 GMT -5
So I am trying to make a mod, but I keep on getting this error, when I take my mod out, it works just fine. Any ideas how to fix it?
___________________________________________
############################################################################################
ERROR in
action number 1
of Other Event: Game Start
for object game_init_obj:
Data structure with index does not exist.
at gml_Script_set_language
############################################################################################
gml_Script_set_language (line -1)
gml_Object_game_init_obj_Other_2
gml_Object_init_injector_obj_Create_0 (line -1)
|
|
Lord Scooter
Blue Heart
Also known as Lord Galax. Scooter is the name of the cat in my profile picture.
Posts: 3,625
|
Post by Lord Scooter on Dec 31, 2022 16:57:12 GMT -5
Hmm… This problem happens to me sometimes as well. For me, it normally means that I forgot some important character in the lang or meta files.
What I do to find the issue is try and figure out which file is causing the issue, by (example for an npc) copying the mod elsewhere for backup, and replacing one of the files in question with one of the other npc’s files. (Such as replacing custom npc’s lang file with Talon’s lang file)
If the game boots up without the warning popping up, then you know which file is to blame, and it should only be a matter of hunting down the issue.
In my experience, it’s usually because I erased the } at the end accidentally. Perhaps just go over any editing you’d done and watch out for such errors?
I hope this helps!
|
|
Blue
Friendship Rank 4
I've got modder's block AAAAAAAAH
Posts: 634
|
Post by Blue on Dec 31, 2022 23:00:46 GMT -5
Once you follow Scooter's advice and figure out which file is bugging out, you can also run your code through this and it'll tell you what's wrong. jsonlint.com/Hopefully this helps.
|
|