what happened, i deleted my classes, but then tried to reset it but the error still happened
Error message: Cannot read property 'expParams' of null
RPG Maker MZ SupportEvery actor needs a class. Check the Actors tab of the Database and make sure every actor has a valid class defined.
I encountered this error today and I'd made no recent changes to anything in the database section. My project worked yesterday and I hadn't done anything but a couple of small map edits, just changing tiles and no event editing. The stock answer seems to be 'check actor for invalid classes'. All my classes were valid. What I tried was gradually deleting characters. I did that and eventually the issue resolved. My actors all had the same class as they were mostly for testing. So something in one of the characters had become corrupted but I'm not sure what. Kinda concerning. I wouldn't want to get far into game dev and hit a random issue like this.
Because that's exactly what the error says. If there were a problem with the actor, then the crash would've crashed a line earlier on 4156 with the error "Cannot read property currentClass".
The only way the code can get to that line and produce that error is if the reference to a class attached to the actor doesn't exist.
There are various ways that can happen, and it depends on the user and their project. It could be that they edited the actor or their class in the database but loaded a save game.
If you have a bit of JavaScript proficiency (or you ask for help), you can add troubleshooting messages to the relevant function to find out exactly which actor it's talking about.
Awesome! 🙂
The odds of your JSON file getting corrupted in just the right way that it was still the right format to load everything else, but the class reference for an actor was corrupted, are really small. The chances are that it was not a random issue, but you can't backtrack your work to figure out what caused it.
(This is not a slight on you, I've messed stuff up that I couldn't figure out)
Original thread: https://forums.rpgmakerweb.com/threads/error-message-cannot-read-property-expparams-of-null.163135/