Users browsing this thread: 1 Guest(s)
ASM Tasks

#27
Posts: 3,971
Threads: 279
Thanks Received: 237
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
(10-07-2016, 08:55 AM)B-Run Wrote: Gestahl needs to stay put. He's called into battle once, and his "slot" gets used for the green soldier in certain instances I *think*. I would do $17 and $18.

I did this. However Wedge (either $17 or $18) appears as the green soldier in battle... Do you know where this is set? I've looked in C1 in vain...

Otherwise I got a working prototype that work. The battle intro "fix" will let us copy a battle intro of an existing characters for Iris and char 16. I tried to shift all the battle event data of 6 byte to have a dummy pointer then $17 and $18 but the game did not liked that, even after changing pointers programmatically. I realized today battle event command parameter are offsets in the battle event data that doesn't serve as script. Hence the crashing.

I relocated 4 tables which two will stay in .bin files due to their length. I changed everything that needed to except the battle palettes which we don't know yet. The man and old man NPCs are now at the very end. I'll wait before changing all the NPC data that needs to be changed.

If we can find that goddam soldier sprite set (or char $18 setting in $C1 or $C2) we will be set.

http://madsiur.net/asm.zip (the two spritesheet are just two Terra sheets)

Code:
hirom
;header

!BattleSpriteTable = $F30000
!BattleSpriteTableB = $F30002
!BattlePaletteTable = $F300B6
!SpriteTable = $F3004E
!SpriteTableB = $F30050
!NPCTable = $F300D0
!NPCTableA = $F300D1
!NPCTableB = $F30220
!sprites = $F30400

!introAnim0E = $00      ;battle intro animation for Iris (original character ID)
!introAnim0F = $00      ;battle intro animation for character 16 (original character ID)

;event command 37
org $C09C9A
CPY #$0378

org $C1FEEA
JSR room
NOP
NOP
ASL

;fix to allow new chars to copy and intro animation from an existing character
org $C1FFE5
room:
LDA $2EAE,Y
AND #$1F
CMP #$17
BEQ char0E              ;branch if sprite $17
CMP #$18
BNE exit                ;branch if vanilla sprite
LDA #!introAnim0F       ;otherwise it's sprite $18
BRA exit
char0E:
LDA #!introAnim0E
exit:
RTS

org $C13D66
LDA !BattleSpriteTableB,X

org $C13D6E
LDA !BattleSpriteTable,X

org $C13E20
LDA !BattlePaletteTable,X

org $C36CF7
LDA !SpriteTableB,X

org $C36CFD      
LDA !SpriteTable,X

org $C0548D
LDA !NPCTable,X

org $C05496
LDA !NPCTableB,X

org $C067C2
LDA !NPCTable,X

org $C067C8
LDA !NPCTableB,X

org $C06896
LDA !NPCTable,X

org $C0689C
LDA !NPCTableB,X

org $C06992
LDA !NPCTable,X
    
org $C069A3
LDA !NPCTableA,X
    
org $C069AF
LDA !NPCTableB,X    

;$C2CE43 Table
org !BattleSpriteTable
dl $D50000
dl $D516A0
dl $D52D40
dl $D543E0
dl $D55A80
dl $D57120
dl $D587C0
dl $D59E60
dl $D5B500
dl $D5CBA0
dl $D5E240
dl $D5F8E0
dl $D60F80
dl $D62620
dl $D63CC0
dl $D65360
dl $D66A00
dl $D67F60
dl $D694C0
dl $D6AA20
dl $D6BF80
dl $D6D4E0
dl $D6EA40
dl $D63CC0
dl $F30400      ;Iris sprite sheet
dl $F31AA0      ;char 16 sprite sheet

;$CFF910 Table
org !SpriteTable
dd $D5000000
dd $D516A000
dd $D52D4000
dd $D543E000
dd $D55A8000
dd $D5712000
dd $D587C000
dd $D59E6000
dd $D5B50000
dd $D5CBA000
dd $D5E24000
dd $D5F8E000
dd $D60F8000
dd $D6262000
dd $D63CC000
dd $D6536000
dd $D66A0000
dd $D67F6000
dd $D694C000
dd $D6AA2000
dd $D6BF8000
dd $D67F6000        ;Filler
dd $D67F6000        ;Filler
dd $D67F6000        ;Filler
dd $F3040000        ;Iris sprite sheet
dd $F31AA000        ;char 16 sprite sheet

;$C2CE2B Table
org !BattlePaletteTable
db $02
db $01
db $04
db $04
db $00
db $00
db $00
db $03
db $03
db $04
db $05
db $03
db $03
db $05
db $01
db $00
db $00
db $03
db $06
db $01
db $00
db $03
db $03
db $00
db $00      ;Iris battle palette
db $05      ;char 16 battle palette

org !NPCTable
incbin D0F2Table.bin

