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 » Mon Jan 08, 2018 10:48 pm

It took me a little bit to remember but I think I remember now. There are basically 2 tiles for each value. Ie... there are 2 different E6 tiles. At the end of that graphic section, there are bits that say which version of the tile each is. By bits I mean like 00101100 (can convert between hex and binary in a programming calculator). The bits tell it which type of tile it will use. Ie...the "0" E6 tile or the "1" E6 tile.

For more info look here: http://doaerhguide.wikidot.com/#toc15

At the "Build the Map Tiles" section. We called that binary stuff the "control code".
User avatar
MiDKnighT
Sage
 
Posts: 279
Joined: Mon Oct 16, 2006 4:16 pm

Re: DOAEditor and Romhacking for Destiny of an Emperor

Unread postby Boneduke » Tue Jan 09, 2018 12:43 pm

Awesome!! Tried just now and it works perfectly. Funny I feel like I've read the wiki inside out and some of these issues it just doesnt click until you point it out hehe - really appreciated!
Boneduke
Initiate
 
Posts: 48
Joined: Sun Aug 13, 2017 5:09 pm

Re: DOAEditor and Romhacking for Destiny of an Emperor

Unread postby Boneduke » Wed Jan 17, 2018 11:54 pm

Hey Midknight, sent you a PM - have a new bug in my ROM just noticed in the past couple weeks. Not a huge one, just seems that when an item is used during battle (Elixir, revive etc), it works, but the item doesnt get consumed. Some more detail is in the PM.

In general also wanted to ask about "Spoils of War" enhancement. I was looking at the details for patch 1.3 and it says

- POL is used for item drops and more to come for POL.
- Spoils of war enhancement (item drops)

Which I take to mean, that I am using the POL version rather than the original.

Been working on adjusting the items that drop and the Common ones seems to be working fine. When I look at the original hex in my ROM for that section (7a5e0) it look as I'd expect (lots of entries with hex IDs that match item drops) and when I change it to my own configuration, I see the new items appear in game. So that is fine.

According to the wiki this is the code for the enhancement

A200A9009D05629DAF60E8E006D0F560
00000000000000A90E2082C44C50A5EA
2082C400000000000000000000000000
2020A52050A6A2021E0005387E0005CA
10F6A92EC500F00FA5AD65604A65AF65
10297FC56E3005A90E4C40A565AE4A65
61651165AD290F856EAD3670AACA8A29
070A0A0A0A656E856EEAEAEAA5AE6552
651165626563297FC9153010A56EA8B9
D0A5856EA900856F4C37A5EAA56EA8B9
50A6856EA900856F4C37A5EA00000000
31313131313131313132303030282B2C
313131313131323232303030282B2C38
323232323232323330303028282B2C38
323232333333303028282B2B2C2C3838
32333333333330302828282B2C2C3838
33333333333334303028282B2C2C3838
34343434343434303028282B2C2C3838
343434343434302128282B2B2C2C3838

AD9060AABD2064C900D005A908856E60
4A4A4A4A856E60000000000000000000


The part in red is the section where you specify the Common drops. Which aligns to the location the wiki indicates for where to specify the Common items (7a5e0).

However the wiki then states to do the same thing for Rare items (16 x 8 regions) at location 0x7a660. However that location is the hex above that I colored green. It seems to be used for something else (many of the entries there like AD, 90, AA, they dont correspond to items) and when I pasted my configuration for Rare drops at this location, it caused the game to freeze. So I think definitely I should not be putting my Rare drop configuration here.

There does seem to be sufficient blank space immediately after this section (7a667 to 7a6ee) however that is a little more space than is needed to fit the 8x16 "table". So I didnt want to arbitrarily paste it in, maybe even if its works, it breaks something else.

I looked at this same section in the hex in Flames of Wu mod and it has similar kind of entries in the Common drop section - however at 0x7a660 its completely different - doesnt match my whats in my ROM/whats above, nor does it look like a table for rare drops. So I'm stumped. Do you remember how this one works?
Boneduke
Initiate
 
Posts: 48
Joined: Sun Aug 13, 2017 5:09 pm

Re: DOAEditor and Romhacking for Destiny of an Emperor

Unread postby MiDKnighT » Thu Jan 18, 2018 4:13 pm

