There's a reference on rpg_library.js but I never found it. Can anyone explain?
Not me, I have no idea where any of that site's information on "Internals" comes from.
There is no actual file called rpg_library.js or rpg_mv.js open for editing. Most of the data described in those pages is located within the .json files in your project's "/data" folder (or in the ".rpgsave" files for config and save file info stuff). Perhaps it's referring to some temporary internal placeholder file created by the MV editor to keep track of the data before permanently writing it to the .json files. Although if that's the case, I have no idea how they got access to it.
Man I can write a novel sized essay on just how confused I am with all of this. Autodidact maybe is not a good way. It's very intriguing reading all those pages though. Really shows just how shallow I am in all of this.
Bundling the JS is what interests me. The concept of cramming lots of scripts into one is just so hard to comprehend.
I like how this has suddenly gone from "how do you parse notetags" to bundling code just because of one guy flogging a set of developer tools meant for coding optimization. Which only incidentally happens to use notetags as an example of the benefits.
I'd say if you don't yet know ANY method of how to implement notetags, it is way too soon to be looking at optimizing the process and you won't be getting much use, if any, out of FeniX Tools/Engine.
But in response to the original question:
I wanna start making notetags in my plugins. I've been looking at other plugins but I never got a single clue on how to make notetags. How do I do it?
First, to clarify something, a "notetag" typically refers to a certain text string placed in the notes box (hence "note" tag) of one the engine's database pages (whether an actor or item or weapon or armor, etc). This string usually looks like "<this>", the contents being some form of text inside and/or between multiple sets of <> brackets.
You don't -make- them in your plugins, you make them in the note boxes of the database pages and code your plugins to read them. If the data is directly wired into the plugin's parameters, they're not notetags anymore, they're just plugin settings. There's only 2 real steps to make a plugin "use" a notetag: A ) Read the tag/text string and B ) Extract ("parse") the relevant data from it which the rest of your plugin needs to use. The point of having < and > brackets is purely to mark where the tag is meant to begin and end for the purposes of reading it (as opposed to, you know, actual notes in the notebox that are just meant to be notes).
Back in the VX/Ace days, it didn't have to be <> brackets. It could have been {} or [] or whatever the coder wanted, but I guess since {} and [] brackets are used for referring to arrays and hashes in coding, people just found it less confusing to use <> brackets. It didn't really matter since the tag itself was just a text string, people just made their own string-processing code (via string matching, regular expressions/"regexps", capture groups, etc.) to find the tags, break them down and extract the data.
Fast forward to MV. The DataManager in rpg_managers.js now comes with a built-in, pre-coded function that automatically reads and extracts any text enclosed in <> brackets found in the note boxes and saves it for easy reading. The note data itself is stored in the .json files, but as you might already know, those files are loaded into $dataXXXX global variables by the DataManager when the game loads. At this time, it runs its shiny new "extractMetadata" function, scans the note data and saves any <X:Y> text strings it finds into the variable's "meta" property with X being a variable and Y (or anything after the : colon) being the value (Y, or everything past the colon, is saved as one whole string, spaces and all). If there is no colon, the value of X is simply set to "true".
This is the basic "notetag" functionality of MV. You can see this all in DataManager in rpg_managers.js. As the others say, if you want to use a single tag to hold multiple values (whether over multiple lines or separated by commas or whatever) you need to write your own text parsing code to break up the tag's value and extract the info like in the pre-MV era. And if you want to use something other than <> to mark your tags, you will need to code your own note box reading function too, since it won't be read by "extractMetadata" and hence won't be saved in $dataXXXX.meta for easy access.
I hope this helps.