org !NPCTableB
incbin D23CTable.bin

org !sprites
incbin char0E.bin
incbin char0F.bin
  Find
Quote  



Messages In This Thread
ASM Tasks - by B-Run - 09-20-2016, 01:18 PM
RE: ASM Tasks - by madsiur - 09-20-2016, 09:48 PM
RE: ASM Tasks - by m06 - 09-21-2016, 03:37 AM
RE: ASM Tasks - by B-Run - 09-21-2016, 07:58 AM
RE: ASM Tasks - by HatZen08 - 09-21-2016, 10:12 AM
RE: ASM Tasks - by B-Run - 09-21-2016, 10:31 AM
RE: ASM Tasks - by HatZen08 - 09-22-2016, 06:13 AM
RE: ASM Tasks - by B-Run - 09-22-2016, 08:32 AM
RE: ASM Tasks - by HatZen08 - 09-24-2016, 05:00 PM
RE: ASM Tasks - by Scorcher - 09-24-2016, 09:02 PM
RE: ASM Tasks - by HatZen08 - 09-24-2016, 09:50 PM
RE: ASM Tasks - by B-Run - 09-24-2016, 09:55 PM
RE: ASM Tasks - by B-Run - 09-26-2016, 08:09 AM
RE: ASM Tasks - by B-Run - 09-26-2016, 08:42 AM
RE: ASM Tasks - by HatZen08 - 09-26-2016, 03:35 PM
RE: ASM Tasks - by B-Run - 09-26-2016, 07:09 PM
RE: ASM Tasks - by HatZen08 - 09-27-2016, 04:49 PM
RE: ASM Tasks - by HatZen08 - 09-29-2016, 09:11 AM
RE: ASM Tasks - by B-Run - 09-29-2016, 09:51 AM
RE: ASM Tasks - by HatZen08 - 10-01-2016, 05:14 PM
RE: ASM Tasks - by B-Run - 10-01-2016, 06:42 PM
RE: ASM Tasks - by madsiur - 10-07-2016, 01:16 AM
RE: ASM Tasks - by madsiur - 10-07-2016, 07:37 AM
RE: ASM Tasks - by B-Run - 10-07-2016, 07:44 AM
RE: ASM Tasks - by madsiur - 10-07-2016, 08:14 AM
RE: ASM Tasks - by B-Run - 10-07-2016, 08:55 AM
RE: ASM Tasks - by madsiur - 10-07-2016, 04:05 PM
RE: ASM Tasks - by HatZen08 - 10-08-2016, 05:00 PM
RE: ASM Tasks - by madsiur - 10-14-2016, 02:28 PM
RE: ASM Tasks - by B-Run - 10-15-2016, 08:49 AM
RE: ASM Tasks - by madsiur - 10-15-2016, 10:20 AM
RE: ASM Tasks - by B-Run - 10-15-2016, 09:00 PM
RE: ASM Tasks - by madsiur - 10-16-2016, 02:25 PM
RE: ASM Tasks - by B-Run - 10-17-2016, 07:49 AM
RE: ASM Tasks - by madsiur - 10-20-2016, 03:10 AM
RE: ASM Tasks - by madsiur - 10-20-2016, 05:39 PM
RE: ASM Tasks - by Tenkarider - 10-20-2016, 07:11 PM
RE: ASM Tasks - by madsiur - 10-20-2016, 08:11 PM
RE: ASM Tasks - by madsiur - 10-25-2016, 01:23 AM
RE: ASM Tasks - by Tenkarider - 10-25-2016, 05:13 AM
RE: ASM Tasks - by madsiur - 10-25-2016, 06:58 AM
RE: ASM Tasks - by Tenkarider - 10-25-2016, 08:11 AM
RE: ASM Tasks - by madsiur - 10-25-2016, 08:47 AM
RE: ASM Tasks - by Tenkarider - 10-25-2016, 11:23 AM
RE: ASM Tasks - by m06 - 12-19-2016, 01:48 AM
RE: ASM Tasks - by B-Run - 12-19-2016, 08:53 AM
RE: ASM Tasks - by DenVaktare - 10-28-2017, 03:03 PM
RE: ASM Tasks - by Gi Nattak - 10-28-2017, 04:23 PM
RE: ASM Tasks - by Vanya - 10-31-2017, 03:19 PM
RE: ASM Tasks - by madsiur - 10-31-2017, 03:33 PM
RE: ASM Tasks - by B-Run - 11-02-2017, 07:08 PM
RE: ASM Tasks - by madsiur - 11-02-2017, 09:23 PM
RE: ASM Tasks - by B-Run - 11-25-2017, 01:52 PM
RE: ASM Tasks - by m06 - 12-04-2017, 01:35 AM
RE: ASM Tasks - by B-Run - 12-04-2017, 09:39 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite