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
-
June 24, 2012 at 1:17 pm #40060
MiDKnighT
ModeratorHi there, thanks for joining the forum! We're always happy to see new DOAE lovers out there joining up with us. And your skills with a 6502 debugger would also be of great help.
Can you share the details of your smoke pot findings? We can add that to the guide and give you credit of course.
We hope you stick around and try out our mods and perhaps add to our DOAE findings :)
June 24, 2012 at 3:40 pm #40061Lord Yuan Shu
KeymasterHi Xhinaeria, welcome to this dying/dead forum huohu Cool stuff you found out with the smoke pots. Enjoy your time here at LYS.com.
Quote:Can you share the details of your smoke pot findings?huohu
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingJune 24, 2012 at 5:20 pm #40062sonic.penguin
ModeratorI like this guy, he brings up the same questions I had about editing battle music. I'm thinking that either A, they are editable via a table much like the battle taunt section, or there are just certain tags that some battles have that are preset. IE: 3 battles that use the major boss battle theme tagged by their battle ID hex or something. Guess we'll need to find out more. Thankfully, world map/town/cave/castle music is already checked off our list.
Quote:changed the amount of steps the Smoke Pipe gives youah memories, I remember throwing this one out to Midknight a while back hehe.
And its not dying, its just finding time to post with all the busyness. And Atma is always tied up trying to create the great Jin Xuan mod, but he's usually around :unibrow:
June 24, 2012 at 5:25 pm #40063DragonAtma
ModeratorIndeed; I have enough projects going that they should double the day to 48 hours. 8O
June 24, 2012 at 6:54 pm #40064MiDKnighT
ModeratorQuote:ah memories, I remember throwing this one out to Midknight a while back hehe.Oops, I forgot all about that one. My next order of business once I crack open the ROM again is to work on the A.I. (not wasting turns, etc…). Then you can make your bad guys even more evil :twisted: (as if that was really needed)
June 24, 2012 at 9:07 pm #40065Anonymous
InactiveFirst using the Cheat I found that 008A is where the temporary information was stored for how many spaces the smoke pot has left, so using 6502 I noticed it break when calling a value of "40" (64) was being written to.
When I highlighted the screen to the left, it noted an offset "0x38C73" noticing that 38C71 was A9, which apparently in 6502 coder means something like "use value" or "replace value with" and a preceeding value was 40 (0x38C72), so I changed it to FF, loaded 'er all up again, and watched the value at 008A go to 255, which is what I wanted. So far, no bugs/glitches.
Apparently just changing the value from 0 up doesn't start the Smoke Pot activation itself, but for me this was fine, this will do.
Also I did do/try the Rise of Lu Bu… holy crap with 255 Defense mobs, that defense thing seemed way off balanced; otherwise had a lot of laughs.
ME! ME WEI YAN! ME JOIN YOU!
Also sometimes when I edit some things in Niahak's editor, it stops letting me save. No error message. I think this happened when I removed a recruit join event from one of the guys that never (very rarely)shows up [Zhou Chao I believe? The old guy that is almost never there in the town past Chang 'An] It let me save that change but stopped letting me save again, so I had to start over. I have all my changes on a text file to make starting from scratch easier if my backup also failed.
Some similar edit also caused me to glitch out when trying to see the status of someone in storage or adding a new member.
And if the music was saved because of the person you were fighting, then why wouldn't ALL of Sa Ma Yi's battles have the 27 music? I would think it's like the An Sha thing, probably 8 lines in, 3 battles named. So we would look for the three battles by hex somewhere side by side.
And so, is 98d (made on the 23rd) ready to be tested by others? :3
June 24, 2012 at 9:28 pm #40066Anonymous
InactiveHeh, realizing the same three battles (presumably) are also the same three leaders that can't be "An Sha"'d.
57 Sun Quan
71 Cao Pi #2
88 Sa Ma Yi, final
so 0x30D70 begins the list of battles in sequence and ends at 0x30EFF, but noticing Lu Bu's ID is B5 but the battle sequence places him here as B7, a couple others appear like this too.
Pang Tong 9A shows up 9D
General 05 shows up as general 08, I edited the character so I forgot who it is.
Also, general 05 when in your party, revives like Liu Bei, Zhang Fei and Guan Yu when you wipe out! <— more interesting info for your brain.
maybe I should look for a bunch of entries with 25 side by side with the 27s in them
June 24, 2012 at 9:59 pm #40067MiDKnighT
ModeratorQuote:When I highlighted the screen to the left, it noted an offset "0x38C73" noticing that 38C71 was A9, which apparently in 6502 coder means something like "use value" or "replace value with" and a preceeding value was 40 (0x38C72), so I changed it to FF, loaded 'er all up again, and watched the value at 008A go to 255, which is what I wanted. So far, no bugs/glitches.Nice! I'll add this to the guide.
June 24, 2012 at 10:36 pm #40068MiDKnighT
ModeratorQuote:I have a suggestion for the guide here… how about a "map" of the ROM?I'm looking for a list of hex locations and where things are, in order of appearance.
Doesn't have to be exhaustive (no need for entries where we don't know the content).
e.g.
0x0-0x80 Header (nothing)
0x10000-0x20000 Sprites
0x20000-0x30000 Portraits
0x30000-0x40000 Text
I finally got around to doing this and put it in the guide in the advanced section. Let me know if anyone has more to add or any corrections:
Page 00 – Staring Address: 0x10
0x00000-0x0008F: Header
0x00090-0x0408F: Sprites
Page 01 – Staring Address: 0x4010
0x04010-0x05A0F: Japanese Text Graphics
0x05A10-0x0808F: Sprites
Page 02 – Staring Address: 0x8010
0x08010-0x08800: Japanese Text Graphics
0x08810-0x0B80F: Portrait bank 1
0x0B810-0x0C00F: "Destiny of an Emperor" Title Graphic
Page 03 – Staring Address: 0xC010
0x0C010-0x0C80F: Peach Garden Graphic Part 1
0x0C810-0x0F80F: Portrait bank 2
0x0F810-0x0FA2F: Peach Garden Graphic Part 2
Page 04 – Staring Address: 0x10010
0x10010-0x139EF: Game Graphics
Page 05 – Staring Address: 0x14010
Page 06 – Staring Address: 0x18010
Page 07 – Staring Address: 0x1C010
0x1C370-0x1####: Warps
0x1D4D4-0x1DC55: Intro Sequence Text
0x1DF57-0x1E18#: Ending Credits
Page 08 – Staring Address: 0x20010
Page 09 – Staring Address: 0x24010
0x27A10-0x27FBF: Number and Letter Graphics
Page 0A – Staring Address: 0x28010
0x28400-0x2BF1F: Text Bank 1
Page 0B – Staring Address: 0x2C010
0x2C390-0x2F1CF: Text Bank 2
0x2FAF0-0x2FD3B: Item Names
0x2FE4F-0x2FF45: Tactic Names
Page 0C – Staring Address: 0x30010
0x30910-0x309E6: Treasure Chests
0x30A10-0x30B23: Hidden item locations
0x30C10-0x30D6F: Battle Locations
0x30D70-0x30EFF: Officer Battle Lineups
0x31A##-0x31C##: Villager Attributes
0x31D10-0x322F8: Keywords 1
0x32800-0x33E07: Officer Definitions (STR, INT, Name, etc…)
0x33EE0-0x33FDF: Enemy Soldier Counts
Page 0D – Staring Address: 0x34010
0x3556C-0x3555A: Starting Equipment + Lineup
0x35722-0x35741: Officer Initial Statuses
0x37910-0x37DF1: Keywords 2
0x37E02-0x37EE5: Chapter Locations
Page 0E – Staring Address: 0x38010
0x38609-0x3861C: Displayed Weapon Strength Table
0x38E04-0x38E33: Gullwing Locations
0x390##-0x39###: Store Items for Sale
0x39A28-0x39A2f: Experience Awarded Per Chapter Multipliers
0x39AD7-0x39AE6: Gold Awarded Per Chapter Multipliers
0x39CEB-0x39CFB: Ambush Battle Locations
0x3ADF8-0x3AE13: Soldier Bar Attributes
0x3AF21-0x3AFC8: Opening Battle Taunt Pointers
0x3B0A3-0x3B14A: Closing Battle Taunt Pointers
0x3B153-0x3B172: Officer Recruitability Table
0x3B51B-0x3B533: 5 Tiger Soldier Progressions
0x3B880-0x3BC31: Tactic Attributes
Page 0F – Staring Address: 0x3C010
0x3C610-0x3C61F: Sprite Colors
0x3C665-0x3C66F: Town Colors
0x3D10E-0x3D116: Portrait Background Colors
0x3E41B-0x3E4CA: Random Enemy Attributes
0x3E710-0x3E737: Weapon Damage Table
0x3E9##-0x3E###: Menu, Status Screens, etc…
0x3FC90-0x3FDE2: Town Names
0x3FFB0-0x3FFF#: Game Graphics
Expanded ROM:
Page 10 – Staring Address: 0x40010
Portrait Bank F1
Page 11 – Staring Address: 0x44010
Portrait Bank F1
Page 12 – Staring Address: 0x48010
Portrait Bank F3
Page 13 – Staring Address: 0x4C010
Portrait Bank F3
Page 14 – Staring Address: 0x50010
Portrait Bank F5
Page 15 – Staring Address: 0x54010
Portrait Bank F5
Page 16 – Staring Address: 0x58010
Portrait Bank F7
Page 17 – Staring Address: 0x5C010
Portrait Bank F7
Page 18 – Staring Address: 0x60010
Portrait Bank F9
Page 19 – Staring Address: 0x64010
Portrait Bank F9
Page 1A – Staring Address: 0x68010
Portrait Bank FB
Page 1B – Staring Address: 0x6C010
Portrait Bank FB
Page 1C – Staring Address: 0x70010
Sprites
Page 1D – Staring Address: 0x74010
Sprites
Page 1E – Staring Address: 0x78010
Custom Code for ROM Enhancements
Page 1F – Staring Address: 0x7C010
Copy of page 0F.
June 24, 2012 at 11:44 pm #40069Niahak
ModeratorQuote:so 0x30D70 begins the list of battles in sequence and ends at 0x30EFF, but noticing Lu Bu's ID is B5 but the battle sequence places him here as B7, a couple others appear like this too.Pang Tong 9A shows up 9D
General 05 shows up as general 08, I edited the character so I forgot who it is.
Several generals have multiple sequential numbers that are acceptable for referencing them. Liu Bei has three, for example.
I never did figure out why those exist. DoaEditor always uses the minimum allowed number, but keeps track of which ones are allowed.
June 25, 2012 at 12:28 am #40070sonic.penguin
ModeratorQuote:0x0C010-0x0C80F: Peach Garden Graphic Part 10x0C810-0x0F80F: Portrait bank 2
0x0F810-0x0FA2F: Peach Garden Graphic Part 2
With this, any idea how we can replace this via feidian?
June 25, 2012 at 12:30 am #40071MiDKnighT
ModeratorReplacing it would be tough as the tiles are mixed up all over the place. But I think you can zero it out via a hex editor. You can look at how this was done in the Yuan Shao ROM.
But if you want to edit this may be the one thing that Tile Layer Pro is better for than feidian…
June 25, 2012 at 3:00 am #40072sonic.penguin
ModeratorCurses! :crybaby:
June 25, 2012 at 3:37 am #40073Anonymous
InactiveLOL, Here comes some mind blowing info from the new girl who just started doing this a couple days ago!
Ok, first: Find RAM which uses temporary memory for music.
00EA holds what music should be playing.
Check for break when writing to 00EA and log it.
Enter battle, recieve this:
0F:C4D3:85 EA STA $00EA = #$27
0F:C4D5:86 EE STX $00EE = #$02
0F:C4D7:A6 E8 LDX $00E8 = #$07
0F:C4D9:95 E0 STA $E0,X @ $00E4 = #$88
0F:C4DB:E8 INX
0F:C4DC:8A TXA
0F:C4DD:29 07 AND #$07
mostly mumbo jumbo to me but what I read is:
"Write Music 27 (Normal battle) to 00EA"
Check logger, I get a couple of COMPARISONS!
$E17F:10 F8 BPL $E179 A:80 X:0A Y:01 S:2C P:nvUbdIzc
$E179:D9 E7 E1 CMP $E1E7,Y @ $E1E8 = #$47 A:80 X:0A Y:01 S:2C P:nvUbdIzc
$E17C:F0 16 BEQ $E194 A:80 X:0A Y:01 S:2C P:nvUbdIzC
$E17E:88 DEY A:80 X:0A Y:01 S:2C P:nvUbdIzC
$E17F:10 F8 BPL $E179 A:80 X:0A Y:00 S:2C P:nvUbdIZC
$E179:D9 E7 E1 CMP $E1E7,Y @ $E1E7 = #$36 A:80 X:0A Y:00 S:2C P:nvUbdIZC
$E17C:F0 16 BEQ $E194 A:80 X:0A Y:00 S:2C P:nvUbdIzC
$E17E:88 DEY A:80 X:0A Y:00 S:2C P:nvUbdIzC
$E17F:10 F8 BPL $E179 A:80 X:0A Y:FF S:2C P:NvUbdIzC
$E181:A9 26 LDA #$26 A:80 X:0A Y:FF S:2C P:NvUbdIzC
$E183:A6 75 LDX $0075 = #$80 A:26 X:0A Y:FF S:2C P:nvUbdIzC
$E185:10 0F BPL $E196 A:26 X:80 Y:FF S:2C P:NvUbdIzC
$E187:A9 24 LDA #$24 A:26 X:80 Y:FF S:2C P:NvUbdIzC
$E189:AE AF 60 LDX $60AF = #$04 A:24 X:80 Y:FF S:2C P:nvUbdIzC
$E18C:E0 08 CPX #$08 A:24 X:04 Y:FF S:2C P:nvUbdIzC
$E18E:B0 06 BCS $E196 A:24 X:04 Y:FF S:2C P:NvUbdIzc
$E190:A9 23 LDA #$23 A:24 X:04 Y:FF S:2C P:NvUbdIzc
$E192:D0 02 BNE $E196 A:23 X:04 Y:FF S:2C P:nvUbdIzc
$E196:20 CF C4 JSR $C4CF A:23 X:04 Y:FF S:2C P:nvUbdIzc
$C4CF:C5 EA CMP $00EA = #$27 A:23 X:04 Y:FF S:2A P:nvUbdIzc
$C4D1:F0 10 BEQ $C4E3
Look at Niahak's battle order, counted up from 00 in hex order, battle 36 and 47 are Sun Quan and Sa Ma Yi!
there are six other comparisons at FF, sound familiar? Sounds like the An Sha formula!
Look in ram for "36, 47, FF, FF, FF, FF, FF, FF": found it twice
0x3E1F7 and 0x7E1F7 which are entirely identical pages. Not sure which one is what but lets replace both, what can I hurt right?
Turning battle 00, 01 and 02 (Zhang Brothers) into the comparison.
Guess what works!
You can have eight battles with preset music
Enjoy
June 25, 2012 at 1:12 pm #40074MiDKnighT
ModeratorLooks like I have another guide update to make. Stick around as long as you like Xhinaeria :-P
EDIT: OK added the new music stuff to the guide. And now with 2 solid contributions Xhinaeria is now added to the guide authors list.
Also FYI, 0x3E1F7 and 0x7E1F7 are just copies of the same rom page (0F). The 0x7E… is from the expanded ROM. When we expand ROM we copy page 0F to 1F. ROM expansion notes say to do this because some emulators might try to use the last page (1F) and load it into $C000-$FFFF in memory. However, I haven't seen FCE Ultra do this. It uses page 0F.
-
AuthorPosts
- You must be logged in to reply to this topic.

