Home › Forums › Destiny of an Emperor › The ‘What Really Happened’ hack
Tagged: Destiny of an Editor, Destiny of an Emperor, Destiny of an Emperor Mod, Huo Hu, Song Ren, Song Yong, Zhou Chao
- This topic has 81 replies, 8 voices, and was last updated 1 year, 6 months ago by Lord Yuan Shu.
-
AuthorPosts
-
October 5, 2007 at 11:33 pm #4400NiahakModerator
Edit: This is a hack so that Huo Hu, Song Yong, Song Ren, Wang Gui, Yang Jin, and Zhou Chao (all the fake characters) gain levels, while the Tiger Generals and their comrades do not.
The patch is complete and is here:
http://www.niahak.org/sm/DOAEWRH.zip
Again, disclaimer; this won’t work with regular DOAE saves, it’s probably tough as nails (though I’ve tried to give the Tiger Generals decent static soldier amounts for their areas), and I can’t guarantee everything will work as you expect, though I haven’t changed anything except those 6 generals.
Directions:
1. Download and unzip this to the same folder as a DOAE rom.
2. Download Lunar IPS, which is a patcher utility, here. (Courtesy of Romhacking.net :) )
3. Run Lunar IPS. Choose to "Apply IPS Patch", select this IPS and your DOAE rom.
4. Try it out!
—-following is a little log of my travails
So I’ve looked into this a bit. That is, hacking the game so that Huo Hu, the Song brothers, Wang Gui, Yang Jin and Zhou Chao gain levels. :)
Text is really, really weird in this game. Near as I can tell there’s a funky dictionary, spacing is carefully done using it, etc, etc. So text replacement may be out of the question for now.
Officers are more interesting! I tried maxing out Song Ren’s entire stats section to see if I could find what all is determined by it. The result?
YOU’RE not Song Ren!
Definitely NOT Song Ren!
Then I realized it…
You’re not Song Yong, either!
I’m guessing the "officer" image is actually somehow linked to the previous officer’s stats section… but Song Yong’s face and other stats are all the same as before. Song Ren had stolen Song Yong’s body, but somehow Song Yong had stolen someone else’s to make up for it.
Anyway, not important. I’m not going to mess with that section any more than I have to, anyway.
However, this was still a learning experience. He went first in every battle, so I know AGI is in there somewhere too!
Interestingly
Officer data is stored as follows:
STR
INT
(AGI?)
I’m going to take a break (been working on it for over an hour) but hopefully I’ll have something more substantial to show for my "work" soon :) With some luck, I’ll figure out where troops are read from.
October 5, 2007 at 11:44 pm #25449Xian Zhu XuandeParticipantI was thinking about this, but I have no knowledge upon which to base the task! Maybe one of the values is actually linked to a portrait? Yes, there would be an agility stat. It does exist, but it is hidden.
No need to change the stats, even. Just level-ups alone would be wonderful enough! Show me some of the data you are editing and maybe I can guess something?
Edit: I just opened a ROM in my hex editor. Gibberish!
October 6, 2007 at 12:53 am #25450NiahakModeratorOkay, with a bit more experimentation:
The values after STR and INT are a bit of a mystery.
First: Unknown
Second: Character look (i.e. the sprite, the one that got messed up for Song Yong above.
Third: Character look (also sprite). Interestingly, this is coloration of the sprite (like the Demonic Huo Hu).
Fourth: Unknown
Fifth: Unknown
Sixth: Unknown
Seventh: Unknown
Eighth: AGI!
Ninth: Portrait, top 6th. As an experiment, I gave Song Ren Song Yong’s hat.
With a bit more experimentation, there are 6 areas for the portrait.
You can see a bit of Guan Xing there; Actually, this is kind of neat. There are only 255 values for one of those 6ths (i.e. you could have that pic of Guan Xing’s nose for all 6 sections).
Put in a bigger perspective… how many unique (non-generic) portraits are there? I counted at least 18 – say 20. That’s 120 values, half of the possible portrait chunks, just for unique characters. I wonder how they came up with this idea.
Anyways, the 9th through the 14th values are for the portrait.
15th is… the portrait background (for the generic people)!
16th: Unknown.
17th: Unknown.
Armed with this knowledge, we could perhaps give Guan Yu and Zhang Fei Song Yong/Song Ren’s names, sprites, and portraits, but that would be the easy way out, wouldn’t it!
*sigh* After nearly another hour of effort, I can’t figure out how the soldiers are stored! They don’t seem to be in standard binary format
(i.e. maximum is 64k some) nor in decimal (i.e. "3" "1" "4" for 314).
I’ll continue looking a bit later.
October 6, 2007 at 1:07 am #25451CommieCatGirlParticipantHmm, maybe you could do like you said, replace Guan Yu And Zhang Fei with Song Yong Ren (and have it so you hire Guan Yu and Zhang Fei in the village) then you could awaken the Sleeping Dragon, Huo Hu, later. :cool:
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 6, 2007 at 1:09 am #25452NiahakModeratorIf you want to see where all this stuff is:
Officer stats start at 0x00032800 and end at 0x00033E20.
(Interestingly enough, Tao Qian has stats! He has 90 STR and 160 INT)
If you want to be able to see the names, you can use this table – most hex editors geared toward hacking let you load one in.
I’m gonna take a break for now, though – for real this time! Sometimes I start this kind of thing and don’t think to stop until I look at the time and it’s hours later… and suddenly I realize I’m starving. :lol:
October 6, 2007 at 2:23 am #25453ATLUSParticipantI want to play this very badly!
starving kills
October 6, 2007 at 5:10 am #25454Xian Zhu XuandeParticipantUgh… I’m messing with this now. First time doing this stuff.
I created a Song Yong with 85 Str, 85 Int, 5515 Soldiers, and a messed up portrait. Do you have specific information? I’ve got a good idea of how to figure this out but using these Windows programs is hard for me because I’ve never used them before. I’m still trying to figure out how to work with save states in FCE Ultra.
I’m ending for now. I would probably waste a couple hours trying to determine the nature of each hexadecimal value before I caught up with what you probably already know and can easily explain yourself. I wonder if the officer level-ups is just a flag somewhere—perhaps with several pre-defined values which may be used as multiples—and I wonder if it is stored in this section of the ROM. Maybe we can get somewhere by looking for consistencies between, say, Ma Chao and Zhuge Liang, who should share the same flag (as they have the same troop totals).
October 6, 2007 at 5:43 am #25455NiahakModeratorOh, awesome. How’d you get Song Yong with a different number of soldiers? I haven’t found where the soldier amount is set in the ROM. Setting all the fields to FF didn’t help any…
I’m guessing the level-ups are a flag… the trick is figuring out where it is. It would probably be near the soldier amount numbers… I’m guessing there are set "types" of level ups (aren’t there a couple of the generals that have the same number of soldiers at each level)? If there’s simply a flag for it in the general’s info then that would make the job a lot easier.
October 6, 2007 at 7:01 am #25456Xian Zhu XuandeParticipantHere’s what I did (before I wander off to sleep). I found Song Yong and Song Ren in the range you posted (I just searched for ‘Song’ as a string). I then replaced every value field after the name with ’55’ to see what might happen, then loaded the game. I couldn’t make any sense out of the values which had already been entered, so I entered ’55’ to see what game elements would be affected. Song Ren was hardly altered (though his in-game sprite was changed), but Song Yong was completely changed around.
I think the values come before the name, not afterward. So the ’55’s I entered for Song Ren applied to Song Yong, and those I entered for Song Yong applied to another officer. My next step would have been to gradually deduce which fields were affected by what changes by limiting what I enter. And if the level-up flag occurs somewhere in that range, we should probably consider a lower hexadecimal value… like, perhaps, 03. There wouldn’t be many potential flags. When I compared Zhao Yun and others, though, I didn’t really see patterns. But I wasn’t really looking at the values I should have been.
October 6, 2007 at 7:26 am #25457Lord Yuan ShuKeymasterHmm…really interesting stuff guys.
First off, the Tao Qian you mentioned Niahak is an actual enemy general in the Shu area (Fu Shui Gate). Not the Tao Qian you’re thinking of at Xu Zhou castle.
9 characters gain soldiers – Zhang Fei, Guan Yu, Zhao Yun, Huang Zhong, Ma Chao, Zhu Ge Liang, Guan Xing, Zhang Bao and Jiang Wei. As far as unique portraits I think I counted 30 total (and then you have to figure there are another 30+ of generic styles).
Jiang Wei and Zhao Yun have the same soldier level up rate, as do Ma Chao and Zhuge Liang. One thing that is interesting up the soldier level up rate is that Zhao Yun / Jiang Wei’s totals are really low at first but gradually catch up to even besides Zhang Bao.
By the way, about the maximum soldiers. On level 51 Zhang Bao is the highest at 43332 soldiers. At level 50 it’s 40972 I believe…the same as Si Ma Yi.
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingOctober 6, 2007 at 4:33 pm #25458NiahakModeratorOh, neat stuff! I got the 5516 soldiers for Song Yong, and I just noticed now Song Yong can be a strategist with an impressive 85 int :)
Now to find out just which values give you troops.
After some experimentation, I got Song Ren 5516 soldiers with the sixth value.
So, the entire format is:
(Prev officer’s name)
STR
INT
unk
Sprite
Sprite color (you can make a dark Liu Bei, looks pretty cool :) )
unk
unk
Soldiers!
unk
AGI
portrait 1
portrait 2
portrait 3
portrait 4
portrait 5
portrait 6
portrait BG (single-color BG only)
unk
unk
Officer name
The soldier values are looked up in a table.
For example, Song Ren’s is 03 (110 soldiers), Song Yong’s is 02 (104 soldiers), and Liu Bei’s is 19 (314 soldiers).
Meanwhile, Guan Yu and Zhang Fei have mighty suspicious values… 8A and 94.
Victory!
October 6, 2007 at 4:56 pm #25459Lord Yuan ShuKeymasterWow, I’m speechless about all that. Seeing the Song’s gain levels is like fulfilling a lifelong fantasy that you never thought could come true.
FLEXX :ninja:
How’d you find the agility values anyway?
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingOctober 6, 2007 at 5:03 pm #25460Perhong_AngtongParticipantDang… I hope you’ll post an IPS once you complete all this.
http://www.youtube.com/pananning
http://pananning.blogspot.com
http://openmedia.ca/lockdownYeah... Pretty much...
October 6, 2007 at 5:14 pm #25461NiahakModeratorHere are all the leveling scheme values:
Zhao Yun / Jiang Wei 8F
Guan Yu / Guan Xing 8A
Zhang Fei / Zhang Bao 94
Zhuge Liang / Ma Chao 85
Huang Zhong 80
Also, while looking through this – Cao Cao has a stats section. They’re probably just to "hold" his sprite, since they’re mostly 0s.
He does have a portrait, though!
1E1F20212223 which corresponds to Guan Xing’s portrait. Weird.
How’s *this* for a challenge hack, though?
I’m finishing it up and getting a patch ready soon. As a disclaimer… I can’t say this will entirely work. Saves will not be compatible with other DOAE games. It *should* work, but I can’t guarantee it will.
I’m giving Zhou Chao Huang Zhong’s leveling, Wang Gui Zhang Fei’s, Song Ren Zhao Yun’s, and Song Yong Guan Yu’s. Huo Hu will naturally get Zhu Ge Liang’s.
I have given most of the Tiger Generals what I’m *guessing* is fair for their area. They’ll be pretty darn good for the section they’re in, but their troops are static so few of them will be good after that. Jiang Wei might end up being almost viable for the last battle. In the case of generals you fight-before-you-get, like Ma Chao, Jiang Wei, and Huang Zhong, I’ve given them the troop values they have in those battles (since that’s what the "unknown" right before the soldier value is).
LYS: Agility was just guess-and-check. I gave Song Ren 255 of a value, and suddenly he always went first :)
/Edit: It was easier than I thought.
October 6, 2007 at 5:18 pm #25462Perhong_AngtongParticipantHuh? I don’t remember fighting Jiang Wei, though…
http://www.youtube.com/pananning
http://pananning.blogspot.com
http://openmedia.ca/lockdownYeah... Pretty much...
-
AuthorPosts
- You must be logged in to reply to this topic.