;Paper Mario JP
[Cheat]
;Health
Cheat0 = 1
Cheat0_Addr = 0x8010F452
Cheat0_Value = 0x6363
Cheat0_Bytes = 2
;Flower
Cheat1 = 1
Cheat1_Addr = 0x8010F455
Cheat1_Value = 0x6363
Cheat1_Bytes = 2
//Coin
Cheat2 = 1
Cheat2_Addr = 0x8010F45C
Cheat2_Value = 0x3e7
Cheat2_Bytes = 2

[SpecialInst]
Count=5
Address0 = 0x80123328
Inst0 = 0x0c048CBB
Type0 = 0

Address1 = 0x801244cc
Inst1 = 0x0c0490CA
Type1 = 0

Address2 = 0x80137EBC
Inst2 = 0x0c048AC8
Type2 = 0

Address3 = 0x802C47CC
Inst3 = 0x03E00008
Type3 = 0

Address4 = 0x8012513C
Inst4 = 0x0C049319
Type4 = 0


[RomOption]
RetraceByVsync = 0
Rumble = 1
;PlayerNum = 1
PDFURL = "http://m1.nintendo.net/docvc/NUS/JPN/NMQJ/NMQJ_J.pdf"

[Render]
ConstValue0 = 0x1583c0
PolygonOffset = 1

[RomHack]
Count=3
;Address0 = 0x2DFC
;Type0 = 2
;Value0 = 0x1000
Address0 = 0x2DFC
Type0 = 4
Value0 = a2:10 00

;BTS No.33 patch
Address1 = 0x20a6344
Type1 = 1
Value1 = 0x58

[FilterHack]
Count = 1

;Fix BTS No.1015
TextureAddress0 = 0x28F880
SumPixel0 = 0x5FBC5230
Data2_0 = 0x4001144
Data3_0 = 0x10000
AlphaTest0 = 250

[VertexHack]
Count = 13

;Fix BTS No.54 - 1
VertexCount0 = 4
VertexAddress0 = 0x2182a0
TextureAddress0 = 0x28f9a8
FirstVertex0 = a6:ff eb 00 38 ff 6c
Value0 = a18:00 02 
00 01 ff eb 00 44 ff 6c
00 02 ff d9 00 44 ff 6c

;Fix BTS No.54 - 2
VertexCount1 = 12
VertexAddress1 = 0x2181e0
TextureAddress1 = 0x28f758
FirstVertex1 = a6:ff eb 00 43 ff 6c
Value1 = a34:00 04 
00 00 ff eb 00 44 ff 6c
00 03 ff ee 00 44 ff 6c
00 0a ff d9 00 44 ff 6c
00 0b ff d5 00 44 ff 6c

;Fix BTS No.225
VertexCount2 = 32
VertexAddress2 = 0x213650
TextureAddress2 = 0x28ecc8
FirstVertex2 = a6:fe 89 00 0a ff 6a
Value2 = a10:00 01
00 08 00 1b 00 00 fe 89
 
 ;Fix BTS No.224
VertexCount3 = 10
VertexAddress3 = 0x218610
TextureAddress3 = 0x291050
FirstVertex3 = a6:ff 1e 00 2b 00 ac
Value3 = a10:00 01
00 07 ff 1e 00 2b 00 ac

 ;Fix BTS No.102 - 1
VertexCount4 = 32
VertexAddress4 = 0x214780
TextureAddress4 = 0x28e9d8
FirstVertex4 = a6:ff 9c 00 14 00 58
Value4 = a42:00 05
00 02 fe cb ff fd 00 dd
00 03 ff 9c ff fd 00 58
00 05 fe 94 ff fd 01 13
00 08 fe 1a ff fd 01 8e
00 09 fe 94 ff fd 01 13

 ;Fix BTS No.102 - 2
VertexCount5 = 20
VertexAddress5 = 0x214960
TextureAddress5 = 0x28e9d8
FirstVertex5 = a6:01 77 00 14 ff c1
Value5 = a34:00 04
00 05 00 ae ff fd ff ed
00 08 01 26 ff fd ff d3
00 0b ff 9c ff fd 00 58
00 0c ff ec ff fd 00 37

;Fix BTS No.911-a
VertexCount6 = 25
VertexAddress6 = 0x216860
TextureAddress6 = 0x292368
FirstVertex6 = a6:fd cf 00 1a ff a3
Value6 = a26:00 03 
00 00 fd ce 00 1b ff a3
00 02 fd ce 00 08 ff a3
00 0b fd e1 00 1b ff a3 

;Fix BTS No.911-b
VertexCount7 = 25
VertexAddress7 = 0x2166d0
TextureAddress7 = 0x292240
FirstVertex7 = a6:02 66 00 09 ff a3
Value7 = a26:00 03 
00 02 02 78 00 08 ff a3
00 04 02 65 00 1b ff a3
00 09 02 78 00 1b ff a3

;Fix BTS No.804
VertexCount8 = 18
VertexAddress8 = 0x21db70
TextureAddress8 = 0x293718
FirstVertex8 = a6:fc bc 00 29 00 02
Value8 = a10:00 01 
00 0b fc d6 00 ca 00 08

;Fix BTS No.1016
VertexCount9 = 31
VertexAddress9 = 0x21d140
TextureAddress9 = 0x294f30
FirstVertex9 = a6:00 a2 00 14 fd d4
Value9 = a18:00 02
00 08 00 ff 00 13 fe b0
00 0f 01 0b 00 14 fe 9d

;Fix BTS No.1047
VertexCount10 = 31
VertexAddress10 = 0x212cf0
TextureAddress10 = 0x28f200
FirstVertex10 = a6:00 77 00 69 ff 6a
Value10 = a18:00 02
00 12 00 3f 00 64 ff 6a
00 16 00 27 00 4a ff 6a

;Fix BTS No.707
VertexCount11 = 20
VertexAddress11 = 0x21fa60
TextureAddress11 = 0x28f3d0
FirstVertex11 = a6:ff 8d 00 13 fe c9
Value11 = a18:00 02
00 0b ff 40 00 13 fe bb
00 13 ff 40 00 13 fe bb

;Fix BTS No.946
VertexCount12 = 8
VertexAddress12 = 0x21cc50
TextureAddress12 = 0x355260
FirstVertex12 = a6:01 cc 00 dc 00 64
Value12 = a18:00 02
00 04 fe 6d 00 64 ff ce
00 07 fe 6d 00 00 ff ce
