DOAEditor and Romhacking for Destiny of an Emperor

Use this forum to discuss hex-editing or otherwise altering any Three Kingdoms game, and to promote modded titles and patches.

Re: DOAEditor and Romhacking for Destiny of an Emperor

Unread postby MiDKnighT » Thu Apr 16, 2015 5:25 pm

sonic.penguin wrote:Edit: When pulling guys out of billeting, they are not de-equipping the weapon of the previous officer (sometimes)


Billeting / Equip Fix Take 2. If the pack has something equipped and the new general can use it, it will stay equipped. Otherwise it will be de-equipped. Maybe in the future it will do something fancier but for now just getting the bug fixed:

0xE9C90 (look up profile to check equip match):
000000000000000000000000000000A9
3E2082C48C2278A54AA8B9A860A8A9F0
8500A9998501B9F08ED0034CBF9CA8A5
001869109002E601850088C000D0F2A0
0BB100CD2278D009EAEAEA20809D4C8F
9CC8C010D0EB4C019D00000000000000
0020507EA91E2082C400000000000000
0020B0C9200DD10F00A93A2082C46000
00A000B9B09BCD2278D009BD0061EAEA
484C3EBCC8C010D0EAA00FB9A0BC9950
7E8810F74C8F9C000000000000000000
000000000000000000000000A93E2082
C4A9F08500A9998501BDF08ED0034C11
BDA8A5001869109002E601850088C000
D0F2A00BB100991878C8C010D0F6A000
B9B09B992878C8C005D0F54CEBBC0000
AC4278B1101869809110600000000000

0xF93F0 (billeting add/item check code):
0000A90E2082C4A9C09D00632010BC4C
EBBC2009BC980A0A0AA8A200B90061C9
8010034C34948C2F78E980A8B900B085
00B970B08501A002B100A000D92378D0
034C4094C8C00BD0F3AC2F78B90061E9
80990061C8E8E009D0C2EAEAEAEAEAEA
2009BC980A0A0AA8A200B90061C9C090
07C9DFB0034C7094E8C8E009D0EC2009
BCA90099C060EAEAEAEAEAEAEAEAEAEA
2050BC8C117820409C2060BC4CE29300

0xF9C30 (item check/de-equip code):
000000000000000000A93A2082C42040
9C4C299C000000000000000000000000
AD11780A0A0A8510A9618511A000B110
992078C8C009D0F6A200BD2078100338
E980A8B900B08500B970B08501A002B1
009D3078E8E009D0E1A000B92078C9C0
9023C9DFB01F20209DA8EAEAEAEAEAA9
3A2082C4AC4278EAEAEAEAEAEAEAEAEA
EAEAEAEAEAC8C009D0D120C09C600000
00000000000000000000000000000000
A200864A20D09CE8E007D0F660000000
A64AA900EAEAEA9DC0608A0A0A0AA8B9
00611029297FC95FB013C940901FB900
61101A297F38E93F9DC060D01038E95F
AABD40E718A64AEAEAEAEAEAEAC89829
07D0CC60000000000000000000000000
8C427838E9809110A8B900B08500B970
B08501A002B100600000000000000000

0xFBC10 (functions to save memory status):
000000000000000000AE4078AC417860
8E40788C417860000000A90E2082C420
10BC68C9E9F00300000048BD0061A8B9
00B08500B970B08501A002B100A8A93A
2082C42009BC4C1ABC00000000000000
A200B5009D007AE8E0FFD0F62009BC60
A200BD007A9500E8E0FFD0F6EAEAEAEA
A200A9009D007AE8E0FFD0F62009BC60

For my reference:
- The function on the 0xFBC60 line backs up the zero page to $7A##
- The function on the 0xFBC70 line restores the zero page from $7A## and then clears $7A##
User avatar
MiDKnighT
Sage
 
Posts: 260
Joined: Mon Oct 16, 2006 4:16 pm

Re: DOAEditor and Romhacking for Destiny of an Emperor

Unread postby sonic.penguin » Thu Apr 16, 2015 5:50 pm

Looks pretty fancy if you ask me... :shock:
User avatar
sonic.penguin
Langzhong
 
Posts: 520
Joined: Fri Sep 30, 2011 8:20 pm

Re: DOAEditor and Romhacking for Destiny of an Emperor

Unread postby MiDKnighT » Thu Apr 16, 2015 7:11 pm

sonic.penguin wrote:Looks pretty fancy if you ask me... :shock:


