Home › Forums › Destiny of an Emperor › Destiny of an Emperor Hacking Notes
- This topic has 37 replies, 6 voices, and was last updated 15 years ago by Xian Zhu Xuande.
-
AuthorPosts
-
May 28, 2008 at 4:30 am #29971NiahakModerator
Xian Zhu Xuande said:
In short, you can recruit Li Ru after Luoyang, fight Chang’an without Li Ru there, but then… recruit Li Ru in the wild again? WTF?
This was one of the things I was afraid we might run into. What characters are in multiple battles "naturally"?
-Lu Bu (he has clones and probably doesn’t count)
-Yuan Shao and co. ("joke" battle and then the real one)
-Cheng Yuanzhi, I think. One of the turbz.
-anyone else?
May 28, 2008 at 4:47 am #29972Xian Zhu XuandeParticipantZheng Mao… or whatever his name is. Another turb.
Xing Dao Rong is a prime example.
Zheng Mao can be recruited after the second battle.
Xing Dao Rong cannot ever be recruited (in the regular ROM).
Xu Zhu… and maybe Dian Wei (I forget).
May 28, 2008 at 5:49 am #29973Lord Yuan ShuKeymasterYea, Dian Wei appears at the first gate on your way to Luo Yang the second time, with Hou Cheng and Liu Ye. That is if you don’t recruit him after beating him at Ru Nan.
I can’t think of anyone else I think you guys named them all.
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingMay 28, 2008 at 4:48 pm #29974NiahakModeratorOfficer structure notes (from various sources, as well as DoaEd code)
STR
INT
Region
Sprite
Sprite color (AP as enemy)
DP as enemy
Soldiers (Enemy)
Soldiers (Ally)
Tactics
AGI
portrait 1
portrait 2
portrait 3
portrait 4
portrait 5
portrait 6
portrait BG (single-color BG only)
unknown
unknown
Name spacing
Officer name
I don’t think we ever figured out the two unknowns before the name-spacing byte.
Liu Bei has: 0203
Guan Yu has: 7071
Zhang Fei has: 0F50
Guan Xing has: 7096
Zhang Bao has: 0F10
Liu Feng: 020E
Xing Daorong has: 2526(27) <—-Name spacing byte…
So I’ve come to a conclusion on those unknowns and a resolution to what the name-spacing byte is.
Notice:
Liu Bei, Liu Feng have 02XX
Guan Yu, Guan Xing have 70XX
Zhang Fei, Zhang Bao: 0FXX
Every character with 3 has not-FF before their actual name, so I think that these are the "old" names (i.e. the characters used for the names in the original Japanese version). They don’t seem to be used in the US version (except, in the case of the third byte, for spacing).
After a more careful inspection of Xing Daorong’s section, I don’t see much unusual… his portrait background byte is a bit strange (E8) which might merit investigation.
Who are all the officers that are totally unrecruitable, even though they appear in random battles? Lu Bu always has C9 for his portrait background, but then Xu Sheng has C5… is Xu Sheng recruitable? Gan Ning? Tao Qian? All of them have CX for their portrait…
May 28, 2008 at 5:02 pm #29975Xian Zhu XuandeParticipantAll of them are.
Jia Xu is not… Dong Min, Xing Dao Rong…
Zhang He… (they are listed out in my FAQ… must behave at work!) :shock:
February 9, 2009 at 7:17 am #29976Xian Zhu XuandeParticipantThe Sought-After An Sha Flag, Finally Revealed!
When An Sha is used a series of checks are initiated to determine if it is successful or not. In one of those checks the game references an eight-entry array located at 3BC5D to see if the targeted officer is immune to An Sha. In English, up to eight officers can be specified as An Sha-immune. In the original ROM those values are 57 71 88 00 00 00 00 00 with 57 being Sun Quan, 71 being Cao Pi, and 88 being Sima Yi. To add new officers simply enter their location value in place of a ’00’ entry. The first three entries can also be altered.
Here is the location of the An Sha flag in the ROM:
Many thanks to MeteorStrike for outlining the game mechanics behind this!
February 9, 2009 at 2:54 pm #29977DragonAtmaModeratorOoh! That’ll help me boost the number of unanshaable characters…
…I’m not going to even ask what happens if you stick "unanshaaable" in a spell checker…
February 9, 2009 at 3:31 pm #29978Lord Yuan ShuKeymasterUn-An Sha-able. Love it DA.
Honestly, I thought James already had this figured it. Seemed to me during DoaE 2.0 there were more than just Sima Yi and Cao Pi and Sun Quan that were anti An Sha. Maybe that’s just my memory failing me though….
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingFebruary 10, 2009 at 6:14 am #29979Xian Zhu XuandeParticipantThe No-Billeting-For-You Flag, Finally Revealed!
When you attempt to place an officer in billeting the game references an array of up to seven possible officers who cannot be stored away. This array is located at 39580 and by default contains the values A8 A9 AA AC AD BC D5 (see below to see which officer is referenced by each entry). To remove an officer simply set their entry to ’00’. To add a new officer, simply enter their location value (see below) over one of the eight available slots. Please note that there are different scripts for officers which may not be removed from your party. I haven’t tested it yet, but scripts are probably tied to specific entries in the array.
By default the following officers cannot be removed:
Code:A8 = Liu Bei
A9 = Guan Yu
AA = Zhang Fei
AC = Guan Xing
AD = Zhang Bao
BC = Lu Bu
D5 = Zhu Ge LiangHere is the location of the Billeting flag in the ROM:
Many thanks to MeteorStrike for outlining the game mechanics behind this!
Cao Pi, in the Destiny of an Emperor 2.0 Cao Cao Edition, is altered so he cannot be placed into billeting using the information above. His role is that of Liu Feng in the original Destiny of an Emperor.
February 10, 2009 at 1:47 pm #29980Lord Yuan ShuKeymasterJeez between the general no-billeting flag…the An Sha flag…and the ambush flag…what else is there?
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingFebruary 11, 2009 at 4:42 am #29981Xian Zhu XuandeParticipantWe still haven’t found out how to flag ambushes yet. It might be hard-coded. But MeteorStrike did outline how the ROM queries itself to make it happen when I asked about it, so we’ve got something to experiment with. :)
February 11, 2009 at 5:13 am #29982Lord Yuan ShuKeymasterYea it seemed like he might be done. Hopefully not, he’s finding some neat things.
One thing I thought of bringing up to him is the Yuan Shu text in the Text Editor. Maybe he can find a flag for an optional battle against Yuan Shu at Nan Yang to explain those weird, unused lines we found :) I mean he found that extra Bow.
Also, did I see a Battleaxe listed in Cheng Dou? I’ve never found one there…
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingFebruary 11, 2009 at 6:48 am #29983Xian Zhu XuandeParticipantThere’s a Scimitar in Chengdu. I always forget about it, but I did know about it—I just checked an old version of my own FAQ and there it is in black and white. I forgot about it on my most recent playthrough working on the Cao Cao mod as well. A shame, because it would have been useful all the way through Wu.
As for what MeteorStrike is doing, he’s basically monitoring the code being processed by the ROM in real time. In other words, as long as he can do something, he’s got a good shot of figuring out how it is actually happening. This works fine for something like tactics, An Sha, billeting, or picking up a hidden treasure, but I doubt it’s going to do him a lick of good in figuring out what dormant code may be resting in the ROM when that code is never executed. :(
February 14, 2009 at 9:58 pm #29984DragonAtmaModeratorSpeaking of hacking notes, Guo Si (or whoever’s in his slot) is shy and often fails to appear as an enemy in combat even if they’re programmed for their slot. Anyone up fopr examining it?
February 14, 2009 at 10:10 pm #29985NiahakModeratorYeah, Meteorstrike is effectively using a debugger – something I’ve been a bit leery of trying, since it means I’d have to relearn the workings of assembly. It’s a sure-fire way to find stuff, but the learning curve is killer.
-
AuthorPosts
- You must be logged in to reply to this topic.