Enemy Levels

RangeError: Maximum call stack size exceeded

    at Game_Enemy.traitObjects (file:///Users/rudolphhickey/Documents/Games/Ignis%20Fatuus/js/rpg_objects.js:4312:59)

    at Game_Enemy.Game_BattlerBase.allTraits (file:///Users/rudolphhickey/Documents/Games/Ignis%20Fatuus/js/rpg_objects.js:2363:17)

    at Game_Enemy.Game_BattlerBase.traitsWithId (file:///Users/rudolphhickey/Documents/Games/Ignis%20Fatuus/js/rpg_objects.js:2375:17)

    at Game_Enemy.Game_BattlerBase.traitsPi (file:///Users/rudolphhickey/Documents/Games/Ignis%20Fatuus/js/rpg_objects.js:2381:17)

    at Game_Enemy.Game_BattlerBase.paramRate (file:///Users/rudolphhickey/Documents/Games/Ignis%20Fatuus/js/rpg_objects.js:2431:17)

    at Game_Enemy.Game_BattlerBase.param (file:///Users/rudolphhickey/Documents/Games/Ignis%20Fatuus/js/rpg_objects.js:2440:19)

    at Game_Enemy.Object.defineProperties.agi.get (file:///Users/rudolphhickey/Documents/Games/Ignis%20Fatuus/js/rpg_objects.js:2133:42)

    at Function.BattleManager.highestBaseAgi (file:///Users/rudolphhickey/Documents/Games/Ignis%20Fatuus/js/plugins/YEP_X_BattleSysCTB.js:751:47)

    at Function.eval (eval at <anonymous> (file:///Users/rudolphhickey/Documents/Games/Ignis%20Fatuus/js/plugins/YEP_X_BattleSysCTB.js:691:52), <anonymous>:1:30)

    at Function.BattleManager.startCTB (file:///Users/rudolphhickey/Documents/Games/Ignis%20Fatuus/js/plugins/YEP_X_BattleSysCTB.js:691:35)rpg_managers.js:1618 SceneManager.catchException

It was working fine until I installed Yanfly's Swap Enemies plugin.

Perhaps they're simply not compatable.
It seems Yanfly CTB has something to do with it too, maybe? I dunno... Have you tried moving ctb, Yep_SwapEnemies and Enemy Levels around? Like moving each one up and down the list?
I disabled CTB and Visual HP gauges and my foes seem to have half levels of all things.

I'm thinking of just using one plug-in since I'm also randomizing enemy stats and the levelling wouldn't match up with the levelling system of my party anyways which would unbalance the game.

Enemies don't seem to take action either.
RangeError: Maximum call stack size exceeded

    at Game_Enemy.traitObjects (file:///Users/rudolphhickey/Documents/Games/Ignis%20Fatuus/js/rpg_objects.js:4312:59)

    at Game_Enemy.Game_BattlerBase.allTraits (file:///Users/rudolphhickey/Documents/Games/Ignis%20Fatuus/js/rpg_objects.js:2363:17)

    at Game_Enemy.Game_BattlerBase.traitsWithId (file:///Users/rudolphhickey/Documents/Games/Ignis%20Fatuus/js/rpg_objects.js:2375:17)

    at Game_Enemy.Game_BattlerBase.traitsPi (file:///Users/rudolphhickey/Documents/Games/Ignis%20Fatuus/js/rpg_objects.js:2381:17)

    at Game_Enemy.Game_BattlerBase.paramRate (file:///Users/rudolphhickey/Documents/Games/Ignis%20Fatuus/js/rpg_objects.js:2431:17)

    at Game_Enemy.Game_BattlerBase.param (file:///Users/rudolphhickey/Documents/Games/Ignis%20Fatuus/js/rpg_objects.js:2440:19)

    at Game_Enemy.Object.defineProperties.agi.get (file:///Users/rudolphhickey/Documents/Games/Ignis%20Fatuus/js/rpg_objects.js:2133:42)

    at Function.BattleManager.highestBaseAgi (file:///Users/rudolphhickey/Documents/Games/Ignis%20Fatuus/js/plugins/YEP_X_BattleSysCTB.js:751:47)

    at Function.eval (eval at <anonymous> (file:///Users/rudolphhickey/Documents/Games/Ignis%20Fatuus/js/plugins/YEP_X_BattleSysCTB.js:691:52), <anonymous>:1:30)

    at Function.BattleManager.startCTB (file:///Users/rudolphhickey/Documents/Games/Ignis%20Fatuus/js/plugins/YEP_X_BattleSysCTB.js:691:35)rpg_managers.js:1618 SceneManager.catchException

It was working fine until I installed Yanfly's Swap Enemies plugin.

Perhaps they're simply not compatable.
Enemy Levels and Enemy Swap work fine for me.

I didn't have any other yanfly plugins in my project.

This part looks unusual

    at Function.eval (eval at <anonymous> (file:///Users/rudolphhickey/Documents/Games/Ignis%20Fatuus/js/plugins/YEP_X_BattleSysCTB.js:691:52), <anonymous>:1:30)What is at line 691 of the CTB? It looks like it's trying to evaluate something.If your levels are generated using a formula, then perhaps your formula is not doing what you think it is doing.

If your level is literally just a number, and the game is halving it, then that's strange.
Hey, Hime. I have a question. I've been using a method to have enemies level up with the player for a couple months now and I was wondering, how can I limit the leveling up from having them go up until level 100? Let's say the player reaches level 20, the enemies will stay as level 20 and won't level scale if the player goes any further.
Hello hime, i dont know what i did wrong, but i change the monster level and the HP still the same


as you can see in the image the lv39 have the same hp of lv8 monster


ac77ab4b5170461e9dfc7bc5996680d9.jpeg



And have some plugin to change exp and monster drop based on monster lv?
Hi Hime I'm liking this script, it really makes balance way easier.


Edit: I was asking for something that can be achieved with something else 😛  sorry.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-levels.51512/