Home › Forums › Destiny of an Emperor › DoaE Artificial Intelligence Enhancements + New Tactics
Tagged: Destiny of an Emperor, Destiny of an Emperor hack, Destiny of an Emperor hacking, Destiny of an Emperor Rom, DoaE artificial intelligence, NES AI, NES Artificial Intelligence, NES hacking, ROM Hacking, Yuan Shu
- This topic has 645 replies, 10 voices, and was last updated 4 years, 9 months ago by
MiDKnighT.
-
AuthorPosts
-
August 13, 2012 at 1:34 am #44290
MiDKnighT
ModeratorI see the problem with yours. Looks like you're using the use water tactics anywhere change but the values it's reading aren't the same as in my ROM because you changed bandit force, etc… (not your fault). I'm going to change this code area anyway for my next enhancement so perhaps we can just wait for that? Just work on portraits or something for the next day :)
August 13, 2012 at 1:38 am #44291sonic.penguin
Moderator>_< …
August 13, 2012 at 3:30 am #44292Lord Yuan Shu
KeymasterHaha. It's pretty crazy to think of all the enhancements code changes to the game and it is still functional.
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingAugust 13, 2012 at 3:53 am #44293MiDKnighT
ModeratorQuote:Haha. It's pretty crazy to think of all the enhancements code changes to the game and it is still functional.Trust me, in a lot of my test versions it wasn't functional. That's the most time consuming part is fixing it when it breaks :blackeye:
August 13, 2012 at 4:19 am #44294MiDKnighT
ModeratorProfiles are ready. And I fixed your ROM and sent it with the new code Sonic.
Features:
– Water tactic restriction is removed, you and the enemy can and will use water tactics anywhere.
– Choice between attack vs tactics is the same as before but once we decide to use a tactic we randomly pick between the 8 slots then the A.I. is applied. That is…unless an officer has a "profile".
– You can assign "profiles" to different officers. There are up to 29 profiles available. To assign a profile:
0x7A400-0x7A4FF is where you assign a profile to an officer. If Guan Yu's general ID is A9 you would assign his profile at 0x7A4A9 (last 2 numbers = general ID). If Lu Bu's general ID is C0 you would assign his profile at 0x7A4C0 (last 2 numbers = general ID). The profiles are:
00 = default (normal/random DOAE behavior)
01-1D = Custom profile
You set the attack/tactics for each profile at:
Profile Number – Location
01 – 0x7A510-0x7A51F
02 – 0x7A520-0x7A52F
03 – 0x7A530-0x7A53F
04 – 0x7A540-0x7A54F
05 – 0x7A550-0x7A55F
06 – 0x7A560-0x7A56F
07 – 0x7A570-0x7A57F
etc…
A profile would look like this:
FF FF FF FF 00 00 00 01 01 01 02 03 04 05 06 07
FF = attack and all the other numbers = tactic slot number.
With a profile like this, this officer will attack 1/4th of the time (4/16), he will use the tactic in slot 00 or 01 18.5% of the time (3/16) or will use a tactic in slot 02, 03, 04, 05, 06, or 07 6% of the time each (1/16).
As you can see with this system different officers can have unique personalities. You might have an officer that favors duel, favors attack, favors attack tactics, favors healing, etc… There are tons of possibilities for different personality types.
Changes:
0x4020: 96 (150 INT)
0x40DE: 96 (150 INT)
0x4030: 4C9081
0x4050: EBA678BD00624C9A81
0x41A0:
AC2362C00EEAEA4CB081A678A9009DD0
614C0080000000000000000000000000
AC2362C001F0034CC0814CC091000000
AC2762C001F0034C50804CC091000000
0x51D0:
20E691A900A008BDD865E888C900D005
4C008010F4A678BDD061C900D0034CA8
434C00800000A6788AE9050A0A0AAA60
0x59A0:
A678BDAA60AAA91E2082C420F099A91E
2082C420F099A91E2082C40000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
A678203BDFA206600000000000000000
0x39EC6: 01->FF
0x3A6FA: A91E2082C4
0x3A8F0:
AD290F85F3A5B6C901F021A678BDAA60
65AE65AF65ADE5AC4A4A4A4A4A85F4EA
EAEAEAEAEAEAEAEAEAEAEAEAA90085B6
85B785B8200CDFA90885F3BEA065BDA1
0x3A944: 12->FF
0x79990:
0000000000000000000000A9012082C4
000000000000A9012082C44CFAA6A901
2082C44CEAA600000000004C40A70000
0x7A6E0:
000000000000000000000000000000A9
0E2082C4000000000000A90E2082C44C
8B990000000000000000BDF0A3C900D0
034C9699180A0A0A0A85B7A9A59002A9
A685B8A5B7E90F85B7A8A90185B6A5AD
65AE65AF4A4A4A4AA8B1B7C9079007A9
0085F34C9E9985F44C9E990000000000
A90E2082C40000000000000000000000
August 13, 2012 at 4:50 am #44295MiDKnighT
ModeratorProfiles aren't working as advertised just yet… Will finish it up tomorrow.
August 13, 2012 at 5:17 am #44296MiDKnighT
ModeratorStill need to tweek the profile code just a bit. Should be done tomorrow.
August 13, 2012 at 12:11 pm #44297sonic.penguin
ModeratorYou sure you sent it? Don't see anything in the ol' email… Anyways, are the addresses @ 4020 and 40DE a restrictor on intelligence to have a profile? Just wondering. Also, you said that the profiles are @ 0x7A400-0x7A4FF but you listed it as 01 – 0x7A510-0x7A51F
02 – 0x7A520-0x7A52F
03 – 0x7A530-0x7A53F
04 – 0x7A540-0x7A54F
05 – 0x7A550-0x7A55F
06 – 0x7A560-0x7A56F
07 – 0x7A570-0x7A57F
etc…
Quote:Haha. It's pretty crazy to think of all the enhancements code changes to the game and it is still functional.I know! :cactuar:
August 13, 2012 at 12:37 pm #44298MiDKnighT
ModeratorHi Sonic, ya the e-mail didn't send for some reason. I'll re-send although I think you already added the changes.
Quote:Anyways, are the addresses @ 4020 and 40DE a restrictor on intelligence to have a profile?Those are for A.I.
Quote:Also, you said that the profiles are @ 0x7A400-0x7A4FF but you listed it as 01 – 0x7A510-0x7A51F
You say which officer uses which profile in 0x7A400-0x7A4FF then you define the profile itself in 0x7A5..
So for example. Let's say I want Guan Yu (ID: A9) to attack half the time and duel half the time (slot 03) and he's using profile 01. Here's the changes I would make:
0x7A4A9: 01
0x7A510-0x7A51F: FF FF FF FF FF FF FF FF 03 03 03 03 03 03 03 03
There's still an issue with the profiles where with dumb guys, it's taking the profile value but still switching back to an attack. I'm going to trace that today.
August 13, 2012 at 12:37 pm #44299MiDKnighT
ModeratorHi Sonic, ya the e-mail didn't send for some reason. I'll re-send although I think you already added the changes.
Quote:Anyways, are the addresses @ 4020 and 40DE a restrictor on intelligence to have a profile?Those are for A.I.
Quote:Also, you said that the profiles are @ 0x7A400-0x7A4FF but you listed it as 01 – 0x7A510-0x7A51F
You say which officer uses which profile in 0x7A400-0x7A4FF then you define the profile itself in 0x7A5..
So for example. Let's say I want Guan Yu (ID: A9) to attack half the time and duel half the time (slot 03) and he's using profile 01. Here's the changes I would make:
0x7A4A9: 01
0x7A510-0x7A51F: FF FF FF FF FF FF FF FF 03 03 03 03 03 03 03 03
There's still an issue with the profiles where with dumb guys, it's taking the profile value but still switching back to an attack. I'm going to trace that today.
August 13, 2012 at 12:39 pm #44300MiDKnighT
ModeratorHi Sonic, ya the e-mail didn't send for some reason. I'll re-send although I think you already added the changes.
Quote:Anyways, are the addresses @ 4020 and 40DE a restrictor on intelligence to have a profile?Those are for A.I.
Quote:Also, you said that the profiles are @ 0x7A400-0x7A4FF but you listed it as 01 – 0x7A510-0x7A51F
You say which officer uses which profile in 0x7A400-0x7A4FF then you define the profile itself in 0x7A5..
So for example. Let's say I want Guan Yu (ID: A9) to attack half the time and duel half the time (slot 03) and he's using profile 01. Here's the changes I would make:
0x7A4A9: 01
0x7A510-0x7A51F: FF FF FF FF FF FF FF FF 03 03 03 03 03 03 03 03
There's still an issue with the profiles where with dumb guys, it's taking the profile value but still switching back to an attack. I'm going to trace that today.
I also forgot to mention that you should always have at least one attack and one tactic in your profiles. The game might break if you don't :o For example, if Ce Mian is on the A.I. might want that general to attack. If he has no attack in his profile you might get stuck in an endless loop.
August 13, 2012 at 12:39 pm #44301MiDKnighT
ModeratorHi Sonic, ya the e-mail didn't send for some reason. I'll re-send although I think you already added the changes.
Quote:Anyways, are the addresses @ 4020 and 40DE a restrictor on intelligence to have a profile?Those are for A.I.
Quote:Also, you said that the profiles are @ 0x7A400-0x7A4FF but you listed it as 01 – 0x7A510-0x7A51F
You say which officer uses which profile in 0x7A400-0x7A4FF then you define the profile itself in 0x7A5..
So for example. Let's say I want Guan Yu (ID: A9) to attack half the time and duel half the time (slot 03) and he's using profile 01. Here's the changes I would make:
0x7A4A9: 01
0x7A510-0x7A51F: FF FF FF FF FF FF FF FF 03 03 03 03 03 03 03 03
There's still an issue with the profiles where with dumb guys, it's taking the profile value but still switching back to an attack. I'm going to trace that today.
I also forgot to mention that you should always have at least one attack and one tactic in your profiles. The game might break if you don't :o For example, if Ce Mian is on the A.I. might want that general to attack. If he has no attack in his profile you might get stuck in an endless loop.
August 13, 2012 at 12:47 pm #44302sonic.penguin
Moderatorokay, got it
August 13, 2012 at 2:46 pm #44303MiDKnighT
ModeratorI think the profiles are working fine now.
New IPS patch uploaded: https://www.box.com/s/30630bb391eb7ebcccf0
Only do patch 2 if you've done patch 1 before :P
August 13, 2012 at 5:55 pm #44304MiDKnighT
ModeratorNot to toot my own horn to much but THIS ENHANCEMENT IS GREAT. Was that humble enough? Now guys like Lu Bu, Hua Xiong, Zhang Fei, etc… are challenging duels a lot so finally getting to see "Duel" in action a lot more. I've created 6 profiles so far:
01 = Heavy battle/duel/charge guys (Lu Bu, Zhang Fei, etc…)
02 = Flamethrowers – guys that use slot 00 a lot.
03 = Uber healers/defensive guys
04 = Aqua Man – guys that use slot 01 a lot.
05 = Smart warrior lots of duel but also other tactics + attack
06 = Tactician – rarely attacks
-
AuthorPosts
- You must be logged in to reply to this topic.

