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,262
Reaction score
9,248
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,331
Reaction score
11,499
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,331
Reaction score
11,499
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,331
Reaction score
11,499
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 Profile Posts

The site is being slow and funky again. IS SOMEONE CRAFTING POEMS?!
So yeah, @TRIDIUM @TESTOSTERONE, I wuz like, "What do they mean by borderline and boundaries?"

And then, y'all know this girl?

actress1.png

alice_bikini.png

The clothes? They're just a, um, quick edit. :kaoswt:
I've uploaded the opening cutscene from my game to my channel. It basically introduces us to the first three characters, and what their relationships are:
Cosmic Inferno: Opening dialogue
I don't want to start a panic...but everyone, check the color of your milk!
IMG_20231002_082329.jpg
My One Map Challenge is nearing completion. I am in the multiple run testing phase atm. This is the map. Beware the minotaurs in the maze area. The female ones are more aggressive. Can you prove to the land of Winchell that a dragon and a human can love each other?

Forum statistics

Threads
135,021
Messages
1,253,017
Members
177,949
Latest member
fefemaker
Top