RMMV Yanfly STB System & SRD Timed Attack Conflict (SOLVED)

Bloodynewmoon

Villager
Member
Joined
May 26, 2012
Messages
5
Reaction score
1
Primarily Uses
TypeError: Cannot read property 'isActor' of null

If an actor has a status effect that causes them to skip a turn (ex. sleep), the error comes up. I only found one other thread discussing this specific problem and it wasn't solved. After experimenting I believe the issue is with the SRD Timed Attack Core since it's the first plugin on the error list to pop up - [at Function.BattleManager.startAction (SRD_TimedAttackCore.js:464:19)].

Untitled.png

Rearranging the order of plugins did not solve the issue. Putting SRD before Yanfly prevents SRD from working, and placing it between the Battle Engine Core and STB System didn't work. STB System works when SRD Timed Attack turned off. SRD Timed Attack works when STB System is turned off. I have Yanfly's plugins listed in recommended order as seen here. SRD's Mash extension doesn't have anything to do with it since I still get the error when it's off.

Untitled.png

I don't know what to change in the code so any help would be appreciated.
 
Last edited:

Bloodynewmoon

Villager
Member
Joined
May 26, 2012
Messages
5
Reaction score
1
Primarily Uses
I looked into the code itself, and using the numbers provided in the error I found this.

var _BattleManager_startAction = BattleManager.startAction; BattleManager.startAction = function() { _BattleManager_startAction.call(this); if(this._subject.isActor() && this._subject.currentAction() && this._subject.currentAction().makeTargets()) { var subject = this._subject; var action = subject.currentAction(); var targets = action.makeTargets(); this[_.pass + "Temp Subject"] = subject; this[_.pass + "Temp Action"] = action; this[_.pass + "Temp Targets"] = targets; $gameTemp.setTemporarilyDisableLogWindow(true); this._logWindow.push('performActionStart', subject, action);

I believe the 'isActor' is referring to an issue with this part. Normally turns would be pre-selected, but with STB that doesn't happen since you're meant to move directly on to the next person, and therefore skipping a turn is causing an issue somehow. I haven't run into any other conflicts using the two plugins together. You can still get SRD's Timed Attack plugin here if you want to look at the whole thing and see where I got it from.
 

Bloodynewmoon

Villager
Member
Joined
May 26, 2012
Messages
5
Reaction score
1
Primarily Uses
Added the full error list. Not sure if it will help, but it's better than nothing.
 

gimmer_

Veteran
Veteran
Joined
Jan 13, 2021
Messages
68
Reaction score
46
First Language
English
Primarily Uses
RMMV
Replace:
if(this._subject.isActor() && this._subject.currentAction() && this._subject.currentAction().makeTargets()) {

with:
if(this._subject && this._subject.isActor() && this._subject.currentAction() && this._subject.currentAction().makeTargets()) {
 

Latest Threads

Latest Posts

Latest Profile Posts

Been playing through Skies of Arcadia again, and it really makes me wanna see someone try to implement how ship battles were done in the game into RPG Maker (or really just in general).
split.png
split view of both versions of the pocket city you traverse through. there's differences like areas only being accessible in one version of Autumn Bay. or events that only happen in one or the other.
theortically if there were a developer who spied on people's game playthroughs and changed things in real time to make it harder for them, what might be said game developer's motivation?
Hi everyone! Enjoying this nice long weekend. How are you all doing? :)
I just successfully tested having events check if specific actors are in a particular party slot and then changing image to match. This will let me make scenes take into account who is in the party at the time and arrange them accordingly - this is important since I'll have extra actors beyond current party. The script used is the same from MV and is compatible with my current core plugin setup in MZ. Thank goodness.

Forum statistics

Threads
118,431
Messages
1,115,898
Members
155,386
Latest member
Yung_DemonxSlayer
Top