-
Notifications
You must be signed in to change notification settings - Fork 96
/
Copy path_FE8EssentialFixes.event
218 lines (177 loc) · 5.79 KB
/
_FE8EssentialFixes.event
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
//Essential Fixes for FE8
//Install with Event Assembler
PUSH
//Fix Stone's map animation crashing no$ due to a bad decompression
ORG $7E2B4
BYTE 0x8
//Make the Add trap data routine have a check to prevent writing past the limit
ORG $2E2B8
SHORT 0xB470 0x4C07 0x4D07 0x3408 0x42AC 0xD806 0x78A6 0x2E00 0xD1F9 0x7020 0x7061 0x70A2 0x70E3 0x1C20 0xBC70 0x4770 0xA60C 0x0203 0xA814 0x0203
/*
PUSH
// healer ai fix; stop them from healing max hp units
// changes bhi to bhs
ORG $3FC9D
BYTE 0xD2
ORG $3FE77
BYTE 0xD2
POP
*/
//Fix MNC2 Freezing glitch (breaks skirmishes!)
ORG $BD070
SHORT $E0B8
//Fix coordinate loading in WARP codes when not loading from slot B (by hypergammaspaces)
ORG $10C18
SHORT $7891 $78D2 $0608
// Remove hardcoded checks for chapter 5x (by Stan)
// do not display 0 gold in 5x
ORG $024DF2
SHORT $46C0 // nop
// allow convoy access in 5x
ORG $03164E
SHORT $E003 // b 0x08031658
//Set Default Options
ORG $30d8a //animations type 2
SHORT $3306
ORG $30da6 //Game/text speed Fast, Autocursor off
SHORT $22d0
//Allow Visit from any tile (this is broken atm, also allows visits to destroyed villages)
// PUSH
// ORG $23072
// SHORT $e00d
// POP
//Make attacks at 2-15 range not use long-range anims by default (by Sme)
//use the Uncounterable flag for long-range anims instead
PUSH
ORG $57314
BYTE 0xF
POP
//Disallow using ballistae while cantoing
PUSH
ORG $248DE
SHORT $2187
POP
//Break HP Cap for Players/NPCs (credit Solum)
// ORG $181ee
// SHORT $1c11
// ORG $2bf4c
// BYTE $7f
//skip hand axe wait for return
// ORG $514e
// SHORT 0
// ORG $58c90
// POIN $596cc
//allow Wyvern Knights to triangle attack
ORG $2b168
SHORT 0
// make BWL not ignore units with no affinity
ORG $A4D12
SHORT $46c0
//12 Tracks/16 Sounds Fix (credit Agro/Brendor)
ORG $2900
SHORT $e00c
ORG $2924
SHORT $280c $d00e $200c
ORG $22440c
BYTE $10
ORG $224414
SHORT $67b0 $0300 $0010
//Fix Weak Promoted Enemies (credit Gryz)
ORG $180b4
SHORT $2a00 $dc00 $2201
//Hold A to speed up movement (credit Gryz)
ORG $794ee
SHORT 0
//Skip H&S screen (credit Circles)
ORG $CC20C
SHORT 0
//Skip Intro cutscene
ORG $C6714
SHORT 0
//Skip New Game text
ORG $C4928
SHORT 0
//Silence New Game music
ORG $C4A0C
BYTE 0
//Autocursor Fix (credit Vennobennu)
ORG $3325a
SHORT $e021
//Pierce Glitch Fix (credit Brendor)
ORG $2b290
BYTE $a0
// ORG $2b482
// BYTE $a0
//Unlock Sound Room songs
ORG $aede0
BYTE $FF
//CG Fade glitch
ORG $EBCA
BYTE 8
ORG $EDE0
SHORT $1c0a
//Enemy Control Glitch Fix (Credits to Brendor, Eebit)
ORG 0x377A2
SHORT 0x46C0 0x46C0
//Mode Coefficient EXP fix (credit Vennobennu)
ORG 0x2C474
WORD 0
//Skip Intro and Class Roll (otherwise pre-battle anims will crash this)
ORG $c63ad
BYTE $e0
// Fix proc names not being cleared (Stan)
ORG $002C9E
SHORT $6129 $2026 $5429 $3002 $5429
// Fix CAM1/CAMERA2 going out of bounds (Stan)
ORG $015D52
BYTE 14
ORG $015D66
BYTE 9
// Don't draw portrait on item select menu if unit is generic (hypergammaspaces)
ORG $22BE8
SHORT $6808 $88C0 $2800
// AI heatmap caching/optimization (7743) - reduces AI lag by ~66%
ORG $3E320
BYTE $F0 $B5 $5F $46 $56 $46 $4D $46 $44 $46 $F0 $B4 $33 $4C $A2 $46 $33 $48 $00 $68 $83 $46 $54 $46 $20 $68 $00 $28 $52 $D0 $C2 $68 $30 $4B $1A $42 $4E $D1 $58 $46 $C0 $7A $E1 $7A $E6 $F7 $1E $FD $00 $28 $47 $D1 $00 $20 $81 $46 $1E $21 $65 $18 $0A $21 $6E $18 $07 $1C $80 $46 $29 $88 $00 $29 $10 $D0 $88 $46 $20 $1C $D8 $F7 $01 $F9 $01 $28 $06 $D1 $40 $46 $D9 $F7 $30 $F9 $B8 $42 $01 $DB $07 $1C $C1 $46 $B5 $42 $01 $DA $02 $35 $EB $E7 $48 $46 $00 $28 $28 $D0 $58 $46 $21 $1C $4A $46 $FC $F7 $7A $FC $01 $28 $21 $D1 $20 $1C $49 $46 $FD $F7 $D8 $F8 $20 $1C $DA $F7 $01 $FF $3F $18 $7F $10 $15 $48 $04 $68 $15 $48 $05 $68 $15 $4B $18 $88 $80 $46 $5E $88 $00 $2E $0E $D0 $01 $3E $43 $46 $00 $2B $F9 $D0 $01 $3B $B2 $00 $A0 $58 $C0 $5C $00 $28 $F7 $D0 $A8 $58 $C1 $5C $C9 $19 $C1 $54 $F2 $E7 $48 $20 $82 $44 $0A $48 $82 $45 $A3 $DB $FF $BC $80 $46 $89 $46 $92 $46 $9B $46 $01 $BC $00 $47 $4C $BE $02 $02 $50 $4E $00 $03 $0D $10 $00 $00 $E4 $E4 $02 $02 $F0 $E4 $02 $02 $D4 $E4 $02 $02 $B4 $E3 $02 $02
//Add a check for r0=0 in the decompression routine so that no$gba doesn't crash when trying to decompress something it shouldn't (Tequila)
ORG $12F52
SHORT $2800 $D014 $22FA $0612 $1852 $4B0A $2501 $429A $D800 $2500 $4A09 $7803 $24F0 $4023 $08DB $195B $009B $18D2 $6812 $46C0 $46C0
#include "Extensions/Hack Installation.txt"
//Anti-Huffman Patch, by Hextator and Nintenlord
{
ORG 0x2BA4 //Pointer Tester
BYTE 0x00 0xB5 0xC2 0x0F 0x02 0xD0
BL(uncompHelper) /*0x07 0xF0 0x63 0xFB*/
SHORT 0xE001
BL(compressedHelper) /*0x07 0xF0 0x58 0xFB*/
SHORT 0xBD00
ORG 0xA24A
BYTE 0x05 0xD0 0x04 0x49 0x28 0x1C 0x00 0xF0 0x16 0xF8 0x35 0x60 0x00 0xE0 0x01 0x48 0x70 0xBC 0x00 0xBD 0x00 0x00
WORD 0x0202A6AC
compressedHelper:
SHORT 0xB500 0x4A02 0x6812
BL(0xD18C8) //In-game unencoding routine, I assume
SHORT 0xBD00
WORD 0x03004150
uncompHelper:
jumpToHack(AntiHuffmanFreeSpace) //FEditor uses r2 instead of r3, but it shouldn't matter.
ORG 0x464470
AntiHuffmanFreeSpace: //Can be relocated as necessary.
BYTE 0x80 0x23 0x1B 0x06 0xC0 0x1A 0x02 0x78 0x0A 0x70 0x01 0x31 0x01 0x30 0x00 0x2A 0xF9 0xD1 0x70 0x47
}
//Animation Hacks by Hextator
{
//C01 hack
ORG $46446c
WORD 0x80522cd
ORG $5138
WORD $47004800 $8464421
ORG $464420
WORD 0x401820FF 0xD00A2801 0xD8062818 0x6A10D103 0x62103804 0x4B0BE013 0x4B0B4718 0x041B4718 0x009B0E1B 0x3101A102 0x4908468E 0x46C04708 0xD1002801 0x33042300 0x1AC06A10 0x1C206210 0x46C0BD30 0x08005145 0x08005159 0x080522CD
//C48 hack
ORG $58d64
WORD $8464400
ORG $464400
WORD 0x3D046A3D 0x022D682D 0xA5020C28 0x46AE3501 0x47284D01 0x47004801 0x08071991 0x080596CD
}
POP