JS Plugins beginner

Charles2020

Veteran
Veteran
Joined
Feb 24, 2020
Messages
81
Reaction score
2
First Language
English
Primarily Uses
RMMV
I am a python developer but just started JS to develop JS plugin. Is there a good basic tutorial video that can help familiar with RMMV code and structure before developing plugin ?

Thanks
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,685
First Language
English
Primarily Uses
RMMZ

I've moved this thread to Learning Javascript. Please be sure to post your threads in the correct forum next time. Thank you.


JS by itself is a simple language, easy to understand and get used to, especially if you're already a coder and have knowledge about programming in general. I assume you know all the basic stuff like what are strings, arrays, conditionals, loops, inheritance, etc. You can do a quick course on w3schools. Here's the link:

That should be quick. After that, the real "hard" part is actually learning the RPG Maker MV engine's framework. For that maybe a more practical tutorial would help, for example someone showing how to code a menu in RPG Maker. But basically, RPG Maker is formed by a couple of main objects from which all other objects are derived:
  • Window_Base: it's the parent object of all window objects in the engine.
  • Sprite_Base: It's the parent object of all sprite objects in the engine.
  • Scene_Base: It's the parent object of all scenes in the engine.
  • Graphics: Handles the graphics.
  • AudioManager: Handles all the audio.
  • ImageManager: Handles all the loading of images into ram.
  • SceneManager: Controls the displayed scene on the screen (you basically push scene objects inside it).
  • Input: Manages all the inputs.
  • etc.
I listed a couple, but once you get a hang of the general logic of the engine it's really easy to just open the core code and understand how it works.

Hope that helps.
 

ozubon

surströmming?
Veteran
Joined
Oct 16, 2018
Messages
178
Reaction score
168
First Language
English
Primarily Uses
RMMV
Something that really helped me get familiar with the engine is trying things in the console during playtest. If you bring up the console and type for example $gameMap. or Graphics. (with the dots), without pressing enter, you get a list of all the objects beloning to that main object. So it's really easy to find settings and test them on the spot. To get a list of all the main objects and functions in the game, just type window. (dot included). Many of them have their own objects so try them with a dot to see what comes up. Altering them in the console doesn't change the files so you can go wild and test things to your heart's content.
 

Felski

Veteran
Veteran
Joined
Jan 5, 2018
Messages
113
Reaction score
96
First Language
german
Primarily Uses
Other
Another good starting point is to look for plugins other people created that somewhat do what you want to do and then debug the plugins and see what happens.
I also really liked SRDs youtube tutorial on how to create a plugin:
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,017
Messages
1,018,356
Members
137,802
Latest member
rencarbali
Top