Home › Forums › Destiny of an Emperor › DOAE Portraits
- This topic has 28 replies, 6 voices, and was last updated 14 years, 5 months ago by
DragonAtma.
-
AuthorPosts
-
October 12, 2011 at 3:18 pm #38840
DragonAtma
ModeratorHmmm… I guess I should start working on new graphics! ;)
Are you up for helping me with one of my projects? The one thing I can't find in gemfire (snes version, of course) is the gender byte…
October 12, 2011 at 3:24 pm #38841MiDKnighT
ModeratorQuote:Hmmm… I guess I should start working on new graphics!You might be the only person I know that would actually *use* all 680 portraits. When your mod is released in 2017. 8)
Quote:Are you up for helping me with one of my projects? The one thing I can't find in gemfire (snes version, of course) is the gender byte…If it's DOAE yes, other games? Nah… I've never even played Gemfire, much less attempt to hack it.
October 12, 2011 at 3:51 pm #38842DragonAtma
ModeratorBut… but someone on LYS tried making a gemfire mod, so there's a conenction, right? ….right?
No? Well, there's still soemthing DoaE you can help me with; specifically, a way to remove the "XYZ leaves the party due to plot demands" events (Liu Bei, then Xu Shu, then both Guan Yu & Zhang Fei) and, if possible, find an easy way to set new party departers at points of our choice.
October 12, 2011 at 4:12 pm #38843MiDKnighT
ModeratorQuote:No? Well, there's still soemthing DoaE you can help me with; specifically, a way to remove the "XYZ leaves the party due to plot demands" events (Liu Bei, then Xu Shu, then both Guan Yu & Zhang Fei) and, if possible, find an easy way to set new party departers at points of our choice.I know there are events for this but those events do a bunch of other things to.
That actually *would* be good to figure out because then you could control who joins and leaves your party more.
October 25, 2011 at 1:45 am #38844MiDKnighT
ModeratorOK so I've been looking at the whole "XYZ leaves the party due to plot demands" events (Liu Bei, then Xu Shu, then both Guan Yu & Zhang Fei)" thing. As you mentioned these are "event" driven. I started looking at the Liu Bei case first. Tao Qian asks you if you'd like to take over. That is event 8822. And once you get into that event the code takes over and you lose Liu Bei… However, something cool I discovered about events. Maybe it was discovered before but I just discovered it… The "8822" is jumping to a part of the code. Namely A288. It's essentially "8822" flipped around where the first 2 represents the 3rd ROM section value (8 then 9 then A since the ROM part starts at $8000). So anyway, I ran through the Liu Bei leaving thing in the debugger and found that after you accept his offer that he won't refuse, you end up at "A2A2". So as I tested changing the event to "A222" and guess what? Tao Qian skips asking me the question and Liu Bei just takes over. So we can absolutely influence events by changing the numbers/letters but we have to know where we want to jump to. Will play with this more…
EDIT: Lol, I just changed the event to AC22 and now Liu Bei vanishes into thin air. He's not in my party and he's not on the throne. Yikes… :D
Now tried… event 0723 and now Tao Qian disappears, Liu Bei stays, but chapter 2 doesn't begin… Hmm…
October 25, 2011 at 2:06 am #38845DragonAtma
ModeratorIIRC there are four forced officer removals:
(1) Liu Bei
(2) Lu Bu
(3) Xu Shu
(4) Guan Yu & Zhang Fei
Since mods have officers replaced, I can see people wanting exceptions to all four. Even for Lu Bu, for example, I can see a wei mod replacing Lu Bu with Zhang Liao and renaming the Gemsword to DZProof — in which case it would make sense for Zhang Liao to stay with you!
Hmm, I wonder if we can get #4 to drop only Guan Yu or only Zhang Fei, not both or neither…
October 25, 2011 at 2:26 am #38846MiDKnighT
ModeratorYa I'm playing with Liu Bei right now. I actually got him to stay and move on to chapter 2 by adding a jump to $A307 at $A2C1. Essentially getting to chapter 2 but skipping the Liu Bei removal part. Only side effect is that the screen looks weird until you leave the castle then all is ok. What's funny is that when you invite Liu Bei then Liu Bei can talk to Liu Bei :)
Will play with this some more. It looks promising.
October 25, 2011 at 2:35 am #38847DragonAtma
ModeratorThat's why you get someone else (such as Meng Da's fat horse) to sit on the throne. :P
October 25, 2011 at 3:03 am #38848MiDKnighT
ModeratorQuote:That's why you get someone else (such as Meng Da's fat horse) to sit on the throne.Yes I think it will be easy to switch the throne sprite. When I was playing with stuff I actually got Liu Bei to get out of the chair and start walking around. When he did it was obvious that he had the "Advisor" sprite. So you could either change the advisor sprite to something else or switch his sprite pointer.
October 25, 2011 at 3:49 am #38849DragonAtma
ModeratorOr use the sprite but declare that it's meng da's fat horse dressed up in a very convincing halloween costume!
…whaddya mean ancient china didn't celebrate halloween!?
October 25, 2011 at 4:05 am #38850MiDKnighT
ModeratorOK tested the sprite thing… No go. Apparently when Liu Bei is sitting in the chair he doesn't obey the normal sprite rules. So the only way I know how is to replace the "Advisor" sprite with something else via feidian.
But the good news is that we can now keep Liu Bei!!! I've got it working well. To keep Liu Bei Change:
3630A: A2808E9E6000
36314: FF
Which changes this:
00:A2FA:8E AA 60 STX $60AA = #$A8 <— Zero out Liu Bei from party
00:A2FD:8E C2 60 STX $60C2 = #$03
…
$A303:A9 02 LDA #$02 <– Remove guy in slot 2 (Liu Bei)
To this:
00:A2FA:A2 80 LDX #$80 <— Revive Liu Bei
00:A2FC:8E 9E 60 STX $609E = #$00 <— Revive Liu Bei
…
00:A303:A9 FF LDA #$FF <– Remove bogus party member
And now Liu Bei stays with no glitches (that I've seen).
With this info it might be easier to find the other guys leaving. Ie… it looks like it zaps people from your party in $60A#, and it looks like the following subroutine zaps someone from your party (subroutine $9DFF):
$A303:A9 02 LDA #$02
$A305:85 F1 STA $00F1 = #$FF
$A307:20 FF 9D JSR $9DFF
The problem is I don't have save states close to those events to test when the other guys leave…
October 25, 2011 at 4:35 am #38851MiDKnighT
ModeratorI did have a 'lose Lu Bu' save state and keeping Lu Bu was surprisingly easy. Just change:
0x3AEB5 from "BC" to "FF"
Essentially changing Lu Bu's general ID to a non-existent one.
Oooh found a Guan Yu and Zhang Fei save state. To keep them change:
0x36fB4: FF000000000000000000000000
0x36FD0: FF
To change the guys sitting in the chairs at Chang Sha and Gui Yang. Change:
0x312F8 from "A9" to some other general ID for Chang Sha.
0x3134A from "AA" to some other general ID for Gui Yang.
October 26, 2011 at 1:39 am #38852MiDKnighT
ModeratorTo keep Xu Shu change 0x36C77 to "FF". Note that you can also change this to some other general ID and if you do, also change 0x36CA4 to that general ID for his little leaving speech.
If you don't talk to a new general outside the castle make sure you still trigger [EVENT-7B2D] which kicks in the Zhuge Liang plot part.
October 26, 2011 at 1:41 am #38853DragonAtma
ModeratorGood! This will all be useful!
-
AuthorPosts
- You must be logged in to reply to this topic.

