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 5, 2011 at 6:54 am #39715
jungle
ParticipantCan I ask you a question ludmeister, you said :
Quote:To make Shui Xing hit all enemy generals, therefore, we'd change 0x3bb45 from "80" -> "00", and 0x3bb64 from "00" -> "80". This means that Shui Xing needs no targeting from the player, and that it hits all enemy officers.You said Shui Xing but I'm not sure I know that's actually was it, would you explain to me why you know it was Shui Xing?
And will please tell me how to find the right address for Zeal, I'd like to make it hit all allied generals just once use.
November 5, 2011 at 6:15 pm #39716ludmeister
ParticipantMan, this place got blowed up real good this morning/early afternoon!
Jungle, I'll have to answer your question a bit later. I'm heading out soon, but will be back later tonight.
When all else fails... manipulate the source code.
November 5, 2011 at 6:19 pm #39717MiDKnighT
ModeratorTwo down…
– Need to rearrange code to fit 8 tactics in battle menu. I'm thinking we might need to load it into memory from a new ROM page when a battle starts.– DONE BY MIDKNIGHTChanges:
0x3FFF0: FF020AFAF82292FAF83E92FF
0x3EDD0: E0
0x3EE00: FF
0x3EBB8: FAF80EB7F80EB7FF
I was going to find a more elaborate way to do this but the code I was looking at was called so much it was impractical to switch pages. So stuck some stuff at 0x3FFF0 in the sliver of space that is there.
– Tactic names aren't displayed properly in the tactic menu with the change above.DONE BY LUD– Each general has 6 tactics stored in memory starting at $65A0. Would have to expand that to 8.
– Have to rearrange status page to fit 8 tactics. I have some ideas on this.
November 5, 2011 at 6:23 pm #39718Lord Yuan Shu
KeymasterQuote:Man, this place got blowed up real good this morning/early afternoon!Yep, one of the admins around here (Junsuijin) hosts our websites and occasionally it requires a manual reset. Today it took a bit because the software was being updated.
Nice work as always dudes.
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingNovember 5, 2011 at 6:58 pm #39719MiDKnighT
ModeratorQuote:True, that. What's nasty from the execution side of things is that the AI will need to know where to get its tactics from (and pull from 8 possible), and I'm not quite sure how that will be done as of yet. Now, one clue I've found is that there are 5 places in the ROM where the following code pattern executes (0x3b72a, 0x3b799, 0x3d470, 0x3df35, and 0x3e0d1):0A- ASL
85 F3- STA $00F3
0A- ASL
65 F3- ADC $00F3
This effectively multiplies the Accumulator by 6… and I'm not able to think of anything else that comes in multiples of six other than tactics.
Found something… Liu Bei is my 2nd general. So it starts reading his tactics at 06 (ie… 65A6). Here's the code where it's getting the 6 when reading his status page:
:0601:20 9E C4 JSR $C49E
:0604:A4 73 LDY $0073 = #$00
:0606:D0 0C BNE $0614
:0608:A5 4A LDA $004A = #$01
:060A:0A ASL <– 2
:060B:85 F3 STA $00F3 = #$02
:060D:0A ASL <– 4
:060E:65 F3 ADC $00F3 = #$02 <— 6
:0610:65 54 ADC $0054 = #$00
:0612:10 07 BPL $061B
…
Then it stores 6 in "Y" and…
…
:0649:B9 80 65 LDA $65A0,Y @ $65A6 = #$00
You can change this code in the 0x3B72# area…
For battles it is here:
00:DF24:98 TYA
00:DF25:0A ASL
00:DF26:85 F3 STA $00F3 = #$10
00:DF28:0A ASL
00:DF29:65 F3 ADC $00F3 = #$10
00:DF2B:A8 TAY
00:DF2C:60 RTS
I think the solution here is to do ASL ASL ASL instead of messing with the $00F3 stuff:
3B728: A54A0A0A0AEAEAEA
3DF36: 0A0AEAEAEA
I tried this and it displays the tactics right but for some reason when I pick them in battle it's picking the wrong tactics. Will check on that…
November 5, 2011 at 8:49 pm #39720DragonAtma
Moderator"ASL ASL ASL"? We already get enough of that from desperate chatters looking for a significant other! :Þ
November 5, 2011 at 8:54 pm #39721MiDKnighT
ModeratorGot it Lud! 3 down!
– Need to rearrange code to fit 8 tactics in battle menu. I'm thinking we might need to load it into memory from a new ROM page when a battle starts.– DONE BY MIDKNIGHT– Tactic names aren't displayed properly in the tactic menu with the change above.DONE BY LUD– Each general has 6 tactics stored in memory starting at $65A0. Would have to expand that to 8.DONE BY LUD AND MIDKNIGHTOverall changes:
0x3FFF0: FF020AFAF82292FAF83E92FF
0x3EDD0: E0
0x3EE00: FF
0x3EBB8: FAF80EB7F80EB7FF
0x3B799: "0a85f3 0a65f3" -> "0a0a0a eaeaea"
0x3B7A3: "06" -> "08"
0x3B804: 09
0x3E0DD: "ca65" -> "d865"
0x3B72A: 0A0A0AEAEAEA
0x3DF36: 0A0AEAEAEA
So far it looks good, anybody who can test this let me know if it works for you.
– Have to rearrange status page to fit 8 tactics. I have some ideas on this.
November 5, 2011 at 10:37 pm #39722MiDKnighT
ModeratorQuote:– Have to rearrange status page to fit 8 tactics. I have some ideas on this.Not a perfect layout but it's a start:

