03-30-2013, 03:43 PM
(03-30-2013, 01:10 PM)CMFL Wrote: I remember reading that the crane and some other random things were technically NPCs with palette 7.
Their NPC data have palette 6 assigned to all NPCs composing the crane but if you look at the crane event, I think palette 15 is assigned with event command 60:
Code:
CC/82BF: 60 Change background layer $0E to palette $0F
In fact, if you look at command 60 in bank C0, there is an instruction that loads the palette:
Code:
C0/AA20: BF0080E6 LDA $E68000,X
I'm pointing this out because the only other place there is this instruction is at C0/50ED. If you do some backward tracing you find yourself at C0/BF91, in the giant map loading routine. This means every sprite (and vehicle) palette loading outside command 60 is done in the map loading routine. So the palette values for the vehicles might be hardcoded somewhere before C0/BF91, because they are not assigned via events (command 60). Now I really like answering questions but I don't have time to look further into that.