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 9 years ago by MiDKnighT.
-
AuthorPosts
-
October 11, 2007 at 10:50 pm #4460NiahakModerator
The most recent beta version is available here. Please test it and let me know what bears fixin’!
If anyone wants to help maintain the code, or in the event of a loss of interest or unfortunate accident on my part, the code for Destiny of an Editor is freely available at the following SVN:
http://www.dev.niahak.org/DoaEditor/
The only restriction I have is that you must not laugh at my awful code organization. This was built compromise upon compromise over the course of four years.
<span style=”text-decoration:underline;”><span style=”color: yellow;”>What is “DOAEditor” you say?</span></span>
Well to put it plainly, DOAEditor is a hex editing tool that uses a point, click, and type functionality to modify many of the functions in Destiny of an Emperor without having to go into detail about ‘hexing’ everything in. It was created by Niahak @ niahak.org and has currently been modified to incorporate more features by MiDKnighT here at the lordyuanshu.com/forums website. This tool has come a LONG way since its original incarnations but has made hacking Destiny of an Emperor by far much more simple to the average person.
<span style=”color: yellow;”>Original DOAEditor:</span>
<span style=”color: yellow;”>
Current DOAEditor:</span>
Quite impressive!
—————————————————–
Changelog (since 0.90):0.98r
– New Item Page and Places Page (just shops) – MiDKnighT
0.98q
– New Tactic Page and Profile page (MiDKnighT)
0.98p
-Additional bank expansion and configurable 3rd text bank (with possibility for more).
-MiDKnighT’s changes for LDR/INT/POL.
-Added portrait selector widget.
-Many minor tweaks and fixes I can’t remember right now.
0.98g
-Removed the annoying “Unknown key: 4D” messagebox. Sorry!
-Fixed sorting on DP list.
0.98f
-? I’m not sure why, but I seem to have this unofficially released version.
0.98e
-Fixed a long-standing bug where sufficiently long dialogue lines would corrupt your ROM. Sorry about that!
0.98d
-Bugfix for .98c.
…
-Added map editing, portrait loading from the ROM, manual expansion, battle editing, battle taunt/closer editing, improved overall editing stability and such.
0.94
-Added color previews of sprites and portraits
-Fixed manual entry of portrait hex
0.93
-Added toggle for an officer’s immunity to An Sha
-Added toggle for an officer’s inability to be billeted
0.91
-Added ability to sort by officer names or appearance order in ROM
-Added hex of officer (used in battle references, etc)
-Switched portrait values to comboboxes; now no reload is necessary to see the new portrait (customizing portraits is MUCH easier)
-Added About message box
-General UI tweaks (size, placement)
-Better handling of a “reload” (loading a rom without restarting the app)
we now return you to your regularly scheduled topic
Of course, I’d call it Destiny of an Editor.So. Being the practical software engineer-in-training I am, I’d like to know what you’d like to see. i.e. gathering “requirements”.
Honestly, I can’t guarantee this’ll get off the ground. Partly depends on my motivation, partly depends on the response here.
Here’s more or less what I’m envisioning right now.
It’s obviously pretty basic (that’s one of the RTK fonts, used it to get myself pumped :) )…
But beyond this, what do you guys want? Do you like the interface? Would you prefer a different layout?
I can’t guarantee exact soldier amounts and colors at this point, or portrait previews. If they’re laid out logically in the ROM I *may* be able to extract something… or I could store a table of hex values-> soldier amounts somewhere (i.e. 14 goes to 314, 85 goes to one of the growth sets).
Oh, and with this design I’ll want people to hit the “save” button before switching to the next officer. This makes things a lot easier on me (since I’d validate stuff before saving it).
I might be able to start this up this weekend. I don’t know how long it’ll take, but it’ll probably be not-too-bad in C#.
Also: James, if you happen to have a table of soldier amounts from making a FAQ or anything… that would help a lot. Any additional information you’ve gleaned from the ROM would also be very helpful.
MUCH easier)October 11, 2007 at 10:58 pm #26681Xian Zhu XuandeParticipant1) What font is that? Can I have it?
2) Have you figured out how to edit defense? I cannot.
I think the defense value is based on region.
3) I will make two posts after this one. First, I will give you the officer information I have placed in my FAQ. It can be cross-referenced with the ROM. Second, I will give you the notes I was taking relative to the hex values. I have been using them while editing the ROM myself.
October 11, 2007 at 10:59 pm #26682Xian Zhu XuandeParticipantName Str. Int. Sld. Join? Notes
---- ----
Chen Deng 94 157 153 C
Cheng Yuan Zhi 85 68 195 Y *Cheng Yuanzhi
Guan Yu 245 180 *LV S
Han Zhong 80 30 204 Y
Liu Bei 180 225 314 S
Ma Yuan Yi 76 34 177 N *Ma Yuanyi
Mi Zhe 73 157 161 C *Mi Zhu
Song Ren 80 100 110 C *Fictional
Song Yong 60 40 104 C *Fictional
Zhang Bao 68 144 299 - *Yellow Turban
Zhang Fei 250 75 *LV S
Zhang Jao 93 136 346 - *Zhang Jue
Zhang Liang 102 34 259 -
Zheng Mao 93 34 153 Y
Chapter 2
Cai Yong 117 180 380 Y
Dong Min 72 36 380 N*1
Dong Zhou 162 72 439 -
Fen Chou 153 36 399 Y
Guan Ping 200 137 418 S*3
Guo Ji 128 72 418 Y
Hu Zhen 90 45 299 Y
Huo Hu 80 175 236 C *Fictional
Hua Xiong 162 36 439 Y
Jia Xu 18 220 418 N
Li Jue 120 72 399 Y
Li Ru 18 200 362 Y
Li Su 99 45 299 Y
Liu Feng 187 162 399 S
Lu Bu 255 72 439 S
Wang Gui 110 40 346 C
Xu Rong 90 117 314 Y
Yang Jin 125 40 247 C
Zhang Ji 147 36 362 Y
Zhou Chao 140 20 346 C
Chapter 3
Chen Ji 85 47 531 Y
Chen Lan 76 57 460 Y
Han Xian 114 38 585 Y
Ji Ling 192 47 613 Y
Lei Bo 142 76 643 Y
Li Feng 76 57 557 Y
Liang Gang 85 28 506 Y
Liang Ji 85 76 643 Y
Lu Fan 76 161 817 Y
Yuan Shu 142 152 899 -/N
Yuan Yin 133 142 643 N
Zhang Xun 183 28 675 Y
Chapter 4
Gao Lan 100 60 942 Y
Guo Tu 180 90 1317 Y
Ju Shou 40 180 1449 Y
Lu Bu (2) 255 40 1449 N
Lu Guang 160 50 1037 Y
Lu Xiang 150 50 942 Y
Ma Yan 90 80 942 Y
Shen Pei 60 130 1255 Y
Tian Feng 120 160 1141 Y
Wen Hun 190 40 1449 Y *Wen Chou
Xu Shou 40 170 1255 Y *Xu You
Xu Zhe 73 220 643 S *Xu Shu
Yan Liang 180 40 1381 Y
Yuan Shang 170 140 1672 N*1
Yuan Shao 170 140 1754 -
Yuan Shu 142 152 899 -
Yuan Tan 160 130 1594 N
Yuan Xi 140 120 1519 N
Zhang He 210 150 1317 N
Zhang Yi 100 90 989 Y
Zhao Yun 245 216 *LV S
Zhou Cang 215 85 506 C
Chapter 5
Bao Long 126 63 1255 Y
Chen Ying 136 42 1197 Y
Gong Zhi 94 157 1197 Y
Han Xuan 136 126 1519 N
Huang Zhong 235 147 *LV S
Jin Xuan 147 42 1317 N
Liu Du 126 157 1672 N
Liu Yang 126 126 1381 N
Ma Liang 59 211 1449 C
Ma Su 138 195 1754 C
Pang Tong 99 240 3765 S
Wei Yan 228 136 1317 S
Xing Dao Rong 168 31 1519 N *Xingdao Rong
Yang Ling 168 42 1197 Y
Zhao Fan 136 105 1594 N*1
Zhuge Liang 122 255 *LV S *Zhuge Liang
Chapter 6
Fa Zheng 66 198 2965 Y
Gao Pei 172 88 2827 Y
Huang Quan 66 165 2695 Y
Lei Tong 184 88 3110 Y
Leng Bao 180 99 2024 Y
Li Yan 90 160 2827 Y
Liu Ba 99 176 2569 Y
Liu Kui 110 110 3262 Y
Liu Xun 132 99 3110 Y
Liu Zheng 110 110 4142 N *Liu Zhang
Lu Bu (3) 255 40 7003 -
Ma Chao 245 162 *LV S
Ma Dai 225 175 3110 S
Meng Da 154 132 3589 Y
Pang De 212 200 2965 N*2
Tao Qian 90 160 2226 Y *Whah? Still Alive?
Wang Lei 135 132 2827 Y
Wu Fan 69 184 5014 Y
Wu Lan 180 99 2965 Y
Wu Yi 176 143 3589 Y
Yan Yan 207 154 3262 Y
Yang Huai 165 99 2965 Y
Zhang Ren 207 165 3262 Y
Chapter 7
Bu Xi 124 192 7003 Y *Bu Xie
Chen Pu 120 210 9326 Y *Cheng Pu
Chen Wu 161 115 5014 Y
Ding Feng 120 184 15769 Y
Fan Zhang 185 90 4780 Y
Gan Ning 223 140 6069 Y
Gu Yong 127 184 5014 Y
Guan Xing 237 175 *LV S
Han Dang 180 115 5516 Y
Huang Gai 217 103 9326 Y
Jang Qin 182 115 5259 Y *Jiang Qin
Kan Ze 160 199 5259 Y
Ling Tong 161 103 5516 Y
Lu Ji 57 161 11289 Y
Lu Meng 130 225 14333 N*5
Lu Su 120 218 6365 Y
Lu Sun 215 240 11841 Y *Lu Xun
Sun Huan 215 115 16540 N
Sun Quan 228 207 19087 -
Sun Yi 172 46 15769 N
Sun Yu 210 180 13027 N
Tai Si Ci 230 123 15769 Y *Taishi Ci
Xu Sheng 195 103 11289 Y
Xue Zong 69 115 9326 Y
Yan Xun 69 138 10261 N *Who?
Zhang Bao 240 150 *LV S *Zhang Fei Son
Zhang Hong 113 211 10763 Y
Zhang Zhao 140 240 8082 Y
Zhou Tai 180 45 10763 Y
Zhou Yu 195 230 6365 Y
Zhu Ge Jin 125 215 6365 Y *Zhuge Jin
Zhu Zhi 210 95 10261 Y
Chapter 8/9
Cao Ang 180 84 18197 Y*4
Cao Chun 168 48 13665 Y*4
Cao Hong 156 60 11841 Y*4
Cao Pi 216 204 20020 -
Cao Ren 180 156 14333 Y*4
Cao Xiu 168 108 15034 Y*4
Cao Zhang 242 168 19087 Y*4
Cao Zhen 192 192 10763 Y*4
Cao Zhi 132 220 13665 Y*4
Chen Jiao 48 192 11841 N
Chen Qun 72 228 24233 Y
Cheng Yu 148 216 24233 N
Dian Wei 222 48 20020 Y
Guo Jia 24 228 14333 N
Hou Cheng 192 108 18197 Y
Jiang Gan 136 180 19087 Y
Jiang Wei 204 225 *LV C
Le Xin 168 72 29332 Y *Yue Jin
Li Dian 156 108 23103 Y
Liu Dai 168 84 26661 Y
Liu Ye 60 180 16540 Y
Lu Wen 168 132 22026 Y
Mao Jie 132 72 24233 Y
Niu Jin 204 36 20020 Y
Pang De 212 200 2965 Y
Si Ma Shi 192 220 27965 - *Sima Shi
Si Ma Yi 180 250 40972 - *Sima Yi
Si Ma Zhao 180 232 30767 - *Sima Zhao
Song Xian 168 60 13665 N
Wang Can 36 204 26661 Y
Wang Lang 148 168 13027 N
Wang Shuang 216 48 20999 Y
Wei Xu 180 84 27965 N
Xia Hou De 168 132 16540 Y*4 *Xiahou De
Xia Hou Dun 204 192 13665 Y*4 *Xiahou Dun
Xia Hou Mao 180 84 16540 Y*4 *Xiahou Mao
Xia Hou Shang 156 144 17349 Y*4 *Xiahou Shang
Xia Hou Yuan 204 168 11289 Y*4 *Xiahou Yuan
Xu Huang 216 108 18197 N
Xu Zhu 228 24 20020 N *Xu Chu
Xun Huo 72 228 25418 Y *Xun Yu
Yang Xiu 124 228 20999 Y
Yu Jin 200 48 30767 N
Zhang Liao 232 216 13027 YOctober 11, 2007 at 11:00 pm #26683Xian Zhu XuandeParticipantHere are the soldier Hex values I have recorded while playing the ROM:
(Please share if you add any new information!)
03 110
0B 161
0D 177
10 204
15 259
18 299
19 314
1B 346
1E 399
1F 418
20 439
21 460
23 506
2F 899
32 1037
38 1381
3B 1594
48 2965
4A 3262
4D 3765
58 6365
5D 8082
60 9326
62 10261
63 10763
64 11289
65 11841
67 13027
68 13665
69 14333
6B 15769
6C 16540
6E 18197
6F 19087
70 20020
74 24233
77 27965
79 30767
7F 40972October 11, 2007 at 11:08 pm #26684CommieCatGirlParticipantYes, this is exactly what I want to see. I’m a lazy punk and something like this suits my tastes exactly
You have to remember, though; the very thing that makes you a nerd is that your enthusiasms are totally unrelatable and non-marketable to most of the world. For example, anime and celibacy. - Seanbaby
October 11, 2007 at 11:14 pm #26685Xian Zhu XuandeParticipantThe third hex value—the one after intelligence—has something to do with the region. I think it may determine where that officer would appear in random encounters if that officer is coded to do so (there may be a value for this—it has nothing to do with this entry). I suspect if we changed Chen Jiao to 07, for example, he would appear in Wu instead of Wei.
Wei is coded 08. Shu is coded 06. Pang De is coded 08.
The ninth hex value—after soldiers—is the level of an officer’s tactics when you oppose them. If I gave Sima Yi a value of 00, for example, he would not have any tactics at all. (Looking back Capcom assigns 01 to achieve this). Sima Yi’s value is 0E—the highest value assigned by default to any officer. I gave him 0F to see what would happen and nothing changed. I’ve been planning to see what might happen if I gave him 255 intelligence and 0F. I expect nothing. It is by using this value Capcom made sure Jia Xu doesn’t collect heads in Dong Zhuo’s territory, or that Wei Xu sucked just a little bit more because he could use some lame-ass fire tactic instead of doing something meaningful.
The sixth hex value is still a mystery to me. It does progress somewhat relative to region, though. Even then, you can have mixed values in a region. Xiahou Mao is 0E, but Li Dian is 0F.
Portrait Background seems to have nothing to do with defense values.
The last two values are also unknown to me. ‘FF’ appears commonly in the last region of the game—but curiously not on Sima Yi. I suspect one of these values plays a role in when the officer can be recruited.
October 11, 2007 at 11:16 pm #26686Lord Yuan ShuKeymasterYea I’d say that looks like a very user friendly interface. I’m definitely interested. The font is cool too, I agree.
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingOctober 11, 2007 at 11:17 pm #26687NiahakModeratorGreat, that helps me out a lot!
First: font is here.
I got it from a friend, actually. I’m not certain what RTK it goes to, but it looks like 3’s to me.
I have not figured out how to edit defense; I assumed it was hidden in there somewhere, but it might be region-based.
Thanks for the info. With that, I should be able to figure out most of what I need for soldier values, and STR/INT/AGI is easy too.
/edit: While posting this, you replied with what I needed. Thanks again!
October 11, 2007 at 11:37 pm #26688Xian Zhu XuandeParticipantNiahak said:
I have not figured out how to edit defense; I assumed it was hidden in there somewhere, but it might be region-based.
I guess it is a little more complicated than that.
Oh Shit!
Sure would suck to stumble across that in Shu!
I moved Xun Yu in this case to Shu by changing his value from 08 to 06. He retained his defense. I
October 12, 2007 at 2:08 am #26689Xian Zhu XuandeParticipantYes, I’m still wasting time on this. So I figured out how to edit defense… sort of…I AM IRON MAN!!
Screwed!
Yes, I’m testing a new officer using Cheng Yu’s profile.
Edit: No, the officer will not have 255 defense.
October 12, 2007 at 2:18 am #26690NiahakModeratorSo what does determine defense? Is it actually in the officer stats section? That would certainly make things a lot easier…
October 12, 2007 at 2:54 am #26691Xian Zhu XuandeParticipant[quote:8ca4bd4657="Niahak"]So what does determine defense? Is it actually in the officer stats section? That would certainly make things a lot easier…[/quote:8ca4bd4657]rnIt is, but it isn’t as easy as you might think.rnrnI did all the hard work.rnrn[b:8ca4bd4657]Somewhat Normal Numbers[/b:8ca4bd4657]rn[code:1:8ca4bd4657]00 10rn01 20rn02 25rn03 35rn04 40rn05 45rn06 48rn07 50rn08 60rn09 70rn15 80rn0B 85rn16 90rn28 95rn0D 100rn0A 110rn43 130rn0C 160rn0E 170rn0F 180rn48 185rn59 200[/code:1:8ca4bd4657]rnrn[b:8ca4bd4657]Random Nonsense[/b:8ca4bd4657]rn[code:1:8ca4bd4657]4B 133rn57 156rn56 157rn52 160rn4A 166rn40 169rn54 177rn45 188rn59 200rn51 244rn1F 255[/code:1:8ca4bd4657]rnrnSee those hex values? See how there is almost no consistency from one to the next? It is absolutely screwed up how randomly the defense stat can jump with even a single digit increment. I’m not sure how I missed this before because when I was checking all the values I tried overwriting them with various alternatives. Defense didn’t change when I was paying attention to it. rnrn[b:8ca4bd4657]Defense is the unknown value after Sprite Color/Attack.[/b:8ca4bd4657]rnrnI tested pretty thoroughly from 00 all the way up to 70. I bet, somewhere up there, you can find values for 120, 140, 150… 190. I’m starting to get a headache from looking at this, though, and I got what I wanted: 200. That cuts damage about 25-30% from 180 (based on what I was seeing) so it is the perfect value to turn Sima Yi into the grand dick of DoaE.rnrnAs always, let me know if you find something new.rnrn(I did not get values of officers which appear early in the game. That may be the best way to get all the standard game defense values.)’);
October 12, 2007 at 3:56 am #26692Xian Zhu XuandeParticipantPortrait Background Colors
October 12, 2007 at 4:22 am #26693NiahakModeratorI’m going to have to include "clown barf" in there.
Does 00 blank out the portrait regardless of what you actually chose?
October 12, 2007 at 5:10 am #26694Xian Zhu XuandeParticipantNiahak said:
Does 00 blank out the portrait regardless of what you actually chose?
Yeah. I imagine it is used for Rebel Forces and the like.
I’ve been working on this while doing real work. When I get bored of the real work, I make something in the ROM. My poor computer has so much crap open…
Cao Cao!
Portrait blacked out with ”00”.Cao Cao
E1 FA 08 14 50 59 7F 7F 1E EB 1E 1F 20 21 22 23 00
I was contemplating replacing Song Xian with Ghost Cao or Angry Cao, a random Cao Cao encounter you can come across. The spirit of Cao Cao, pissed as hell about Sima Yi’s popcockery and Cao Pi’s tomfoolery. It would be the coolest things Song Xian has ever done.’);
-
AuthorPosts
- You must be logged in to reply to this topic.