Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
867
First Language
German
Primarily Uses
Description


Allows to store notetags in text files and reference them from database objects and events.


Author


Iavra


Parameters


@param File Path
@desc Path of the file to load. Multiple files can be specified when separated by commas. Default: data/notes.json
@default data/notes.json

@param Notetag
@desc Tag used to load metdata from files. Default: textnote
@default textnote




How to Use


Note: This plugin has to be placed below everything else that deals with DataManager.extractMetadata().


Create one or more files and store their locations inside the "File Path" parameter, separated by comma. The files are formatted like this:


{
"key1" : "some notes",
"key2" : "some more notes",
"key3" : [
"notes with",
"linebreaks"
]
}


JSON itself doesn't allow real linebreaks inside Strings, but you can use an array, instead, which will automatically be converted to a single String with linebreaks.


Inside your database objects and events, you can reference these entries like this:


<textnote key1>


If "textnote" is already in use by another plugin or you want to use a different notetag, you can change it with the "Notetag" plugin parameter".


Terms of Use


Free to use for both commercial and non-commercial games. Please give credit.


Download


http://pastebin.com/e465Ucdf


Notes


The plugin originated from this request: http://forums.rpgmakerweb.com/index.php?/topic/49035-load-notesnotetags-from-text-files/
 
Last edited by a moderator:

Neo Soul Gamer

Veteran
Veteran
Joined
Aug 10, 2012
Messages
659
Reaction score
403
First Language
English
Primarily Uses
N/A
Works wonderfully. Thanks again for taking on this request.
 

Bicept

Jack of Most Trades
Veteran
Joined
Oct 22, 2015
Messages
34
Reaction score
25
First Language
English
Primarily Uses
RMMV
This is great!
 

Roguedeus

It's never too late to procrastinate...
Veteran
Joined
Mar 19, 2013
Messages
543
Reaction score
111
First Language
English
Primarily Uses
N/A
I've noticed a tendency of the game to hang upon initial (test) start after I've altered the JSON files associated with this plugin.

I am only guessing, as it seems totally intermittent, or I would spend time trying to isolate it. And it doesn't help now that I have all my note tags externalized, I can't play test without this plugin!

I was wondering if anyone else has experienced this.
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
867
First Language
German
Primarily Uses
Start-up might take a bit longer, since i'm loading additional files and replace all tags with their content. The only part that could really make the game "hang" (as in, not even showing the "Now Loading" text) would be in DataManager.extractMetadata(), but since this is only ever called inside an Ajax call, it shouldn't really affect the game.


The main problem here is, that i start loading my files the moment DataManager loads its own. extractMetadata is called, when a file has been loaded asynchronously and i need to make sure, that my files have already been loaded, so i pause the thread (in a pretty...rough way, i'll admit). All lags might be solved by adding a small wait to the loop, so it doesn't have the tendency to blow-up memory usage.


/edit: I fixed the issue by properly using callbacks instead of horrible, empty loops (don't do this...ever). I'll add comments and will update the plugin in the next few minutes.


//edit: The plugin has been updated. Please note, that it probably has to be placed below everything other plugin that deals with DataManager.extractMetadata() to work correctly (shouldn't be too many, if any).
 
Last edited by a moderator:

Roguedeus

It's never too late to procrastinate...
Veteran
Joined
Mar 19, 2013
Messages
543
Reaction score
111
First Language
English
Primarily Uses
N/A
Thanks for the quick update!
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
867
First Language
German
Primarily Uses
Fixed a bug that caused the last version of this plugin to not work at all.
 

Latest Threads

Latest Posts

Latest Profile Posts

just hopped into project recruitment... hoping to maybe find some artists to help with parallax maps and whatnot. I could do them myself, but I'm not really good at it so I'd prefer to stick to my strengths which is character art and SOME UI elements.
PRODUCTIVE DAY! I think I FINALLY completed all the items for part 1 of Fallen Feather, that includes the animations, the stats, the pricing, etc. for weapons, armors, key and consumables! all i need to be 100% done is write a few more descriptions (only 10 left out of the 40+ items) and to find some nice pants icons (dont ask lol).
Kinda hate it everytime reinstall rpg maker because the program refuse to testplay
For every amazing step of the way I make, I find myself in a moment where I feel really stupid for not knowing something. I probably shouldn't though, but still, it sometimes feels more obvious than perhaps it is
Just spent $174 on Shining the Holy Ark on the Saturn. Good lord.

Forum statistics

Threads
111,097
Messages
1,058,246
Members
144,300
Latest member
Cosmosyn
Top