Changes:
0x3B74B: 07 <– number of tactics
0x3EA3C: ABF9 <– position of name (messing up the battle screen, need to move to EFF9?)
0x3EA40: FA <– position of name
0x3EA75: F0F80A <– position of tactic box
0x3EA7A: 2310122318120C6E000000 <– fixing top of tactic box
0x3EA8D: FF <– moving equip box
0x3ED99: FF0E <– position of "Soldiers"
The tactic box is hard to place… Not very "Feng shui" as it is now… I'd like to break the tactics into 2 columns of 4 but that'd probably be a big headache.
November 5, 2011 at 11:53 pm #39723Lord Yuan Shu
KeymasterYikes. Not sure I'm a fan of that layout, but to each his own. Wasn't planning on using it. It's cool though that it is even possible to do now, impressive to fit all that data there.
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingNovember 5, 2011 at 11:57 pm #39724MiDKnighT
ModeratorQuote:Yikes. Not sure I'm a fan of that layout, but to each his own.I don't like it either. This is just a start. The data is there, hopefully we can make it fit better. In a perfect world I'd like to put the tactic box in 2 columns at the bottom and spread the other stuff around "Feng shui" like… Anyway it's functional as is, just not very pretty.
November 6, 2011 at 1:17 am #39725sonic.penguin
ModeratorQuote:You said Shui Xing but I'm not sure I know that's actually was it, would you explain to me why you know it was Shui Xing?And will please tell me how to find the right address for Zeal, I'd like to make it hit all allied generals just once use.
This multi-zeal is a function in my mod currently, took some playing around with to get. You know it is Shui Xing by using the list above where this is posted. First 5 tactics @ the address are the 5 fire tactics. The next 5 are Water Tactics. Then comes healing. Then comes others.
Below is what it means:
Tactic ORDER chart
01 Lian Huo, Ye Huo, Yan Re, Da Re, Huo Shen
06 Shui Tu, Shui Xing, Shui Lei, Hong Shui, Shui Long
0b Chi Xin, Tong Xian, Yin Xian, Jin Xian, Wan Fu
10 Ji Rou, Huo Jian, Shui Jian, Ce Mian, Ji Mian
15 Cheng Nei, Yi Xin, Li Jian, Qi Shou, Jie Ce
1a An Sha, Bei Ji, Fu Bing, Tui Lu, Gui Huan
From the Hacking FAQ
Quote:In 0x3bb3f-0x3bc30, a good share of data is stored describing the effects of all the tactics.0x3bb3f-0x3bb5c- How to target the tactic
80 80 00 80 00 80 80 80 00 00 01 01 00 00 01
00 00 00 00 00 00 80 80 01 00 80 01 80 00 00
In this list, the 7th slot would be Shui Xing by counting using the Tactic order chart. Midknight should really label this stuff hehe. First slot is Lian Huo, 5th slot is Huo Shen. 10th slot is Shui Long, etc. So if Im counting right, Shui Xing should be at 3BB45 but this only affects targeting, you still have to change the other value which is "Target all"
November 6, 2011 at 2:04 am #39726ludmeister
ParticipantMiDKnighT-
You are making serious progress, man! Rock on.
My thought for the tactics box (not sure how hard it would be) would go something like this:
The original six tactic list were actually six lines, double spaced. That takes 11 lines. So, we could have 11 lines, eight tactics, like this:
1. Fire tactic
2. —
3. Water tactic
4. —
5. Heal tactic
6. —
7. Misc 1
8. Misc 2
9. Misc 3
10. Misc 4
11. Misc 5
If this would work, you could have the tactic box in the same place as stock DoaE.
Sonic.penguin–
Thanks for your answer to Jungle; you said pretty much exactly what I would have said about Shui Xing. I'm intrigued though… I wasn't sure that multi-Zeal would work. If you found that it does, that's friggin awesome! I would think that the TP cost on that tactic would have to be pretty high for it to be balanced, but it depends on what "balance" you want your mod to have. In fans of stock DoaE, you have some who swear by An Sha/Ji Mian, and some who swear by Bei Ji/Jin Xian/Ce Mian. I actually like the balance presented by this: An Sha/Ji Mian is a more risky mode of attack, all or nothing. If it doesn't work, you're out a lot of tactic points, and you can't conserve tactic points in cutting your losses with Jin Xian. The other tactic set is much less dependent on outside forces, and less risky; plus it can take down bonafide enemy tacticians with aplomb.
When all else fails... manipulate the source code.
November 6, 2011 at 2:27 am #39727sonic.penguin
ModeratorIt took a lot of tinkering, but got it to work. Heres the thing. I made multi-zeal to be @ a cost of 20 TP… now before you think thats too low, I moved Gui Han to be learned around Dong Zhou area which makes it useful since $$ is low for gullwings, and replaced Gui Han w/ Jie Ce for a late game strategy changer. Since bei ji can now be negated, I had to make it less cost TP wise.
Most people now use AnSha + savestae
Also it makes battles move faster and Zeals officers who would otherwise be too stupid to use it, making those brawn no brains officers semi-useful.
November 6, 2011 at 3:06 am #39728ludmeister
ParticipantQuote:Most people now use AnSha + savestateWhatever you or I or anyone else thinks about that… nothing a modder can do can change that… except maybe switching An Sha for a Life tactic? ;-)
Regardless… congratulations on getting Multi-Zeal to work. Did it work just by modifying the tactic data, or did you have to dig a little deeper into code?
When all else fails... manipulate the source code.
November 6, 2011 at 12:47 pm #39729MiDKnighT
ModeratorQuote:Midknight should really label this stuff hehe.Write it in a way you think is easily readable and I can post it.
Quote:The original six tactic list were actually six lines, double spaced. That takes 11 lines. So, we could have 11 lines, eight tactics, like this:Just looked into that. Seems to use a generic box loading function which means that if I figured out a way to single space it it would be that way for every box. Back to the drawing board… If you can think of a way to do this I'd love to hear it.
Anyway, I'm adding what we have for the 8 tactics to the guide.
-
AuthorPosts
- You must be logged in to reply to this topic.

