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 21, 2013 at 3:18 pm #40341
MiDKnighT
ModeratorLud, with your help I got it working the way I was hoping it would! I made a slight modification to your code. First, I found this:
All done equipping, go clean up:
1F:$D492:4C BE F1 JMP $F1BE
???
1F:F1BE:20 D5 C0 JSR $C0D5
Tear down menus:
1F:F1C1:20 DF CD JSR $CDDF
Putting Sprites back:
1F:F1C7:A9 00 LDA #$00
1F:F1C9:85 71 STA $0071 = #$00
1F:F1CB:20 D5 C0 JSR $C0D5
So in order to keep it on the menu the overall changes are:
0x7870c:
Code:a90e 2082c40x7afb0:
Code:A501D01EA500C90EF01BC910F017C911
F013C913F00FC914F00BC923F007C90F
F0034CE0AFA54AA200A00086004CFC86
00000000000000000000000000000000
4CBEF10x7d4a0:
Code:95D44CECFF0x7fffc: (old code: "0000 0000 5ae4 0000" ):
Code:"a91e 2082c4 4ca0af"This is working nicely so far! This should make equipment swapping less annoying. Would appreciate if you and sonic could give it a try to see if you are happy with it. If so, I'll add it to the IPS patch.
First 8 tactics and now this, we make a great tag team!

