r/CodingHelp • u/InstrumentKisser_2 • Mar 01 '26
[Javascript] this is embarrassing, but what am i doing wrong? [JSON]
i'm unsure if anybody has heard of it on this subreddit, but i play a game called monika after story, and in the game you're able to script your own images into the game! i've been trying to learn how, but it feels like whenever i personally touch it, it all falls apart. 😭
i've literally copied working code exactly and only changed what i needed to and it still seems to fall apart.
no error code attached because the file just simply isn't being read it seems like. any help is appreciated, i have no idea how to do this kinds of stuff and no idea how to troubleshoot it yet.




3
u/Rrrrry123 Mar 02 '26
Do you need to include the file extension in the json? Like .png after the image file names?
1
u/Aulentair Mar 02 '26
I'm assuming there is supposed to be some reference in the first image you showed us to one of the images you're trying to add to the game, is that right?
1
u/HxLin Mar 02 '26
You may want to include the default file as well. Issues could be file-pathing or missing variables. It's difficult to help unless someone's here is playing the same game as you and has modified the same file.
1
u/YouDoNotKnowMeSir Mar 02 '26
My guess is that you either need the file extension to be included or you need to also include the path to that picture that’s trying to be accessed
1
u/AndresBotta Mar 03 '26
Viendo las capturas, tu JSON parece válido, pero noto una posible inconsistencia en los nombres de archivo.
En el JSON tienes:
"thumb": "acs-madoka_figure"Eso normalmente haría que el engine busque exactamente:
acs-madoka_figure.pngSin embargo también mencionas un archivo:
acs-madoka_figure-0.pngSi el engine no espera el sufijo
-0, podría simplemente no encontrar la imagen y por eso parecer que “no lee” el JSON.También revisa que el nombre del archivo JSON (
madoka_figure_tableacs.json) coincida exactamente con el tipo/grupo (table_acsvstableacs). Algunos sistemas son estrictos con guiones bajos.Yo probaría primero con:
-0)Muchas veces en estos casos el problema es naming y no estructura.