Type Error

Monkeynugget

Veteran
Veteran
Joined
Sep 12, 2016
Messages
44
Reaction score
37
First Language
English
Primarily Uses
Sorry I've tried to solve this one myself but cannot work it out nor find it in the forums.


Issue I'm having is whenever I enter a battle or win or lose I will face a type error

Type Error Cannot Read property 'loseBattle' of null
And viceversa for victory. I'm not sure whats causing it if I'm honest


I also cannot test battles as it cannot find Test_Quests.Json but I don't know if that's related


If anyone has had this or know what it means it would be really helpful :)
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
Usually when that happens one of three things are happening:


1: You have some plug-ins installed but forgot to install their prerequisite plug-ins.


2: You installed some plug-ins but forgot to start a new game (the most common cause).


3: You installed some plug-ins but they use another plug-in that is not updated, and needs to be updated.


So, start by looking at your plug-in list. And make sure you are staring a new game first.


As for the battle test, some plug-ins make it so that battle test no longer works. You may have to test the battles in game instead.
 

YoraeRasante

Veteran
Veteran
Joined
Jun 6, 2014
Messages
1,643
Reaction score
420
First Language
Portuguese
Primarily Uses
RMMV
Are you using any plugins?
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,354
Reaction score
8,533
First Language
English
Primarily Uses
RMMV
I've merged this with your other identical topic, since both have replies, on the assumption is was an accidental double topic.
 
Last edited by a moderator:

Phil32

Veteran
Veteran
Joined
May 31, 2016
Messages
75
Reaction score
12
First Language
English
Primarily Uses
Yeah, when I put some new plug-ins into my game, I needed to start a new save file from the beginning of my game, else I'd get the error upon loading up an old save.
 

Monkeynugget

Veteran
Veteran
Joined
Sep 12, 2016
Messages
44
Reaction score
37
First Language
English
Primarily Uses
Usually when that happens one of three things are happening:


1: You have some plug-ins installed but forgot to install their prerequisite plug-ins.


2: You installed some plug-ins but forgot to start a new game (the most common cause).


3: You installed some plug-ins but they use another plug-in that is not updated, and needs to be updated.


So, start by looking at your plug-in list. And make sure you are staring a new game first.


As for the battle test, some plug-ins make it so that battle test no longer works. You may have to test the battles in game instead.
Cheers :)  I found it with the log. I cant believe I've only just learnt its there. Looks like it has something to do with enhanced Tp as when disabled it all works fine.

TypeError: Cannot read property 'loseBattle' of null
    at Game_Actor.Game_BattlerBase.getTpEval (YEP_EnhancedTP.js:2929)
    at Game_Party.allMembersGainTp (YEP_EnhancedTP.js:3126)
    at Function.BattleManager.endBattle (YEP_EnhancedTP.js:2776)
    at Function.BattleManager.endBattle (YEP_X_ActorPartySwitch.js:169)
    at Function.BattleManager.processDefeat (rpg_managers.js:2461)
    at Function.BattleManager.checkBattleEnd (rpg_managers.js:2400)
    at Function.BattleManager.checkBattleEnd (YEP_BattleEngineCore.js:1504)
    at Function.BattleManager.updateEventMain (rpg_managers.js:2078)
    at Function.BattleManager.updateEventMain (YEP_X_BattleSysATB.js:974)
    at Function.BattleManager.updateEvent (YEP_BattleEngineCore.js:1643)
I'm going to guess it has something to do with the Losebattle calculation but I haven't played with this plugin so not too sure what to make of it

I've merged this with your other identical topic, since both have replies, on the assumption is was an accidental double topic.
Yes, thanks, I wasn't sure as to or not as they were different problems I faced but anything to help keep it clean :)  
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,061
Members
137,575
Latest member
akekaphol101
Top