Cannot read expparam of null Please help!!

Hi I have over 2000 hours in this game and all of a sudden it stopped working for playtest. I did not delete any Character information and yet I checked the console and this is what I got... Please advise! Thank you!!
Screenshot 2025-02-25 063106.png
did not delete any Character information and yet I checked the console and this is what I got...
Did you reduce the maximum number of classes at any point and forget to change the starting class of an actor that previously had a removed class? Only classes have an expParams property.
the error basically tells you that you have an actor that has no class assigned, and the only way to get that is by removing a class that is in use.

just check all your actors and make sure every actor has a classname in its settings.
No honestly I have not touched anything class related since I created the initial setup and like I said that was near 2000 hours of work ago on this game. I almost feel like maybe a update happened and it isn't working but I am not sure. My database looks good I have not noticed any change there at all.

Did you reduce the maximum number of classes at any point and forget to change the starting class of an actor that previously had a removed class? Only classes have an expParams property.
No I also checked all classes and labels on my actors and everything is set right in there

the error basically tells you that you have an actor that has no class assigned, and the only way to get that is by removing a class that is in use.

just check all your actors and make sure every actor has a classname in its settings.
I did and all of them do
does the error happen on a new game or on loading a saved game or on both?
what is your editor version and what is your project core version?
please state both numbers as they may or may not be identical.
as far as I know they are both the new 1.9 core and it is the message I get when clicking playtest
as far as I know
guessing doesn't help with bughunting.

please check and give the exact numbers for both
  • Editor version can be found in Help -> About.
  • Core script version can be checked in Game -> Update Corescript.

If it happens on game boot, that typically suggests that one or more of the starting party members has class ID 0. (Plugins are also a possibility, but best to rule out the basic stuff first.)

You can try changing each actor to a different class. Save and test. Does it work now? If so, you should be able to go back and re-assign everyone's original class. Sometimes the editor doesn't accurately reflect missing/invalid data. I went into a little more detail here.

If you want some diagnostic data, you could:
  1. Launch a playtest.
  2. On the error screen, press F8 or F12 to show the dev tools window.
  3. Select the Console tab in that window, if it isn't already selected.
  4. Copy+paste these 9 lines of code to the Console, then press Enter:
    JavaScript:
    const ids = $dataActors.reduce((a, c, n) => {
      if (c && !$dataClasses[c.classId])
        a.push(n);
      return a;
    }, []);
    if (ids.length)
      console.warn("Actors with invalid class:", ids.join(", "));
    else
      console.log("All actors have a valid class! :D");
This should show a message indicating which of your actors, if any, have an invalid class assigned.

Original thread: https://forums.rpgmakerweb.com/threads/cannot-read-expparam-of-null-please-help.175803/