Changed name in .json random errors?

Nectar

Bees love me.
Veteran
Joined
Jul 7, 2017
Messages
215
Reaction score
37
First Language
English
Primarily Uses
RMMV
So I went through my game's .json files and replaced all instances of "quest" to "Quest"... I'm getting this one error but I'm not sure what is going on as it doesn't directly tell me anything I need to fix... wtf.PNG
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
Because in the one instance where the error happened, the quest was not a text but part of a function name. And function names are different between lower case and upper case, making the change name unusable and causing the error.

you need to find that specific case and change it back there.
 

Nectar

Bees love me.
Veteran
Joined
Jul 7, 2017
Messages
215
Reaction score
37
First Language
English
Primarily Uses
RMMV
Because in the one instance where the error happened, the quest was not a text but part of a function name. And function names are different between lower case and upper case, making the change name unusable and causing the error.

you need to find that specific case and change it back there.
Is there a way for the Console to show me exactly which I need to fix?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
Is there a way for the Console to show me exactly which I need to fix?
Not really - or to be precise not without a good basic in programming knowledge.

You would have to follow the trace to get to the original cause of the error - which is problematic because the console only says that it is part of an event (Control variable script error, which means that it is in a control variable command, and using a script line option in that command).

If you can find that event and give a screenshot of its event page with that command based on when the error happens, then you have a chance of finding this case - but it will not be easy.

And that is why you should never mass-edit json files, only edit single cases where you know what they're used for...

EDIT: A much better solution would be if you made a backup before the changes and use that again, this time only editing what you know to be a text and leaving the function versions alone.
But I'm guessing you didn't make such a backup before changing, or you wouldn't be here with this problem...
 
Last edited:

Nectar

Bees love me.
Veteran
Joined
Jul 7, 2017
Messages
215
Reaction score
37
First Language
English
Primarily Uses
RMMV
Not really - or to be precise not without a good basic in programming knowledge.

You would have to follow the trace to get to the original cause of the error - which is problematic because the console only says that it is part of an event (Control variable script error, which means that it is in a control variable command, and using a script line option in that command).

If you can find that event and give a screenshot of its event page with that command based on when the error happens, then you have a chance of finding this case - but it will not be easy.

And that is why you should never mass-edit json files, only edit single cases where you know what they're used for...

EDIT: A much better solution would be if you made a backup before the changes and use that again, this time only editing what you know to be a text and leaving the function versions alone.
But I'm guessing you didn't make such a backup before changing, or you wouldn't be here with this problem...
I have a backup in my SD card and another in my USB, I just realized I could go back and look through them. Thank you, not messing with these files again unless I replace text carefully.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
unless I replace text carefully.
basically going through the files one step at a case should be enough as the differences between text and code become obvious rather quickly if you read what stands there.
Only mass-replace or clicking through <next> without reading results in mistakes like what you got.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,048
Messages
1,018,545
Members
137,834
Latest member
EverNoir
Top