For the item thing, ya I was worried that something like that would happen, it goes back to the mend fix:

0x38D32: "30" --> "60" seems to fix it but this might break something else. Checking...

If you set it back to 30 it fixes the item thing but then breaks some tactics > 30. I'll need to write a bigger fix.


For the spoils of war this was actually mostly ludmeister's enhancement. The "rare drop" section you are pointing to is definitely assembly code. Let me review this code more.
User avatar
MiDKnighT
Sage
 
Posts: 279
Joined: Mon Oct 16, 2006 4:16 pm

Re: DOAEditor and Romhacking for Destiny of an Emperor

Unread postby Boneduke » Thu Jan 18, 2018 4:20 pm

I think I could rearrange my tactics such that heal tactics are under ID 30 - maybe that is the best solution for now? No issues with dmg tactics over that ID that you foresee right?

thanks as always!
Boneduke
Initiate
 
Posts: 48
Joined: Sun Aug 13, 2017 5:09 pm

Re: DOAEditor and Romhacking for Destiny of an Emperor

Unread postby MiDKnighT » Thu Jan 18, 2018 5:18 pm

Don't worry about that, I think I fixed it. Here's a more comprehensive fix for the mend all / item in battle fix. This is testing more to see if it's an item or a tactic if the id is > 30 (either an item or expanded tactic). Try this:

0x38D2F: A91E2082C4EA

0x78D20:
000000000000000000000000000000A9
0E2082C44C2B8D002082C4A54DC930B0
05A90E4C288DA678BD0062C90090034C
1F8D4CA90E4C288D0000000000000000
User avatar
MiDKnighT
Sage
 
Posts: 279
Joined: Mon Oct 16, 2006 4:16 pm

Re: DOAEditor and Romhacking for Destiny of an Emperor

Unread postby MiDKnighT » Thu Jan 18, 2018 6:27 pm

For the spoils of war thing I just need to move that subroutine:

0x7A510:
AD9060AABD2064C900D005A908856E60
4A4A4A4A856E60000000000000000000

0x7A560: 2020A52000A5

0x7A660: (all zeroes or what rare items you want)
00000000000000000000000000000000
00000000000000000000000000000000
User avatar
MiDKnighT
Sage
 
Posts: 279
Joined: Mon Oct 16, 2006 4:16 pm

Re: DOAEditor and Romhacking for Destiny of an Emperor

Unread postby Boneduke » Thu Jan 18, 2018 10:04 pm

Ok implemented both, seems to be working as expected! Will have to do some general play testing through a couple chapters and see if I can't get a rare drop or two.
Boneduke
Initiate
 
Posts: 48
Joined: Sun Aug 13, 2017 5:09 pm

Re: DOAEditor and Romhacking for Destiny of an Emperor

Unread postby Boneduke » Sat Jan 20, 2018 3:29 pm

Hey Midknight, do you know is it possible in DOAEditor to change the values that are displayed in the Enemy DP drop down list?

This one:

Image

I found that by editing the aptable.tbl file I could change what is displayed for Sprite color/EAP list. But dptable.tbl file doesn't match this drop down and when I edit that one it doesn't change whats displayed in DOAEditor.

Not a big deal it just makes balancing and testing more difficult because the numbers don't match up at all with what gets assigned in game (I guess the first 15 entries or so just get pulled from the AC values specified for armor and helmets, so they get all mixed up where say 60 DP = equivalent of Plate armor but then 65 = equivalent of Bandana.) Anyways not super important but just figured I'd ask in case I was missing something obvious.
Boneduke
Initiate
 
Posts: 48
Joined: Sun Aug 13, 2017 5:09 pm

Re: DOAEditor and Romhacking for Destiny of an Emperor

Unread postby MiDKnighT » Sat Jan 20, 2018 9:40 pm

It's pulling values from the ROM and comparing them to the DP table for a number to display.

So in your dptable you must not have a value for C3 since it shows up as Unk.

There's a discussion about it here:
http://www.lordyuanshu.com/forums/topic ... ist/page/4
User avatar
MiDKnighT
Sage
 
Posts: 279
Joined: Mon Oct 16, 2006 4:16 pm

Previous

Return to Three Kingdoms Game Editing & Mods

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest

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