I have a issue with the troop systems

Ratkingofallrats

Villager
Member
Joined
May 26, 2023
Messages
7
Reaction score
0
First Language
english
Primarily Uses
RMMZ
Everytime I playtest my game and I encounter a troop I Get this error

Error
Uncaught TypeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': Value is not of type 'long'.

can anyone help me?
 

Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,153
Reaction score
16,960
First Language
English
Primarily Uses
RMMV
that's not enough information.

When you get the error hit F8 (or F12?) to open the developer tools. Go to the Console tab. Grab a screenshot of that and post it here.
 

Ratkingofallrats

Villager
Member
Joined
May 26, 2023
Messages
7
Reaction score
0
First Language
english
Primarily Uses
RMMZ
I think I might have found the problem myself I think it could be that some of my plugins are outdated
 

Ratkingofallrats

Villager
Member
Joined
May 26, 2023
Messages
7
Reaction score
0
First Language
english
Primarily Uses
RMMZ
updating the plugin didn't work so I did what you said too so here
 

Attachments

  • image_2023-05-27_090036775.png
    image_2023-05-27_090036775.png
    38.7 KB · Views: 14

ATT_Turan

Forewarner of the Black Wind
Regular
Joined
Jul 2, 2014
Messages
11,156
Reaction score
9,104
First Language
English
Primarily Uses
RMMV
The "not of type long" error usually comes from passing the wrong kind of object as an argument into a function.

What is that PassiveSkills.js plugin? Do you get the error with that plugin turned off? Is it an MZ plugin?
 

Andar

Regular
Regular
Joined
Mar 5, 2013
Messages
39,312
Reaction score
11,490
First Language
German
Primarily Uses
RMMV
additionally, please give a screenshot of your plugin manager so that we can see the order of your plugins as that is also important.
and you have another error in the configuration of Galv's projectile plugin
 

Ratkingofallrats

Villager
Member
Joined
May 26, 2023
Messages
7
Reaction score
0
First Language
english
Primarily Uses
RMMZ
The passive skills plugin is just a plugin that makes making passive skills easier and it should be for MZ because that's what it said it was for on the website I got it from.
 

Attachments

  • image_2023-05-28_020605058.png
    image_2023-05-28_020605058.png
    77.8 KB · Views: 6

Ratkingofallrats

Villager
Member
Joined
May 26, 2023
Messages
7
Reaction score
0
First Language
english
Primarily Uses
RMMZ
I just tried them without the passive skill plugin and I don't get the error anymore
 

Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,153
Reaction score
16,960
First Language
English
Primarily Uses
RMMV

@Ratkingofallrats, please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.

 

Andar

Regular
Regular
Joined
Mar 5, 2013
Messages
39,312
Reaction score
11,490
First Language
German
Primarily Uses
RMMV
Where did you get all the plugins of your third block?
And especially have you renamed them?

Because spaces in filenames can cause problems, there is a reason why all other plugins use underscore _ instead of spaces in their names.
If they were originally with spaces, then that points to their programmer being a bit inexperienced...
 

Ratkingofallrats

Villager
Member
Joined
May 26, 2023
Messages
7
Reaction score
0
First Language
english
Primarily Uses
RMMZ
I might have renamed it by accident because for the plugin it had me manually put in the plugin code into a text file and I got from here

 

Andar

Regular
Regular
Joined
Mar 5, 2013
Messages
39,312
Reaction score
11,490
First Language
German
Primarily Uses
RMMV
I might have renamed it by accident
yes, you did - if I go to that website and just hover the mouse over the download link, the popup at the bottom shows the intended name, all with underscores - and that is even more important due to a second problem with renaming:
the filename of the plugin becomes part of the data structure, which means that those plugins who need access to their data structure (which are 80% of the more advanced ones) will fail to work after renaming.

Please check the links, rename all plugin files to their intended names, install and configure them with their correct names and test again.
 

Latest Threads

Latest Posts

Latest Profile Posts

Apologies for posting again so soon, but I just had to share what I believe to be my best map yet, I'm over the moon with the way this has turned out to be.

Definitely leaning on the "try to" part of the status feed rule and I really try not to sad post, but not only is my kitty Simone more or less confirmed to have IBD... but she has some pulmonary edema and a slightly enlarged heart. They say everything is early and mild and that I'm very diligent and observant about my pets but iunno...doesn't feel like a win right now.


So it turns out music is fun to make????
A lil concept for a prison level. It's intentional that the chords and sound is the same from the previous concept I posted cause it's related to a certain character... What do u think?
I was wondering if I should ask the question
"Who Is Dalph?"
But I met him pretty fast and his answer was extremely helpful. So yeah. That probably answers it.
So in hindsight, I could have made a double-post in this category instead of setting up a post on a different site and figuring out how to share and then linking...

Forum statistics

Threads
134,907
Messages
1,251,816
Members
177,731
Latest member
Joerg_Sothoth
Top