I kept trying to borrow code so it's doing a lot more work than it needs to. But it works! Maybe if at some point I revisit this code to "optimize" the new equip I'll streamline it more.
User avatar
MiDKnighT
Sage
 
Posts: 260
Joined: Mon Oct 16, 2006 4:16 pm

Re: DOAEditor and Romhacking for Destiny of an Emperor

Unread postby MiDKnighT » Thu Apr 16, 2015 8:17 pm

sonic.penguin wrote:1. For some reason, the opening officer battle portrait is not changing to anything except the officer @ the top of the formation.


This was actually a ROM issue not a DoaEditor issue. The fix is:

0xF6E77: "AE" --> "AF"

It was looking in the wrong place for the opening portrait officer.

sonic.penguin wrote:2. The soldier count multiplier is not functioning accurately. Is that fixable?


Fixed in my local DoaEditor copy that you'll get tomorrow. It was one level off when doing the calculations. It now matches the soldier counts in your HOC save states.
User avatar
MiDKnighT
Sage
 
Posts: 260
Joined: Mon Oct 16, 2006 4:16 pm

Re: DOAEditor and Romhacking for Destiny of an Emperor

Unread postby sonic.penguin » Thu Apr 16, 2015 9:35 pm

Fixed in my local DoaEditor copy that you'll get tomorrow. It was one level off when doing the calculations. It now matches the soldier counts in your HOC save states.

Indeed you are a scholar and a gentlemen.

A new DOAEditor release coming is very welcome.
User avatar
sonic.penguin
Langzhong
 
Posts: 520
Joined: Fri Sep 30, 2011 8:20 pm

Re: DOAEditor and Romhacking for Destiny of an Emperor

Unread postby MiDKnighT » Thu Apr 16, 2015 10:27 pm

sonic.penguin wrote:A new DOAEditor release coming is very welcome.


Most of it is IPS fixes. The 3 DoaEditor fixes are:

- Enemy Turn Probabilities on profiles page
- Portrait library fix
- Soldier count calculator
User avatar
MiDKnighT
Sage
 
Posts: 260
Joined: Mon Oct 16, 2006 4:16 pm

Re: DOAEditor and Romhacking for Destiny of an Emperor

Unread postby sonic.penguin » Thu Apr 16, 2015 11:29 pm

What about the "Find my sword/search the area around me" hut? When clicked on it always bugged, but I think this location always had bugs from disappearing sprites to the disappearing sword.

I know it errors out DOAEditor when you click on it.
User avatar
sonic.penguin
Langzhong
 
Posts: 520
Joined: Fri Sep 30, 2011 8:20 pm

Re: DOAEditor and Romhacking for Destiny of an Emperor

Unread postby MiDKnighT » Fri Apr 17, 2015 4:55 pm

sonic.penguin wrote:What about the "Find my sword/search the area around me" hut? When clicked on it always bugged, but I think this location always had bugs from disappearing sprites to the disappearing sword.

I know it errors out DOAEditor when you click on it.


Oh gosh that's a bug in the original game. Meteorstrike fixed 2 others (the Iron Ore bug and the Guo Si bug). He talked about this one but never fixed it:

http://www.gamefaqs.com/boards/563402-d ... 342?page=7

But the Editor crash is another story... It's only happening with your ROM tho. Looks like that villager in your ROM is corrupted. Should be easily fixable if we find the villager and fix him.
Last edited by MiDKnighT on Fri Apr 17, 2015 7:22 pm, edited 1 time in total.
User avatar
MiDKnighT
Sage
 
Posts: 260
Joined: Mon Oct 16, 2006 4:16 pm

Re: DOAEditor and Romhacking for Destiny of an Emperor

Unread postby MiDKnighT » Fri Apr 17, 2015 7:07 pm

New DoaEditor (r58) uploaded to http://www.niahak.org/doaed/DoaEditor.zip

Basically almost all the bugs mentioned in this thread and fixed in DoaEditor and the IPS 1.3 patch included with it.
User avatar
MiDKnighT
Sage
 
Posts: 260
Joined: Mon Oct 16, 2006 4:16 pm

Re: DOAEditor and Romhacking for Destiny of an Emperor

Unread postby sonic.penguin » Fri Apr 17, 2015 7:17 pm

It's like Christmas in April.... <sniffs> :pika:
User avatar
sonic.penguin
Langzhong
 
Posts: 520
Joined: Fri Sep 30, 2011 8:20 pm

PreviousNext

Return to Three Kingdoms Game Editing & Mods

Who is online

Users browsing this forum: No registered users and 1 guest

Copyright © 2002–2008 Kongming’s Archives. All Rights Reserved