NoShirtstann

Veteran
Veteran
Joined
Nov 13, 2018
Messages
35
Reaction score
8
First Language
English
Primarily Uses
RMMV
Hey folks,

So I'm writing a plugin for an In Game Time System (Custom), but when I set up my Plugin Commands and try to test them it is throwing me a type error for another plugin saying cannot read property of 'trim'.

With all the other plugins I have created with plugin commands, I've never run into this issue.

Any thoughts?

I've attached a screen shot of the error.

EDIT: So I've identified the issue to be with another plugin I am using. UPP_MiniMap if conflicting with all my plugins.

Has anyone else had compatibility issues with this plugin?
 

Attachments

  • Trim Error.PNG
    Trim Error.PNG
    495.8 KB · Views: 11
Last edited:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
32,147
Reaction score
8,009
First Language
German
Primarily Uses
RMMV
type error for another plugin saying cannot read property of 'trim'.
that is NOT what the error says.

the key to the error message is the "of undefined" that you completely missed.
if an object is undefined, it has no properties at all and of course any try to read a non-existant property will always fail.
but it means that the other plugin is missing an object of data, not that the specific property is unreadable.

and that can happen in several ways, like if one plugin changes a function that is used by both in a way that the other plugin no longer has access to it and a few more ways.

make a test project with only those two plugins and start a new game there and try to find the exact data/object where the two plugins crash, then you can start solving the problem.
 

NoShirtstann

Veteran
Veteran
Joined
Nov 13, 2018
Messages
35
Reaction score
8
First Language
English
Primarily Uses
RMMV
that is NOT what the error says.

the key to the error message is the "of undefined" that you completely missed.
if an object is undefined, it has no properties at all and of course any try to read a non-existant property will always fail.
but it means that the other plugin is missing an object of data, not that the specific property is unreadable.

and that can happen in several ways, like if one plugin changes a function that is used by both in a way that the other plugin no longer has access to it and a few more ways.

make a test project with only those two plugins and start a new game there and try to find the exact data/object where the two plugins crash, then you can start solving the problem.
Ah okay. I'm still somewhat new to this, so trying to solve problems like this is still a little beyond my scope.

Thanks for the info, I will run them together in a separate project to try and isolate the issue
 

Latest Threads

Latest Posts

Latest Profile Posts

Interesting week. Lots of stress and anxiety especially on Tuesday but still got thru it. How is everyone doing?
I was pleased with how the little ... whatever those square bits like upside-down turrets on the skirt are? I like how they turned out. Here's a little ranger/bandit/archery enthusiast to model it:

TestChara-08.gif


I'm calling her Robin because obviously.
Just downloaded the demo and boy howdy are my arms tired (???) :kaohi:
I just watched a trailer for the upcoming 2021 JRPG Fantasian. They demonstrated an interesting mechanic where random encounters can be sent to a stockpile instead of fighting them right away, which can be emptied in a single battle string at the player's choice of timing.
"The pleasure from the senses seems like nectar at first, but it is sour as the toxin in the end." -Kirshna

Forum statistics

Threads
109,157
Messages
1,042,604
Members
141,657
Latest member
Drags4g
Top