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 22, 2012 at 9:21 pm #40191
MiDKnighT
ModeratorNew IPS patch uploaded. Changes:
– Nasty stack overflow bugs fixed.
– Patch 2 no longer touches the value at 0x4537.
– Patch 2 doesn't change soldier bars.
– Patch 2 does not change any TP.
– One duel text moved "Are you brave enough to…" was moved to message id 63 to play nicer with DoaEditor. Message id 63 used to be:
[OFFICER] was
badly wounded
in the duel.[>][END]
But we're not using that so replaced it with:
Are you brave
enough to fight
[OFFICER]? [>]
[END]
If you don't want to apply patch 1 again, just change this text in DoaEditor.
August 22, 2012 at 11:43 pm #40192sonic.penguin
ModeratorThank you kind sir :salut:
August 25, 2012 at 6:10 pm #40193sonic.penguin
ModeratorIn the guide you have this:
"Completely moving tactician: Current TP = Max TP (after an inn) and "STRAT" is removed from the menu:"
This is really confusing, so change it to
Tactician Removal
*To remove the need to have a tactician fueling your party TP
*Have the current TP = Max TP (after an inn)
*"STRAT" removed from the menu since it is unnecessary.
August 26, 2012 at 5:46 pm #40194MiDKnighT
ModeratorAugust 26, 2012 at 8:25 pm #40195sonic.penguin
ModeratorEver figure out a way to adjust the price of recruiting officers? I'm experimenting w/ economics in the game a bit more, making cash more valuable so you can't just buy ALL your weapons and armor at once like a penny candy shop.
The same thing for generals and trying to make them worth more than a few hundred gold coins so you can't ALWAYS just buy them on the spot. Already made the steeds worth a fortune, but then again they are useful now w/ double attacks.
August 26, 2012 at 10:44 pm #40196MiDKnighT
ModeratorThe text is:
I might be
convinced to join
your side for[>]
[VALUE] [LVL-SLDR-AMT] gold
coins.[END]
And my (new) defend text is:
I might be
convinced to join
your side for[>]
[VALUE] [LVL-SLDR-AMT] gold
coins.[END]
So knowing what I know about [VALUE] [LVL-SLDR-AMT] I know that the values are stored in $10 and $11. So I see it loading those values starting here:
$A48A:A9 00 LDA #$00 A:08 X:EE Y:00 S:2E P:NvUBdIzc
$A48C:85 11 STA $0011 = #$3E A:00 X:EE Y:00 S:2E P:nvUBdIZc
$A48E:AE 36 70 LDX $7036 = #$01 A:00 X:EE Y:00 S:2E P:nvUBdIZc
$A491:86 10 STX $0010 = #$E5 A:00 X:01 Y:00 S:2E P:nvUBdIzc
$A493:86 15 STX $0015 = #$8C A:00 X:01 Y:00 S:2E P:nvUBdIzc
$A495:20 5B C1 JSR $C15B A:00 X:01 Y:00 S:2E P:nvUBdIzc
The LDX $7036 actually comes from my expanded chapters enhancement. It takes the chapter ID, then calls a system subroutine (C15B) to come up with values. I think that subroutine is used for other stuff too so it's dangerous to change it.
August 26, 2012 at 10:44 pm #40197MiDKnighT
ModeratorThe text is:
I might be
convinced to join
your side for[>]
[VALUE] [LVL-SLDR-AMT] gold
coins.[END]
And my (new) defend text is:
I might be
convinced to join
your side for[>]
[VALUE] [LVL-SLDR-AMT] gold
coins.[END]
So knowing what I know about [VALUE] [LVL-SLDR-AMT] I know that the values are stored in $10 and $11. So I see it loading those values starting here:
$A48A:A9 00 LDA #$00 A:08 X:EE Y:00 S:2E P:NvUBdIzc
$A48C:85 11 STA $0011 = #$3E A:00 X:EE Y:00 S:2E P:nvUBdIZc
$A48E:AE 36 70 LDX $7036 = #$01 A:00 X:EE Y:00 S:2E P:nvUBdIZc
$A491:86 10 STX $0010 = #$E5 A:00 X:01 Y:00 S:2E P:nvUBdIzc
$A493:86 15 STX $0015 = #$8C A:00 X:01 Y:00 S:2E P:nvUBdIzc
$A495:20 5B C1 JSR $C15B A:00 X:01 Y:00 S:2E P:nvUBdIzc
The LDX $7036 actually comes from my expanded chapters enhancement. It takes the chapter ID, then calls a system subroutine (C15B) to come up with values. I think that subroutine is used for other stuff too so it's dangerous to change it.
August 26, 2012 at 10:49 pm #40198sonic.penguin
ModeratorI just know in DOAE 2.0, officer price is doubled.
Anyways, another question, does the STR/INT/AGI boosts affect Ambush? I have them plugged in but they don't seem to be doing anything.
Also, is the damage from "Arrows" in your mod only calculated by using the officers STR or does it take into effect the officers weapon?
August 26, 2012 at 11:08 pm #40199MiDKnighT
ModeratorQuote:Ever figure out a way to adjust the price of recruiting officers? I'm experimenting w/ economics in the game a bit more, making cash more valuable so you can't just buy ALL your weapons and armor at once like a penny candy shop.The same thing for generals and trying to make them worth more than a few hundred gold coins so you can't ALWAYS just buy them on the spot. Already made the steeds worth a fortune, but then again they are useful now w/ double attacks.
The text is:
I might be
convinced to join
your side for[>]
[VALUE] [LVL-SLDR-AMT] gold
coins.[END]
[VALUE] [LVL-SLDR-AMT] is the same reference used in "Defend" for gaining TP. So knowing what I know about [VALUE] [LVL-SLDR-AMT] I know that the values are stored in $10 and $11. So I see it loading those values starting here:
$A48A:A9 00 LDA #$00 A:08 X:EE Y:00 S:2E P:NvUBdIzc
$A48C:85 11 STA $0011 = #$3E A:00 X:EE Y:00 S:2E P:nvUBdIZc
$A48E:AE 36 70 LDX $7036 = #$01 A:00 X:EE Y:00 S:2E P:nvUBdIZc
$A491:86 10 STX $0010 = #$E5 A:00 X:01 Y:00 S:2E P:nvUBdIzc
$A493:86 15 STX $0015 = #$8C A:00 X:01 Y:00 S:2E P:nvUBdIzc
$A495:20 5B C1 JSR $C15B A:00 X:01 Y:00 S:2E P:nvUBdIzc
The LDX $7036 actually comes from my expanded chapters enhancement. It takes the chapter ID, then calls a system subroutine (C15B) to come up with values. I think that subroutine is used for other stuff too so it's dangerous to change it. But what we could do is change the "LDX $7036" line to call a subroutine to create some…inflation.
With some of the other enhancements there is a little bit of space at 0x3B85E where we can do this. The subroutine would be: AD36700AAA60 so just put this at 0x3B85E (but only if you are overwriting EA's). Then to call this subroutine change 0x3A49E to 204EB8.
The subroutine would load the value at $7036 and ASL it. So I tested this in the Yuan Shao mod in Chapter 1 with "He Yi". He typically charges 127 gold coins to join. With this change he's now asking for 508 gold coins! If you want it to be more add some 0As. But remember that this affects ALL recruitment. So for example if you added another "0A" the subroutine would be: AD36700A0AAA60
Here's what I'm finding with He Yi:
Normal DOAE code: Charges 127 gold coins to join
1 ASL (AD36700AAA60): Charges 508 gold coins to join
2 ASLs (AD36700A0AAA60): Charges 2032 gold coins to join
3 ASLs (AD36700A0A0AAA60): Charges 8128 gold coins to join
You could also use other methods besides ASL. You could double it if you want. Triple it… whatever.
And looking into this I also found this:
0E:A466:A5 AC LDA $00AC = #$0F <– Get random number
0E:A468:65 AE ADC $00AE = #$9A <– Get random number
0E:A46A:85 AC STA $00AC = #$0F <– Get random number
0E:A46C:29 0F AND #$0F
0E:A46E:C9 03 CMP #$03 <– If the value is < 03 he only serves his master.
0E:A470:B0 08 BCS $A47A <– He may join
0E:A472:20 0D D1 JSR $D10D <– I serve only my master!
0E:A475:6C 00
0E:A477:4C 1F A5 JMP $A51F
0E:A47A:C9 06 CMP #$06 <– If less < 06, auto join
0E:A47C:B0 08 BCS $A486
0E:A47E:20 0D D1 JSR $D10D
0E:A481:A0 02
0E:A483:4C D0 A4 JMP $A4D0
0E:A486:C9 0C CMP #$0C
0E:A488:B0 5F BCS $A4E9 <– Money or steed (if under 0C money, if over 0C horse)
So with this info we can control recruiting behavior. You could make it so that they always ask for a horse, always ask for money, or change the percentages…
August 26, 2012 at 11:12 pm #40200MiDKnighT
ModeratorQuote:Anyways, another question, does the STR/INT/AGI boosts affect Ambush? I have them plugged in but they don't seem to be doing anything.No it only works for tactics 01-0A (fire and water tactic slots)
Quote:Also, is the damage from "Arrows" in your mod only calculated by using the officers STR or does it take into effect the officers weapon?Arrows works exactly like Lian Huo except that…
– It targets all enemies
– It doesn't have the "fire" elemental
– It always succeeds
– It adds an AGI damage bonus
– It uses the level based tactic damage and damage starts at a lower number than Lian Huo.
August 26, 2012 at 11:16 pm #40201sonic.penguin
ModeratorGot it, now chapter 1 guys are asking for 600+ gold :P
Now, I wonder if Chapter 8 is going to overflow past the 65000 mark and round it back down to 0?
August 26, 2012 at 11:26 pm #40202MiDKnighT
ModeratorQuote:Got it, now chapter 1 guys are asking for 600+ goldIf that's too much we can change the subroutine. What number are you looking for?
Quote:Now, I wonder if Chapter 8 is going to overflow past the 65000 mark and round it back down to 0?It won't. Some officers might ask for more than 65000.
Also look at the post I edited above. I cracked the code for how often they would ask for money, horse, etc…
August 26, 2012 at 11:33 pm #40203MiDKnighT
ModeratorQuote:Also look at the post I edited above. I cracked the code for how often they would ask for money, horse, etc…Current percentages are:
25% (00 01 02 03) – I server only my master!
18.5% (04 05 06) – Join with no fuss
31% (07 08 09 0A 0B) – Ask for money
25% (0C 0D 0E 0F) – Ask for horse
August 26, 2012 at 11:43 pm #40204sonic.penguin
ModeratorAh okay, but I did change something and I'm not sure what, but my TP is @ 0 even after staying @ the inn… Gonna test some stuff
August 26, 2012 at 11:45 pm #40205MiDKnighT
ModeratorQuote:Ah okay, but I did change something and I'm not sure what, but my TP is @ 0 even after staying @ the inn… Gonna test some stuffIf you can't figure out why you can send me your uber top secret mod for debugging.
-
AuthorPosts
- You must be logged in to reply to this topic.

