Destiny of an Editor
This is a project I started over at Lord Yuan Shu’s forums.
Destiny of an Emperor has long been among my favorite NES games. Once I even thought of changing around officer stats, I knew I wanted to give making an editor a try. The most complicated thing it allows is changing lengths of officer names (since this requires updating pointers).
For right now, Destiny of an Editor is in beta test. You can download beta 0.94 here, but I make no guarantees about how well it will work. It has been tested pretty thoroughly, and so should be stable. You’ll need the .NET framework to use it.
Changelog (since 0.90)
0.94
-Added color previews of sprites and portraits
-Fixed manual entry of portrait hex
0.93
-Added toggle for an officer’s immunity to An Sha
-Added toggle for an officer’s inability to be billeted
0.91
-Added ability to sort by officer names or appearance order in ROM
-Added hex of officer (used in battle references, etc)
-Switched portrait values to comboboxes; now no reload is necessary to see the new portrait (customizing portraits is MUCH easier)
-Added About message box
-General UI tweaks (size, placement)
-Better handling of a “reload” (loading a rom without restarting the app)
Also, a newer project, Destiny of a Text Editor, has been in progress over the course of the last several months.
Here is the latest release, 0.04. Though it’s relatively stable (James has been using it a considerable amount) it is still unrefined.
As always, save early and often, and be sure to back-up things too.
Following are a few screenshots of the officer editor and some test results.

Cao Cao is a character who you never got to see except in sprite form. I generated this portrait from a few of the generic-looking strategists.
Likewise, his followers here are the generals who likely followed him against the Yellow Turban rebellion. This test involved changing a few stats around here and there, and names, but did not change any name lengths.
For those interested in a more complex Wei mod, James is currently working on one.

Above: The editor in action. The list of officers to the left sorts; a color sprite and portrait preview feature was added more recently thanks to a considerable amount of work on the part of James, who has also created the most complex set of changes to DOAE yet – involving manual text tweaks (something too ambitious for me), pointer updates, and semi-historical officer locations and stats.

The weirdest issue I ran into was probably the set of pointers for the townspeople. By updating officer info and pointers, but not updating townsperson pointers, I ended up with some very odd-looking sprites – in one case, Song Yong and Song Ren turned invisible.
In another case, everyone in town turned into a rather bizarre red scholar-type sprite. Kind of creepy.
That’s it for now. Later on, this page may become a repository for arcane DOAE hacking knowledge. For now, if you want that, you’ll have to stop by LYS’ forum.
Link wrote:
I downloaded Destiny of an Editor, but I don’t have a .NET framework. Is there any other way to use it without having a .NET framework?
Posted on 09-Dec-08 at 5:20 am | Permalink
niahak wrote:
Unfortunately, there is not.
You should be able to download the .NET framework from Microsoft here.
In other news, thanks for reminding me to update the version I have posted here. I’ve never actually known how many people find it here.
Posted on 09-Dec-08 at 7:14 pm | Permalink
Link wrote:
Well then, does the .NET framework take up much space or change anything on the desktop? You see, this is my parents’ computer right now.
Posted on 10-Dec-08 at 1:45 am | Permalink
niahak wrote:
.NET unfortunately takes up about 160 MB. It doesn’t change anything on the desktop, though.
Posted on 10-Dec-08 at 6:49 pm | Permalink
Xiang Yu wrote:
Is there a way to import your own portraits into editor? I tried using Cao Cao’s portrait from DOAE 2. I changed its bit depth value to 4 bit like the rest of the portaits and sliced it up into 6 pieces and named it just like the rest, but when I would start the game, I just kept getting Zhang Jao’s portrait.
Posted on 11-Dec-08 at 6:53 am | Permalink
niahak wrote:
Ahh… unfortunately not in my editor. I’m afraid I didn’t properly explain how all that works in the documentation because it was a spur-of-the-moment addition.
That said, there *is* a relatively easy way to do it using FEIDIAN ( http://feidian.sourceforge.net/index.html ). I don’t have the numbers on-hand, but whenever LordYuanShu.com’s forums come back up I wrote a moderately detailed guide there on how to do it.
If you’re still interested, I can look into where I might’ve stored the appropriate numbers on my computer.
Although I am curious – how in the heck did you manage to get the bit-depth down to 4? I looked *everywhere* and I couldn’t find a single image processing program that was willing to do it without starting at 4-bit.
Posted on 11-Dec-08 at 6:52 pm | Permalink
Xiang Yu wrote:
Thanks for the response! If its not too much trouble that would be great if you could find out how you did it. LYS forums are still down, so I can’t see how you did it before.
As for your question, I used Imagebadger Image Converter (http://www.download.com/ImageBadger-Image-Converter/3000-2192_4-10322577.html).
If you want a step by step walkthrough how to use it without losing quality of picture go here (http://forums.joe.to/viewtopic.php?f=163&t=47810&view=unread) and start reading around step 8.
Posted on 11-Dec-08 at 9:45 pm | Permalink
Link wrote:
I have one more question. The .NET framework has 22.4 MB, and can you delete it once you download it?
Posted on 12-Dec-08 at 3:37 am | Permalink
niahak wrote:
Xiang Yu – I’ll email you the details. I’d post them but it’s pretty in-depth and they’ll be back on the LYS forum whenever they manage to get things back up. Thanks for the link!
Link – I’m not sure if you can uninstall it once you have it already
Posted on 12-Dec-08 at 6:22 pm | Permalink
Xiang Yu wrote:
Awesome! I appreciate it!
Posted on 12-Dec-08 at 7:22 pm | Permalink
Link wrote:
OK, I installed .NET, but I don’t know how to work things out. I filled in all the squares, but it doesn’t save!
Posted on 17-Dec-08 at 9:37 pm | Permalink
Link wrote:
I now see the problem. COuld you give me a link where I can download just in time debugger?
Posted on 18-Dec-08 at 4:31 am | Permalink
niahak wrote:
Sorry Link, I had no internet connection for a couple weeks
You shouldn’t need a JIT debugger… are you remembering to save each officer once you’re done editing and to export the completed ROM afterward?
Posted on 05-Jan-09 at 10:29 am | Permalink
Zamza wrote:
Is there anyway to change an officer’s AP? I moved Zhou Tai to Chang Sha and for some reason his AP jumped up to 150, which is way too high at that point in the game.
Posted on 25-Feb-09 at 11:28 pm | Permalink
niahak wrote:
Yes, there is. Changing an officer’s sprite color changes their AP (that’s what the numbers there are for).
I’ve also updated the link here to point to the latest version, which has several improvements. If you want faster responses to questions, though, you could try LordYuanShu’s forums (linked at the top of this page).
Posted on 25-Feb-09 at 11:53 pm | Permalink
Zamza wrote:
Oh, thank you very much, that makes sense. And I thought that reply was plenty fast.
Posted on 26-Feb-09 at 12:00 am | Permalink
niahak wrote:
You got lucky, as I only check this site at nighttime
LYS’ place never sleeps.
Page updated for latest release of DoaEd – it should make your life a lot easier. Also a text editing tool’s been added.
Posted on 26-Feb-09 at 12:06 am | Permalink
Destiny of an Emperor Yuan Shu Mod | Lord Yuan Shu wrote:
[...] No Liu Bei, Guan Yu, Zhang Fei, etc going through Destiny of an Emperor. Thanks to Niahak and his Destiny of an Editor, officers can be switched around and edited. Naturally, the first use I thought of was a Yuan Shu [...]
Posted on 26-Apr-09 at 1:59 am | Permalink
sonic.penguin wrote:
Niahak, this is sonic penguin. LYS is down atm. Was wondering if you could ADD the hex code to the text editor in a little box. For example, Retreat they are too strong is CC i think. Would this be doable to have this “show” in the editor when selecting a certain text?
Posted on 05-Nov-11 at 10:16 am | Permalink
niahak wrote:
I think it would be, as long as there’s a direct link between the location of the text rom-wise and the marker for it. I’ll have to get a few sample markers (e.g. the CC you point out) to get a bearing on how that looks.
Posted on 05-Nov-11 at 10:19 am | Permalink
DestinyOfAnEmperor wrote:
Haha nice, LYS was down for a little bit and sonic.penguin came here.
Posted on 19-Nov-11 at 12:21 pm | Permalink