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 10 years, 12 months ago by
MiDKnighT.
-
AuthorPosts
-
October 31, 2007 at 4:15 am #26755
Lord Yuan Shu
KeymasterWell, Zhou Yu is An Sha-able first of all. Also, I think it would be a good idea to try to An Sha Sima Yi with low INT just to see if it works…so far it doesn’t work on Sima Yi, Cao Pi and Sun Quan./
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingOctober 31, 2007 at 4:18 am #26756Xian Zhu Xuande
ParticipantOh, here’s the level-up information you requested:
Niahak said:
I noticed when looking through some of the characters, some people had values other than FF right before their names! (this was one of the first problems I ran into when parsing – there’s an exception to every rule, including this one :D ) I have no idea what the numbers there actually mean, though, so while I don’t think there will be side-effects… there may well be.
That must be it. I remember pondering the same thing earlier. I have limited tools to work with it right now, but I’ll be taking a better look soon. Thanks for the suggestion!
Niahak said:
Such people were the tri-name people (Cheng Yuan Zhi, Zhu Ge Liang).
And all tri-named characters are messed up in this regard.
Niahak said:
To add apostrophes, you should be able to just add the ‘ to the list of characters in both the alpha-tables: doaetable.tbl and revdoaetable.tbl, just as with a normal table file. As long as you keep the formatting (in the first, 2 characters = 1 char, in the second the reverse) it should load them fine and have no problems.
The apostrophe already exists in your table. :)
The problem comes when trying to export the updated name.
Niahak said:
The APs, ACs, and Level progression I’m not sure about. They’ve got to be stored somewhere and are probably in an order…
You suppose they are all in a row with no other data? It might be possible to find them in that case by searching for a string of hexadecimal values that correspond to some weapon progression…
Niahak said:
I did notice, though, that prices are stored with the weapon names. Ex. Dagger has 32 right before it -> 50, Flail has 64 before it -> 100. All item names are stored starting at 2FAF0.
Yeah, I found those earlier. They were easy to find. :)
Although now that you mention it, that might be fun to work with.
Niahak said:
I don’t see anything Zhou Yu, Sun Quan, Cao Pi and Sima Yi have in common aside from a white portrait background, sadly. Any idea if Yuan Shu and Yuan Shao are also immune to An Sha? Who else is known to be immune?
I’m going to guess that Yuan Shao and similar rulers are probably immune, but it would be interesting trying to get An Sha in time to face them. Liu Zhang might be a little easier to target. I can only confirm immunity for Sun Quan, Cao Pi, and Sima Yi.rnrnI think some data is stored with each battle. There must be an area where each battle is listed along with certain flag data (e.g. Cao Pi”s ever-present ambush status, which is not relative to his officer profile). If we can find that we might be able to find some goodies such as An Sha immunity and automatic ambushes (which would make for some interesting gameplay in areas).rnrn[quote:ecd5ec3490="Niahak"]Have you tried setting Sima Yi”s int to 0 and An Sha-ing him?[/quote:ecd5ec3490]rnI have not, but I’ve An Sha”d in his general direction quite extensively in the past. Same goes for Sun Quan and Cao Pi. I know plenty of others have tried to collect those heads as well.rnrnAs for Zhou Yu:rn[img:ecd5ec3490]http://jpeirce.com/stuff/doae/doae20b/104.png[/img:ecd5ec3490]’);
October 31, 2007 at 4:41 am #26757Xian Zhu Xuande
ParticipantA Grand Victory!

