The method which triggers the error is executed even outside of battles, there is no check to see if the party is in battle or not.
It gets executed whenever an actor (or enemy, but there are no enemies on the map) gets a state inflicted or removed.
Regardless, if it can't find the
@popup_rules variable for a state, that indicates that it's either
1. A loaded game (but it's not, according to the poster)
2. A compatibility issue with another script dealing with states.
3. Incorrect script settings (specifically, wrong or non-existent settings in the
POPUP_RULES setting).
4. Incorrect popup rules note-tag usage (this can be related to the 3rd issue).
Number 3 and 4 is the most probable.
Have you changed the setting I mentioned? If so, how does it look like now?
Have you used any popup rules note-tag for your states? If so, show us those note-tags.
The default
POPUP_RULES setting for state infliction uses the
"ADDSTATE" key, while the default for state removal uses the
"REMSTATE" key.
If you removed those settings, you will get this error for sure, unless you used valid custom popup rules note-tags on all of your states (or at the very least, on the 1st state - the death state - reasons explained below).
Either way, it got nothing to do with Name Input Processing commands.
When you start the game, the method where the error is called automatically (kinda dumb, but the system inflicts state 1 on the starting actors before actually setting their HP, and hence removing the death state). That is why it happens right at the start, not because of your eventing stuffs.
Edit:
Actually, number 3 and 4 is not really possible just by having incorrect settings and/or note-tags.
Insert this script right before your Main slot, below all other custom scripts:
Spoiler
Code:
class << DataManager
alias reinit_notes8816 create_game_objects
def create_game_objects
load_notetags_abe
reinit_notes8816
end
end
This will reinitialize the new data from Yanfly's Battle Engine.
If this works, it is a compatibility issue.
Specifically, something below the battle engine script overwrites the
load_database method in the
DataManager module.
Some save scripts do this for some unknown reason, and maybe some other badly written scripts.
Check your scripts for that method, and if you find any, move it above the battle engine script (or better yet, above every custom scripts).