Home › Forums › Destiny of an Emperor › Destiny of an Editor (permanent beta test mode active)
Tagged: Destiny of an Editor, Destiny of an Emperor, Huo Hu, Niahak, ROM Hacking, Xian Zhu Xuande, Zhuge Liang
- This topic has 1,129 replies, 26 voices, and was last updated 10 years, 12 months ago by
MiDKnighT.
-
AuthorPosts
-
January 27, 2014 at 11:56 am #53292
MiDKnighT
ModeratorTried adding new text to a blank text bank and the text came up all garbled (text bank 11 after the new tactic text). Think you can label which blank slots are available to use for new text in the text section?
There’s a lot more lines available in that text bank that we aren’t even loading in DoaEditor. I’d like to be able to fully utilize that bank. That said, here’s the profile page with a new look (taking advantage of the extra space by putting all levels on one page):
January 27, 2014 at 12:46 pm #53293sonic.penguin
ModeratorI like it much better, I always forgot what was on page 2 >_>
Also, ‘Calvalry” is misspelled -> Cavalry
yeah, I’d like to use those text banks as *MOST* of the story can be made through battle prompts/finishes because the guy on the throne is so limited in terms of what and when things can be said. So far it’s looking better and better after every bug :unibrow:
January 27, 2014 at 12:51 pm #53294MiDKnighT
ModeratorWell it seems the problem with the text has to do with swapping text banks. For now don’t change text banks for villager stuff. I assume it was a villager you were working on?
Actually in the game it seems before and after text for a villager must be in the same text bank unless I’m missing something. I need to figure out what that X2 bit does. Maybe that has something to do with it.
January 27, 2014 at 1:40 pm #53295MiDKnighT
ModeratorWere you editing villager text when it happened? Battles?
January 27, 2014 at 2:46 pm #53296MiDKnighT
ModeratorSome interesting findings on the inn thing. Stored in $6011 is the heierarchy of the map. It translates to:
00 = World map
01 = Town map
02 = Inn, House, etc…Intersting that caves are 00 which is like the world map. Anyway, the key peice for inn price is this:
$91B7:AC 11 60 LDY $6011 = #$02 A:61 X:61 Y:11 S:29 P:nvUbdIzc
$91BA:BE 11 60 LDX $6011,Y @ $6013 = #$58 A:61 X:61 Y:02 S:29 P:nvUbdIzc
$91BD:BD A2 91 LDA $91A2,X @ $91FA = #$23 A:61 X:58 Y:02 S:29 P:nvUbdIzc
Breakpoint 1 Hit at $91C0: $0010-0010:EC-W– Condition:A == #23
$91C0:85 10 STA $0010 = #$46 A:23 X:5What it’s doing. Load the map heierarchy (02), then pull a value based on that from $6013. Then use that value to find the inn multiplier at $91FA in this example. Note that it also factors in the number of party members you have. I haven’t figured out the exact formula yet.
Note that when I did this test I was on chapter 7. If I do this in chapter 1 in Xu Zhou it looks like this:
0E:91B7:AC 11 60 LDY $6011 = #$02
0E:91BA:BE 11 60 LDX $6011,Y @ $6013 = #$7E
0E:91BD:BD A2 91 LDA $91A2,X @ $9220 = #$01Guess what 7E is? It’s the place ID! So it uses the place ID to look up the inn multiplier which is in a table from $91A2 to $9221 which is 0x391B2 to 0x39231:
A005201AC5A5EA20D5C420B0C9200DD14400608A48AC1160BE1160BDA2918510A9008511A200A006B99C601001E88810F7861568AA205BC12069D610004C0AD700000000000000000000000000000000000014001E002828232323001E1E001919001E1E1E28191400140C0000050A05030101010101010101010101010101
01This gives us these inn multipliers starting from the bottom:
7F=LuoSang: 01
7E=XuZhou: 01
7D=QingZhou: 01
7C=DaXing: 01
7B=TieMenXia: 01
etc…Long story short I can totally put this in the places page. Perfect for that.
EDIT: Ahh the formula is very simple. It’s just # of party members * multiplier.
January 27, 2014 at 4:06 pm #53297DragonAtma
Moderator…Out of curiosity, how much progress have we made towards editing the maps of cities, and caves?
January 27, 2014 at 4:46 pm #53299MiDKnighT
Moderator…Out of curiosity, how much progress have we made towards editing the maps of cities, and caves?
It can be done. I think I can figure it out. But giving DoaEditor the power to read it all from teh ROM and edit it will be the toughest part.
January 27, 2014 at 4:56 pm #53301sonic.penguin
ModeratorYeah, but that is the BEST part as it doesn’t require DOAEditor to rely on tons of copied pictures to pull from q.q
At any rate, I figured there was a “zone” multiplier because some camps would charge 1000+ coins (like in the Flames of Wu Mod) just to rest, but was less if I only had 3 party members so I figured that was the case.
About the text, when I ran into the issue, I was simply trying to add battle text as I’m waiting for the townspeople issues to be ferreted out. When I typed a few lines of dialogue into the extra text banks, I was usually only getting a few letters of garbled text. I hope I didn’t overwrite anything important in the rom by putting text in those blank slots.
January 27, 2014 at 5:05 pm #53302MiDKnighT
ModeratorI was simply trying to add battle text as I’m waiting for the townspeople issues to be ferreted out. When I typed a few lines of dialogue into the extra text banks, I was usually only getting a few letters of garbled text. I hope I didn’t overwrite anything important in the rom by putting text in those blank slots.
Ahh so it’s a Niahak bug. That will be tough to figure out cuz I have to figure out his code logic.
The Inn and Food stuff are almost ready:
January 27, 2014 at 5:10 pm #53303DragonAtma
ModeratorWell, let me rephrase that: how much progress have we made towards city & cave maps? Non-expanded DoaE’s 00080-087FF looks it has some 16×16 and 32×32 maps — which would be 32×32 and 64×64 maps if they still use the 2×2 tiling they do for the overworld.
…also it wouldn’t surprise me if the area maps are right next to the overworld maps in the game, and since we (or, rather, some of you) know where the overworld maps are…
January 27, 2014 at 5:18 pm #53304MiDKnighT
ModeratorI already know the general area where caves and town tile maps are stored (pages 06 and 07). See: http://www.lordyuanshu.com/forums/topic/town-and-cave-editing
What I would need to find next is how the regions are mapped out and how the tiles are built.
January 27, 2014 at 6:06 pm #53305DragonAtma
ModeratorAha; this is what I get for being a bit out-of-touch on doae!
January 27, 2014 at 6:18 pm #53306sonic.penguin
ModeratorAha; this is what I get for being a bit out-of-touch on doae!
Blasphemy! Jin Xuan shall strike you down via the wrath of heaven!
Ahh so it’s a Niahak bug. That will be tough to figure out cuz I have to figure out his code logic.
yeah, It was in the blank text banks. They should probably be labeled as
so the no one overwrites precious code which is SUPER easy to do with the text editor… I found that out the hard way with Rise of Lu Bu as it took FOREVER because I always was writing over something important which borked the game. Glad food is on there, but make sure that it changes the ‘displayed’ food in addition to the amount it actually gives you.
January 27, 2014 at 6:34 pm #53307DragonAtma
ModeratorToo late! My having the flu will protect me from any smite attempts! Or something.
January 27, 2014 at 6:47 pm #53308MiDKnighT
ModeratorGlad food is on there, but make sure that it changes the ‘displayed’ food in addition to the amount it actually gives you.
Yep, when it displays it will display the “real” values but when it saves it will save to both the real and displayed values.
That said, both places are stored in a completely different format which makes me… :retard:
-
AuthorPosts
- You must be logged in to reply to this topic.



