Editing Rotk XI MSG Files

Use this forum to discuss hex-editing or otherwise altering any Three Kingdoms game, and to promote modded titles and patches.

Editing Rotk XI MSG Files

Unread postby Valvatorez » Thu Mar 31, 2016 10:03 pm

So I noticed the ongoing translation of the Puk version on here and thought about getting around to editing more messages on the English version. (Other versions of the game should be fairly similar, but again I'm only working on the English version of the game) I had edited a few of them in the past, mainly editing the biography screen for some of the officers I replaced.
Thanks to the huge help of Lord Cao Cao, I was able to figure out some more of the actual messages that show up in game, so its possible to edit all messages that happen in events, officer biographies and specific character quotes, among some other stuff.


Has anyone else actually done this or interested in this? I can post what I know of so far to help anyone new getting into this, and hopefully others can add to it, since there's still a lot of parts that are a bit confusing, and also I'm having a problem of some messages like when troops march out or making inspections no longer showing up in the log window after editing some of the messages, so while this does work, there's still some things to be sorted out, so if you want to help or get into this, ALWAYS have a backup so you don't complain to me later :lol:
And finally lol, I'm just starting on some of this, so its still a work in progress on some things, so if anyone knows more, feel free to add to this.
For new people I will post a bit at what you're looking for here.
For starters what you're looking for is the S11MSG00.s11, and the 01,02 and 03 files that should be in your Koei, Romance of the Three Kingdoms, Media, msg folder. You also need the San11 Editor found here: http://pigspy.ys168.com/
I think there's an English update to that somewhere on here, but I'm still using the one from above, its under SanEditor, and the program will work on the English version.

Now that that's out of the way lol, about the actual MSG files.

S11MSG00.s11 seems to have a lot of pointers and other stuff that I can't make out, so I'd leave this file alone. I think there's some relationship data in there so it's possible to change what officers call their parents and family and such instead of father, mother and so on, but I never messed with this file.

S11MSG01.s11 is what I'm currently working on now, this has the text that shows up on the menu screen such as what commands do, what officers say when employing them, executing them, in duels and so on. Pretty much all in game dialogue is here.

S11MSG02.s11 has a bit from tutorials I think, but also has all the officer biographies in them, so if you wanted to change any bios, this is what to edit. This is a LOT easier than editing other messages as you can just type what you want if you know which officer you are trying to change. Interestingly enough there's bios for some of the npcs like the emperors and Zou Ci here as well even though there's no way to actually see those without hex editing and flat out adding the npcs into the game. There's also a few spots for the officers in the Historical slots that you can edit, but after a few of them they end up having the same bios, and finally there's some descriptions for the tutorials and I think some events here too. Like I said, this is the easiest one to edit.

S11MSG03.s11 seems to be all the events, I haven't edited this one either, although it should be pretty easy if you know which event is what since they seem to go right in order.
Last edited by Valvatorez on Thu Mar 31, 2016 10:14 pm, edited 1 time in total.
User avatar
Valvatorez
Assistant
 
Posts: 142
Joined: Sat Aug 23, 2014 4:18 am
Location: Zanarkand

Re: Editing Rotk XI MSG Files

Unread postby Valvatorez » Thu Mar 31, 2016 10:03 pm

So this is an example from S11MSG01.s11 (which again is what I'm currently working on) for MSG 34 which is what a leader says when moving them around to other places:

[0x01][0x53][0x02][0xC9]%3I guess I'll be off for [0x02][0x3C][0x32], then.[0x05][0x05][0x05]I will now go to [0x02][0x3C][0x32].[0x05][0x05][0x05]Now, then. I'll be moving to [0x02][0x3C][0x32].

And I changed it to this:

[0x01][0x53][0x02][0xC9]%5I guess I'll be off for [0x02][0x3C][0x32], then.[0x05][0x05][0x05]I will now go to [0x02][0x3C][0x32].[0x05][0x05][0x05]Now, then. I'll be moving to [0x02][0x3C][0x32].[0x05][0x05][0x05]Ok I will head to [0x02][0x3C][0x32].[0x05][0x05][0x05]Alright I will leave immediately.


I suggest not touching any of the things inside brackets, since most appear to be pointers and not sure what all of them are. the [0x05][0x05][0x05] are dividers and should go after each line and [0x02][0x3C][0x32] are pointers to where you are actually going (again thanks to Lord Cao Cao for letting me know what some of these mean). In the example above you can see the %3 right before the first line of text, that seems to mean that there are 3 possible responses for the leader to say when you move them. Notice in the second part I changed that to %5 and added 2 new lines of dialogue, now there are 5 different things a leader can say when moving. It's also possible to delete some lines if you have unwanted dialogue or add more like I did. Pretty much every line said in game that's not in events should be able to be changed, but there's some that shouldn't be messed with.

Also further down in msg 884 you have this:

[0x05][0x05][0x04][0x02][0xC8]%50[0x06][0x26][0x02][0x0A][0x4B][0x04]=69...Very well.[0x05][0x05][0x05][0x05][0x05][0x04][0x02][0x0A][0x4B][0x04]=242...Very well.[0x05][0x05][0x05][0x05][0x05][0x04][0x02][0xC8]%50[0x06][0x26][0x02][0x0A][0x4B][0x04]=300...One cannot fight the inevitable.[0x05][0x05][0x05][0x05][0x05][0x04][0x02][0x0A][0x4B][0x04]=423Guess I've got no choice.[0x05][0x05][0x05][0x05][0x05][0x04][0x02][0xC8]%50[0x06][0x26][0x02][0x0A][0x4B][0x04]=512[0x05][0x05][0x04][0x02][0x0B][0x4B][0x04]=343Dishonor is but temporary. Survival comes first...[0x05][0x05][0x05][0x02][0x96][0x31][0x78]Ma Chao[0x02][0x96][0x30][0x78]. I have found a new sovereign.[0x05][0x05][0x05][0x05][0x05][0x04][0x02][0xC8]%50[0x06][0x26][0x02][0x0A][0x4B][0x04]=515[0x05][0x05][0x04][0x02][0x0B][0x4B][0x04]=343So it has come to this...[0x05][0x05][0x05]I feel as if a beam of sunlight has pierced the clouds. You are truly my sovereign.[0x05][0x05][0x05][0x05][0x05][0x04][0x02][0xE0][0x02][0x0A][0x02][0x0B][0x01][0x4A][0xFD][0x16][0x05][0x05][0x05][0x05][0x05][0x04][0x02][0xD2][0x02][0x0A][0x02][0x0B][0x01][0x4A][0xFE][0x16][0x05][0x05][0x05][0x05][0x05][0x04][0x02][0xCF][0x02][0x0A][0x02][0x0B][0x01][0x4A][0xFE][0x16][0x05][0x05][0x05][0x05][0x05][0x04][0x02][0xD1][0x02][0x0A][0x02][0x0B][0x01][0x4A][0xFE][0x16][0x05][0x05][0x05][0x05][0x05][0x04][0x02][0xDF][0x02][0x0A][0x02][0x0B][0x01][0x4A][0xFE][0x16][0x05][0x05][0x05][0x05][0x05][0x04][0x02][0xC8]%50[0x06][0x26][0x02][0x0A][0x4B][0x04]=660Very well. I'll just have to put up with it for a while.[0x05][0x05][0x05][0x05][0x05][0x04][0x02][0x0A][0x4B][0x04]=660(They call me the Hungry Wolf. Though you make me your servant, I will not change.)[0x05][0x05][0x05][0x05][0x05][0x04][0x02][0x0A][0x4D][0x04]=0[0x01][0x4A][0x00][0x17][0x05][0x05][0x05][0x05][0x05][0x04][0x02][0x0A][0x4D][0x04]=5[0x01][0x4A][0x04][0x17][0x05][0x05][0x05][0x05][0x05][0x04][0x02][0x0A][0x4D][0x04]=6[0x01][0x4A][0x04][0x17][0x05][0x05][0x05][0x05][0x05][0x04][0x02][0x0A][0xD0][0x04]=%1[0x01][0x4A][0xFF][0x16][0x05][0x05][0x05][0x05][0x05][0x04][0x02][0x0A][0xD1][0x04]=%1[0x05][0x05][0x04][0x02][0x0A][0xCA]If you order it, I shall bring my husband, too.[0x05][0x05][0x05]I am your servant. Should you wish it, my wife will also respond to your summons.[0x05][0x05][0x05][0x05][0x05][0x04][0x02][0x0A][0x4D][0x04]=13[0x01][0x4A][0x05][0x17][0x05][0x05][0x05][0x05][0x05][0x04][0x02][0xE1][0x02][0x0A][0x02][0x0B][0x04]{%5[0x01][0x4A][0x01][0x17][0x05][0x05][0x05][0x05][0x05][0x04][0x02][0xE1][0x02][0x0A][0x02][0x0B][0x04]}%20[0x01][0x4A][0x02][0x17][0x05][0x05][0x05][0x05][0x05][0x04][0x02][0x0A][0x4D][0x04]=3[0x01][0x4A][0x03][0x17][0x05][0x05][0x05][0x05][0x05][0x04][0x02][0x0A][0x3E][0x04]=0[0x01][0x4A][0x05][0x17][0x05][0x05][0x05][0x05][0x05][0x04][0x02][0x0A][0x3E][0x04]=1[0x01][0x4A][0x06][0x17][0x05][0x05][0x05][0x05][0x05][0x04][0x02][0x0A][0x3E][0x04]=2[0x01][0x4A][0x07][0x17][0x05][0x05][0x05][0x01][0x4A][0x08][0x17]

That's a lot of crap :lol: :mrgreen:
What this is though, is specific officer quotes.
For example, the line "=300...One cannot fight the inevitable." is what Zhen Ji says when you successfully employ her. The number 300 is her officer number. Also there's lines in there for Lu Bu, Cao Cao, Ma Chao, Ma Dai, and Zhou Yun as well. It's possible to change these so other officers can say specific lines, and also possible to add more so even created characters can say specific lines as long as you know which number the officer is and have the correct pointers, created officers start at 850. I copied Zhen Ji's line in the example, including the brackets and put 850 instead of 300 and now the first created officer in my files will have specific dialogue. This is also possible for other things as well such as in battle, since there's a lot of officers like the ones listed above and several more that have specific quotes throughout the game.


Whew, sorry for the wall of text lol, but hopefully this can help others that want to work on this or change things within their own game. So if anyone else wants to work on this or needs help, feel free to ask :)

Edit: Here's an example of what I mean, Nobunaga is in the ps2 officer empty slots in my save file, and here's what I added to the above list, I'm not gonna post the whole freakin' message again unless I need to lol, but I just put this after the end of one of the messages above (after the 0x05s and not sure if I actually need all of the brackets here or not, but put them just to make sure), and a pic to show how it looks with the message and an edited bio(I had more trouble trying to add pictures into this post than I did actually editing the game :lol:

[0x04][0x02][0xC8]%50[0x06][0x26][0x02][0x0A][0x4B][0x04]=848...Very well, but even though I will join you, even you can not stop my ambition.
Capture2.PNG
Capture2.PNG (254.6 KiB) Viewed 1090 times
Attachments
Capture2.JPG
Capture2.JPG (92.48 KiB) Viewed 1088 times
User avatar
Valvatorez
Assistant
 
Posts: 142
Joined: Sat Aug 23, 2014 4:18 am
Location: Zanarkand

Re: Editing Rotk XI MSG Files

Unread postby Zyzyfer » Fri Apr 01, 2016 2:44 am

Are you trying to touch up the various errors in the messages, or explain how we can add new dialogue? If it's the former and you can work out what the parameters are for not doing stuff like removing the Inspection command, I can pitch in.
Gamefaqs: KongZhou
Steam: heinous_won
User avatar
Zyzyfer
Scholar of Shen Zhou
 
Posts: 3052
Joined: Thu May 08, 2008 1:17 pm
Location: South Korea

Re: Editing Rotk XI MSG Files

Unread postby Valvatorez » Fri Apr 01, 2016 3:00 am

I guess its mostly a customization thing for me personally, I wanted to add more dialogue to more officers, especially my created officers. BUT I do want to fix some stuff as well, even if it's just little basic things like how some officers say "It am glad to serve you, we shall be allies" or something like that. I mean, I know a couple of little errors here and there offhand, but I'm sure there's more. At the same time, just kinda putting it out there in case anyone else actually has an interest in this for doing any of that in their own game(Which they probably don't lol). And finally, in case anyone actually did this before and knows what the pointers are or is willing to help, so yeah any and all of the above :P

Just to clarify in case anyone actually does know why this happens about the Inspection command, its not actually missing, everything still works fine, the only thing that is actually missing is the notice in the log window that says like "Ye's order has increased to 100", it just shows an empty space there in the log window when you do that or march out troops, that appears to be the only downside, and not sure if that happens for other people or just me. I'm trying to figure out why that happens regardless of what other messages I edit. Editing the messages that show up in events like when one of your officers duels or debates someone in order to join your force work fine without any problems.
User avatar
Valvatorez
Assistant
 
Posts: 142
Joined: Sat Aug 23, 2014 4:18 am
Location: Zanarkand

Re: Editing Rotk XI MSG Files

Unread postby Zyzyfer » Fri Apr 01, 2016 4:24 am

Yeah I can go through and proofread no problem. But I'll wait until there's a solution for the inspection/march command issue.
Gamefaqs: KongZhou
Steam: heinous_won
User avatar
Zyzyfer
Scholar of Shen Zhou
 
Posts: 3052
Joined: Thu May 08, 2008 1:17 pm
Location: South Korea

Re: Editing Rotk XI MSG Files

Unread postby Lord_Cao_Cao » Fri Apr 01, 2016 10:01 am

So adding new unique lines worked? That's great!

Could one of you explain the issue with Inspections and marching out units again? Valvatorez already told me about it, but now I don't quite understand whether these issues only appear after editing the MSG files or if they're there from the start. At least I haven't noticed them in the PUK, maybe we can make a fix that way.
User avatar
Lord_Cao_Cao
Scholar of Shen Zhou
 
Posts: 1325
Joined: Sun Mar 21, 2010 9:14 am
Location: Germany

Re: Editing Rotk XI MSG Files

Unread postby Valvatorez » Fri Apr 01, 2016 10:44 am

Yeah they work fine, I tried adding unique lines to regular officers, bonus officers, officers I put in the extra unused slots and created officers and all showed up without any problems. However currently I can't get officer specific quotes to work in battle, but they seem to work elsewhere like the example above we talked about. Battle messages that appear when using a tactic or regular attack seem to work differently in that people that have specific quotes like Sun Shang Xiang in msg 2081 have a separate message just for them, and there's some pointers before and after the group that have some of the = numbers in them so I think that is what codes them, but didn't know if adding a brand new msg here would mess up the order of the other ones or not and haven't tried it yet. But yeah other quotes work fine.

Ok here's what I'm doing on the missing commands. Using the original file, everything works perfectly and shows up. If I edit anything and save, that's when the notice in the log window disappears. But strangely I noticed that the original file is 213 kb, after saving in the editor, it jumps up to 532 kb. And it changes size even if I don't even edit anything at all, just opening in the editor, save without having done anything else whatsoever, its 532. Tried that and that's when the log window disappears. Even checked the actual missing command at 3755 are fine and still there, I thought maybe they got deleted somehow. So at 213 everything is ok, but 532 it's missing.

Capture3.JPG
Capture3.JPG (34.11 KiB) Viewed 1053 times


I've been clicking on the 3rd button on the bottom to make the edit "stick" then when finished using the first button to exit, is this how you're doing it when editing puk messages and does the file size change for you? Maybe HOW I'm actually saving it is the problem even though it works ok on the other msg files doing it the same way?

Also lol, I went into my backup folder and noticed I still have the puk msg files from a couple of years ago but no longer have the puk game, just like you have the English messages but the not the eng game :mrgreen:
User avatar
Valvatorez
Assistant
 
Posts: 142
Joined: Sat Aug 23, 2014 4:18 am
Location: Zanarkand

Re: Editing Rotk XI MSG Files

Unread postby Lord_Cao_Cao » Fri Apr 01, 2016 11:06 am

Yes, the dialogues in battle work differently, I noticed it as well yesterday. If you add a message, you'll have to change all pointer messages that follow, otherwise you'll get the same problem that I've been trying to fix in the PUK translation all the time (wrong messages popping up).

Alright then, this will probably be the compatibility issue I've talked about in our conversation.
You have to click the first button to save. As you've said, clicking the third button will save the content within the message, but if you don't save the whole file, all changes will be lost. I learned that the hard way when translating the names in RoTK 13 and accidently clicking on the second button (cancel).
You could try to open the 532 kb file and the 213 kb file in a hex editor and see what causes the bloating. There should be some changes after all.
Inspection related messages start at Msg246 to around Msg256, might want to check if anything changed here (deleted contents, messed up pointers, etc.).

Hehe, well, I downloaded the English message files from here, the left-overs I have from the English version are created scenarios.
User avatar
Lord_Cao_Cao
Scholar of Shen Zhou
 
Posts: 1325
Joined: Sun Mar 21, 2010 9:14 am
Location: Germany

Re: Editing Rotk XI MSG Files

Unread postby Valvatorez » Fri Apr 01, 2016 11:48 am

Ok so I'm not gonna add more messages at all then, changing pointers seem to be a total headache right now.
I guess if I can find the actual messages I can just delete some of them like Zhang Liao, Wen Chou or others only have a couple of lines,so I can just do it that way if I need to.

247 is blank but the rest are still there, the quotes people say using inspections do show up in the 2nd window. I can take a pic of the missing one in the window if that will help.
Ok good, I thought maybe I was saving it wrong somehow, I too learned that the hard way :mrgreen:

I opened both with hex editor, the original is just total nonsense with weird symbols everywhere. The file I edited(Just opened in Editor, saved without making changes) has a bit of empty space on top, but a little ways down everything that is in the messages shows up in English and is readable. Is this normal? Can't find even one word with the original file, but everything is written clearly in the larger file, which is probably what is making it bigger? Since the program is designed for the Japanese or Chinese version, and aren't words much much shorter in those languages? (I only know English and a bit of German, can't make any sense at all of other languages lol) So maybe that's what's wrong? I think that's what you meant.
User avatar
Valvatorez
Assistant
 
Posts: 142
Joined: Sat Aug 23, 2014 4:18 am
Location: Zanarkand

Re: Editing Rotk XI MSG Files

Unread postby Lord_Cao_Cao » Fri Apr 01, 2016 12:20 pm

Replacing should work I suppose.

No, 247 is blank, that's alright I suppose. You might want to check 248 though, since it's a pointer message.

I actually thought the original files would show the text in a hex editor as well, but it seems I was wrong. The original files might be compressed, but I don't think that would explain why Inspections and March dialogues disappear. Van's Editor might decompress them, causing the file to become larger and readable.
User avatar
Lord_Cao_Cao
Scholar of Shen Zhou
 
Posts: 1325
Joined: Sun Mar 21, 2010 9:14 am
Location: Germany

Next

Return to Three Kingdoms Game Editing & Mods

Who is online

Users browsing this forum: No registered users and 1 guest

Copyright © 2002–2008 Kongming’s Archives. All Rights Reserved