Home › Forums › Destiny of an Emperor › Destiny of an Emperor TP Costs
- This topic has 25 replies, 7 voices, and was last updated 17 years, 11 months ago by
Xian Zhu Xuande.
-
AuthorPosts
-
April 26, 2008 at 6:15 pm #4797
Xian Zhu Xuande
ParticipantNiahak!
A fellow over at SoSZ just made a pretty good (and obvious) suggestion. One way An Sha might be balanced a little more in our mods would be to make it a little more expensive. We’ve had no luck at all finding the An Sha flag, but do you have any idea where we might find the TP costs for each tactic? You’ve been pretty good at recognizing contents of these tables. That might open up a whole new realm of possibilities for us in balancing these games. :)
April 26, 2008 at 6:52 pm #34861Niahak
ModeratorWell, I was about to say "No dice", but after a bit more rummaging, I found them.
They are stored starting at address 03BBDA, in an order very close to what your FAQ has, i.e.:
Lian Huo
Ye Huo
Yan Re
Da Re
…
One byte per tactic, so Lian Huo has a cost of 2 and an entry of 02.
If you want to know the exact order look at the tactics name order.
I also found out tactic names (and possibly weapon/armor names) use similar pointers to what I’m used to… so if you want to change lengths of those it shouldn’t be too tough.
April 26, 2008 at 6:53 pm #34862huaxiong
ParticipantNiahak said:
Well, I was about to say "No dice", but after a bit more rummaging, I found them.
They are stored starting at address 03BBDA, in an order very close to what your FAQ has, i.e.:
Lian Huo
Ye Huo
Yan Re
Da Re
…
One byte per tactic, so Lian Huo has a cost of 2 and an entry of 02.
If you want to know the exact order look at the tactics name order.
I also found out tactic names (and possibly weapon/armor names) use similar pointers to what I’m used to… so if you want to change lengths of those it shouldn’t be too tough.
You’re a genius.
April 26, 2008 at 7:03 pm #34863Xian Zhu Xuande
ParticipantAwesome, Niahak!
Great job! And thanks! :-D
How much trouble would it be to create a simple little tactic name tool? That would alleviate all the horrible concern that went into naming those things without taking up any extra space. I guess Ce Mian and Ji Mian would be a bit tougher as the names of those tactics are hard-coded into game scripts elsewhere. I wonder if it would be possible to load them with a reference… that might solve the problem completely.
April 26, 2008 at 7:38 pm #34864Niahak
ModeratorThis stuff is pretty basic compared to almost anything else in the ROM.
For a simple tactic name tool… I should be able to switch around a few constants in the text tool once I’ve got it up and running.
April 26, 2008 at 7:43 pm #34865Xian Zhu Xuande
ParticipantSexy. W00t for good programming!
Sometime soon I plan to start piecing some of this stuff together to actually create a section at KMA as well. There are parts there, but it isn’t linked together and it isn’t helpful without some pretty thorough reading of the discussions we’ve been having in this forum and the discussions at SoSZ.
It will be nice to give your tools some more exposure, too.
April 27, 2008 at 1:30 am #34866Xian Zhu Xuande
ParticipantHey, Niahak…
I’m really curious about other directions we could take this!
Do you have any idea where in the code the battles are populated? Where it is decided what officers appear in each battle? I bet if we could find that we would find a whole heck of a lot of other stuff…
April 27, 2008 at 2:59 am #34867Niahak
Moderator
:)
Okay, so explanation time.
This is pretty much raw data, so it’s a bit more dangerous and less intuitive.
I was racking my brain looking for a "good way" to reference officers. Each battle has (up to) 5 officers, so (hypothetically) the easiest way to represent a battle is 5 bytes.
So I looked in a FAQ: One of the early battles is Zhang Jiao, Zheng Mao, Han Zhong and 2 Rebel Forces.
Zhang Jiao is referred to in other pointers as 0C, Zheng Mao as BA, Han Zhong as 38 (F20C is Zhang Jiao with specific formatting, for example).
So I did a simple search and, indeed, at point 30D7A there is an entry
0CBA380404
Similarly, other battles could be found using the officers currently in place and tweaked as above.
Unfortunately each battle is only represented by 5 bytes. So it doesn’t seem like the An Sha flag is there.
Oh, and in case you’re curious:

Song Ren and Song Yong should be there too, but most likely do not show up because I had recruited them!
This indicates there could be a "recruitable" vs. "story" flag somewhere.
Battles are stored at
30D70-30EF0.
April 27, 2008 at 3:44 am #34868Xian Zhu Xuande
ParticipantAwesome!
What would it take to get tools for little things like this?
What would help?
April 27, 2008 at 3:59 am #34869Niahak
ModeratorSomething like this probably wouldn’t take too much. I’d really like to just stick everything in one editor with a tabbed interface, but I’m not at the point where everything can work together just yet. It’ll take time for sure.
It would help to know things like:
If you put an officer (say Huo Hu) in a battle, and have him as a random encounter in that area… does he become recruitable after that area?
Notice that no "big names" (Yuan Shao, Yuan Shu, etc) are present in random encounters. If they are in a battle, are they recruitable if they are in random battles?
April 27, 2008 at 4:48 am #34870Xian Zhu Xuande
ParticipantNiahak said:
f you put an officer (say Huo Hu) in a battle, and have him as a random encounter in that area… does he become recruitable after that area?
Notice that no "big names" (Yuan Shao, Yuan Shu, etc) are present in random encounters. If they are in a battle, are they recruitable if they are in random battles?
My guess is no, and here is why:
I think there is another reference somewhere. Perhaps each battle is associated with yet another index with yet another set of values. There has got to be something. This is where it is determine when an officer can be recruited, whether they show up in random battles, who can have their heads lopped off.
Take random battles, for example. It seems to me they did something special with key characters like Dong Zhuo, Yuan Shao. Some folks just get dumped in region 0 (Huo Hu’s powder land) but I couldn’t find any of the bosses there (I’d have to load it up and have another visit).
What a mystery…
Or maybe this is another index for officers?
April 27, 2008 at 6:05 pm #34871thechieftain
ParticipantHey guys, the random battle thing might not work, Jin xuan is in a random battle and never joins, and Xing dao rong too I think
May 10, 2008 at 12:45 am #34872Niahak
ModeratorSince I’m back on the subject of DoaE hacking…
I don’t have a savestate at any of the An Sha immune bosses, otherwise I’d give this a shot myself:
If you replace (i.e.) Sima Yi with another character by manually changing the entry in the battle, does that character become An Sha immune?
That would at least tell us for certain that An Sha is directly linked to battles… same deal with the ambush, too, I suppose. I think we’ve tried modifying the character at that point, but we haven’t tried changing the value of the character in the battle.
i.e. Sima Yi is 88
1) Change 88 in that battle to 0B (Song Yong)
2) Laugh at Song Yong’s 100 troops versus your overwhelming force
3) Try to An Sha Song Yong (and possibly fail?)
This would be somewhat different than
1) Change Sima Yi to have Song Yong’s stats, but leave battle unchanged
2) Laugh at the Song Yongified Sima Yi
etc.
May 11, 2008 at 3:54 am #34873Lord Yuan Shu
KeymasterYongified…What a word. It needs to be used more often at this forum.
Like I want to Yongify someone’s special ranking in the near future…
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingMay 11, 2008 at 1:57 pm #34874Fallout
Participanti’m gonna yongify your ass if your not careful, chief!
-
AuthorPosts
- You must be logged in to reply to this topic.