Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,695
Reaction score
930
First Language
English
Primarily Uses
N/A
External Text

Please note that I have not worked on this plugin for two years, and currently have no plans to do so in the foreseeable future. If you are interested in this plugin, I recommend looking for an alternative, I do recall others being made.


What is it?

External Text is a plugin that allows you to have all your game's text in a file outside the editor so that you can easily edit messages from across several events and maps. Additionally, repeated text can be put into one text key, and then called multiple times. Any edits to the text key will be reflected across all instances of that key. Additionally, it allows you to easily provide multi-language support for your game by defining different text files for different languages!

The script also supports a name box, and autofitting text in any message so that if it runs off the screen, it will be moved onto a new line or page.

Installation

Just grab a copy of the plugin file, and put it in your plugins folder!

Usage

Most of the usage is included in the help text of the plugin, but one thing not documented for the time being is that you can use \t[key] to replace it with the text corresponding to the given code. This can be used to put in the text of whole message, or just message parts.

Please make sure you name the plugin file ExtText in your plugins directory. A fix for this issue will be coming to the Commons plugin soon, but until them, please name the plugin accordingly.

This plugin requires the MVCommons script, version 1.0.3 or above.

Demo

A short demo is available for the game here. The demo does not demonstrate using faces in messages, but the help text does.

Edit: Forgot to mention MVCommons dependency :)

Edit:

This plugin is released under the Creative Commons "By Attribution" License. You may take this plugin and use it for both commercial and non-commercial use, as well as make and release edits to it. The only restrictions are that you must credit me as the original author, and you may not apply a license that further restricts the terms of use. Please see the linked license for full details.
 
Last edited:

MuteDay

Mutation Engine
Veteran
Joined
Oct 19, 2015
Messages
253
Reaction score
39
First Language
English
any chance of getting version that doesnt require mvcommons?
 

Kane Hart

Elmlor.com
Veteran
Joined
Jun 27, 2014
Messages
656
Reaction score
166
First Language
English
any chance of getting version that doesnt require mvcommons?
As long core scripts are clean and let you disable extra's that one might not have I say it's a good idea. Even more since I think this core script sole purpose is to help compatibility issues. 
 

MuteDay

Mutation Engine
Veteran
Joined
Oct 19, 2015
Messages
253
Reaction score
39
First Language
English
if not thats fine ill end up tearing it apart and building custom version anyways, i currently am doing so with all of the scripts i have that i have permissions to, and yes the original author is getting credit still
 

Baka-chan

☆*:.。. o(≧▽≦)o .。.:*☆
Veteran
Joined
Dec 19, 2012
Messages
490
Reaction score
147
First Language
German
Word wrapping doesn't work in item description. Everything else is really nice ;)
 

Accendor

Veteran
Veteran
Joined
Aug 24, 2015
Messages
227
Reaction score
59
First Language
german
Primarily Uses
N/A
Hi,

I can not get the plugin to run at all.

I use MVCommons 1.0.6 from here: http://forums.rpgmakerweb.com/index.php?/topic/46474-mvcommons-the-community-core-plugin/

I only have one Map atm with only one event. Only 2 plugins are activated: MVCommons and External Text. I have created a data/text folder. In that folder is the text_en.json file.

I have all parameters on default:

Text File: text_en.json

Face File: faces.json (not created!)

Text Folder: data/text/

Autofit  Text: true

Remember Color: true

Enable Name Windows: true

Name Window Martin: return Graphics.width / 5 - this.width / 2

The First addon in my list is MCCommons, the Second one external_text - like in the demo you provided.

However, when I start my game the loading screen stays black. I do not even get to the point where I can select to Start a new game or load a save game. It is just black.

Where do I go wrong? :/
 

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,695
Reaction score
930
First Language
English
Primarily Uses
N/A
Hi,

I can not get the plugin to run at all.

I use MVCommons 1.0.6 from here: http://forums.rpgmakerweb.com/index.php?/topic/46474-mvcommons-the-community-core-plugin/

I only have one Map atm with only one event. Only 2 plugins are activated: MVCommons and External Text. I have created a data/text folder. In that folder is the text_en.json file.

I have all parameters on default:

Text File: text_en.json

Face File: faces.json (not created!)

Text Folder: data/text/

Autofit  Text: true

Remember Color: true

Enable Name Windows: true

Name Window Martin: return Graphics.width / 5 - this.width / 2

The First addon in my list is MCCommons, the Second one external_text - like in the demo you provided.

However, when I start my game the loading screen stays black. I do not even get to the point where I can select to Start a new game or load a save game. It is just black.

Where do I go wrong? :/
If you press F8 on the black screen it should bring up the console, which should have an error message on it. I suppose it could be caught up and unhappy that the faces file doesn't exist.
 

DMJohn0X

Veteran
Veteran
Joined
Oct 24, 2015
Messages
34
Reaction score
8
First Language
English
Primarily Uses
I have the latest version of MVCommons installed and this pluggin. 

I get the following error on build: 

"Cannot read property 'endsWith' of undefined"

Any ideas?
 

Shiroi Akuma

Shut up and take my Monet    ( ͡° ͜ʖ ͡°)
Veteran
Joined
May 11, 2015
Messages
350
Reaction score
279
First Language
German
Primarily Uses
N/A
Everything works fine, but how do I export the text from my project, or do I need another plugin to store everything inside the text_en.json? 
 

Accendor