So that settles things. We know what the final value is, now. I’m curious about the varied nature of that value, though, when it is not set to ‘FF’. Could it have something to do with the wrap point? I don’t imagine so; the word-wrap is not relative to any point…
October 31, 2007 at 7:58 pm #26758Xian Zhu Xuande
ParticipantOctober 31, 2007 at 10:16 pm #26759Xian Zhu Xuande
ParticipantNote: You still have my incorrect level values in the tactics table. :)
October 31, 2007 at 10:25 pm #26760Lord Yuan Shu
KeymasterOne thing about the Sprites list that I’ve noticed – the ‘Kan Ze’ sprite is actually Li Ru’s / Xu Rong’s / Gu Yong’s. Kan Ze has the Jia Xu sprite.
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingOctober 31, 2007 at 10:37 pm #26761Niahak
ModeratorOkay, the soldier progressions are not in any standard format.
They’d have to be stored in 3 bytes each (since otherwise the 999999 wouldn’t fit)… which is awfully awkward in itself, plus I couldn’t find any. :/ It looks like they’re described by some kind of function, but I’m not sure how I would go about finding such a function in the hex…
Updated the sprite and tactics tables, they are available here.
One of the changes in the sprite table is that I differentiate between Zhang Bao (Shu) and Zhang Bao (Turbz).
/edit: Bonus table update! ‘ has been added to the reverse table too.
November 1, 2007 at 12:14 am #26762Xian Zhu Xuande
ParticipantYou mean for soldier level-ups? Yeah, there is a multiplier somewhere, and it must be a little more complicated than a single value (as some level-up progresses start lower and end higher). There is probably a base value used by every single level-up progression, and it is probably something basic like 100.
I
November 1, 2007 at 2:19 am #26763Xian Zhu Xuande
ParticipantGah! Help!
Now when I try to open my .nes file with the Destiny of an Editor program it displays the following error:
0!211521!162
Followed by:
0!0!163
It counts to about 196, then I get the following error:
"System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. …"
I can’t imagine I’ve done enough to remove all the extra character spaces. I wonder if messing with an apostrophe caused things to go sour? I don’t have an extremely recent backup, so please let me know if this is a solvable problem?
November 1, 2007 at 2:39 am #26764Xian Zhu Xuande
ParticipantOkay, so all the gook after the officers but before the 00 free space got duplicated twice over, and overwrote some actual ROM content (the part where you create a new game and such). There’s some sort of bug, I imagine, which caused this. I think it has something to do with one of the following:
– Long Name ‘Cao Cao Ghost’
– Apostrophe ‘Cao Cao’s Ghost’
– Unexpected divider value: [27 instead of FF] ‘Cao Cao Ghost’
November 1, 2007 at 2:41 am #26765Lord Yuan Shu
KeymasterThis happened to me a few times also. Niahak figured it out, at least my case.
I had Destiny of an Editor open with a Rom I was editing. While this rom was open I loaded another rom onto it, and then that f’ed up the initial rom. So basically if have a rom open you have to close the program and re-open it before you can load another rom into DoaEd. If that’s what you did….but your symptoms sound just like mine.
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingNovember 1, 2007 at 2:49 am #26766Zhang Lu
ParticipantThis is amazing. Simply amazing.
Is there a way to change if a general can join you? I’d love to get Zhang He or Lu Meng, and maybe a permanent Lu Bu :P
Zhang Lu
They see me throwin' fireballs out of my sword, they runnin'.November 1, 2007 at 3:04 am #26767Xian Zhu Xuande
Participantlordyuanshu said:
I had Destiny of an Editor open with a Rom I was editing. While this rom was open I loaded another rom onto it, and then that f’ed up the initial rom. So basically if have a rom open you have to close the program and re-open it before you can load another rom into DoaEd. If that’s what you did….but your symptoms sound just like mine.
I’ll have to watch out for that.
I duplicated the problem in my case after I fixed it. I had to go in and manually fix everything up to get things running smoothly again. In my case I’m pretty certain, now, that it was because I manually edited the divider character before the Cao Ghost’s name to ’27’. I didn’t want it to display ‘Cao/Cao Gh’, as it was doing with ‘FF’. When I re-loaded the ROM, edited Cao Cao Ghost (I’m not sure if it was because I edited him, or if it would have happened if I just edited someone), then exported, it saved, but it saved the extra corrupt data at the end. When I restored the original data at the end, along with the empty space, then changed ‘Cao Cao Ghost’ to ‘Mengde Ghost’ and changed the ’27’ to ‘FF’, and started editing again, everything worked properly.
Zhang Lu said:
This is amazing. Simply amazing.
Is there a way to change if a general can join you? I’d love to get Zhang He or Lu Meng, and maybe a permanent Lu Bu :P
We’re still looking for the recruitable/non-recruitable flag. :)
But there’s nothing stopping you from turning another officer into Zhang He or Lu Bu. In my game, for example, Zhang He appears a second time in Wei. If I put him in a castle battle he would become recruitable afterward.
November 1, 2007 at 3:28 am #26768Lord Yuan Shu
KeymasterZhang Lu said:
This is amazing. Simply amazing.
Is there a way to change if a general can join you? I’d love to get Zhang He or Lu Meng, and maybe a permanent Lu Bu :P
Yo. Yup, like James says, you can just put Zhang He in Ju Shou’s position or another officer like him who is recruitable to make your way around the problem.
Xian Zhu Xuande said:
lordyuanshu said:
I had Destiny of an Editor open with a Rom I was editing. While this rom was open I loaded another rom onto it, and then that f’ed up the initial rom. So basically if have a rom open you have to close the program and re-open it before you can load another rom into DoaEd. If that’s what you did….but your symptoms sound just like mine.
I’ll have to watch out for that.
I duplicated the problem in my case after I fixed it. I had to go in and manually fix everything up to get things running smoothly again. In my case I’m pretty certain, now, that it was because I manually edited the divider character before the Cao Ghost’s name to ’27’. I didn’t want it to display ‘Cao/Cao Gh’, as it was doing with ‘FF’. When I re-loaded the ROM, edited Cao Cao Ghost (I’m not sure if it was because I edited him, or if it would have happened if I just edited someone), then exported, it saved, but it saved the extra corrupt data at the end. When I restored the original data at the end, along with the empty space, then changed ‘Cao Cao Ghost’ to ‘Mengde Ghost’ and changed the ’27’ to ‘FF’, and started editing again, everything worked properly.
Good to hear you got that rom recovered after all that. I lost a few versions of yuanshu mod while going to a clean rom for reference, and had no idea what was going on with all those !160 !161 messages afterwards. If you load up that rom you’ll get some crazy stuff, like a party full of pang tong’s or zhou cang’s.
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingNovember 1, 2007 at 3:43 am #26769Niahak
ModeratorYeah, what happened in LYS’s case was it didn’t delete the extra pointers on loading a new rom. So when loading one rom, then another, it had double the amount of extra pointers (the extras seem to appear at random, so I save them to avoid the trouble of trying to figure out any pattern behind them).
The N!N!N errors are actually a format I used while debugging the rom. It’s to indicate strange pointer values.
Pointer1!Pointer2!Officer No.
So 0!211521!162 indicates there was no pointer before officer 162, and the value of the pointer after was 211521. There are all kinds of weird issues with officer 161, because that’s the "Pirate" officer type with 5 extra values for no apparent reason.
In 0.6, the pointer duplication issue should be fixed (I released that one yesterday evening).
Sorry about that error! I’ll take another look at this issue tomorrow.
-
AuthorPosts
- You must be logged in to reply to this topic.