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 2, 2011 at 1:09 pm #39640
ludmeister
ParticipantSonic.penguin, 10-16-18 definitely gets the job done "AGI"… if I reading my FCE Ultra PPU Viewer correctly (and your ROM is like mine), 10-36-38 = "Agi". Just uses lower case characters. "AGI" is more like the way the first game showed it.
MiDKnighT, I'm glad to just be one of the guys. The more I read and saw the magnitude of the stuff you all had contributed, I got inspired to open up my DoaE ROM again, to help out if I could. If I find anymore fresh stuff which I found in modifying my ROM, I'll let you all in on it.
And I'm not particularly an assembly guy either (certainly not of Meteorstrike's caliber), but I can read a debugger well enough if I can determine that "Oh, I know what that just did because the game just changed a variable that I know, and so that code will do this, and ahhhh…. that's how they finagled that. Interesting!" And I can write simple arithmetic routines in assembly if I figure out how to place them correctly into existing code, and that's really the tough part.
I'm very intrigued by your example in the guide about changing banks in assembly, that could make for some fun calculations if someone wanted to get indepth about tactics damage/healing calculations… or maybe Agility-based bonus attacks… :-D
The little thought running in my head goes something like this— Take the defender's Agility, add a random # between 1 and 40, and then add 60. If that's less than the attacker's Agility, the attacker gets a free attack. Add another 80. If that's still less than the attacker's Agility, then award a second free attack.
Generous? Perhaps… if, like Jiang Wei, you're fast enough mmwhahahaha
When all else fails... manipulate the source code.
November 2, 2011 at 1:20 pm #39641sonic.penguin
ModeratorThat would be neat to have an agility bonus attack, but almost unbalancing if you slapped an uber AP weapon on them. It would probably be more 'controlable' if you could change weapons to dual strike/multi hit like a bow or tactics and thus more directly control the power of attacks. just my 2 cents
November 2, 2011 at 2:07 pm #39642ludmeister
ParticipantMiDKnighT-
Man, I had the worst time trying to get PHP to even work on my system… until I downloaded your PHP directory. Don't know what kinda PHP-fu you did, but that did the trick.
I found out that you can expand your feidian command when extracting portraits out of Destiny of an Emperor 2 (I couldn't find Cao Cao and Zhang Liao when I extracted graphics out of DoaE2 with your command… *sniff*). Instead of
php feidian.php -cr nes8,6,128,0×10 doae2e.nes d2
Change the "128" to "168" and you should be able to get all of the portraits. Thank you so much for your pioneering work here in this thread, up until yesterday I felt like a total klutz when it came to ROM-based graphics, and didn't touch it unless there was a tool called "FF1 Hackster".
When all else fails... manipulate the source code.
November 2, 2011 at 2:34 pm #39643sonic.penguin
ModeratorQuote:Man, I had the worst time trying to get PHP to even work on my system… until I downloaded your PHP directory. Don't know what kinda PHP-fu you did, but that did the trick.Hehe, a lot of us (most of us) had this issue, but somehow Midknights PHP was a lot more stable than eveyrone elses. Its all kind of a mess to set up but not so bad when its done a few times.
I think in one of these thread we have a few banks of pre-extracted portraits from DOAE2 and some other ones.
November 2, 2011 at 3:01 pm #39644Lord Yuan Shu
KeymasterThe Php I downloaded works now too, though I use MiDKnighT's folder since he already has all the portraits and shit in there.
Quote:Portrait code updated to only use new banks if unknown value is F1 or above (instead of 80).Good idea, will prevent a lot of wierd crashes hopefully
So it's all good? Can I still expand with Niahak's DoaEd feature or should I do it manually ie your steps in the Hacking Guide page 1?
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingNovember 2, 2011 at 4:39 pm #39645MiDKnighT
ModeratorQuote:So it's all good? Can I still expand with Niahak's DoaEd feature or should I do it manually ie your steps in the Hacking Guide page 1?Go ahead and expand via Niahak's feature but replace the portrait code with the code on page 1 after.
November 2, 2011 at 5:19 pm #39646Lord Yuan Shu
KeymasterQuote:2. The assembly part (nasty). OK for the short version, just open your hex editor and paste this into 0x3CFE4 and 0x7CFE4: "4C3083000000". You'd be pasting this over "10044980E6F1".Then copy this into 0x30340: "85158425A011B1F3C9F19004E9E085F1A51510064980E6F18515A4254CDACF"
That's all the magic right there.
So this code, right? 0x3CFE4 + 0x7CFE4 were already that code… (4C3083000000)
But quite a bit was different at 0x30340 so I changed it. Time to see how it goes…
edit – Okay, did all that and this time Huang Shao and Song Ren aren't glitching my game when I try to look at their pictures.
However, I changed Yuan Yin to DoaE 2 Sima Zhao and Zhang Xun to DoaE 2 Wei Yan…..so when I check their general portraits, Yuan Yin is DoaE 2 Wei Yan and Zhang Xun is DoaE 2 Zhuge Liang lol huohu
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingNovember 2, 2011 at 6:13 pm #39647MiDKnighT
ModeratorWhoops…back to the drawing board.
November 2, 2011 at 6:25 pm #39648Lord Yuan Shu
KeymasterMaybe I'll leave the code at 0x30340 instead of changing it. We'll see.
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingNovember 2, 2011 at 6:53 pm #39649ludmeister
ParticipantLooks like changing
00:833C (0x3034c) "E9E0" SBC #$E0
to
"E9E1" (SBC #$E1)
suffices for me. I'm able to see new portraits I injected, and I don't believe I have freezing issues (I did when I attempted to view Mi Zhu's portrait).
When all else fails... manipulate the source code.
November 2, 2011 at 6:58 pm #39650MiDKnighT
ModeratorI think you'd be reading from the wrong ROM page with that though. I'll get a good fix soon.
EDIT: Nope you were right. It was looking one ROM page too high. That's the fix. I'll update page 1. Thanks for the extra eyes lud!
November 2, 2011 at 7:41 pm #39651ludmeister
ParticipantNo prob :-)
When all else fails... manipulate the source code.
November 2, 2011 at 8:19 pm #39652Lord Yuan Shu
KeymasterAh that's awesome Ludmeister, no more glitches. Going to play through here and ensure no glitches and soon a Yuan Shu mod re-release.
Still might try to get the DoaE II Yuan Shu sprite but I just have Windows 7 64 bit machines so I can't use Nana. Though I do see in the MiDKnighT php folder some sprite strips, they are very small though so I can't differentiate who is who but maybe Yuan Shu DoaE 2 is in there.
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingNovember 2, 2011 at 8:23 pm #39653MiDKnighT
ModeratorHe probably is LYS. Check newsprites1.bmp – these are already converted to DoaE1 format.
November 2, 2011 at 8:36 pm #39654MiDKnighT
ModeratorAnd speaking of assembly guys. I actually got a hold of Meteorstrike but he hasn't shown up here yet. Here's part of what he said in the last e-mail:
"I might drop by sometime to the message boards. (Although there's no way in hell I'm going back to GameFaqs. Too much moderator-hypocrisy there.) Funny thing is, since around mid-2010, I was planning on finishing my DoaE 2 work and then making an account to post a shameless self-promotion. :p That's still in the back burner…
Since you guys have been good at crediting sources, I'll share with you some of the map details you're missing, but it's going to have to wait until next time I log on. I got those details in my other computer and I need to expand on the details a bit anyway… I also need to look at the details an re-familiarize myself with them because it's been over 2 years since I touched any code in that tool…"
-
AuthorPosts
- You must be logged in to reply to this topic.

