Home › Forums › Destiny of an Emperor › Destiny of an Emperor RH Guide ( MOVED! to http://doaerhguide.wikidot.com )
Tagged: Battles, Destiny of an Editor, Destiny of an Emperor, Destiny of an Emperor hacking, Destiny of an Emperor Mods, Destiny of an Emperor Rom, DoaE rom, DoaE Rom hacking, FCEUX, Feidian, Graphics, hacking DoaE, Map, NES ROM hacking, nes8 template, Portraits, ROM Hacking, ROM hacking information
- This topic has 985 replies, 17 voices, and was last updated 2 years, 11 months ago by
MiDKnighT.
-
AuthorPosts
-
November 19, 2011 at 3:09 pm #39895
sonic.penguin
ModeratorQuote:I don't know if this is the right place to post a request like this, but here goes:I'm getting ready to release version 2.0 of my mod, and I think I'm going to put up a separate little niche for the mod on my site, and if all goes according to plan I should have it up by Monday next week. The niche will be located in the /doae/ directory at my site. At the very least, I would love to be able to link to this Hacking Guide as part of a Resources section in that page, as a respect for all the knowledge that I have soaked in from all of you, but only if MiDKnighT, the contributors to the guide, and LordYuanShu are amenable to the idea. Second, if you linked my name to my website in the guide (just where I'm listed at the top), I would be most grateful. Actually I think it'd be nice to put links to anyone listed up there who has a Destiny of an Emperor site.
Please let me know what think. I hope I haven't overstepped my bounds here, and if I have please feel free to let me know.
WAY outta bounds! :cactuar:
actually, im sure its fine, its just that posting here on the site makes it easier for people to DL and test, especially in beta stages of a mod.
Quote:ok…. i gotta know.what does this php/feidian thing do, and why hasn't someone made a doae specific tool for it ?
surely it wouldn't be difficult to whip something into shape quickly for it ?
i might volunteer.
gimme infos.
you need PHP to make feidian work. Its all DOS based. It essentially "injects" the 128 line portrait strips into the game rather than using tile layer pro to edit each cell which is a HUGE pain to get to work correctly. Just gotta make sure your colors are correct. (Green, Blue, White, Black)
green turns whitish/pink
blue turns redish
black stays black
white stays white
November 19, 2011 at 3:17 pm #39896Niahak
ModeratorQuote:ok…. i gotta know.what does this php/feidian thing do, and why hasn't someone made a doae specific tool for it ?
surely it wouldn't be difficult to whip something into shape quickly for it ?
i might volunteer.
gimme infos.
FEIDIAN is a generic tool intended to insert/extract images to any format. As long as you understand how the format is laid out, it's pretty easy to 'teach' feidian how to do it.
The reason I haven't added image insertion (other than time) is that I'm not totally sure how to handle image management on the whole. I don't want to assume everyone is going to try to insert images in a precise format, so I'd need to do some analysis on the image to determine how many colors there are… add a preview feature so the user can make sure it will look right, add cropping etc if they try to add a portrait of the incorrect size…
If you'd like to make such a quick utility, unfy, I can help describe the image format. It's pretty wild, though.
November 19, 2011 at 3:59 pm #39897sonic.penguin
Moderatorupdate looks great so far Niahak, will be sure to test for bugs on it shortly. I like how we can select chapters now for certain cells, it makes the game not so "linear".
Are you planning on doing battle taunts/closers next?
November 19, 2011 at 4:56 pm #39898Lord Yuan Shu
KeymasterQuote:Second, if you linked my name to my website in the guide (just where I'm listed at the top), I would be most grateful. Actually I think it'd be nice to put links to anyone listed up there who has a Destiny of an Emperor site.Ah, so you wish to bleed the page-rank out of my precious forum huohu
Haha, just kidding. It's a sound idea, I'll add links to all the people with sites, they've certainly earned it. MiDKnighT, if you have a site to link to feel free to add one, otherwise I'll just link to your username here.
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingNovember 19, 2011 at 5:21 pm #39899MiDKnighT
ModeratorSure lud just give me the link.
November 19, 2011 at 5:27 pm #39900Lord Yuan Shu
KeymasterAlready added them all huohu When you get the new page Lud, just let me know and I'll change the link address to it.
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingNovember 19, 2011 at 10:33 pm #39901ludmeister
ParticipantQuote:posting here on the site makes it easier for people to DL and test, especially in beta stages of a mod.Absolutely, and I want to help in my own small way to get the word out about this awesome body of work. I plan to keep posting here as I have interesting things to say as well… when Meteorstrike makes his grand entrance and perhaps begins a DoaE2 hacking document… well, I've uncovered a few things or to about DoaE2 as well :P
Quote:It's a sound idea, I'll add links to all the people with sites, they've certainly earned it.Too kind. Thank you for entertaining the idea, the last thing I wanted to do was to come off as self-serving.
Quote:Sure lud just give me the link.Quote:When you get the new page Lud, just let me know and I'll change the link address to it.It will be http://jeffludwig.com/doae2. I'm going to attempt to get this page up tonight when The Little Dudeâ„¢ goes to sleep for real tonight. May as well not change the link until Monday, though… that'll give me some time to get whatever images I need and such.
When all else fails... manipulate the source code.
November 20, 2011 at 12:48 am #39902DragonAtma
Moderator*thwaps sonic.penguin*
Edit > Import Bitmap
November 20, 2011 at 1:06 am #39903sonic.penguin
Moderatorlol, well sorry, but anyways, youre gonna love the portraits im working on for the Rise of Ieyasu Mod
November 21, 2011 at 3:01 am #39904ludmeister
ParticipantAnother little bit of hacking fun, one of those "finishing touches" when you are nearing completion of all the mods that y'all are working on…
Title Screen text hacking
The title screen, replete with copyright info, produced by yadda yadda yadda lives @ 0x3499f-0x34a4f, like so:
0x34990 —- —- —- —- —- —- —- —- |
T0x349a0 1C21 AB0B 1F24 2217 0A0A 2223 1021 23FF | M~~~PUSH__START|
0x349b0 21E5 172A 0A17 1821 1E22 1718 0A1C 1E23 | ~~~c_HIROSHI_MOT
0x349c0 1E1C 1828 100A 0109 0809 2225 122A 0A1C | OMIYA_1989~~~c_M
0x349d0 0A10 1D13 0A1C 0A12 1E63 0A01 0908 0922 | _AND_M_CO._1989~
0x349e0 650F 2A0A 2217 2414 1822 1710 0A01 0908 | ~~c_SHUEISHA_198
0x349f0 0922 A21D 1F21 1E13 2412 1413 0A11 280A | 9~~~PRODUCED_BY_
0x34a00 1210 1F12 1E1C 0A12 1E63 620A 1B23 1363 | CAPCOM_CO.,_LTD.
0x34a10 7C22 E613 1210 1F12 1E1C 0A24 6322 6310 | /~~~CAPCOM_U.S.A
0x34a20 6362 0A18 1D12 6323 290B 1B18 1214 1D22 | .,_INC.~~~LICENS
0x34a30 1413 0A11 2823 6518 1D18 1D23 141D 131E | ED_BY~~~NINTENDO
0x34a40 0A1E 150A 101C 1421 1812 100A 181D 1263 | OF_AMERICA_INC.
Note that I used the ~ character to render formatting bytes.
This renders into these commands/lines of output (I didn't capitalize every letter, just so I could read it better):
21AB 0B Push start
21E5 17 c Hiroshi Motomiya 1989
2225 12 c M and M Co. 1989
2265 0F c Shueisha 1989
22A2 1D Produced by Capcom Co., Ltd./
22E6 13 Capcom U.S.A., Inc.
2329 0B Licensed by
2365 18 Nintendo of America Inc.
The first two bytes above (like 21AB) are the values in the PPU table where the next line of text will begin to be stored. Every line on the screen is 0x20 bytes long. These byte pairs aren't exactly an (X, Y) pair… it's not that simple. Suffice it to say that most of you will want to write text on lines beginning with 21a0, 21e0, 2220, 2260, 22a0, 22e0, 2320, and 2360. The third byte (like 17) is much more understandable– it is how long the line is (23 characters).
Once you have your text edited and looking pretty, DoaE begins to tell the story. It wipes the screen… and textual abnormalities happen. Well, there's another little place that tells DoaE how to wipe the screen after it's done showing the copyright info:
This string that determines how the Title Screen is wiped is at 0x1d340 – 0x1d362:
21AB 4B 0A
21E5 57 0AFF
2225 52 0A
2265 4F 0A
22A2 5D 0AFF
22E6 53 0A
2329 4B 0A
2365 58 0AFF
Fairly similar to how the Title Screen text is formatted above. The differences are that the length byte (#3) is OR'ed by 40… presumably used as a "fill" function by the DoaE engine. The fourth byte ends up being the "fill character". In this case, it is "0a", or a space.
That's all there is to it!
When all else fails... manipulate the source code.
November 21, 2011 at 3:26 am #39905Zhuge Liang
ParticipantHehe I've done this title screen hacking a few years ago (maybe sometimes in 2009). It was the only so-called hacking tutorial I could do by that time. Good job revealing it, lud.
Here's the pic, it was not a mod, just for testing purpose
http://i363.photobucket.com/albums/oo72/zhugeliang1/snap0000-3.jpg
DoaE gave birth to Huo Hu.
November 21, 2011 at 3:53 am #39906DragonAtma
ModeratorGood work! Your next task — if you choose to accept it — is to find the large graphic where they swear brotherhood.
November 21, 2011 at 5:04 am #39907MiDKnighT
ModeratorAtma that pic is easily visible with nana so it is easy to remove. Since it is somewhat jumbled up in the ROM replacing it with another pic would not be so easy.
November 21, 2011 at 1:07 pm #39908DragonAtma
ModeratorOn a side note, if we used the ludmeister formula (multiplied by tactics power, of course) for fire & water tactic damaged skills, that should work fine aside from one slight change — the 8192-65535 multiplier should be changed from (soldiers/1024)+37 to (soldiers/1024)+39. Otherwise, they'll have a multiplier of 47 (well, 46.99) at 8191 soldiers but only 45 at 8192 soldiers! :Þ
And keep in mind that Atma never used this… nana.
November 23, 2011 at 6:22 pm #39909MiDKnighT
ModeratorQuote:Can I ask you a question MidKnight?About item placements, it seems that I can find all the items values that lie within boxes in hex editor, but when I search for items that are placed outside boxes, it happened that I couldn't find where they are. For expamle, I read your guide and I know the values of Dead Wood and put them into search frame but they didn't appear in hex editor. I tried a number of box-items and they worked out perfectly except the likes of Dead Wood.
And here the values for Dead Wood I put on, please see if I am to be mistaken.
03 1C 04 14 1E
I finally got to this. I traced this when picking up dead wood:
:066A:BD 00 8A LDA $8A00,X @ $8A03 = #$03
:066D:C5 60 CMP $0060 = #$03
:066F:D0 29 BNE $069A
:0671:BD 40 8A LDA $8A40,X @ $8A43 = #$1C
:0674:C5 61 CMP $0061 = #$1C
:0676:D0 22 BNE $069A
:0678:BD 80 8A LDA $8A80,X @ $8A83 = #$04
:067B:C5 62 CMP $0062 = #$04
:067D:D0 1B BNE $069A
:067F:BD C0 8A LDA $8AC0,X @ $8AC3 = #$14
:0682:C5 63 CMP $0063 = #$14
:0684:D0 14 BNE $069A
:0686:BD 80 66 LDA $6680,X @ $6683 = #$00
:0689:D0 12 BNE $069D
:068B:FE 80 66 INC $6680,X @ $6683 = #$00
:068E:BD 00 8B LDA $8B00,X @ $8B03 = #$1E
That means the addresses are stored in separate arrays.
$8A00,X = 0x30A10,X = Map address value 1
$8A40,X = 0x30A50,X = Map address value 2
$8A80,X = 0x30A90,X = Map address value 3
$8AC0,X = 0x30AD0,X = Map address value 4
$8B00,X = 0x30B10,X = Item
For dead wood X = 03. So if you wanted to change the location of dead wood here are the addresses to change:
0x30A13 = Map address value 1
0x30A53 = Map address value 2
0x30A93 = Map address value 3
0x30AD3 = Map address value 4
0x30B13 = Item
Will stick this in the guide.
-
AuthorPosts
- You must be logged in to reply to this topic.

