Cross Reference Tool

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,141
Reaction score
12,416
First Language
English
Primarily Uses
RMMV
Cross Reference Tool
2016.12.22
by Shaz

Introduction
This plugin shows you where all your database items have been used throughout your project

How to use
Add to your plugins folder (name is irrelevant but I use CrossReferenceTool.js). There are no parameters to set and no plugin commands to run.  There will be a new menu option on your Title Screen menu (assuming you don't have a plugin that modifies your Title Screen menu - if you do, just add a SceneManager.push(Scene_XRef); to it somewhere).


For events, the #:# refers to the page and line numbers.  A 0 means it's a condition rather than an event command.  These are used for common events, troop events, and map events.


Remove the plugin prior to deployment.  This is a development tool only.

Plugin
Download from pastebin

Credit
- Shaz

Terms
- free for use in the creation of commercial games (plugin should be removed before deployment, whether commercial or not)

Notes
- looks for \v[x] escape code in all database text that could be displayed as well as message and choice boxes


- looks for v[x] codes in damage formulae


- does NOT look at scripts or plugins, script calls in any event commands, plugin commands, or any other damage box info


- after launching the game, there will be a delay the first time you choose the XRef option while the references are being retrieved


- the Change Equipment command, when used with slot 2, will result in both a weapon and an armor reference.  The logic is that only when that command is encountered during play can we know whether the actor, their class, or any of their states allow dual wielding.  So both are retrieved as a 'better safe than sorry' measure.  If this is a pain for the majority of people I will change it and only look at the actor and their class as set in the database.


- if you have plugins that add more escape codes to message boxes and/or damage formulae and you want to add to this plugin, the functions of interest will be XRefManager.scanDbText and XRefManager.scanDmg - you will need to be familiar with regular expressions.


Please comment with any issues/errors you encounter.
 
Last edited by a moderator:

redspark

Veteran
Veteran
Joined
Apr 30, 2012
Messages
71
Reaction score
20
First Language
English
Thank you.  This will be very useful. :)
 

Liak

Veteran
Veteran
Joined
Mar 13, 2012
Messages
1,789
Reaction score
269
First Language
German
Primarily Uses
Yeah, finally! Very useful! :)  Thank you, Shaz!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Managed to find a way to hang a bed cover over my window. So no more being toasted alive in the afternoon!:kaoswt2:
So, uh, has anyone tried buying any resources from KokoroReflections? Because I've been looking for a 'buy' button on the site for like 10 minutes now and can't find one.
Any also thought it's too cringy to put the word "and you" in your credit as a special thanks?
Cause that's what I thought...
Everyone in the US right now: Please stay safe.
Symphony Celestia: Prophecy of the Falling Stars RPG Maker music pack WIP. Symphony Celestia is a new series that focuses on symphonic and orchestrated music to tell a story. Each story will include compositions that make up that story from beginning to end. Themes include: Battles, adventures, character themes, etc. Below is a video preview to the first story.

Forum statistics

Threads
97,980
Messages
948,329
Members
129,246
Latest member
Flaminguex
Top