EDIT: OK equip works great. Walking around talking? Not so much… Back to the drawing board.
EDIT2: OK fixed and edited the above code.
May 21, 2013 at 8:45 pm #40342MiDKnighT
ModeratorQuote:If someone wants a few tactic icons, I might be able to cook those up in the next couple of days.I was going to ask for horse, potion, letter, etc… but it looks like you got that covered.
For tactics perhaps:
– Flame (fire tactics)
– Water (water tactics)
– Lightning (lightning tactics – some mods use this)
– Cyclone (wind tactics – some mods use this)
– Shield (for defensive tactics)
Not sure how to represent these:
– Haste (sneakers? That's kinda cheesy though)
– Zeal (muscle arm? That's kinda cheesy though)
– An Sha?
– I'd assume that damage tactics (like charge) can just borrow a weapon like a sword for the icon.
– Would also be nice to have arrows, boulders, guns (Ieyasu), and catapults (this would be hard to draw I'd think).
May 21, 2013 at 10:11 pm #40343DragonAtma
ModeratorDid someone say ICONS!?

First row: fire, water, lightning, wind
Second row: defense, haste/slow, buff, an sha
Third row: arrow, boulder, gun, catapult
May 21, 2013 at 11:41 pm #40344sonic.penguin
ModeratorQuote:This is working nicely so far! This should make equipment swapping less annoying. Would appreciate if you and sonic could give it a try to see if you are happy with it. If so, I'll add it to the IPS patch.So far it works nicely and is definitely a lot less annoying than before. Kudo's.
Now to get the icons working…
May 22, 2013 at 12:01 am #40345MiDKnighT
ModeratorQuote:Did someone say ICONS!?
First row: fire, water, lightning, wind
Second row: defense, haste/slow, buff, an sha
Third row: arrow, boulder, gun, catapult
Looks nice, did you do that in DoaE? Got the hex? :)
Quote:So far it works nicely and is definitely a lot less annoying than before. Kudo's.Lud did all the heavy lifting on this one, I just added the cherry on top. :thumright:
May 22, 2013 at 12:01 am #40346sonic.penguin
ModeratorApplied the IPS patch. Try talking on the world map and it makes the party not use animation sprites and keeps the menus on the screen.
Also, the IPS patch doesn't apply those new spiffy icons. It should.
May 22, 2013 at 12:03 am #40347MiDKnighT
ModeratorQuote:Applied the IPS patch. Try talking on the world map and it makes the party not use animation sprites and keeps the menus on the screen.Woah…not good. I didn't even add the menu stuff yet.
EDIT: Just tested the ROM that I used to build the IPS patch and it is fine. Must the patch not playing nicely with your ROM. I'll use it to patch the YS mod and your mod and see what happens.
Quote:Also, the IPS patch doesn't apply those new spiffy icons. It should.Not added yet, will add.
May 22, 2013 at 2:34 am #40348MiDKnighT
ModeratorOK ya, it's not the IPS patch, it's the menu enhancement. Looks like I wasn't done just yet.
EDIT: OK fixed it. IPS patch updated with lud's icons and menu enhancements. To use the icons you have to put the icon number (in hex) before the name (in ascii).
May 22, 2013 at 3:38 am #40349ludmeister
ParticipantAtma~
Yeah, that's exactly what I had in mind for tactic icons. I can translate your stuff into hex in (at worst) a couple of days if needed… I'm checking in out of state, and am replying via smartphone :moogle:
Quote:OK ya, it's not the IPS patch, it's the menu enhancement. Looks like I wasn't done just yet.Will check back Thursday on this. I think I have this working, though not optimally. On subsequent item operations, the item list for the same officer is opened, but the menus that were opened before the item list are obliterated, so the player has to remember what they were doing.
Is your version of item menu persistence attempting to do something more ambitious than this?
When all else fails... manipulate the source code.
May 22, 2013 at 4:03 am #40350MiDKnighT
ModeratorQuote:Will check back Thursday on this. I think I have this working, though not optimally. On subsequent item operations, the item list for the same officer is opened, but the menus that were opened before the item list are obliterated, so the player has to remember what they were doing.Is your version of item menu persistence attempting to do something more ambitious than this?
Actually I think I've got it now. Mine (err well it's mostly yours) keeps the equip menu open and let's you equip or unequip more items. The other menus stay open in the background until you press the B button. I updated my post with the working code:
http://www.lordyuanshu.com/forums/topic/destiny-of-an-emperor-rom-hacking-guide-1/page/48#post-34905
Just need you to give it a whirl and see if you like it or have any other ideas.
May 22, 2013 at 6:55 am #40351DragonAtma
ModeratorQuote:Looks nice, did you do that in DoaE? Got the hex?If you by DoaE you mean MS Paint, hell yeah! But if by DoaE you mean DoaE, then no. Sorry. :(
As for getting hex, just open a dummy file in TLP, paste the icons, save, then open it in a hex editor; the hex valeus should be right there.
As for the icons themselves, they assume that the gaps on DoaE letters are on the right and top edges; if the gap is elsewhere, then you have to move the icons one pixel.
Viva stone age applications!
…you may also want to extend the barrel on the gun icon one pixel (and move the icon on e pixel left); there's room for it, and IIRC the guns they had were all rifles, soooo…
May 22, 2013 at 12:00 pm #40352MiDKnighT
ModeratorI also forgot to mention the heal tactics and life/raise. Maybe some kind of medical icon for heal tactics and a heart icon for life/raise ?
May 22, 2013 at 12:24 pm #40353DragonAtma
ModeratorOkay, once my creative juices aren't occupied (should be sometime within the next 24 hours)
May 22, 2013 at 4:44 pm #40354DragonAtma
ModeratorDid someone say MORE ICONS!?

First row: Healing, Healing (alternate)
Second row: Revive, Rifle (updated), Debuff, CeMian/JiMian
Third row: Flee/Teleport, Confuse, Confuse (alt), Duel
Fourth row: CeMian/JiMian (alyternates 1, 2, and 3), Fire (alternate)
May 22, 2013 at 5:06 pm #40355MiDKnighT
ModeratorQuote:Did someone say ICONS!?
First row: fire, water, lightning, wind
Second row: defense, haste/slow, buff, an sha
Third row: arrow, boulder, gun, catapult
Quote:Did someone say MORE ICONS!?
First row: Healing, Healing (alternate)
Second row: Revive, Rifle (updated), Debuff, CeMian/JiMian
Third row: Flee/Teleport, Confuse, Confuse (alt), Duel
Fourth row: CeMian/JiMian (alyternates 1, 2, and 3), Fire (alternate)
Great! Now we need to figure out if we have enough room for all of these in PPU memory.
I only see room for a few more icons when I look at the PPU viewer. Lud what do you think?
-
AuthorPosts
- You must be logged in to reply to this topic.

