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, 9 months ago by
MiDKnighT.
-
AuthorPosts
-
August 4, 2012 at 9:05 pm #40176
MiDKnighT
ModeratorQuote:Before the whole tactic revamp, I suggested having fire be exclusively stronger but one-target, water exclusively weaker but all-target, and both allowed everywhere.That's really up to the modder. For the Yuan Shao mod they will switch off. Sometimes fire will be all-target. Sometimes water will be all-target. At any given time you will have a stronger one-target and a weaker all-target.
Quote:That'd still probably be a good idea. Now, all we need is to prevent the code from worshipping EA so much. :ÞEA = No operation. Basically telling it not to do what it was going to do. Like see if we are next to water…
August 7, 2012 at 2:21 pm #40177MiDKnighT
ModeratorIPS patch is now 2 patches.
Patch 1 adds duel text and formats new code areas
Patch 2 adds all the other enhancements
The benefits of this are that you only have to add the duel text once and patch 2 allows you to keep all your custom lists:
0x4450-0x446F = mismatch list – winner
0x4470-0x448F = mismatch list – loser
0x4490-0x44CF = no kill list
0x44D0-0x44EF = rare duel list (for rulers mainly)
0x44F0-0x450F = bigger no an sha list
0x5710-0x572F = tactic no fail list
0x5730-0x573F: STR bonus list (put tactic ID in this list for STR bonus)
0x5740-0x574F: AGI bonus list (put tactic ID in this list for AGI bonus)
0x5750-0x575F: INT bonus list (put tactic ID in this list for INT bonus)
August 7, 2012 at 2:21 pm #40178MiDKnighT
ModeratorIPS patch is now 2 patches.
Patch 1 adds duel text and formats new code areas
Patch 2 adds all the other enhancements
The benefits of this are that you only have to add the duel text once and patch 2 allows you to keep all your custom lists:
0x4450-0x446F = mismatch list – winner
0x4470-0x448F = mismatch list – loser
0x4490-0x44CF = no kill list
0x44D0-0x44EF = rare duel list (for rulers mainly)
0x44F0-0x450F = bigger no an sha list
0x5710-0x572F = tactic no fail list
0x5730-0x573F: STR bonus list (put tactic ID in this list for STR bonus)
0x5740-0x574F: AGI bonus list (put tactic ID in this list for AGI bonus)
0x5750-0x575F: INT bonus list (put tactic ID in this list for INT bonus)
August 7, 2012 at 3:26 pm #40179MiDKnighT
ModeratorSince I moved the agility based attacks, I've been noticing that it gets crazy… People hitting you 4-5 times and such. I'm going to check on that and if we are agreed I will tone down the AGI based attacks some.
August 7, 2012 at 3:34 pm #40180sonic.penguin
ModeratorYes I would agree, my guys are getting hit like 10 times lol
August 7, 2012 at 8:31 pm #40181DragonAtma
ModeratorI agree.
If the (attcker's agi) > (defender's agi + rand(0..127)), then two attacks. Otherwise, one attack.
August 7, 2012 at 8:33 pm #40182MiDKnighT
ModeratorIt seems to be a lot more reasonable after fixing the 2 bugs I introduced when I moved it.
August 8, 2012 at 2:30 pm #40183MiDKnighT
ModeratorQuote:I just found something. It seems the game thinks that anything in slot 01 is a water tactic so you get that "Sorry you need to be near a river" message. To disable that just set:0x39EC6: 01->FF
Granted, changing it would also imply you would have to change what tactics enemies use then unless they still only use slot 01 near water.
Solution:
0x3A90D: EAEAEAEAEA
Why the solution works:
00:A8F6:BD 97 A8 LDA $A897,X @ $A89A = #$06
00:A8F9:85 F4 STA $00F4 = #$7F <– Look at tactic, see if it is slot 00
00:A8FB:D0 07 BNE $A904 <– If not, skip ahead
00:A8FD:AE 20 62 LDX $6220 = #$00 <– Check if we are near water (01 = yes)
00:A900:F0 02 BEQ $A904 <– If not near water, skip ahead
00:A902:E6 F4 INC $00F4 = #$7F <– Increase to slot 01 (water)
So the solution just removes these 2:
00:A8FD:AE 20 62 LDX $6220 = #$00 <– Check if we are near water (01 = yes)
00:A900:F0 02 BEQ $A904 <– If not near water, skip ahead
So from a tactic perspective, the enemy thinks they are always near water so they will use slot 01. If I recall they will still use slot 00 (fire tactics) but just not as much. They will mix between slot 00 (fire) and slot 01 (water).
For a better solution add:
0x3A8F0:
AD290F85F3A5F3DD67A89006E88A2907
D0F38A2907AABDA3E485F4D007EAEAEA
EAEAEAEAC900F00CA5AD65AEE5AC2901
F002EAEA200CDFA90885F3BEA065BDA1
This also pretty much evenly distributes tactics so now slot 03 isn't just used when HP is low.
August 15, 2012 at 2:14 am #40184sonic.penguin
ModeratorJust clearing this up:
Editing the display of food/cost in the merchant menu addresses:
3EBD7-3EBE1 = 300- 100
3EBE3-3EBED = 3000- 1000
3EBEF-3EBF9 =30000-10000
Keep in mind that the ACTUAL food cost is edited @ addresses:
392D7 = 2C B8 30 01 0B 75
That translates to 300 (012C), 3000 (0BB8), and 30000 (7530).
August 15, 2012 at 5:49 am #40185MiDKnighT
ModeratorNice, I'll add that to the guide verbatim.
August 20, 2012 at 10:02 pm #40186MiDKnighT
ModeratorFound something… After Sima Yi kills Cao Pi, a bunch of Wei generals automatically become encounter-able and recruit-able. The list is at: 0x37FF2:
7273747576777A7B838485869596FF
To prevent these generals' status from changing, just change this all to "FF". Or to shorten the list put the general IDs then FF at the end. The code is:
$E400:9D 00 63 STA $6300,X @ $6395 = #$98 A:90 X:95 Y:0C S:2A P:NvUbdIzc
$E403:C8 INY A:90 X:95 Y:0C S:2A P:NvUbdIzc
$E404:D0 F1 BNE $E3F7 A:90 X:95 Y:0D S:2A P:nvUbdIzc
$E3F7:B1 00 LDA ($00),Y @ $B43F = #$96 A:90 X:95 Y:0D S:2A P:nvUbdIzc
$E3F9:C9 FF CMP #$FF A:96 X:95 Y:0D S:2A P:NvUbdIzc
$E3FB:F0 09 BEQ $E406 A:96 X:95 Y:0D S:2A P:NvUbdIzc
$E3FD:AA TAX A:96 X:95 Y:0D S:2A P:NvUbdIzc
$E3FE:A9 90 LDA #$90 A:96 X:96 Y:0D S:2A P:NvUbdIzc
$E400:9D 00 63 STA $6300,X @ $6396 = #$80 A:90 X:96 Y:0D S:2A P:NvUbdIzc
$E403:C8 INY A:90 X:96 Y:0D S:2A P:NvUbdIzc
$E404:D0 F1 BNE $E3F7 A:90 X:96 Y:0E S:2A P:nvUbdIzc
$E3F7:B1 00 LDA ($00),Y @ $B440 = #$FF A:90 X:96 Y:0E S:2A P:nvUbdIzc
$E3F9:C9 FF CMP #$FF A:FF X:96 Y:0E S:2A P:NvUbdIzc
$E3FB:F0 09 BEQ $E406 A:FF X:96 Y:0E S:2A P:nvUbdIZC
$E406:A6 02 LDX $0002 = #$03 A:FF X:96 Y:0E S:2A P:nvUbdIZC
$E408:A4 03 LDY $0003 = #$01 A:FF X:03 Y:0E S:2A P:nvUbdIzC
$E40A:60 RTS A:FF X:03 Y:01 S:2A P:nvUbdIzC
So once it sees "FF" it stops reading the list.
August 20, 2012 at 11:03 pm #40187sonic.penguin
ModeratorInteresting, was wondering about that one actually myself. Perhaps now it can be changed to allow for other ID officers to change as well and make them recruitable right?
August 21, 2012 at 12:21 am #40188MiDKnighT
ModeratorAugust 21, 2012 at 10:08 pm #40189sonic.penguin
ModeratorA few things w/ the IPS patch 1.2:
1. It keeps changing my soldier bars
2. It changes my values @ 4537 back to 150 INT
3. TP Tables get modified
August 22, 2012 at 12:36 pm #40190MiDKnighT
ModeratorTP tables get modified? Which ones? I thought I fixed that…
I'll only change the soldier bars and 4537 values in patch 1. Patch 2 won't touch them. I'll release a new IPS patch today with the changes.
-
AuthorPosts
- You must be logged in to reply to this topic.