Veteran
Veteran
Joined
Aug 24, 2015
Messages
227
Reaction score
59
First Language
german
Primarily Uses
N/A
If you press F8 on the black screen it should bring up the console, which should have an error message on it. I suppose it could be caught up and unhappy that the faces file doesn't exist.
That doesn't seem to be the problem. I created the faces file and started the game. Again, black screen.

Opened the console (Thanks for the tip!) and found 2 errors

filepath = path of the project

Uncaught SyntaxError: Unexpected token <

/filepath/js/plugins/external_text.js:230

 

Uncaught Error: External Text requires some functionality of the MVCommons plugin!

/filepath/js/plugins/external_text.js:230 Uncaught

 

For me it seems that there is some problem with the current MVCommons and this plugin.

 

 

Edit: If I use the MVcommons from your demo I can start but I get the error message "Cannot read property 'endsWith' of undefined". This is visible in the game itself, I do not have to open a console.

 

Edit2: If I use the MVcommons from your demo AND your file from the demo it works.
 
Last edited by a moderator:

Kyuukon

主人公
Veteran
Joined
Aug 22, 2013
Messages
2,217
Reaction score
1,077
First Language
Spanish
Primarily Uses
RMMV
This script is gonna be sooo useful! Thanks :D !
 

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,695
Reaction score
930
First Language
English
Primarily Uses
N/A
Everything works fine, but how do I export the text from my project, or do I need another plugin to store everything inside the text_en.json? 
You need to set up the text file yourself. The demo provides an example file, and the plugin's help text also explains how to set up the different sections. 

EDIT: But, I suppose it is technically possible to create a plugin that pulls all the database stuff out by default, but I'm not sure when I'll get to working on that.

That doesn't seem to be the problem. I created the faces file and started the game. Again, black screen.

Opened the console (Thanks for the tip!) and found 2 errors

filepath = path of the project

Uncaught SyntaxError: Unexpected token <

/filepath/js/plugins/external_text.js:230

 

Uncaught Error: External Text requires some functionality of the MVCommons plugin!

/filepath/js/plugins/external_text.js:230 Uncaught

 

For me it seems that there is some problem with the current MVCommons and this plugin.

 

 

Edit: If I use the MVcommons from your demo I can start but I get the error message "Cannot read property 'endsWith' of undefined". This is visible in the game itself, I do not have to open a console.

 

Edit2: If I use the MVcommons from your demo AND your file from the demo it works.
I have the latest version of MVCommons installed and this pluggin. 

I get the following error on build: 

"Cannot read property 'endsWith' of undefined"

Any ideas?
I can't reproduce this error. Can you do me a favor, and let me know what it says on the right side of the error message? For example, 



I'm lookging for the part that says something like ExtText.js:### Both the pastebin and project file are the same, so I see no reason why one would work and the other would not.
 
Last edited by a moderator:

Accendor

Veteran
Veteran
Joined
Aug 24, 2015
Messages
227
Reaction score
59
First Language
german
Primarily Uses
N/A
When I download your file from pastebin it is named

external_text.js

and not ExtText.js.

I already copied the line number, it is

external_text.js:230 :)
 

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,695
Reaction score
930
First Language
English
Primarily Uses
N/A
When I download your file from pastebin it is named

external_text.js

and not ExtText.js.

I already copied the line number, it is

external_text.js:230 :)
Ahh, you've made me realize what the problem is. Plugins expect their files to be named in a specific way. I have been planning a fix for that to be added into the Commons, but have yet to start working on it. Until then, I have renamed the file in pastebin, so it should work fine now if you get it from there :)
 

Accendor

Veteran
Veteran
Joined
Aug 24, 2015
Messages
227
Reaction score
59
First Language
german
Primarily Uses
N/A
Unfortunaly that does not work ;-) -> Back to square 1 = black screen, same error message in console.

Guess I have to wait for the fix in the Commons.
 

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,695
Reaction score
930
First Language
English
Primarily Uses
N/A
Can you send me a screenshot of the errors? Renaming the file should have worked.
 

DMJohn0X

Veteran
Veteran
Joined
Oct 24, 2015
Messages
34
Reaction score
8
First Language
English
Primarily Uses
My issue was solved by renaming External Text.js to ExtText.js.

Now though, running your demo project actually constantly displays your text as missing. Why does your demo not seem to work? 
 

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,695
Reaction score
930
First Language
English
Primarily Uses
N/A
How did you save the MVCommons plugin? It looks like it was incorrectly saved, and since that is having issues loading in, External Text stops itself because it needs that to work. When you download a file from github, please make sure to get the script content by pressing the "Raw" button before saving the file. Saving the file from the page with the button will cause this sort of problem.



My issue was solved by renaming External Text.js to ExtText.js.

Now though, running your demo project actually constantly displays your text as missing. Why does your demo not seem to work? 
That sounds like it's having trouble loading the text file. Are there any error messages in the dev console (F8 to open it)? Have you changed any settings, or renamed any files?
 

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

Latest Threads

Latest Posts

Latest Profile Posts

https://s12.directupload.net/images/200715/34vwhkoz.png Finally have a concept I am happy with, now I just have to decide wheather I really want to do it as vector art.
I just keep coming up with weird ideas, and then spend the time trying to make sense out of it.:kaocry:
Hi, Erm... My name is zozobie! I just had a snack.
Face masks are to be compulsory when inside shops in England from the 24th of July. People can be fined £100 if they fail to comply.

Forum statistics

Threads
99,690
Messages
968,058
Members
131,379
Latest member
MikuRikku
Top