Home › Forums › Destiny of an Emperor › DoaE game-editing question!
- This topic has 47 replies, 7 voices, and was last updated 14 years, 5 months ago by
Jiang Wei.
-
AuthorPosts
-
October 21, 2011 at 9:27 pm #38595
MiDKnighT
ModeratorAfter thinking about it a bit further I'm sure we could add some *new* assembly code to have different starting values depending on which progression (like the last 4 progressions start with 250 or something)… But of course that would take more work :)
October 21, 2011 at 11:21 pm #38596DragonAtma
ModeratorThis is Jin Xuan we're talking about; his job isn't to stand there and do nothing but get hit! XD
But yeah, it would be wise to have slightly more HP; he is, after all, the leader of china's most awesome* force.
Â
Â
* May not be universally accepted.
October 22, 2011 at 2:38 pm #38597MiDKnighT
ModeratorI'll give this a try. The biggest challenge is that there is no space on that ROM page.
October 23, 2011 at 10:39 pm #38598MiDKnighT
ModeratorOK got it.
I'm combining the 25 soldier growth progressions with different starting soldier values.
Changes to make:
0x3B4BB: 4C16B500
0x3B4E6: 4C0BB5
0x3B51B: A90D2082C48AA6254CD9B40000A5104CAFB4000000A90D2082C4
0x37510: 8625B950B5AA4C0BB50000A90E2082C44C00B5A90E2082C400000000000000000000000000C0649005A9FA4C42B5C04B9005A9C84C42B5C0329005A9964C42B5A96485104C13B5
Now put all your level growths at 0x37560. Example:
0x37560: 24241F1F1A222222221A2424241F1A1F2226261A2626241F1A0A…continued…
You can put up to 5*25 entries there (125). And now in the general's "Soldiers (Ally)" slot you can put any of the following values for different soldier progressions:
80 – Huang Zhong leveling (0x37560-0x37564) (starts with 100 soldiers)
85 – Ma Chao leveling (0x37565-0x37569) (starts with 100 soldiers)
8A – Guan Yu leveling (starts with 100 soldiers)
8F – Zhao Yun leveling (starts with 100 soldiers)
94 – Zhang Fei leveling (starts with 100 soldiers)
99 (starts with 100 soldiers)
9E (starts with 100 soldiers)
A3 (starts with 100 soldiers)
A8 (starts with 100 soldiers)
AD (starts with 100 soldiers)
B2 (starts with 150 soldiers)
B7 (starts with 150 soldiers)
BC (starts with 150 soldiers)
C1 (starts with 150 soldiers)
C6 (starts with 150 soldiers)
CB (starts with 200 soldiers)
D0 (starts with 200 soldiers)
D5 (starts with 200 soldiers)
DA (starts with 200 soldiers)
DF (starts with 200 soldiers)
E4 (starts with 250 soldiers)
E9 (starts with 250 soldiers)
EE (starts with 250 soldiers)
F3 (starts with 250 soldiers)
F8 (starts with 250 soldiers)
Initial soldier count code added:
00:B4AB:4C 20 B5 JMP $B520
00:B520:A9 0D LDA #$0D
00:B522:20 82 C4 JSR $C482
…function to switch page to 0D…
00:B525:C0 64 CPY #$64
00:B527:90 05 BCC $B52E
00:B529:A9 FA LDA #$FA
00:B52B:4C 42 B5 JMP $B542
00:B52E:C0 4B CPY #$4B
00:B530:90 05 BCC $B537
00:B532:A9 C8 LDA #$C8
00:B534:4C 42 B5 JMP $B542
00:B537:C0 32 CPY #$32
00:B539:90 05 BCC $B540
00:B53B:A9 96 LDA #$96
00:B53D:4C 42 B5 JMP $B542
00:B540:A9 64 LDA #$64
00:B542:85 10 STA $0010 = #$00
00:B544:4C 13 B5 JMP $B513
00:B513:A9 0E LDA #$0E
00:B515:20 82 C4 JSR $C482
…function to switch page to 0E…
00:B518:A5 10 LDA $0010 = #$C8
00:B51A:4C AF B4 JMP $B4AF
Level up code added:
00:B4D6:4C 0B B5 JMP $B50B
00:B50B:A9 0D LDA #$0D
00:B50D:20 82 C4 JSR $C482
…function to switch page to 0D…
00:B510:4C 00 B5 JMP $B500
00:B500:86 25 STX $0025 = #$0F
00:B502:B9 50 B5 LDA $B550,Y @ $B5AF = #$FF
00:B505:AA TAX
00:B506:4C 0B B5 JMP $B50B
00:B50B:A9 0E LDA #$0E
00:B50D:20 82 C4 JSR $C482
…function to switch page to 0E…
00:B510:8A TXA
00:B511:A6 25 LDX $0025 = #$FF
00:B513:4C D9 B4 JMP $B4D9
Adding to the guide.
October 23, 2011 at 10:57 pm #38599DragonAtma
ModeratorAwesome, thanks!
November 14, 2011 at 8:31 am #38600Jiang Wei
Participantagh why is codeing nes games so much harder then everyother system, i mean i can hack final fantasy 7 and put in liu bei renamon pikachu and alter their stat growth to fit their character type yet when it comes to this game i can't figure any of it out
November 14, 2011 at 9:52 am #38601DragonAtma
ModeratorOh, you didn't hear? In early 1990 the supreme court found that having lobbyists program games violates the 8th amendment; gaming companies had to replace them with lesser, more benign evils, such as archdemons.
November 15, 2011 at 2:42 am #38602Lord Yuan Shu
KeymasterQuote:agh why is codeing nes games so much harder then everyother system, i mean i can hack final fantasy 7 and put in liu bei renamon pikachu and alter their stat growth to fit their character type yet when it comes to this game i can't figure any of it outlol nice. I put Huo Hu as Cloud huohu
What is your problem with DoaE, sir?
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingNovember 16, 2011 at 8:36 am #38603Jiang Wei
Participanti was trying to change the maps around and give english names to the spells, and add a couple more gear and enhance some gear and weaken others
November 16, 2011 at 8:44 am #38604DragonAtma
ModeratorHmm…
It'd still be nice to be able to give every soldier progression a different, Atma-chosen starting point. If not, though, starting with the index number (128 for the first, 133 for the second, etc.) is certainly doable too.
Alternate — and this may sound crazy, seeing as it clearly has never ever ever been done in any video game ever before — is there any way to start the party at level 5 or something? Changing the max level to 99 would be nice as well.
November 16, 2011 at 1:18 pm #38605MiDKnighT
ModeratorQuote:It'd still be nice to be able to give every soldier progression a different, Atma-chosen starting point. If not, though, starting with the index number (128 for the first, 133 for the second, etc.) is certainly doable too.This is possible but it requires changing the ASM code. I think lud actually changed my initial soldier count code in his mod to have more starting values. You can have any starting soldier count from 1 to 255. In my changes I have 100, 150, 200, and 250 which I thought would be adequate for all (except Atma and lud :P ). It's actually very easy to change that code and you can actually do it yourself if you like :)
Quote:Alternate — and this may sound crazy, seeing as it clearly has never ever ever been done in any video game ever before — is there any way to start the party at level 5 or something? Changing the max level to 99 would be nice as well.Yes you have clearly lost your mind… :lol:
I think the best way to handle the level 5 thing is to just add the level up event to some text that only happens once. For example place event 5829 in Tao Qian's text where he gives his long speech about defeating the yellow scarves. Or into the text where the guy gives you 200 gold and 1000 rations. Ie…text that only happens once.
As for level 99…anything is possible given the right amount of brain power, skill, and time but you have to ask yourself if it's worth the effort. The first problem is that the max number of soldiers is 64k and if you go beyond that it wraps back to zero. So if you were able to do this you'd have to seriously tone down soldier counts. Other problems to tackle is that the experience table only has 50 levels and it stops you at 50 if gaining experience points. This project just isn't worth it for the amount of effort involved me thinks.
November 16, 2011 at 1:24 pm #38606DragonAtma
ModeratorFor 90% of the game, the current progressions are fine.
At the very beginning, though, everyone has 100, 150, 200, or 250 HP. Tragically, first impressions tend to matter more than last impressions, and it looks weird having 100 or 150 max HP on everyone in the first battle!
On the bright side, by the time you reach Dong Zhuo's lands, everything is fine!
November 16, 2011 at 1:29 pm #38607MiDKnighT
ModeratorVery easy to fix Atma… Just look at this code:
00:B525:C0 64 CPY #$64
00:B527:90 05 BCC $B52E
00:B529:A9 FA LDA #$FA <– This is 250
00:B52B:4C 42 B5 JMP $B542
00:B52E:C0 4B CPY #$4B
00:B530:90 05 BCC $B537
00:B532:A9 C8 LDA #$C8 <– This is 200
00:B534:4C 42 B5 JMP $B542
00:B537:C0 32 CPY #$32
00:B539:90 05 BCC $B540
00:B53B:A9 96 LDA #$96 <– This is 150
00:B53D:4C 42 B5 JMP $B542
00:B540:A9 64 LDA #$64 <– This is 100
00:B542:85 10 STA $0010 = #$00
00:B544:4C 13 B5 JMP $B513
Just change those values to 133, 128, etc… and you're set. You can also squeeze in more checks if you want more values.
November 16, 2011 at 2:13 pm #38608DragonAtma
ModeratorOnce again, I'm not a coder; I can change data tables, but aside from that…
and as for 128, 133, etc. I'm refering to the values that the progressions are. 128 and 133 (80 and 85) are simply the locations of the first two progressions. So we'd need something like this:
If (soldiers index value > 7F)
Then (Set base soldiers to index)
Else (whatever code is used for fixed soldier amounts)
Someone'll have to translate that to NES coding, though.
November 16, 2011 at 2:24 pm #38609MiDKnighT
ModeratorOK I'm totally confused about what you're asking for…
EDIT: OK now I get it. So what values do you want besides 100,150,200,250 ?
-
AuthorPosts
- You must be logged in to reply to this topic.

