TypeError: Cannot read property “y” of null

Hello all, running into a really persistent error that results in the titles error message. Unfortunately i cannot provide a log as it is only seen on my players’ end, i could not replicate it myself. As far as i can tell its trying to call y, which has a null value. Can someone point me in the right direction?

On MV
As far as I can tell, y is the up-down axis in 2d. Null means the object has probably not initialized yet when the program expects it to be, so trying to read its y property is pointless. Doesn't help, does it?

Well, here are a couple of things that might be useful:
1. plugin list
2. Instruct the player to open the game's index.html found inside the www folder and include this above all the scripts:
Code:
<script>require("nw.gui").Window.get().showDevTools()</script>
This will force the dev tools to open and show the error in detail. Then they should be able to give you the screenshot of the error log.
has the player ever received an update to the game from you?
one of the classic causes for type errors is if you continue a saved game after changing the plugin configuration. For the player that can only happen if he started the game on an old version, then got a new version from you and continued using the old and now incompatible savefile.
Well, that is another possibility - every addition of an actor or map requires a new game too.
Moved to: MV Support If it's a plugin issue like I suspect it may be, we'll need to move it over to Plugin Support, but MV Support is the right place for now. "Tech Support" is for problems running the editor itself.
has the player ever received an update to the game from you?
one of the classic causes for type errors is if you continue a saved game after changing the plugin configuration. For the player that can only happen if he started the game on an old version, then got a new version from you and continued using the old and now incompatible savefile.


Thank you, that is very likely to be the case. But I wonder why i dont experience it on my end?

Also thanks for your thoughts poryg, im considering adding this to my game so i can get player logs

https://forums.rpgmakerweb.com/index.php?threads/console-trace-create-an-error-log.90285/
Was able to get a log from a player. I am currently using the letbs battle system.

Log as follows:

[ERROR 10/5/2019 09:00:27am] TypeError: Cannot read property 'y' of null
at Spriteset_BattleTBS.compareEntitiesOrder (chrome-extension://odlameecjipmbmbejkplpemijjgpljce/www/js/plugins/LeTBS.js:950:52)
at Array.sort (native)
at Spriteset_BattleTBS.updateEntitiesZ (chrome-extension://odlameecjipmbmbejkplpemijjgpljce/www/js/plugins/LeTBS.js:946:38)
at Spriteset_BattleTBS.update (chrome-extension://odlameecjipmbmbejkplpemijjgpljce/www/js/plugins/LeTBS.js:930:10)
at chrome-extension://odlameecjipmbmbejkplpemijjgpljce/www/js/rpg_scenes.js:262:19
at Array.forEach (<anonymous>)
at Scene_Battle.Scene_Base.updateChildren (chrome-extension://odlameecjipmbmbejkplpemijjgpljce/www/js/rpg_scenes.js:260:19)
at Scene_Battle.Scene_Base.update (chrome-extension://odlameecjipmbmbejkplpemijjgpljce/www/js/rpg_scenes.js:113:10)
at Scene_Battle.Scene_Base.update (chrome-extension://odlameecjipmbmbejkplpemijjgpljce/www/js/plugins/MOG_MenuCursor.js:109:33)
at Scene_Battle.update (chrome-extension://odlameecjipmbmbejkplpemijjgpljce/www/js/plugins/LeTBS.js:1233:37)
Do you have a link to the LeTBS plugin?

Is this an on-map battle system, or does it still go to a new scene for battles? Does it use troops? Does this issue happen for the player with all battles, or only a specific troop? If it's a specific troop, you should be able to replicate the issue.

I wonder if this might happen if you added enemies to troops and then deleted the enemy from the Enemies tab without removing it from the troop first.
Thanks shaz!

Its this plugin: https://forums.rpgmakerweb.com/inde...tactical-battle-system-0-77-2b.71572/page-125

It uses the battle scene and troops. The problem is that only a low percentage of players get this error, and i cant replicate it myself
So it is happening with all battles or only some? For those having the issue, are they all having it on the same battles/troops?

Does the error happen as the battle is starting, or part-way through? If part-way through, is there something they're all doing that's similar? Is there any swapping of party members, or summoning new battlers, during any of your battles?

Edit - did you search that thread for the error? Did you see if there were any solutions there? It's a massive thread, but these posts were quite a while ago - they might have been answered.

https://forums.rpgmakerweb.com/inde...tle-system-0-77-2b.71572/page-105#post-935916
https://forums.rpgmakerweb.com/inde...tle-system-0-77-2b.71572/page-100#post-919029
Thanks a lot for finding this Shaz, it doesn't look like they found an answer to the problem thats identical to mine, but I'll follow up with those original posters to see if they found one.

Original thread: https://forums.rpgmakerweb.com/threads/typeerror-cannot-read-property-y-of-null.113916/