public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

Cannot read property 'clamp' of null

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: Cannot read property 'clamp' of null
  • Original author: Metrux
  • Original date: August 23, 2016
  • Source thread: https://forums.rpgmakerweb.com/threads/cannot-read-property-clamp-of-null.67267/
  • Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Javascript/Plugin Support

Summary

Okay, I got a bug that I've never seen before, and after searching on google, discovered no one talked about it before. I am using several Yanfly plugins, although I already tested with most relevant plugin (as in it has anything to do with items or equipment) and it kept appearing. My issue comes with an equipment slot, when you equip something in it, first the values appear wrong. Then, when you try to change or use another equip slot, it crashes  with the message "Cannot read property 'clamp' of...

Archived First Post

Okay, I got a bug that I've never seen before, and after searching on google, discovered no one talked about it before.


I am using several Yanfly plugins, although I already tested with most relevant plugin (as in it has anything to do with items or equipment) and it kept appearing.


My issue comes with an equipment slot, when you equip something in it, first the values appear wrong. Then, when you try to change or use another equip slot, it crashes  with the message "Cannot read property 'clamp' of null".


Error Report:

TypeError: Cannot read property 'clamp' of null
    at Game_Actor.Game_BattlerBase.refresh (rpg_objects.js:2603)
    at Game_Actor.Game_BattlerBase.refresh (YEP_ExtraParamFormula.js:497)
    at Game_Actor.Game_BattlerBase.refresh (YEP_EnhancedTP.js:2815)
    at Game_Actor.Game_Battler.refresh (rpg_objects.js:2988)
    at Game_Actor.Game_Battler.refresh (YEP_BaseParamControl.js:913)
    at Game_Actor.Game_Battler.refresh (YEP_X_CounterControl.js:1453)
    at Game_Actor.refresh (rpg_objects.js:3742)
    at Game_Actor.refresh (YEP_EquipBattleSkills.js:565)
    at Game_Actor.refresh (YEP_ClassChangeCore.js:547)
    at Game_Actor.forceChangeEquip (rpg_objects.js:3626)rpg_managers.js:1618 SceneManager.catchExceptionrpg_managers.js:1579 SceneManager.update



Since I don't know how to make/put here a sample project, I'll be sending a mediafire link:


http://www.mediafire.com/download/130ykud9ldh4gl9/Guild_Hunter.rar


Does anyone have a clue about what the issue is?


The only still active and relevant plugins are:


 YEP_CoreEngine


 YEP_MainMenuManager


 YEP_BaseParamControl


 YEP_ItemCore


 YEP_EquipCore


 YEP_X_CounterControl

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#039#rpg-maker-archive#js-support

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar