Home › Forums › Destiny of an Emperor › DoaE Portrait Editing
- This topic has 7 replies, 3 voices, and was last updated 17 years, 8 months ago by
DragonAtma.
-
AuthorPosts
-
September 4, 2008 at 7:37 pm #4884
Xian Zhu Xuande
ParticipantHey guys!
I’ve seen some general discussion about this in the forum, and some rather general discussions about how it might be done, but I remember finding it to be somewhat tough to follow. I’m sorely tempted to put some more work into 2.0 when I get home and one thing I’d like to start with is a portrait or two.
Can anyone offer detailed step-by-step instructions on how to do this?
September 4, 2008 at 10:59 pm #35929Niahak
ModeratorThe method I use follows, but it’s more or less impossible unless you can figure out a way to keep a 2-BPP bitmap around. Paint can save one if you open it and don’t try and use "save as". No program I found in a pretty lengthy search could create one.
Lazy so I’m re-copying this from the Gemfire mod topic:
Mini-Tutorial
FEIDIAN is here. You want to download the main program and the Tileset linked on the given page; to get all the portraits from DoaE, use the command line:
php feidian.php -cr nes8,6,128,0x008810 doae.nes output
i.e. launch FEIDIAN in "read" with a custom tileset (-cr)
use the NES8 tileset for color (nes8)
each portrait is 6 tiles wide (6)
there are 128 portrait entries (128)
start at address 0x008810
use the rom doae.nes [or your rom name]
export to output8x8.bmp
that gets you the first set of 128. The second set is separate:
php feidian.php -cr nes8,6,128,0x00C810 doae.nes output2
Note this will just give you a HUGE bmp with 128 portrait rows on each.
To insert, you reverse this process; for a single portrait, you want a 48×48, 2bpp BMP (if you can find an image editor that can *make* one, let me know! Paint, GIMP and Paint.NET all failed me; Paint can *save* one if you open one that’s already 2bpp)
then you do
php feidian.php -ci nes8,6,6,0x008810 erin.bmp doae.nes
to replace Liu Bei’s portrait (at address 0x008810) with erin.bmp.
Not sure what DragonAtma does; possibly a manual edit of the tiles? There’s got to be some way to meet in the middle on this stuff.
September 4, 2008 at 11:24 pm #35930Xian Zhu Xuande
ParticipantWow… FEIDIAN is written in the same language I used to write Kongming’s Archives. :lol:
What an odd person… so skilled in PHP that he uses it to write what should be a desktop application. How about that?
So, Niahak, have you ever done something like this? Have you ever replaced graphics? If so, did you do it this way, or did you use some other method? If anything, I think it would just be cool to give Wang the Tiger a portrait. I already created his portrait in Photoshop. I just need to get it into the ROM.
I sent DragonAtma a PM. Hopefully he shares.
September 4, 2008 at 11:36 pm #35931Niahak
ModeratorYeah, FEIDIAN was written by D :) He’s all over the place.
I have inserted Erin’s portrait from Gemfire into DoaE, but that project sort of died a month ago. This is the method I used for it.
September 5, 2008 at 1:10 am #35932Xian Zhu Xuande
ParticipantSo if I’m understanding this properly, you loaded a graphic that was exported, editing that graphic in Paint of all things, to avoid losing the format, and then re-imported it? Or was there some other way to get a graphic in the proper format?
September 5, 2008 at 1:23 am #35933Xian Zhu Xuande
ParticipantI’m going to try to muck around with this a little…
Do you have everything set up in Windows, still?
If you’ve got a moment to help out with a single portrait, and are willing to do so, hop on AIM! Otherwise I’ll see if I can blunder through this. *Laughs…*
September 5, 2008 at 2:35 am #35934Xian Zhu Xuande
ParticipantNiahak just helped with a most excellent addition to DoaE 2.0.
Thanks so much!
DragonAtma, I hope you can share your own methods!
September 5, 2008 at 5:40 am #35935DragonAtma
ModeratorUnfortunately, I have no quick fixes. For making the pictures, I use MS Paint. For putting it in the rom, I use TLP and put them in pixel by pixel. Yes, it’s slow, but we have no choice…
And in the background, I use Chara Mucker ’99 (a tile editor made for RPG Maker programs) with that oh-so-useful grid activated (set to 8×8 pixels, of course) that matches the tiles oin TLP.
-
AuthorPosts
- You must be logged in to reply to this topic.