"cannot read property 'expParams' of Null" error even though I'm using all of my own assets?

Hi! I've been working on testing out some scenarios for a game I'm making, and now that I've completed the tutorial, I wanted to start by creating a simple demo for one of the puzzles. Thing is, when I try to playtest the game, it gets this generic error. I am only using my own assets. I haven't deleted anything from the asset library nor the game's files, only added my own. I also cleared the default main character and changed everything to either be set to (none) or my own sprites.
After checking some other solutions, I have put a 'default' character class and made the character again (which are the most common solutions) to check if that solved the issue, but it still shows the same error.
I'm at a loss as to what exactly is RPMMZ trying to read, so any and all help would be appreciated. Screenshots below:

1715920014486.png

1715920034320.png

1715920074142.png

1715920153810.png

1715920179115.png
Did you delete your 3 other starting party members? If you just set max actors to 1, I think it was so that they're in the starting party as blank lines. Hit delete multiple times in the starting party blank lines.
Like @rpgLord69 suggested above. I had a similar problem when I thought I deleted actors from the database only to find out that one of those blank rows wasn't really deleted. Once I went back and tried deleting each blank row again, the problem was resolved.

I hope that works for you.
expParams is a property of a Class. The error almost certainly means someone has class ID 0, i.e. their class is null. That agrees with your 3rd screenshot, where you can see that the actor's Class field is completely blank: not even an ID is shown. An Actor requires a Class in order to determine things like their basic parameters.

Now, a complication: if existing data references an invalid entry (e.g. class 0), the editor will try to auto-select a valid entry (e.g. class 1). However, in my experience this "auto-select" does not change the existing data. So it might look like the actor has a valid class, but they actually don't.

To work around that, you could change the actor to another class (create another one if necessary), save your project, and test. If that seems to fix it, you can change them back to the original class.

Alternatively:
  1. Make sure there is at least 1 entry on the Classes tab of the Database.
    • For testing purposes, give each class a readable name, e.g. "Class 1".
  2. Delete the actor(s) on the Actors tab of the Database (press Del, or right-click -> Clear).
  3. Remake the deleted actor(s) from scratch.
  4. Save your project, then test~
[Edit: also, make sure you do not test from an old save! Choose New Game when testing, and/or enable Game -> Skip Title Screen. 👋]
expParams is a property of a Class. The error almost certainly means someone has class ID 0, i.e. their class is null. That agrees with your 3rd screenshot, where you can see that the actor's Class field is completely blank: not even an ID is shown. An Actor requires a Class in order to determine things like their basic parameters.

Now, a complication: if existing data references an invalid entry (e.g. class 0), the editor will try to auto-select a valid entry (e.g. class 1). However, in my experience this "auto-select" does not change the existing data. So it might look like the actor has a valid class, but they actually don't.

To work around that, you could change the actor to another class (create another one if necessary), save your project, and test. If that seems to fix it, you can change them back to the original class.

Alternatively:
  1. Make sure there is at least 1 entry on the Classes tab of the Database.
    • For testing purposes, give each class a readable name, e.g. "Class 1".
  2. Delete the actor(s) on the Actors tab of the Database (press Del, or right-click -> Clear).
  3. Remake the deleted actor(s) from scratch.
  4. Save your project, then test~
[Edit: also, make sure you do not test from an old save! Choose New Game when testing, and/or enable Game -> Skip Title Screen. 👋]
Thank you! this seemed to solve the problem alongside making adding a single param to the 'Types' tab
There is a reason why the makers come with a partially filled database, even if it is known that most games change all entries.
and that reason is to have enough for quick playtests, no matter where the user starts working.

and also to cover several quirks of entries that are absolutely needed for the game to function, like:
1) skill #1 is the default attack skill and is needed for that (unless you redirect every single weapon in your game with traits to a different skill
2) skill #2 is the default guard skill - both infos are in the database but if you deleted everything before reading....
3) state #1 is the death state and is hardcoded (as cannot be changed). every actor and enemy gets state #1 on HP=0.
4) default HIT-chance is ZERO!!!! which means all your actor will always miss unless you give them a HIT% trait either on the actor or on the class (where it is by default)

and others

I strongly suggest you make a second, new project and keep that pristine, just to be able to check the defaults whenever you come up on an error or effect you can't otherwise explain.
Since my game has no battling or anything like that, I didn't really need any skills nor any weapons or attacks I'd thought all that was unnecessary bulk. I do have a separate project reserved just for the tutorial and default base project, even if I won't use most of the things that are there. This one I'm showing now is a sandbox for a specific scenario separate to the final game, that way when I'm done testing I can start the full game without accidentally deleting something important like in here

Original thread: https://forums.rpgmakerweb.com/threads/cannot-read-property-expparams-of-null-error-even-though-im-using-all-of-my-own-assets.168756/