Users browsing this thread: 1 Guest(s)
Battle Event: Locke and the Merchant/Officer

#31
Posts: 127
Threads: 8
Thanks Received: 21
Thanks Given: 12
Joined: Jan 2012
Reputation: 13
Status
None
(04-21-2016, 12:40 AM)Everything Wrote: EDIT: Oops m06 already suggested that. I'm not sure what the problem is.

We want to load palette 6 instead of palette 0 I think.

A solution could be like LDA #$06 where TDC (C1/3E1C) is, but this requires an extra byte. So all I can come up with is an extra subroutine from C1/3E1C to unused space where we LDA with palette 6 and return to C1/3E24. But this requires careful work and use of unused space, so maybe not the easiest or best solution.
  Find
Quote  

#32
Posts: 732
Threads: 36
Thanks Received: 12
Thanks Given: 41
Joined: Jan 2016
Reputation: 6
Status
None
I'd be open to trying it, but I'm not sure the Hex for it (I don't know the lingo, LDA, TDC, etc.)

Looking at the code breakdown again, is the 7B at C1/3E1C just a palette listing for the game to change to, or a command for it to call up the palette from somewhere else?
  Find
Quote  

#33
Posts: 732
Threads: 36
Thanks Received: 12
Thanks Given: 41
Joined: Jan 2016
Reputation: 6
Status
None
So does anyone have any further ideas on how to fix this?
  Find
Quote  

#34
Posts: 3,966
Threads: 279
Thanks Received: 234
Thanks Given: 56
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
Try this asm file (headerless ROM). It's m06 solution:

Code:
hirom

org $C13E04
JSL freeMe
BRA branch3E26

org $C13E26
branch3E26:

org $EEAF01
freeMe:
PHX
TAX
LDA $2EAE,X
BNE branch3E1F
LDA $2EC6,X
CMP #$01
BNE branch3E1F
LDA $1EA0
AND #$08
BEQ branch3E1F
PLX
LDA #$06
BRA branch3E24
branch3E1F:
PLX
LDA $C2CE2B,X
branch3E24:
REP #$20
RTL
  Find
Quote  
[-] The following 1 user says Thank You to madsiur for this post:
  • m06 (04-23-2016)

#35
Posts: 732
Threads: 36
Thanks Received: 12
Thanks Given: 41
Joined: Jan 2016
Reputation: 6
Status
None
Asar gave a warning that my Rom has a garbage name. Went through with it anyway, battles are glitched and eventually crash. I made sure there was no header and did it all twice to be sure I hadn't messed up.
  Find
Quote  

#36
Posts: 3,966
Threads: 279
Thanks Received: 234
Thanks Given: 56
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
Yeah there was an error. I just edited code in same post. I tested this and no crash.
  Find
Quote  

#37
Posts: 732
Threads: 36
Thanks Received: 12
Thanks Given: 41
Joined: Jan 2016
Reputation: 6
Status
None
Yup, battles are okay now, but he's still the wrong palette in battle.
  Find
Quote  

#38
Posts: 127
Threads: 8
Thanks Received: 21
Thanks Given: 12
Joined: Jan 2012
Reputation: 13
Status
None
(04-22-2016, 11:56 PM)DrakeyC Wrote: Yup, battles are okay now, but he's still the wrong palette in battle.

A different wrong palette or the same wrong palette?

You can try playing around with the value (06) of LDA #$06; Maybe LDA #$05 is what you're looking for.
  Find
Quote  

#39
Posts: 732
Threads: 36
Thanks Received: 12
Thanks Given: 41
Joined: Jan 2016
Reputation: 6
Status
None
Same wrong palette.

I'll give that a shot I guess.

EDIT - Well, a partial success. Now he's using the normal Trooper palette instead of the recruit palette. I'll keep playing around.

EDIT x2 - Nope, best I can get is that. In fact, I can't even get the glitchy palette back; reapplying the asm over, I still have the normal trooper.

On the bright side, I can work with this, since it just means the troopers Locke is meant to steal the uniforms from will look the same as others. Though I'd prefer to get this working still.
  Find
Quote  

#40
Posts: 732
Threads: 36
Thanks Received: 12
Thanks Given: 41
Joined: Jan 2016
Reputation: 6
Status
None
Okay, found a solution that works. Making the D0 at C1/3E0B a 80 makes it use the default battle palette, which is currently set to the brown (normal trooper). So I'm just gonna make the green trooper palette the battle palette, and make Biggs and Wedge in the intro green troopers as well (in-story my Biggs and Wedge are new recruits, and I'd wanted to make them use the green palette anyway).

So, it's all good now. Thanks for your help guys. Laugh
  Find
Quote  



Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite