Home › Forums › Destiny of an Emperor › Destiny of an Emperor RH Guide ( MOVED! to http://doaerhguide.wikidot.com )
Tagged: Battles, Destiny of an Editor, Destiny of an Emperor, Destiny of an Emperor hacking, Destiny of an Emperor Mods, Destiny of an Emperor Rom, DoaE rom, DoaE Rom hacking, FCEUX, Feidian, Graphics, hacking DoaE, Map, NES ROM hacking, nes8 template, Portraits, ROM Hacking, ROM hacking information
- This topic has 985 replies, 17 voices, and was last updated 10 months ago by MiDKnighT.
-
AuthorPosts
-
October 31, 2011 at 7:49 pm #39610DragonAtmaModerator
Interesting, interesting.
I don't know the formula for how often An Sha hits, but the game does have eight slots to show who's unanshaable. Quoted from Meteor Strike's awesome gamefaqs topic:
Quote:Here, the game checks an array with 8 entries:$BC4C,Y = 57 71 88 00 00 00 00 00
If the defending general is any one of those, then the attack automatically fails. This is the immunity test. Although the game tests 8 possible generals, only 3 of them are actually immune to An Sha, since the other 5 entries are all 0's:
// 57 = Sun Quan
// 71 = Cao Pi
// 88 = Si Ma Yi
So those are the only 3 generals immune to An Sha, and this is the location in the code where this test happens…
Hmm, I wonder if someone feels like editing the code so the player can pick from all known tactics in each category instead of just the last one…
October 31, 2011 at 7:57 pm #39611MiDKnighTModeratorThanks for your input ludmeister, I'll add your stuff to the guide (with credit of course).
October 31, 2011 at 8:01 pm #39612ludmeisterParticipantAh… here's a couple of other tidbits that I've found:
0x39a28-0x39a2f- Experience gain multiplier (by chapter)
05 08 0a 0f 11 14 19 1e
Ever notice how you gained about 4x more experience points when you entered a new chapter? It's because of the formula for calculating experience, which is based off of the above list. Each officer's/rebel force's experience value is determined separately.
Soldiers * multiplier / 256 = experience awarded
The formula was arrived at via mathematics, not via code inspection, so it may be off, if ever so slightly.
0x39b26, 0x39b2a, 0x39b2e: Food use threshold
0x39b26: e8
0x39b2a: 03
0x39b2e: 00
String them together: 0003e8 (1000)
Every (active) soldier in your army is counted, and that total is divided by this threshold. If the value is less than one, then it becomes one. This is the amount of food your army eats every step on the map. This value is only calculated after a battle. That's why your army doesn't eat after leaving the first village at the start of a game (until you fight a battle).
When all else fails... manipulate the source code.
October 31, 2011 at 8:22 pm #39613MiDKnighTModeratorOK ludmeister's stuff added to the guide with credit. :thumright:
November 1, 2011 at 1:00 am #39614sonic.penguinModeratorCool, that answers an awful lot about tactics which seem to be one of the more elusive of things in DOAE. Thanks for the generous input Ludmeister! Its like our treat for Halloween hehe.
Now if only we can figure out how to do multi/double hits for weapons… maybe we'd have to wait until Christmas for that one
November 1, 2011 at 2:01 am #39615Zhuge LiangParticipantIt's always good to have another debugger around. Leaving all the work for MidKnight seems a little bit too much.
Thanks ludmeister.
DoaE gave birth to Huo Hu.
November 1, 2011 at 5:03 am #39616MiDKnighTModeratorQuote:Leaving all the work for MidKnight seems a little bit too much.It's fun…at least until my wife kills me. Just don't expect me to figure everything out right away. A lot of these things take time and brain power. Two things that are sometimes in short supply here :)
November 1, 2011 at 5:13 am #39617Zhuge LiangParticipantQuote:It's fun…at least until my wife kills me. Just don't expect me to figure everything out right away. A lot of these things take time and brain power. Two things that are sometimes in short supply hereFair enough, always relax yourself and have a cup of tea or coffee in time and your spiritual power will be restored. Stuffs can wait.
DoaE gave birth to Huo Hu.
November 1, 2011 at 4:35 pm #39618ludmeisterParticipantI've continued to read up on the hacking exploits of MiDKnighT, Niahak, sonic.penguin, DragonAtma, and of course the venerable Lord Yuan Shu, among others, and I must say…
I am humbled and honored to be quoted here at all. I'm learning a ton by reading your posts. Thank you one and all for your kind reception.
Hopefully when I get some time I'll be able to dig up how I made Agility visible in the status screen. In my mod, I removed the "T.P." visualization, and added "Agi", as I felt that was more important.
When all else fails... manipulate the source code.
November 1, 2011 at 4:51 pm #39619Lord Yuan ShuKeymasterGlad to have another bright mind like your's around ludmeister.
Quote:Hopefully when I get some time I'll be able to dig up how I made Agility visible in the status screen. In my mod, I removed the "T.P." visualization, and added "Agi", as I felt that was more important.That might be cool actually. Problem with agility is I always felt it never actually edit-ed. Like I have Ji Ling in Zhao Yun's spot and I tried to put his agility at like 220 but he still was really slow (like Zhao Yun naturally is). Likewise there are characters that were in Zhang Ren and Jiang Wei's spot who still went fast even if I dropped the agility.
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingNovember 1, 2011 at 5:07 pm #39620ludmeisterParticipantIt definitely was edited… I don't know exactly how Agility works, but there certainly is a good deal of randomness about the order of turns in battle.
Some interesting things about Agility that placing Agility in the status screen has gleaned:
Chi Tu Ma/Red Hare increases Agility by an additional 50%. If the resulting value is greater than 255, it will award that officer 255 Agility.
There are a handful of "special" generals that actually gain Agility increases as the game's Chapter increases. This is as shown below (this is found through gameplay, and not code inspection):
Chapter 1- Game beginning until Liu Bei accepts lordship of Xu Zhou
Chapter 2- The following story up until Liu Bei arrives at Chang An
Chapter 3- I believe that the game determines you are in Chapter 3 until Yuan Shao ambushes you
Chapter 4/5- Until you fight your first Shu based battle
Chapter 6- For game purposes, you are in Chapter 6 until Liu Bei gives his long speech about not usurping the throne, but ordering an attack against Wu and Wei
Chapter 7- Presumably, you are in Chapter 7 until you fight your first battle in Wei's province
{EDIT} The generals that I have found that gain Agility are:
Guan Yu
Zhang Fei
Zhao Yun
Huang Zhong
Pang Tong
Zhu Ge Liang
Ma Chao
Guan Xing
Zhang Bao
For the sake of illustration, each of these generals begin at "X" Agility.
Chapter 1: Agility = X
Chapter 2: Agility = X * 5 / 4
Chapter 3: Agility = X * 3 / 2
Chapter 4/5: Agility = X * 7 / 4
Chapter 6: Agility = X * 17 / 8 (approximate… but is greater than 200%!)
Chapter 7/8: Agility = X * 2
I thought this was extremely interesting, as it shows the Shu army's expertise in fighting in their home land.
However… the catch with this multiplication is that if the value exceeds 255… it wraps back around to 0. Stinky. So when modifying these 9 generals, do not give them an Agility any higher than 120… maybe even 116 to be safe.
When all else fails... manipulate the source code.
November 1, 2011 at 5:40 pm #39621Lord Yuan ShuKeymasterThey gain Agility later on? That's cool, I guess it's necessary to keep up with the Wei officers and such.
Find anything on how the game zero's out agility sometimes if you die and resurrect a character (many including me have noticed that a character dies, you revive them and then they start going after the Rebel Forces even).
Well I've expanded my rom, trying to learn how to use Feidian here. MiDKnighT, you should have a short primer on setting up php and Feidian so that Feidian is ready to use (I also have little idea about this nes8 thing)?
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingNovember 1, 2011 at 5:50 pm #39622ludmeisterParticipantNo… I've not noticed that. I'll have to check more closely from here on. I'll let you know about anything I find.
Did you resurrect the officer during the battle? My theory is that their Agility is zeroed for the battle. The game resets an officer's Agility before every battle (I found this out because when you trade Chi Tu Ma/Red Hare from officer to officer, their Agility stat does not update until you've fought a battle).
When all else fails... manipulate the source code.
November 1, 2011 at 6:29 pm #39623MiDKnighTModeratorSomething that may be possible that I am thinking about. What if we changed the Tui Lu and Gui Huan tactics to "Life" and "Life2". Ie…"Life" would work like a resurrect but and "Life2" would be expensive but bring your guy back with full HP. Would that be something good to pursue?
November 1, 2011 at 6:44 pm #39624Lord Yuan ShuKeymasterUm yea that would be awesome. Who here has used Tui Lu or Gui Huan? I've used Gui Huan a few times on accident and during the last battle but that's about it.
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hacking -
AuthorPosts
- You must be logged in to reply to this topic.