irpg Community

Full Version: มาแก้ปัญหาภาษาไทยใน RPG Maker MV กันเถอะ (วรรณยุกต์ซ้อน, ปัญหาสระอำ, ญ/ฐ+สระอู)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
(12-26-2016, 02:51 AM)ekkapan15th Wrote: [ -> ]ผมใส่ปลักอินนี้แล้วมันไม่หายอ่ะครับ ฟ้อนท์เริ่มต้นครับผม

ลอง Capture หน้าจอมาดู พร้อมทั้งบอก windows ที่ใช้หน่อยครับ

Edit: อย่าลืมแก้ © เป็น
Code:
(c)
ด้วยล่ะ
มาแปะ link ตัวที่แก้ไว้ จนกว่าบอร์ดจะปรับปรุงเสร็จละกัน

https://gist.github.com/admannon/700168e...840f7473c4
ขอบคุณมากนะครับ ช่วยได้มากเลยครับ ^^
สวัสดีครับ แอด ช่วยผมด้วย ผมทำตามทุกอย่างแต่มัน ขึ้นเออเรอร์ อะครับ ขึ้นว่า Cannot read property 'getPixel' of null

ช่วยด้วยครับ แก้ไม่เป็นไม่รุ้ทำไง Jackie Chan
เอ ผมไม่เคยเจอปัญหานี้นะ
ไม่ทราบว่าท่านทำวิธีไหน หรือลงปลั๊กอินอื่นเพิ่มไปหรือเปล่าครับ

ของท่านมิกิยังมีปัญหากับหลายฟอนต์
แม้แต่ฟอนต์ที่บอกว่าทดสอบแล้วได้ ก็ไม่ได้
แต่ก็ไม่เคยเจอเอเรอร์แบบนั้น

ฟอนต์ที่ผมทดสอบแล้วได้ คือ TH Krub
ฟอนต์ที่ท่านมิกิบอกว่าได้ แต่ผมทดสอบแล้วไม่ได้ คือ mplus-1m-regular (ฟอนต์มาตรฐานของ RMMV), Tahoma

ส่วนปลั๊กอินตัวนี้ผมใช้แล้วไม่มีปัญหาครับ (อันที่แก้แล้วนะ โค้ดอันแรกยังมีปัญหาอยู่)
http://irpg.in.th/thread-2978-post-29884.html#pid29884
(07-15-2018, 11:13 PM)OP_Jum_RPG Wrote: [ -> ]คุณช่วยผมได้ไหมอ่ะ เราลองไปหามาทุกเว็บแล้ว ก๊อปไส่แทนโค้ดต้นฉบับไป มันก็เข้าเกมไม่ได้เลย ม่รุ้ทำไงดี แพนด้าจ๊าก
คือผม ทำการลง สคริปตัวนี้อะครับ แล้วมันก็เป็นอย่างที่ผมบอกเลย ขึ้น Cannot read property 'getPixel' of null


