LNX11 Battle System gives NoMethodError message

Hi, I need help. Again.


Recently I got the LNX11 Battle System Script to replace the Yanfly Battle Engine from my game, but now it always gives me this error message.


Script 'LNX11 Add On' line 5205 : NoMethodError occurred
undefined method `last' fir nil:Nil Class




I may have an incompatible script, can someone help me out?


My Scripts List:


LNX11 Battle System by ももまる


LNX11 Add On by ももまる


LNX11 Windowskin by ももまる


LNX11 Error Patch by ももまる


Yanfly Cast Animation


XP Characters onVX/VXAce by Melosx


State Commands by Shaz


Multiple Animations Display by TheoAllen


Yanfly Core Engine ($imported["YEA-CoreEngine"] = false)


Yanfly Message System


Item Use Conditions by Hime


Yanfly Adjust Limits


Yanfly Battle Engine ($imported["YEA-BattleEngine"] = false)


Yanfly Buff and State Manager


Yanfly State Animations


Yanfly Victory Aftermath


Yanfly Battle Command List


Yanfly Command Autobattle


Yanfly System Options


Yanfly Command Window Icons


Yanfly Ace Save Engine


Yanfly Save Engine Add-On, New Game+


Yanfly Party System


Yanfly Lunatic Objects Package - Destruction


Yanfly Target Manager


Yanfly Skill Cost Manager


Yanfly Skill Restrictions


TDS Move Event with Player


CP Passive Skills by NeonBlack


Moghunter Blitz Commands


Moghunter Active Chain Commands


Moghunter Chain Commands


Easy TP Access by Elise-Chan
Have you started a new game after changing the scripts?


In 80-90% of all cases that message is the result of trying (and failing) to use an old savefile, because changing scripts often invalidates old save data.


If you have started a new game and that message happens, then follow the link "how to use a script" in my signature and check the bughunting tips there - especially we'll need the backtracer output to identify the involved scripts.
Yeah, I have tried starting a new game, but it still gives me an error, but it only appears when I enter a battle.


I copied my scripts to a new projects and deleting them one by one to find the problem at the moment, I'll take a look at the link in your signature, too.


EDIT:


After using the full error backtrace script I found in the link, I managed to find which scripts were causing the problem. Thanks for your guide!

Original thread: https://forums.rpgmakerweb.com/threads/lnx11-battle-system-gives-nomethoderror-message.55641/