Home › Forums › Destiny of an Emperor › Making DoaE1 Portraits Using Feidian.
- This topic has 75 replies, 8 voices, and was last updated 14 years, 7 months ago by
MiDKnighT.
-
AuthorPosts
-
July 14, 2010 at 5:12 am #38079
zhaoyun
ParticipantI see. So, I guess I will have to stop my plan, Ohhhhhhh
July 14, 2010 at 5:17 am #38080MiDKnighT
ModeratorYou could always use Tile Layer Pro instead but it's a lot more tedious. Or you can try it on another computer…
July 14, 2010 at 8:08 am #38081zhaoyun
ParticipantI tried it on another PC, but it still had the same problem. Perhaps I made some mistakes somewhere, but I don't know where they did come from.
July 15, 2010 at 1:02 am #38082Paulberios
ParticipantThis is the exact thing that is happening to me. Are you on XP? 32 or 64?
July 15, 2010 at 1:48 am #38083zhaoyun
ParticipantYeah, I'm using a XP-32 bit.
October 2, 2011 at 3:59 am #38084MiDKnighT
ModeratorBumping this thread as it may be useful for future mods.
October 7, 2011 at 1:26 pm #38085MiDKnighT
ModeratorI was just thinking about portraits again and the age old question came up in my mind… Is there a way to add more unique portraits to the game? Our restriction is that the pointers for portraits are 00 to FF and all the slots are already taken. Also each portrait is made of up 6 slices like:






There are 255 unique slices in the ROM. I can only think of two ways to get around this:
1. Use a double pointer. Niahak had mentioned this before. So basically if you put AA for the portrait pic AA would point to some other location that had 4 slots like "AA 00" which would give us up to 65,535 portrait pics if we had the space.
or
2. Somehow expand the portrait pointer pic length. Ie… instead of "AA" grabbing this:

It would grab this:






The downside would be that if the pointer grabbed the whole portrait then every general would have to have a unique full portrait instead of the mix and match that happens for generic characters.
We should research both possibilities further.
October 7, 2011 at 4:39 pm #38086MiDKnighT
ModeratorCan't do that for copyright reasons, etc… Just do a google search on the programs in the first post.
October 7, 2011 at 4:50 pm #38087MiDKnighT
ModeratorTrying to crack the portrait thing but my assembly knowledge is very limited. Did find this though:
– Memory for the pic pointer is stored in $0015 (6 pic pointers per general). So $0015 re-loads with a new pointer 6 times.
– Portrait is loaded into PPU memory starting at 1800.
– This is loading $0015 (Guan Yu example):
$CFCC:B1 F3 LDA ($F3),Y @ $B910 = #$0C A:00 X:01 Y:0A P:nVUbdIZc
$CFD2:B1 F3 LDA ($F3),Y @ $B910 = #$0C A:02 X:01 Y:0A P:nVUbdIzc
– Stores the ROM address for the portrait in $001C and $001D. For example (Guan Yu) has "80 8C". His portrait is stored in 8C90 in the ROM (add 10).
– It populates $001C from $0010:
– It populates $001D by taking 88 and adding $0011 to it. Guan Yu example:
$CFF5:A9 88 LDA #$88 A:A0 X:03 Y:0D P:NvUbdIzc
$CFF7:65 11 ADC $0011 = #$05 A:88 X:03 Y:0D P:NvUbdIzc
$CFF9:85 1D STA $001D = #$8D A:8D X:03 Y:0D P:NvUbdIzc
October 8, 2011 at 12:17 am #38088DragonAtma
ModeratorLack of mix and match isn't an issue if you find a way to have one character refer to all six… sixths. There'd be enough to give EVERYONE their own portrait!
Hmm, if you could grab two sixths per character, then you'd be able to have enough chunks for 85 portraits (say, 83 uniques, and two supergenerics). And if Li Su shares the same generic image as Bao Long, I don't think that'll be a problem.
I do wish we had a way to edit the palettes instead of just picking form the standard colors, though…
October 8, 2011 at 4:20 am #38089MiDKnighT
ModeratorQuote:I do wish we had a way to edit the palettes instead of just picking form the standard colors, though…I know how to do that. What are you looking to change?
The only problem is that there are only 4 colors on a pallette.
October 8, 2011 at 4:31 am #38090DragonAtma
ModeratorWhat do I seek? An easy-to-use palette changer, like the ones they use in FFHackster.
October 8, 2011 at 4:35 am #38091MiDKnighT
ModeratorQuote:An easy-to-use palette changer, like the ones they use in FFHackster.I can't write a tool but I can show you where the palettes are stored. I've found many of them from about 0x3C610 to 0x3C710. They are 4 colors each. Each color matches up with this chart: http://en.wikipedia.org/wiki/List_of_videogame_consoles_palettes#NES
October 8, 2011 at 4:36 am #38092MiDKnighT
ModeratorOctober 8, 2011 at 9:45 pm #38093Lord Yuan Shu
KeymasterInteresting ideas MiDKnighT. I know I love some of the generic portraits I've made just by experimenting. Changing the palettes would be cool instead of just base colors, that's for sure. Without a tool though I would probably just reserve that for the main characters involved in any given mod that I would be doing.
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hacking -
AuthorPosts
- You must be logged in to reply to this topic.