Window_Base.prototype.convertEscapeCharacters = function(text) {

//Thai Language Fixer by Mikichan
//Version 18.03.14.5
text = text.replace(/ั่/g, "ั");
text = text.replace(/ั้/g, "ั");
text = text.replace(/ั๊/g, "ั");
text = text.replace(/ั๋/g, "ั");
text = text.replace(/ั์/g, "ั");
text = text.replace(/ิ่/g, "ิ");
text = text.replace(/ิ้/g, "ิ");
text = text.replace(/ิ๊/g, "ิ");
text = text.replace(/ิ๋/g, "ิ");
text = text.replace(/ิ์/g, "ิ");
text = text.replace(/ี่/g, "ี");
text = text.replace(/ี้/g, "ี");
text = text.replace(/ี๊/g, "ี");
text = text.replace(/ี๋/g, "ี");
text = text.replace(/ี์/g, "ี");
text = text.replace(/ึ่/g, "ึ");
text = text.replace(/ึ้/g, "ึ");
text = text.replace(/ึ๊/g, "ึ");
text = text.replace(/ึ๋/g, "ึ");
text = text.replace(/ึ์/g, "ึ");
text = text.replace(/ื่/g, "ื");
text = text.replace(/ื้/g, "ื");
text = text.replace(/ื๊/g, "ื");
text = text.replace(/ื๋/g, "ื");
text = text.replace(/ื์/g, "ื");
text = text.replace(/ํ่/g, "ํ");
text = text.replace(/ํ้/g, "ํ");
text = text.replace(/ํ๊/g, "ํ");
text = text.replace(/ํ๋/g, "ํ");
text = text.replace(/ํ์/g, "ํ");
text = text.replace(/่ำ/g, "ำ");
text = text.replace(/้ำ/g, "ำ");
text = text.replace(/๊ำ/g, "ำ");
text = text.replace(/๋ำ/g, "ำ");
text = text.replace(/ญุ/g, "ุ");
text = text.replace(/ฐุ/g, "ุ");
text = text.replace(/ญู/g, "ู");
text = text.replace(/ฐู/g, "ู");
text = text.replace(/ปั/g, "ป");
text = text.replace(/ปิ/g, "ป");
text = text.replace(/ปี/g, "ป");
text = text.replace(/ปึ/g, "ป");
text = text.replace(/ปื/g, "ป");
text = text.replace(/ป็/g, "ป");
text = text.replace(/ปํ/g, "ป");
text = text.replace(/ป่/g, "ป");
text = text.replace(/ป้/g, "ป");
text = text.replace(/ป๊/g, "ป");
text = text.replace(/ป๋/g, "ป");
text = text.replace(/ป์/g, "ป");
text = text.replace(/ฝั/g, "ฝ");
text = text.replace(/ฝิ/g, "ฝ");
text = text.replace(/ฝี/g, "ฝ");
text = text.replace(/ฝึ/g, "ฝ");
text = text.replace(/ฝื/g, "ฝ");
text = text.replace(/ฝ็/g, "ฝ");
text = text.replace(/ฝํ/g, "ฝ");
text = text.replace(/ฝ่/g, "ฝ");
text = text.replace(/ฝ้/g, "ฝ");
text = text.replace(/ฝ๊/g, "ฝ");
text = text.replace(/ฝ๋/g, "ฝ");
text = text.replace(/ฝ์/g, "ฝ");
text = text.replace(/ฟั/g, "ฟ");
text = text.replace(/ฟิ/g, "ฟ");
text = text.replace(/ฟี/g, "ฟ");
text = text.replace(/ฟึ/g, "ฟ");
text = text.replace(/ฟื/g, "ฟ");
text = text.replace(/ฟ็/g, "ฟ");
text = text.replace(/ฟํ/g, "ฟ");
text = text.replace(/ฟ่/g, "ฟ");
text = text.replace(/ฟ้/g, "ฟ");
text = text.replace(/ฟ๊/g, "ฟ");
text = text.replace(/ฟ๋/g, "ฟ");
text = text.replace(/ฟ์/g, "ฟ");

text = text.replace(/\\/g, '\x1b');
text = text.replace(/\x1b\x1b/g, '\\');
text = text.replace(/\x1bV\[(\d+)\]/gi, function() {
return $gameVariables.value(parseInt(arguments[1]));
}.bind(this));
text = text.replace(/\x1bV\[(\d+)\]/gi, function() {
return $gameVariables.value(parseInt(arguments[1]));
}.bind(this));
text = text.replace(/\x1bN\[(\d+)\]/gi, function() {
return this.actorName(parseInt(arguments[1]));
}.bind(this));
text = text.replace(/\x1bP\[(\d+)\]/gi, function() {
return this.partyMemberName(parseInt(arguments[1]));
}.bind(this));
text = text.replace(/\x1bG/gi, TextManager.currencyUnit);
return text;
};
ลองใส่ในโปรเจ็คต์เปล่าๆหรือยังครับ

หรือผมขอดูไฟล์ rpg_windows.js (ทั้งไฟล์) หน่อยครับ

ที่ว่าลงทับนี่คือ ลบแค่ Window_Base.prototype.convertEscapeCharacters = function(text) {
ประมาณ 10 บรรทัดนะ ไม่ใช่ลบทิ้งทั้งไฟล์ หรือลบบรรทัดนี้บรรทัดเดียว
(07-16-2018, 09:52 AM)OP_Jum_RPG Wrote: [ -> ]คุณมีเฟสบุคไหมครับ คุยในนี้ผมว่าไม่น่าสดวก แล้วผมก็ส่งรูปไม่เป็นด้วยพึ่งหัดมาเล่น บล๊อค เพราะเห็นคุยกันเรื่อง RPG Maker เลยหาวิธีติดต่อพวกคุณจนได้  ถ้าคุยผ่าน เฟส หรือ ไลน์ จะได้คุยสดวกผมจะทำไห้ดู ทุกขั้นตอนเลย ):
---- ชออนุญาตลบลิงค์เฟสนะครับ ----

แอดมาแล้วรบกวนแจ้งหรือส่งข้อความมาด้วยนะครับ
เดี๋ยวจะได้ลากเข้ากลุ่มใน FB (หรือถ้ากดเข้าได้ก็กดมาได้เลยครับ)
(07-16-2018, 11:18 AM)OP_Jum_RPG Wrote: [ -> ]ทักไปแล้วครับ
Pages: 1 2 3