Resolved Duplicate Setup Override Causing Null Class Data


Problem: Actor initialization error:
Actors were being initialized with classId: 0, causing the game to crash when trying to access class data that didn't exist.

Root Cause: The plugin had duplicate Game_Actor.prototype.setup overrides (lines 788 and 1564). During the setup chain, actors weren't receiving valid class IDs before custom initialization routines (mastery points, ability points, secondary jobs) ran, leaving _classId as 0.

(Removed duplicate at line 1564, kept single override at line 788)

Added Classid Validation-(Before initializing custom systems, check if _classId is 0 or undefined and pull correct value from $dataActors[actorId].classId)

Fixed initialization order

Files

PhantomsClassSystemCompleteV1.js 127 kB
15 days ago

Get Phantom's SRPG Gear MZ Complete Job System

Buy Now$19.99 USD or more

Leave a comment

Log in with itch.io to leave a comment.