TypeError Cannot read property 'isActor' of null

Ian_39

Villager
Member
Joined
Mar 9, 2019
Messages
12
Reaction score
0
First Language
English
Primarily Uses
RMMV
Hello, everyone! I'm having a really weird problem with my game. Every time my state "freeze" (basically paralyze with an ice element) is put on a character, I keep getting a message that crashes the game reading:

Type Error
Cannot read property 'isActor' of null

I have no idea what this means because I don't really know code. But I opened the console, and it looked like it was happening in all of my battle plugins, which I'll list in their order below:

  • Yanfly Battle Engine Core
  • Yanfly Action Sequence packs 1-3
  • Yanfly Animated Sideview enemies
  • Yanfly STB Battle system
  • SRD Timed Attack Core
  • SRD Timed Attack Arrows
  • SRD Timed Attack Circle
  • SRD Timed Attack Clock
  • SRD Timed Attack Mash
  • SRD Timed Attack Action Sequence
  • Yanfly Turn Order Display
  • Yanfly Visual HP Gauge
  • Yanfly Taunt
  • Yanfly Victory Aftermath
  • Yanfly Aftermath level up

The thing that really confuses me, though, is that I used almost this exact same system in an earlier version of this project, and it worked perfectly fine there. The only major changes I've made are switching the Yanfly battle system from CTB to STB, and the addition of Yanfly's 1.5 update so I could use the Arrows timed attack, which didn't work in the old one because I didn't use Yanfly's 1.5 update in it. It's even in the exact same order from the old one, so I'm at a loss for why there is a problem.

UPDATE: First off, thank you all for responding. So I've done some more play testing, and have noticed it tends most to happen when the actor with the 'Freeze' state attached has their turn come up, and the system has to move around who goes next. I'm also adding another screenshot from my most recent test, not sure if there's much of a difference though...

UPDATE 2: So, I looked at both screenshots again and noticed they both started with Yanfly's STB system... So I tried turning it off, and the problem seems to have disappeared. I'm gonna try using Yanfly's CTB (which was the system I used in the old project) and see if the problem persists or solves itself.

UPDATE 3: I just tried it with the CTB instead of the STB, and the Type Error has stopped popping up. So CTB it is! Thank you all for responding! :)
 

Attachments

Last edited:

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA

I've moved this thread to Plug-In Support. Please be sure to post your threads in the correct forum next time. Thank you.



Make sure you are not using remove by restriction. That causes a lot of circular errors with Yanfly's code I've found, which will cause it to often keep applying and removing itself.
 

Ian_39

Villager
Member
Joined
Mar 9, 2019
Messages
12
Reaction score
0
First Language
English
Primarily Uses
RMMV
[move]Plug-In Support[/move]

Make sure you are not using remove by restriction. That causes a lot of circular errors with Yanfly's code I've found, which will cause it to often keep applying and removing itself.
I'm not using remove by restriction... This is how I have it set up.
 

Attachments

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,087
Reaction score
1,508
First Language
EN
Primarily Uses
RMMZ
My guess is that it is an eval error in one of your action sequences, possibly related to the Timed Attacks. Typically isActor() is called as a function on a battler, not a property. Check any evals or script calls you have (including relevant notetags) and make sure that you have brackets after isActor, e.g.
Code:
if user.isActor()
  move user: target, base, 20
end
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Please show a screenshot of your error. When you get it, hit F8 to open the developer tools, then go to the Console tab. Grab a screenshot of that and post it here. Also a screenshot of your plugin list.
 

Ian_39

Villager
Member
Joined
Mar 9, 2019
Messages
12
Reaction score
0
First Language
English
Primarily Uses
RMMV
Please show a screenshot of your error. When you get it, hit F8 to open the developer tools, then go to the Console tab. Grab a screenshot of that and post it here. Also a screenshot of your plugin list.
I did, it's in the original post at the bottom.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,975
Members
137,563
Latest member
cexojow
Top