krusynth / rpgmakermv-plugins

RPG Maker MV Plugins
https://games.krues8dr.com/
MIT License
11 stars 5 forks source link

Pipe Minigame: ReferenceError pipeminigame is not defined #7

Closed Zetawilk closed 2 years ago

Zetawilk commented 4 years ago

A new RPG Maker MV project was created. All default plugins were disabled. The plugins Kru_Core and Kruo_PipeMinigame were added and enabled with default settings.

An event was created with the following contents: Script... > pipeminigame();

When interacting with the event in-game via button press, the game returns a Reference Error, citing the following: "pipeminigame is not defined"

pipeminigame plugin manager pipeminigame plugin settings pipeminigame referror

krusynth commented 4 years ago

@Zetawilk Thanks for the report!

I found the issue: RPG Maker MV uses an older engine that doesn't support modern Javascript - I've been testing mostly in a web browser. As a result, it was dying on class properties, which aren't supported apparently. I've retrofit the plugin, please let me know if this doesn't solve the problem!

I've also added new options to allow you to choose your images for the pipe tiles; you can download a copy of my demo image from here and modify it to fit your needs.

Zetawilk commented 4 years ago

@krusynth The plugin now works for me! Thank you very much.

I have tested the plugin both in a fresh project with no other plugins, as well as in a project that contains a slew of various other plugins, mostly including plugins from Galv, Khas, MrTS, Yanfly, and various others, including other plugins listed here.

In the fresh project, the game worked as expected, although scrolling up and down in the list of pipe pieces seemed to continue in either direction without looping around for an indeterminate length.

In the project with many plugins, I had to place the Core and PipeMinigame plugins above the YEP (Yanfly) plugins for the game to display properly, and navigating between pieces looped at the top and bottom. While I'm satisfied, I also tested out other options that I thought some might question. When tested with more than five pieces available, the tile selection window did not scroll. While selecting the tiles themselves with the mouse works properly, there's no method to rotate them with the mouse, and it did not seem possible to select where to place the tiles using the mouse, or to place them down using the mouse. I just thought that some users might question these aspects, so I mentioned them here.

Thanks for your work. I greatly enjoy the Pipe Minigame plugin!