What's new

Trying to use machine translation


Djones739

Newbie
Joined
Oct 16, 2013
Messages
2
Reputation score
0
For the most part i've been using VNR to translate rpg games. I can't a seem to get a machine translation to work with " I'm A Magical Girl Now ~Yuu Boy and the Tower of Trans" by 6 colors. Any help would be greatly appreciated, thanks.
 
Re: Trying to use machine translation

Actually, I remember having a problem using Translation Aggregator on a different 6colors game.
Trying to remember how I fixed it...
 
Re: Trying to use machine translation

Ok, I eventually solved this but the solution was completely new to me and not the same as whatever I did for the other 6colors game at all.
Credit where credit is due -- a good hint to the answer was in this thread here: ulmf.org/bbs/showthread.php?t=27972

That fix didn't quite work for me though, because it looks like there is a new version of RPGMaker MV that is very slightly different.

Anyway, what I did is as follows:

1). Open your game and look for the folder www\js\plugins inside it.
2). Create a new file here called CopyPasteText.js
The contents of this new file should be as follows:

Code:
var gui = require('nw.gui');
var clipboard = gui.Clipboard.get();

Game_Message.prototype.allText = function() {
    var out = this._texts.reduce(function(previousValue, currentValue) {
        return previousValue + '\n' + currentValue;
    });
    clipboard.set(Window_Base.prototype.convertEscapeCharacters(out), 'text');
    return out;
};

3). Go up one folder to www\js and edit the plugins.js file.
You want to add a new line near the top of the file to load our new CopyPasteText file, in with all the other entries. The new line looks like this:

Code:
{"name":"CopyPasteText","status":true,"description":"","parameters":{}},

After editing my file now looks like this:

Code:
// Generated by RPG Maker.
// Do not edit this file directly.
var $plugins =
[
{"name":"CopyPasteText","status":true,"description":"","parameters":{}},
{"name":"AltSaveScreen","status":true,"description":"セーブ/ロード画面のレイアウトを変更します。","parameters":{}},
{"name":"WeaponSkill","status":true,"description":"武器ごとに通常攻撃のスキルIDを変更します。","parameters":{}},
{"name":"YEP_CoreEngine","status":true,"description":"Yanfly Engine Scriptsの大元となる機能です。\r\nRPGツクールMVのバグを修正したり、様々なカスタムを行います。","parameters":{"---スクリーン---":"","Screen Width":"816","Screen Height":"624","Scale Battlebacks":"true","Scale Title":"true","Open Console":"false","Reposition Battlers":"true","---ゴールド---":"","Gold Max":"99999999","Gold Font Size":"20","Gold Icon":"313","Gold Overlap":"a lotta","---アイテム---":"","Default Max":"99","Quantity Text Size":"20","---ステータス---":"","Max Level":"99","Actor MaxHP":"9999","Actor MaxMP":"9999","Actor Parameter":"999","Enemy MaxHP":"999999","Enemy MaxMP":"9999","Enemy Parameter":"999","---バトル---":"","Animation Rate":"4","Flash Target":"false","---フォント---":"","Chinese Font":"SimHei, Heiti TC, sans-serif","Korean Font":"Dotum, AppleGothic, sans-serif","Default Font":"GameFont, Verdana, Arial, Courier New","Font Size":"28","Text Align":"left","---ウィンドウ---":"","Digit Grouping":"true","Line Height":"36","Icon Width":"32","Icon Height":"32","Face Width":"144","Face Height":"144","Window Padding":"18","Text Padding":"6","Window Opacity":"192","Gauge Outline":"true","Gauge Height":"18","Menu TP Bar":"false","---ウィンドウカラー---":"","Color: Normal":"0","Color: System":"16","Color: Crisis":"17","Color: Death":"18","Color: Gauge Back":"19","Color: HP Gauge 1":"20","Color: HP Gauge 2":"21","Color: MP Gauge 1":"22","Color: MP Gauge 2":"23","Color: MP Cost":"23","Color: Power Up":"24","Color: Power Down":"25","Color: TP Gauge 1":"28","Color: TP Gauge 2":"29","Color: TP Cost Color":"29"}},
{"name":"YEP_EventChasePlayer","status":true,"description":"プレイヤーが近づいた際に、イベントがプレイヤーを追いかけたり\nプレイヤーから逃げるアクションを取ります","parameters":{"Sight Lock":"240","See Player":"true","Alert Timer":"10","Alert Balloon":"1","Alert Sound":"","Alert Common Event":"0"}},
{"name":"PictureWipe","status":true,"description":"ピクチャの切り替えエフェクトです。","parameters":{}},
{"name":"timer_stop","status":true,"description":"","parameters":{}},
{"name":"MPP_ChoiceEX","status":true,"description":"【MPP ver.2.1】選択肢の機能拡張","parameters":{"maxPageRow":"10"}}
];

And that's pretty much it. As the game runs it'll dump the dialog straight into the clipboard. I'm using Translation Aggregator, but I don't have to bother loading any AGTH or other hooks since the game itself is sending the text in.

HTH!
 
Re: Trying to use machine translation

For the most part i've been using VNR to translate rpg games. I can't a seem to get a machine translation to work with " I'm A Magical Girl Now ~Yuu Boy and the Tower of Trans" by 6 colors. Any help would be greatly appreciated, thanks.

that because that a game make with RPG Maker MV, you cant hook it directly with VNR like that

⬇⬇⬇ look in my signature, you will find a tools to make that, a txt in explain how to ⬇⬇⬇
Tools to hook RPG Maker MV game :

@Hitobat : you didn't go far enough in the thread you point :p, that code was just the start of thing ^^
 
Last edited:
Re: Trying to use machine translation

That's super-awesome Libellule, thanks for the link!
You're right I should have read the whole thing... that was a bit embarassing! :eek:
 
Back
Top