換文檔教學 3步而已!   Text Change Tutorial 3 step only! / EN ver below 

多點人學習如何改模組是好事阿,一切都在工具跟耐心與試錯而已
先申明我也才第二天學做模組,也許有別的更好的辦法來達成目標,但我是以下這個方法做的
首先超快速的原理講解一下, 你就想像NpcName.msg.23這檔案是一個壓縮檔,里面有各國語言的文檔,一國一個
那我們改模組原理一如往常,拆包➡修改➡打包➡可用
我們工具一次只能解出一個國家的語言(看你要解成txt還是json還是csv),我個人是一次處理一個國家,改完後回填回NpcName.msg.23,然後再解出下一個國家,繼續操作如此類推

          (以下為工具原理)
          裡面有一堆.bat跟一個.exe檔,理解一下bat名字代表什麼,
           msg2txt.bat為例 就是指msg轉成txt,(我個人是用這個)
           txt+msg2msg.bat是打包用 把改好的txt+原msg檔案"一起"拖進這bat,會打包回一個新檔案,尾巴追加new
  • 2.把要修改的NpcName.msg.23文件,左鍵點著一路拖到msg2txt.bat,bat會啟動運作,cmd會運作並打開,你會看到有一票國家代碼,輸入你想要的國家代碼(以繁中文為例,國碼是 zhTW)  , 輸入後enter
          原檔案同個文件見夾內會產出一個NpcName.msg.23.txt,這文件現在你可以打開並編輯了,等編輯完畢➡存檔並請接著下一步
  • 3.再來我們要打包了,把修改好的NpcName.msg.23.txt跟原始檔案NpcName.msg兩個文件一起複選,用左鍵拖到txt+msg2msg.bat,輸入要塞回去的語言,以剛剛為範例是 用zhTW, 那就zhTW輸入,然後enter後,他會生出一個新的NpcName.msg.23.new,舊的NpcName.msg就可以直接刪掉了,並且把新的NpcName.msg.23.new字尾的 ".new" 去掉,這就是一個修改好又可以用的檔案了,若要再改其他國家,重複2~3以此類推,剩下加油,有疑問歡迎問

------------------------------------------------Language Wall / 語言分隔島--------------------------------------------------------------


It’s a good thing that more people are learning how to mod. All U need is to have the right tools, patience, and a bit of trial and error.
First, here’s a super quick explanation of the concept: just imagine that the file "NpcName.msg.23" is like a zip containing documents for various languages—one file per country.
The general modding process, as always, is: unpack ➡ edit ➡ repack ➡ DONE.
Our tool can only extract one language at a time (you can choose to extract it as ".txt", ".json", or ".csv"). Personally, I handle one language at a time. After editing, I write the changes back into "NpcName.msg.23", then move on to extract the next language, and repeat the process as needed.
             (Below is how the tool works:)
Inside, you’ll find a bunch of ".bat" files and one ".exe" file. Try to understand what each ".bat" file is for based on its name.
For example:
- "msg2txt.bat" means converting a ".msg" file to ".txt" (this is the one I personally use).
- "txt+msg2msg.bat" is used for repacking—drag both the edited ".txt" file *and* the original ".msg" file onto this ".bat" and it will generate a new file with “.new” appended to the filename.
  • 2. Take the "NpcName.msg.23" file you want to edit, left-click and drag it onto "msg2txt.bat".  
The batch file will run and open a command prompt window. You’ll see a list of country codes—enter the code for the language you want. For example, for English, the code is "en". After entering the code, press Enter.
A new file called "NpcName.msg.23.txt" will be generated in the same folder as the original file. You can now open and edit this file. Once editing is done ➡ save it, and let's move on to the next step.
  • 3. Now we repack.  
Select both the modified "NpcName.msg.23.txt" file and the original "NpcName.msg.23" file, and drag them together onto "txt+msg2msg.bat". Enter the language code again (using the same example, it’s "en"), then press Enter.
This will generate a new file called "NpcName.msg.23.new". You can delete the old "NpcName.msg.23" and rename the new file by removing the ".new" extension. This gives you a fully functional, modified file.
If you want to modify another language, just repeat steps 2–3.
That’s all—good luck! Feel free to ask if you have any questions.

Article information

Added on

Edited on

Written by

SheepBABABA

2 comments

  1. BillABC529
    BillABC529
    • member
    • 0 kudos
    感謝您用心的製作MOD和分享這些步驟,感恩~
    1. SheepBABABA
      SheepBABABA
      • member
      • 9 kudos
      謝謝~你的回覆是我一大動力~!