Home › Forums › Destiny of an Emperor › DoaEd text-editing edition (Alpha 0.04 released 7/07/08)
- This topic has 131 replies, 10 voices, and was last updated 12 years, 7 months ago by sonic.penguin.
-
AuthorPosts
-
May 21, 2008 at 1:51 pm #34554thechieftainParticipant
This will be the ultimate. I want to try it but i just don’ have time.
May 21, 2008 at 3:21 pm #34555Xian Zhu XuandeParticipantNiahak said:
Yeah, it’s a simple text box just like the ones used in this forum. A new line is just replaced with a new line in the relevant dialogue.
Ooo… that brings up another question. How are you handling newlines? About half of the indexed words have the ability to create newlines themselves while the other half do not. If you use those words’ abilities to create newlines (what a sentence…) you’ll save space in the code. For you to be coming in at smaller numbers than Capcom, though, I imagine you must already be doing this?
May 21, 2008 at 9:57 pm #34556NiahakModeratorYeah.
I take the string given for the entire piece of dialogue (which may contain newlines) and change into hex, then store it.
Before I made this change, it would sometimes take several seconds to convert the whole script… I stopped that pretty quick ;) If I’d done it in perl, I bet it would’ve had no problems.
May 22, 2008 at 12:57 am #34557Xian Zhu XuandeParticipantNiahak said:
Before I made this change, it would sometimes take several seconds to convert the whole script… I stopped that pretty quick ;) If I’d done it in perl, I bet it would’ve had no problems.
Never thought much about writing desktop applications in Perl. But Perl is buddy-buddy with regular expressions, so I imagine that at least would be a huge boon.
May 22, 2008 at 6:08 pm #34558FalloutParticipantthere are missing pieces of dialogue in the hex editor. namely, the beginning sequence when the generals float across the screen with descriptions of who they are. will you include this in another version, i hope?
May 22, 2008 at 6:34 pm #34559Xian Zhu XuandeParticipantFallout said:
there are missing pieces of dialogue in the hex editor. namely, the beginning sequence when the generals float across the screen with descriptions of who they are. will you include this in another version, i hope?
That data is stored in a separate area of the ROM in plain text (right near the top) and it plays by totally different rules. The spacing before and at the end of lines is defined by values and, if I recall correctly, the text wraps around. It was quite a pain to manually edit it as I did for the Cao Cao edition’s title screen (and maybe DoaE 2.0’s as well).
May 22, 2008 at 9:52 pm #34560FalloutParticipanti’ve managed to change a good portion of the game already, but there are still key conversations that i need fixed. hopefully, all of the script can be uncovered with the next version… :D
May 22, 2008 at 10:30 pm #34561NiahakModeratorThis was a pain to do for sure. The text needs to manually wrap and newline, and the calls to show the portrait are inline. It’s hard to tell which part is which. I don’t think it’ll be in part of DoaTed, but if you need it to be done I could give you an example or something.
Fallout:
Can you give me an example of another line that’s missing? The only parts I know for sure are the title screen (which is in plain text), that intro portion and the credits.
Also, any comments on how I can improve what’s there (beside a line-length checker)?
I’m glad to hear it’s worked out so far, because I’m on vacation Sat-Tues and definitely won’t get anything done until the following weekend.
May 23, 2008 at 12:55 am #34562FalloutParticipantit’s really awesome, no doubt!! but, the whole part from conquering shu and throughout is missing. no text at all from the jing zhou area and on. no shu, no wu, no wei….
May 23, 2008 at 1:43 am #34563NiahakModeratorMan, I can’t believe I missed the second bank of text.
It won’t be amazingly hard to pull it in, since it’s all the same structure, but it will be a bit tricky. I’m afraid I won’t get a chance to finish that section until Wednesday (depends on whether I take the day off work – I may or I may not, since I get back fairly late Tuesday night).
Although there is good news, this section has even more space – 2127 bytes to fill with wonderful dialogue! (Whereas the first one only had 200 some).
May 23, 2008 at 9:26 pm #34564FalloutParticipantawesome! i was having difficulty squeezing in some text with that space. it’s going great with my rom! there are some references to our forumites in it and some funny lines. i can explain the plot a whole lot better as well!
May 31, 2008 at 6:17 am #34565Xian Zhu XuandeParticipantWell… I’ve decided to give this thing a shot. I hope it doesn’t blow up! :shock:
What is with the spaces in the Cao Cao ROM? Is that the empty space I added to the end of a conversation? 0A0A0A0A0A (etc.) You said you tested with the Cao Cao ROM, if I recall correctly, so I guess it will know what to do? Does it just leave that garbage intact? :)
Zhao Fan is incorrect in the table. You have Zho Fan.
(Hopefully not because it was incorrect in my table!?)
May 31, 2008 at 6:19 am #34566Xian Zhu XuandeParticipantIt does great with text I’ve already entered. :)
[LEADER]. I'm
[OFFICER-SELF-2]. My
officers, Ma Su[>]
and Ma Liang have
spoken with me
and we are[>]
prepared to
surrender our
land. I hope[>]
we can work
together?
[EVENT-A429]I just did that by hand. It is interesting to see how it changes the hexadecimal source from what my own tool exported.
Original: F01D903BEE98FBF0E3EBD0D9C016D0B13F342DF0E137F0EB36FDEE42EE903B68EC
New: D01DF03BAE98FBF0E363B0D98016D0B13F342DF0E137F0EB36FDEE42EE903B68EC
Does it make all of those changes on the first save?
I’ll bet that’s an important point to test carefully. :shock:
Edit: this is actually good… you can see some scripts you might have missed otherwise… that bastard Yi Ji actually has a number of scripts he spews out depending on the circumstance!
May 31, 2008 at 6:27 am #34567Lord Yuan ShuKeymasterOh hey about Zho Fan…this is because a villager in Chang Sha says something like "Zho Fang in Guiyang cannot be trusted". So Niahak didn’t do it, it’s just like that.
Yes, Yi Ji does have a lot to say! He’s talkative especially when you first meet him.
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingMay 31, 2008 at 6:49 am #34568Xian Zhu XuandeParticipantSo I tried to use it. I started by editing the script below:
[LEADER]? I'm
[OFFICER-SELF-2]. My brother
Ma Liang is[>]
waiting for you
in a house
south-east from[>]
here. Please go
meet him and
listen to his[>]
story.[END]That’s Ma Su, by the way.
My script was longer and I entered characters in as shown above (such as the [>] character after each three lines). That is the only change I made and when I went to export the data I received the following error and the ROM was corrupted:
I duplicated my backup and, to narrow down the problem, simply loaded up the ROM and exported the data. It saved without any errors. Unconvinced, I loaded the ROM and exported the data. This time I receive the following error:
"Entered text would overflow into other sections of the ROM. Please reduce the size of the script. The ROM was not written."
This is because it is demonstrating a bug similar to what we encountered with the officer editor. When I saved the first time it wound up duplicating scripts into freespace. It wanted to duplicate scripts again the second time I edited and that is why it is overflowing.
I duplicated the error with the public beta release of the Cao Cao DoaE 2.0. Open, save, open, save, and an error comes up. I would absolutely love to use this tool as it would allow me to do some really awesome stuff with the game. Thanks so much for even starting this project!
-
AuthorPosts
- You must be logged in to reply to this topic.