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
-
May 25, 2013 at 7:42 pm #40386
MiDKnighT
Moderator
Will give it a try. IPS version 1.3 patch work continuing 8)
May 25, 2013 at 8:10 pm #40387DragonAtma
Moderator
All but two icons colored…. as I can't seem to figure out what they are. x_X Herb, mace, bow/arrow, and healing cross were redrawn as well. Tornado has been reverted because I think the one I designed looks and fits in better; feel free to change it back and color it if you want.
May 25, 2013 at 9:16 pm #40388MiDKnighT
ModeratorTactic name expansion + default icons done:

Tactic Name Pointers: 0xf8010 to 0xf820f
Tactic Names: 0xf8220-0xf920f (one per line)
0x7D590 & 0xFD590:
3C20A9D3A9684CA9D360A44DA93E2082
C4B9008085F3B9008185F4A00020D1D5
0xF8010:
00102030405060708090A0B0C0D0E0F0
00102030405060708090A0B0C0D0E0F0
00102030405060708090A0B0C0D0E0F0
00102030405060708090A0B0C0D0E0F0
00102030405060708090A0B0C0D0E0F0
00102030405060708090A0B0C0D0E0F0
00102030405060708090A0B0C0D0E0F0
00102030405060708090A0B0C0D0E0F0
00102030405060708090A0B0C0D0E0F0
00102030405060708090A0B0C0D0E0F0
00102030405060708090A0B0C0D0E0F0
00102030405060708090A0B0C0D0E0F0
00102030405060708090A0B0C0D0E0F0
00102030405060708090A0B0C0D0E0F0
00102030405060708090A0B0C0D0E0F0
00102030405060708090A0B0C0D0E0F0
82828282828282828282828282828282
83838383838383838383838383838383
84848484848484848484848484848484
85858585858585858585858585858585
86868686868686868686868686868686
87878787878787878787878787878787
88888888888888888888888888888888
89898989898989898989898989898989
8A8A8A8A8A8A8A8A8A8A8A8A8A8A8A8A
8B8B8B8B8B8B8B8B8B8B8B8B8B8B8B8B
8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C
8D8D8D8D8D8D8D8D8D8D8D8D8D8D8D8D
8E8E8E8E8E8E8E8E8E8E8E8E8E8E8E8E
8F8F8F8F8F8F8F8F8F8F8F8F8F8F8F8F
90909090909090909090909090909090
91919191919191919191919191919191
00000000000000000000000000000000
5A1B38303D0A17643EFF000000000000
5A28340A17643EFF0000000000000000
5A28303D0A2134FF0000000000000000
5A13300A2134FF000000000000000000
5A17643E0A2237343DFF000000000000
5B223764380A2364FF00000000000000
5B2237643827383D36FF000000000000
5B223764380A1B3438FF000000000000
5B173E3D3622376438FF000000000000
5B223764381B3E3D36FF000000000000
5E1237380A27383DFF00000000000000
5E233E3D362738303DFF000000000000
5E28383D0A2738303DFF000000000000
5E19383D0A2738303DFF000000000000
5E26303D0A1564FF0000000000000000
581664302D33FF000000000000000000
581F2D3E2F34322FFF00000000000000
411364343BFF00000000000000000000
7312340A1C38303DFF00000000000000
7219380A1C38303DFF00000000000000
511237302D3634FF0000000000000000
7428380A27383DFF0000000000000000
751B380A1938303DFF00000000000000
7420380A22373E64FF00000000000000
7F1938340A1234FF0000000000000000
76103D0A223730FF0000000000000000
0F1134380A1938FF0000000000000000
7215640A11383D36FF00000000000000
5F1B383534FF00000000000000000000
5F2130382E34FF000000000000000000
May 25, 2013 at 9:49 pm #40389MiDKnighT
ModeratorIPS patch 1.3 available:
Added in version 1.3 ( https://www.box.com/s/ig6z4heyk10k9inqzcbt )
– Everything in IPS Patch 1.2 and…
– Base AC Enhancement
– Expanded number of items, weapons, armor, helmets
– Default icons for items, weapons, armor, helmets, and tactics
– Item, weapon, armor, helmet, and tactic names expanded to 9 characters (including icon) each
– Tactic name list expanded to 255
May 26, 2013 at 12:58 am #40390ludmeister
ParticipantAwesome, MiDKnighT.
@ Atma-
What are the hex codes for that font set? I think I understand what you're doing now… painting using the PPU Viewer, and the Hex editor. This may be be a trick to work through, programatically, since there is 0x400 bytes set aside for the font, and doing a 2-bit font set would require 0x800 bytes (obviously).
EDIT: I found a spare 0x800 bytes (exactly!!) in page #0x02 in the Rom, in the space 0x8010-0x880f. I have to believe that this is a sprite page. I figure this is perfect for placing Atma's enhanced font, and I am in the process of testing to see if I can move the font to page 0x02 without totally borking everything. I am actually confident that this could be pulled off! :nod:
Font character #0x41 is a horse, and #0x42 is a wing (though it came out like a winged boot).
Perhaps you could send me a Save State that you used to mock this up?
When all else fails... manipulate the source code.
May 26, 2013 at 5:19 am #40391ludmeister
ParticipantAtma and MiDKnighT-
Success! :huohu:
I have successfully hacked the font loading routines, and set the stage for a 2-bit font-set. Here's a litany of what I've changed. Keep in mind, this requires an expanded font-set in 0x8010-0x880f (0x800 bytes).
0x7c39b: This will make font load 2-bytes-per-character at a time
Code:"20B9C3 20CEC3" -> "4C7DC3 EAEAEA"0x7defb: This pointer originally pointed to Page 09, BA00. Pointing to Page 2, Starting at 8000.
Code:"00BA" -> "0080"0x7deed: Page switch to 02, rather than 09.
Code:"A909 2082C4" -> "A902 2082C4"0x7c687: Palette swap for status/army/battle screen. Not sure how much more. Other palettes will likely need tweaking.
Code:"01200F200F200F200F170F170F372621" -> "012021110F2011210F220F320F372621"0x7c3a7: Font data changed slightly when going into status/army/battle screens. This guards against that.
Code:"38" -> "60"For 0x8010-0x880f, go into FCEUX's PPU with DoaE running, while your party is in the overworld, and copy 0x1000-0x17ff. Paste those bytes directly into the DoaE ROM.
EDIT: Here's a screenshot of just enough done of the new font to take care of the numbers:

Atma, all we need to make your font a reality is for you to get me a savestate that contains your coloring work. You really have done great work! Otherwise, I have your fontset graphic open in a graphical editor, so I can translate it by hand, which I can also do. The numbers didn't take long at all to do.
When all else fails... manipulate the source code.
May 26, 2013 at 8:35 am #40392DragonAtma
ModeratorCan't get you a savestate, as I did not use ppu viewer or hex editor; I used ms paint. Sorry.
But again, you can just paste them in with tile layer pro and use it to get the locations.
May 26, 2013 at 11:44 am #40393ludmeister
ParticipantQuote:Can't get you a savestate, as I did not use ppu viewer or hex editor; I used ms paint. Sorry.But again, you can just paste them in with tile layer pro and use it to get the locations.
Doh. That's okay. I'm not familiar with Tile Layer Pro, so I'll stick with good ol' fashioned hex editing. That's some great MS Paint work; painstaking detail. Again, thanks a ton for your work, if you hadn't created your font graphic, I don't think I would be tackling this task.
When all else fails... manipulate the source code.
May 26, 2013 at 11:53 am #40394DragonAtma
ModeratorGive TLP a try; it's not perfect, but it certainly works, plus it's free.
May 26, 2013 at 6:37 pm #40395ludmeister
ParticipantAlright, I've got the Atma's font all done. I did change up a few letters in a very cosmetic way, and I took the liberty of shading the horse, and creating a different wing. One more palette swap:
This palette swap is essential so that you can read the title screen. :smirk:
Code:0x7c69c: "0F200F0F0F200F0F" -> "0F2021110F202111"Here is the hex code for the font, to be placed in 0x8010 to 0x880f (0x800 bytes):
Code:7C0000D6E60000007CC6CE0000C67C00
30000030300000003070300000307800
7C00000C180000007CC606000030FE00
7C00001C060000007CC6060000C67C00
1C00008CFE0000001C2C4C00000C0C00
FE0000FC06000000FEC0C00000C67C00
7C0000FCC60000007CC6C00000C67C00
FE00001830000000FE060C0000303000
7C00007CC60000007CC6C60000C67C00
7C00007E060000007CC6C60000C67C00
00000000000000000000000000000000
38383C3F1F0F4000505456582F304F00
0000FFFFFF00000000FF00FF00000000
000000FFFFFF000000000000FF00FF00
00104410104410000010542828541000
1000BA38382800821010C64400544482
3800006CFE00000038386C0000C6C600
FC0000FCC6000000FCC6C60000C6FC00
7C0000C0C00000007CC6C00000C67C00
FC0000C6C6000000FCC6C60000C6FC00
FE0000FCC0000000FEC0C00000C0FE00
FE0000FCC0000000FEC0C00000C0C000
7C0000C0CE0000007CC6C00000C67C00
C60000FEC6000000C6C6C60000C6C600
30000030300000003030300000303000
06000006C60000000606060000C67C00
CC0000F0F8000000CCD8F00000DCCE00
C00000C0C0000000C0C0C00000C0FE00
C60000D6D6000000C6EEEE0000C6C600
C60000DECE000000C6E6F60000C6C600
7C0000C6C60000007CC6C60000C67C00
FC0000C6FC000000FCC6C60000C0C000
7C0000C6D60000007CC6C600007C0E00
FC0000FCD8000000FCC6C60000CCC600
7C00007C060000007CC6C00000C67C00
FC00003030000000FC30300000303000
C60000C6C6000000C6C6C60000C67C00
C60000C66C000000C6C6C60000381000
C60000D6FE000000C6D6D600006C6C00
C600001038000000C66C3800006CC600
CC00007830000000CCCCCC0000303000
FE00003870000000FE0E1C0000E0FE00
3C0000A1A100003C3C4299000099423C
3C0000A5B900003C3C42B90000A5423C
000000CCCC00000E0000780000CC7C0E
000000706000000000006C0000606000
000000E07800000000007C00001CF800
30000030300000003030FC0000301800
0000000C7C0000000000780000CC7600
C00000CCCC000000C0C0F80000CCF800
000000CCC00000000000780000CC7800
0C0000CCCC0000000C0C7C0000CC7C00
000000CCFC0000000000780000C07C00
18000030FC0000001834300000303000
000000CCCC0000780000780000788C78
C00000D8EC000000C0C0C00000CCCC00
00000000300000000000300000301800
00000000180000300000180000185830
600000787000000060606C0000786C00
30000030300000003030300000301800
000000B6B60000000000EC0000B6B600
000000CCCC0000000000F80000CCCC00
000000CCCC0000000000780000CC7800
000000CCCC0000C00000F80000F8C0C0
004040402C1816060000203010000002
C0A0512B160C1A30004020110A060D13
0060703E121E1E00E0908A442C1A2503
004020301D0F060D4000402024110106
107050F81C0E0703C0D03068140A0502
2070B09884C2613C605028647A251201
883030089C0E07022040C878340A0503
3866422123224682002A00420240A240
001CB89CCE67230000322C743A050200
00403A322A003800C08F182060464440
00082418540C01021040008E1B331F0E
00427E7E7E00242442A58100245A3C3C
44AA54287C2844006CFEFE7C007CEE44
42993C1818187E189924427E002424DB
01285A8D8D0C10100952A55200050800
0000387C3C381C007C06448222440200
3C182452A1A1817E000000105E5E7E00
01021F3F3F7F6100021C28404080D060
000082C468300000008244AA44281000
180C106D566C7C102412290180820028
1E267E5A7E5A7C002064001000080200
000002FFAD27020000000402548A0400
804020100804020140A05028140A0502
00003C70E0C00000000042A000400000
FE828282EE6C38008200383854280000
0028542814240C0420586C542A3A0800
10202A8050983A001830BAFA6EE44638
0008000440000000000C183C7C6E261C
0408387E0C1020400A14204204081020
BA80582008100008C680642014100808
3030F0FE1E1818002828EE00EE282800
287CFE7CFE3800004492008282001000
66000000000000006666880000000000
18000000000000001818200000000000
00000000000000200000000000181820
00000000000000000000000000181800
000000CCCC0000000000CC0000DC6C00
000000C66C0000000000C600006C3800
000000D6D60000000000D60000EE4400
00000078300000000000CC000078CC00
000000663E00003C000066000006463C
00000018300000000000FC000060FC00
60F0D048080402000060480004000402
385CBEBE9A4438003864C2C2E67C3800
384C968A82443800384C9E8A82443800
00400F1F3F3C3838004F302F58565450
0002F0F8FC3C1C1C00F20CF41A6A2A0A
1C1C3CFCF8F002000A2A6A1AF40CF200
5028349A3428500030188CC68C183000
0010826CBA54281000381082C66C3810
38F0EEEE1E3810002850200814283000
FEFEAAFEFE1800008200000082284000
386CC682C66C3800002854104C280000
3C66D8ACD66C38000024400844280000
7C7C5438383838004400004400380000
00000040400000000078400000000000
00000000180000000000000000000000
000000007E0000000000000000000000
1800001818000018183C3C0000001818
3C00001C180000183C66060000001818
00000008100000000002040000204000
38383838383838385050505050505050
1C1C1C1C1C1C1C1C0A0A0A0A0A0A0A0A
386CF6BADE6C38000028542854280000That was a bit of work, but was well worth it. Looks great! Perhaps this might inspire others to play with the palettes some more…
When all else fails... manipulate the source code.
May 26, 2013 at 6:52 pm #40396ludmeister
ParticipantHere's a better demo of the font now that it is finished:
When all else fails... manipulate the source code.
May 26, 2013 at 7:27 pm #40397sonic.penguin
ModeratorSo it looks like I'm going to have to replace quite a few things since I have to apply 1.3 patch1 before applying the 1.3patch2 otherwise things go weird. Will just have to redo the customized tactics, names, etc.
Upon applying the patch, the characters have very miniscule AC b/c it's based off of the leveling code….
Wait a sec, armor needs to be fixed in some cases or perhaps it is just the issue I a have b/c I used the armor alternates. It is possible to experience an overflow on the AC depending on equipment and thus reduce your AC back to 0 and it starts counting again.
Also, at 34, my AC bars are longer than at 190 AC.
I just applied the data above lud and my text doesn't change. Was that all of it or did I miss something in a previous post?Edit: Indeed it was. Got it fixed now. Although the blue/white combo can be a little tricky to get used to. What address is the ppu editable for the blue/white mixture?
May 26, 2013 at 8:01 pm #40398DragonAtma
ModeratorNow that's a good-looking stat screen; thanks for integrating the icons.
May 26, 2013 at 8:07 pm #40399ludmeister
ParticipantQuote:What address is the ppu editable for the blue/white mixture?If you bring up the PPU Viewer in FCEUX, you'll see the palettes at the bottom of the window. Those correspond to PPU Memory addresses 0x3f00-3f1f.
You can find the Status/Army/Battle screen palettes in the DoaE ROM at 0x7c687-0x7c696.
When all else fails... manipulate the source code.
May 27, 2013 at 12:07 am #40400MiDKnighT
ModeratorQuote:Here's a better demo of the font now that it is finished:

But in order to get the new attributes in, I'm looking at something like this:

(still need to get values for LDR, VIT, and POL)
Here's a mock up to give an idea of what the final result would look like (but the colors would be brighter – need to fix that):

If anyone has a better idea on the layout (while still getting in all the info) let me know soon!
-
AuthorPosts
- You must be logged in to reply to this topic.

