-
Notifications
You must be signed in to change notification settings - Fork 0
/
Super Mario Sunshine [Subset - Bonus].rascript
2474 lines (2241 loc) · 95.1 KB
/
Super Mario Sunshine [Subset - Bonus].rascript
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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Super Mario Sunshine [Subset - Bonus]
// #ID = 28562
// Author: timenoe
// Date Published: 2024-??-??
// // #region Constant
// // #region Common
// ptrMask = 0x7fffffff
// regions = ["USA/Korea", "Europe", "Japan (Rev 1)"]
// // #endregion
// // #region Region
// bitflagBaseAddr = 0x578940
// // #endregion
// // #region ID
// courseIDs =
// {
// "Delfino Airstrip": 0x00,
// "Delfino Plaza": 0x01,
// "Bianco Hills": 0x02,
// "Ricco Harbor": 0x03,
// "Gelato Beach": 0x04,
// "Pinna Park - Beach": 0x05,
// "Sirena Beach - Beach": 0x06,
// "Sirena Beach - Hotel": 0x07,
// "Pianta Village": 0x08,
// "Noki Bay": 0x09,
// "Test Course": 0x0c,
// "Pinna Park - Park": 0x0d,
// "Sirena Beach - Casino": 0x0e,
// "Title Screen/Credits": 0x0f,
// "Noki Bay - The Red Coin Fish": 0x10,
// "Delfino Plaza - Delfino Airstrip": 0x14,
// "Delfino Plaza - Super Slide": 0x15,
// "Delfino Plaza - Pachinko Game": 0x16,
// "Delfino Plaza - Red Coin Field": 0x17,
// "Delfino Plaza - Lily Pad Ride": 0x18,
// "Delfino Plaza - Turbo Track": 0x1d,
// "Ricco Harbor - Blooper Surfing Safari": 0x1e,
// "Noki Bay - The Shell's Secret": 0x1f,
// "Gelato Beach - Dune Bud Sand Castle Secret": 0x20,
// "Gelato Beach - The Sand Bird is Born": 0x21,
// "Sirena Beach - The Secret of Casino Delfino": 0x28,
// "Pinna Park - The Yoshi-Go-Round's Secret": 0x29,
// "Pianta Village - Secret of the Village Underside": 0x2a,
// "Noki Bay - Red Coins in a Bottle": 0x2c,
// "Bianco Hills - The Secret of the Dirty Lake": 0x2e,
// "Bianco Hills - The Hillside Cave Secret": 0x2f,
// "Ricco Harbor - The Secret of Ricco Tower": 0x30,
// "Pinna Park - The Beach Cannon's Secret": 0x32,
// "Sirena Beach - The Hotel Lobby's Secret": 0x33,
// "Corona Mountain": 0x34,
// "Bianco Hills - Down with Petey Piranha!": 0x37,
// "Sirena Beach - King Boo Down Below": 0x38,
// "Noki Bay - Eely-Mouth's Dentist": 0x39,
// "Pinna Park - Roller Coaster": 0x3a,
// "Ricco Harbor - Gooper Blooper Breaks Out": 0x3b,
// "Corona Mountain - Father and Son Shine!": 0x3c
// }
// courseStateIDs =
// {
// "dolpic0": 0x00,
// "dolpic1": 0x01,
// "dolpic5": 0x05,
// "dolpic6": 0x06,
// "dolpic7": 0x07,
// "dolpic8": 0x08,
// "dolpic9": 0x09,
// "dolpic10": 0x02,
// "Episode Selection": 0xff,
// "Episode 1": 0x00,
// "Episode 2": 0x01,
// "Episode 3": 0x02,
// "Episode 4": 0x03,
// "Episode 5": 0x04,
// "Episode 6": 0x05,
// "Episode 7": 0x06,
// "Episode 8": 0x07,
// "pinnaParco0": 0x00,
// "pinnaParco1": 0x01,
// "pinnaParco2": 0x02,
// "pinnaParco3": 0x03,
// "pinnaParco4": 0x04,
// "pinnaParco5": 0x05,
// "pinnaBoss0": 0x00,
// "pinnaBoss1": 0x01,
// "delfino0": 0x00,
// "delfino1": 0x01,
// "casino0": 0x00,
// "casino1": 0x01,
// }
// gameStateIDs =
// {
// "Loading": 0,
// "Enter": 3,
// "Active": 4,
// "Cutscene": 0x78
// }
// cutsceneIDs =
// {
// "stolenpeach": 0x00
// }
// objectIDs =
// {
// "Lily Pad": 0x400000a5,
// "Delfino Boat": 0x4000007b,
// "Corona Boat": 0x4000022e,
// "Cloud": 0x400002c7
// }
// shineIDs =
// {
// "Bianco 1": 0x0000,
// "Bianco 2": 0x0001,
// "Bianco 3": 0x0002,
// "Bianco 4": 0x0003,
// "Bianco 5": 0x0004,
// "Bianco 6": 0x0005,
// "Bianco 7": 0x0006,
// "Bianco 8": 0x0007,
// "Bianco Secret 1": 0x0008,
// "Bianco Secret 2": 0x0009,
// "Ricco 1": 0x000a,
// "Ricco 2": 0x000b,
// "Ricco 3": 0x000c,
// "Ricco 4": 0x000d,
// "Ricco 5": 0x000e,
// "Ricco 6": 0x000f,
// "Ricco 7": 0x0010,
// "Ricco 8": 0x0011,
// "Ricco Secret 1": 0x0012,
// "Ricco Secret 2": 0x0013,
// "Gelato 1": 0x0014,
// "Gelato 2": 0x0015,
// "Gelato 3": 0x0016,
// "Gelato 4": 0x0017,
// "Gelato 5": 0x0018,
// "Gelato 6": 0x0019,
// "Gelato 7": 0x001a,
// "Gelato 8": 0x001b,
// "Gelato Secret 1": 0x001c,
// "Gelato Secret 2": 0x001d,
// "Pinna 1": 0x001e,
// "Pinna 2": 0x001f,
// "Pinna 3": 0x0020,
// "Pinna 4": 0x0021,
// "Pinna 5": 0x0022,
// "Pinna 6": 0x0023,
// "Pinna 7": 0x0024,
// "Pinna 8": 0x0025,
// "Pinna Secret 1": 0x0026,
// "Pinna Secret 2": 0x0027,
// "Sirena 1": 0x0028,
// "Sirena 2": 0x0029,
// "Sirena 3": 0x002a,
// "Sirena 4": 0x002b,
// "Sirena 5": 0x002c,
// "Sirena 6": 0x002d,
// "Sirena 7": 0x002e,
// "Sirena 8": 0x002f,
// "Sirena Secret 1": 0x0030,
// "Sirena Secret 2": 0x0031,
// "Noki 1": 0x0032,
// "Noki 2": 0x0033,
// "Noki 3": 0x0034,
// "Noki 4": 0x0035,
// "Noki 5": 0x0036,
// "Noki 6": 0x0037,
// "Noki 7": 0x0038,
// "Noki 8": 0x0039,
// "Noki Secret 1": 0x003a,
// "Noki Secret 2": 0x003b,
// "Pianta 1": 0x003c,
// "Pianta 2": 0x003d,
// "Pianta 3": 0x003e,
// "Pianta 4": 0x003f,
// "Pianta 5": 0x0040,
// "Pianta 6": 0x0041,
// "Pianta 7": 0x0042,
// "Pianta 8": 0x0043,
// "Pianta Secret 1": 0x0044,
// "Pianta Secret 2": 0x0045,
// "Delfino Airstrip Dilemma": 0x0056,
// "Turbo Track": 0x0057,
// "Red Coin Waterworks": 0x0058,
// "Pachinko Game": 0x0059,
// "Super Slide": 0x005a,
// "Lily Pad Ride": 0x005b,
// "Red Coin Field": 0x005c,
// "Lighthouse Roof": 0x005d,
// "Boxing Clever 1": 0x005e,
// "Boxing Clever 2": 0x005f,
// "Clean the West Bell": 0x0060,
// "Clean the East Bell": 0x0061,
// "Mario Toss": 0x0062,
// "The Shine Gate Sparkle": 0x0063,
// "Bianco 100 Coin": 0x0064,
// "Ricco 100 Coin": 0x0065,
// "Gelato 100 Coin": 0x0066,
// "Pinna 100 Coin": 0x0067,
// "Sirena 100 Coin": 0x0068,
// "Noki 100 Coin": 0x0069,
// "Pianta 100 Coin": 0x006a,
// "Delfino 100 Coin": 0x006b,
// "Turbo Dash!": 0x0074,
// "Shine Sprite in the Sand": 0x0075,
// "The Gold Bird": 0x0076,
// "Corona Mountain": 0x0077,
// }
// keyCodes =
// {
// "Invisible Barrel": 0x196d,
// "Lost Yellow Toad": 0x3c7f,
// "Darkest Corona Cloud": 0x45cb,
// "Hidden Bianco Tree": 0x4ebe
// }
// nozzleIDs =
// {
// "Rocket": 1,
// "Hover": 4,
// "Turbo": 5
// }
// marioStateIDs =
// {
// "Backflip": 0x00000883,
// "Spin Jump 1": 0x00000895,
// "Spin Jump 2": 0x00000896,
// "Collect Shine": 0x00001302,
// "Electrocute": 0x00020338,
// "Get Chucked": 0x000208b8,
// "Hang Idle": 0x00200349,
// "Hang Move": 0x0020054a,
// "Slide": 0x00800456,
// "Wall Kick": 0x02000886,
// "Sleep": 0x0c000203,
// "Climb Move": 0x30000569,
// "Climb Idle": 0x38000368,
// "Throw Object": 0x820008ab,
// }
// // #endregion
// // #region Offset
// objectOffsets =
// {
// "Key Code": 0x00000008,
// "ID": 0x0000004c,
// "State": 0x00000067,
// "Status": 0x000000f3
// }
// marioOffsets =
// {
// "y Velocity": 0x000000a8,
// "F.L.U.D.D. State": 0x00000383
// }
// shineOffsets =
// {
// "ID": 0x00000136
// }
// // #endregion
// // #endregion
// // #region Function
// // #region Common
// function nextBit(addr)
// {
// if (addr[0] == 7) return [0, addr[1] + 1]
// else return [addr[0] + 1, addr[1]]
// }
// // #endregion
// // #region Region
// function regionBit(addr) => bit(addr[0], bitflagPtr() + addr[1] - bitflagBaseAddr)
// function regionDword(addr) => dword_be(bitflagPtr() + addr - bitflagBaseAddr)
// function regionCheck(region)
// {
// if (region == "USA/Korea") return ascii_string_equals(3, "E")
// else if (region == "Europe") return ascii_string_equals(3, "P")
// else if (region == "Japan (Rev 1)") return ascii_string_equals(3, "J")
// }
// function gpMap(region)
// {
// if (region == "USA/Korea") return dword_be(0x40de98) & ptrMask
// else if (region == "Europe") return dword_be(0x405560) & ptrMask
// else if (region == "Japan (Rev 1)") return dword_be(0x3fed38) & ptrMask
// }
// function gpCurObject(region)
// {
// if (region == "USA/Korea") return dword_be(0x40df28) & ptrMask
// else if (region == "Europe") return dword_be(0x4055f0) & ptrMask
// else if (region == "Japan (Rev 1)") return dword_be(0x3fedb0) & ptrMask
// }
// function gpMapObjManager(region)
// {
// if (region == "USA/Korea") return dword_be(0x40df08) & ptrMask
// else if (region == "Europe") return dword_be(0x4055d0) & ptrMask
// else if (region == "Japan (Rev 1)") return dword_be(0x3feda8) & ptrMask
// }
// function gpItemManager(region)
// {
// if (region == "USA/Korea") return dword_be(0x40df10) & ptrMask
// else if (region == "Europe") return dword_be(0x4055d8) & ptrMask
// else if (region == "Japan (Rev 1)") return dword_be(0x3fedb0) & ptrMask
// }
// function gpMarioOriginal(region)
// {
// if (region == "USA/Korea") return dword_be(0x40e0e8) & ptrMask
// else if (region == "Europe") return dword_be(0x4057b0) & ptrMask
// else if (region == "Japan (Rev 1)") return dword_be(0x3fef88) & ptrMask
// }
// // #endregion
// // #region Pointer
// function bitflagPtr() => dword_be(regionPtr() + 0x34) & ptrMask
// function collectedShinePtr() => dword_be(gamePtr() + 0x25c) & ptrMask
// function fluddPtr(region) => dword_be(gpMarioOriginal(region) + 0x3e4) & ptrMask
// function gamePtr() => dword_be(regionPtr() + 4) & ptrMask
// function hudPtr() => dword_be(gamePtr() + 0x74) & ptrMask
// function platformPtr(region) => dword_be(gpMarioOriginal(region) + 0x2c0) & ptrMask
// function nearbyNpcPtr() => dword_be(gamePtr() + 0xa0) & ptrMask
// function regionPtr() => dword_be(0x5518) & ptrMask
// function yoshiPtr(region) => dword_be(gpMarioOriginal(region) + 0x3f0) & ptrMask
// // #endregion
// // #region Address
// function coins() => regionDword(0x578a60)
// function course() => byte(regionPtr() + 0xe)
// function courseState() => byte(regionPtr() + 0xf)
// function cutscene() => byte(regionPtr() + 0x1b)
// function gameState() => byte(gamePtr() + 0x64)
// function nextCourse() => byte(regionPtr() + 0x12)
// function redCoins() => regionDword(0x578a7c)
// function timer() => dword_be(hudPtr() + 0x500)
// // #endregion
// // #region Mario
// function exactLastGroundedYCoordinate(region) => dword_be(gpMarioOriginal(region) + 0x2ac)
// function state(region) => dword_be(gpMarioOriginal(region) + 0x7c)
// function xCoordinate(region) => float_be(gpMarioOriginal(region) + 0x10)
// function yCoordinate(region) => float_be(gpMarioOriginal(region) + 0x14)
// function yVelocity(region) => float_be(gpMarioOriginal(region) + 0xa8)
// // #endregion
// // #region Helper
// function collectAnyShine() => regionBit([6, 0x578a54]) > prev(regionBit([6, 0x578a54]))
// function consumeItem(region, itemOffset) => bit0((dword_be(gpItemManager(region) + itemOffset) & ptrMask) + objectOffsets["State"]) > prev(bit0((dword_be(gpItemManager(region) + itemOffset) & ptrMask) + objectOffsets["State"]))
// function consumeItems(region, itemOffsets)
// {
// consumedItems = []
// for itemOffset in itemOffsets array_push(consumedItems, bit0((dword_be(gpItemManager(region) + itemOffset) & ptrMask) + objectOffsets["State"]))
// return sum_of(consumedItems, s => s) == length(consumedItems)
// }
// function collectShine(shineName) => collectAnyShine() && word_be(collectedShinePtr() + shineOffsets["ID"]) == shineIDs[shineName]
// function enterCourse(courseName) => once(inCourse(courseName) && inGameState("Enter"))
// function enterCourseEpisode(courseName, episodeName) => once(inCourse(courseName) && inCourseState(episodeName) && inGameState("Enter"))
// function enterSubArea(courseName, subAreaName) => once(wasInGameState("Loading") && inCourse(courseName) && inCourseState(subAreaName))
// function grounded(region) => yCoordinate(region) == float_be(gpMarioOriginal(region) + 0xec)
// function inAnyCourse(courseNames)
// {
// courseCheck = always_false()
// for courseName in courseNames courseCheck = courseCheck || inCourse(courseName)
// return __ornext(courseCheck)
// }
// function inCourse(courseName) => course() == courseIDs[courseName]
// function inCourseState(courseStateName) => courseState() == courseStateIDs[courseStateName]
// function inGame() => course() != courseIDs["Title Screen/Credits"] && !inGameState("Loading")
// function inGameState(gameStateName) => gameState() == gameStateIDs[gameStateName]
// function inState(region, stateName) => state(region) == marioStateIDs[stateName]
// function reachExactHeight(region, yCoordinate) => exactLastGroundedYCoordinate(region) == yCoordinate
// function rideBlooper(region) => dword_be(gpMarioOriginal(region) + 0x3f4) != 0
// function rideYoshi(region) => byte(yoshiPtr(region)) == 8
// function solvedCasinoPuzzle(region) => byte(gpCurObject(region) + 0x16d) == 1
// function spawnAnyShine() => regionBit([0, 0x578a6c]) > prev(regionBit([0, 0x578a6c]))
// function speakToNearbyNpc(npcName) => word_be(nearbyNpcPtr() + objectOffsets["Key Code"]) == keyCodes[npcName] && bit3(nearbyNpcPtr() + 0xf1) == 1
// function standOnAnyPlatform(region, platformNames)
// {
// trigger = always_false()
// for platformName in platformNames trigger = trigger || standOnPlatform(region, platformName)
// return __ornext(trigger)
// }
// function standOnPlatform(region, platformName) => dword_be(platformPtr(region) + objectOffsets["ID"]) == objectIDs[platformName]
// function standOnSpecificPlatform(region, platformName) => word_be(platformPtr(region) + objectOffsets["Key Code"]) == keyCodes[platformName]
// function startUsingNozzle(region, nozzleName) => byte(fluddPtr(region) + 0x1c84) == nozzleIDs[nozzleName] && byte(fluddPtr(region) + 0x1c86) > prev(byte(fluddPtr(region) + 0x1c86))
// function timerWasActive() => prev(byte(hudPtr() + 0x4a)) == 1
// function useFludd(region) => byte(gpMarioOriginal(region) + marioOffsets["F.L.U.D.D. State"]) == 0
// function useAnyNozzle(region, nozzleNames)
// {
// useAnyNozzle = always_false()
// for nozzleName in nozzleNames useAnyNozzle = useAnyNozzle || useNozzle(region, nozzleName)
// return __ornext(useAnyNozzle)
// }
// function useNozzle(region, nozzleName) => byte(fluddPtr(region) + 0x1c84) == nozzleIDs[nozzleName] && byte(fluddPtr(region) + 0x1c86) == 1
// function vanishObject(region, itemOffset) => bit0((dword_be(gpMapObjManager(region) + itemOffset) & ptrMask) + objectOffsets["Status"]) > prev(bit0((dword_be(gpMapObjManager(region) + itemOffset) & ptrMask) + objectOffsets["Status"]))
// function warpToCourse(courseName) => nextCourse() == courseIDs[courseName]
// function wasInCourse(courseName) => prev(course()) == courseIDs[courseName]
// function wasInCourseState(courseStateName) => prev(courseState()) == courseStateIDs[courseStateName]
// function wasInGameState(gameStateName) => prev(gameState()) == gameStateIDs[gameStateName]
// function watchingCutscene(cutsceneName) => cutscene() == cutsceneIDs[cutsceneName]
// // #endregion
// Super Mario Sunshine
// #ID = 6049
// Author: timenoe
// Date Published: 2024-??-??
// #region Constant
// #region Common
ptrMask = 0x7fffffff
// #region Achievement
iterations = ["first", "second", "third"]
mainCourseNames = ["Bianco Hills", "Ricco Harbor", "Gelato Beach", "Pinna Park", "Sirena Beach", "Noki Bay", "Pianta Village"]
nozzleBoxCourseNames = ["Bianco Hills", "Ricco Harbor", "Gelato Beach", "Pinna Park", "Sirena Beach", "Pianta Village", "Noki Bay"]
mainCourseAndEpisodeShinesTitle =
{
"Bianco Hills": "Country Livin'",
"Ricco Harbor": "Work-Life Balance",
"Gelato Beach": "Beach Bum",
"Pinna Park": "Childhood Dream",
"Sirena Beach": "All-Exclusive Stay",
"Noki Bay": "Out of This World",
"Pianta Village": "Honorary Pianta"
}
mainCourseSecretShinesTitle =
{
"Bianco Hills": "Cave Story",
"Ricco Harbor": "Pure-Bred Blooper",
"Gelato Beach": "Magic Castle",
"Pinna Park": "Ring Around the Rosie",
"Sirena Beach": "Welcome to the Hotel Delfino",
"Noki Bay": "Sea Shells by the Sea Shore",
"Pianta Village": "King of the Underground"
}
mainCourseCoinShineTitle =
{
"Bianco Hills": "Bianco Bullion",
"Ricco Harbor": "Rare Catch",
"Gelato Beach": "Metal Detector Mario",
"Pinna Park": "Lost and Found",
"Sirena Beach": "Tip the Staff",
"Noki Bay": "Ancient Artifacts",
"Pianta Village": "Toadstool Tour"
}
mainCourseBlueCoinsTitle =
{
"Bianco Hills": "High and Low",
"Ricco Harbor": "Klamber Chaos",
"Gelato Beach": "Wakey, Wakey, Cataquack!",
"Pinna Park": "Break the Targets",
"Sirena Beach": "Waterlogged Furniture",
"Noki Bay": "Rule 1: Check Waterfalls",
"Pianta Village": "Blue Moon"
}
nozzleBoxTitle =
{
"Bianco Hills": "Fun Under the Sun",
"Ricco Harbor": "Tools of the Trade",
"Gelato Beach": "Cliffside Cache",
"Noki Bay": "Remnants of the Ruins",
"Pianta Village": "Treeside Trove"
}
// #endregion
// #region Leaderboard
courseShorthand =
{
"Bianco Hills": "Bianco",
"Ricco Harbor": "Ricco",
"Gelato Beach": "Gelato",
"Pinna Park": "Pinna",
"Sirena Beach": "Sirena",
"Noki Bay": "Noki",
"Pianta Village": "Pianta"
}
igtCourses =
{
"Bianco 3": "Bianco Hills - The Hillside Cave Secret",
"Bianco 6": "Bianco Hills - The Secret of the Dirty Lake",
"Ricco 2": "Ricco Harbor - Blooper Surfing Safari",
"Ricco 4": "Ricco Harbor - The Secret of Ricco Tower",
"Ricco 6": "Ricco Harbor",
"Gelato 1": "Gelato Beach - Dune Bud Sand Castle Secret",
"Gelato 5": "Gelato Beach",
"Pinna 2": "Pinna Park - The Beach Cannon's Secret",
"Pinna 6": "Pinna Park - The Yoshi-Go-Round's Secret",
"Sirena 2": "Sirena Beach - The Hotel Lobby's Secret",
"Sirena 4": "Sirena Beach - The Secret of Casino Delfino",
"Sirena 6": "Sirena Beach - Beach",
"Sirena 8": "Sirena Beach - Hotel",
"Noki 5": "Noki Bay",
"Noki 6": "Noki Bay - The Shell's Secret",
"Pianta 2": "Pianta Village",
"Pianta 5": "Pianta Village - Secret of the Village Underside",
"Pianta 6": "Pianta Village",
}
igtEpisodes =
{
"Bianco": [],
"Ricco": [2, 6],
"Gelato": [5],
"Pinna": [],
"Sirena": [6, 8],
"Noki": [5],
"Pianta": [2, 6]
}
igtRaces =
{
"Bianco": [],
"Ricco": [],
"Gelato": [5],
"Pinna": [],
"Sirena": [],
"Noki": [5],
"Pianta": [2]
}
igtReds =
{
"Bianco": [],
"Ricco": [6],
"Gelato": [],
"Pinna": [],
"Sirena": [8],
"Noki": [],
"Pianta": []
}
igtSecretReds =
{
"Bianco": [3, 6],
"Ricco": [4],
"Gelato": [1],
"Pinna": [2, 6],
"Sirena": [2, 4],
"Noki": [6],
"Pianta": [5]
}
// #endregion
// #endregion
// #region Region
bitflagBaseAddr = 0x578940
regions = ["USA/Korea", "Europe", "Japan (Rev 1)"]
// #endregion
// #region ID
courseIDs =
{
"Delfino Airstrip": 0x00,
"Delfino Plaza": 0x01,
"Bianco Hills": 0x02,
"Ricco Harbor": 0x03,
"Gelato Beach": 0x04,
"Pinna Park - Beach": 0x05,
"Sirena Beach - Beach": 0x06,
"Sirena Beach - Hotel": 0x07,
"Pianta Village": 0x08,
"Noki Bay": 0x09,
"Test Level": 0x0c,
"Pinna Park - Park": 0x0d,
"Sirena Beach - Casino": 0x0e,
"Title Screen/Credits": 0x0f,
"Noki Bay - The Red Coin Fish": 0x10,
"Delfino Plaza - Delfino Airstrip": 0x14,
"Delfino Plaza - Super Slide": 0x15,
"Delfino Plaza - Pachinko Game": 0x16,
"Delfino Plaza - Red Coin Field": 0x17,
"Delfino Plaza - Lily Pad Ride": 0x18,
"Delfino Plaza - Turbo Track": 0x1d,
"Ricco Harbor - Blooper Surfing Safari": 0x1e,
"Noki Bay - The Shell's Secret": 0x1f,
"Gelato Beach - Dune Bud Sand Castle Secret": 0x20,
"Gelato Beach - The Sand Bird is Born": 0x21,
"Sirena Beach - The Secret of Casino Delfino": 0x28,
"Pinna Park - The Yoshi-Go-Round's Secret": 0x29,
"Pianta Village - Secret of the Village Underside": 0x2a,
"Noki Bay - Red Coins in a Bottle": 0x2c,
"Bianco Hills - The Secret of the Dirty Lake": 0x2e,
"Bianco Hills - The Hillside Cave Secret": 0x2f,
"Ricco Harbor - The Secret of Ricco Tower": 0x30,
"Pinna Park - The Beach Cannon's Secret": 0x32,
"Sirena Beach - The Hotel Lobby's Secret": 0x33,
"Corona Mountain": 0x34,
"Bianco Hills - Down with Petey Piranha!": 0x37,
"Sirena Beach - King Boo Down Below": 0x38,
"Noki Bay - Eely-Mouth's Dentist": 0x39,
"Pinna Park - Roller Coaster": 0x3a,
"Ricco Harbor - Gooper Blooper Breaks Out": 0x3b,
"Corona Mountain - Father and Son Shine!": 0x3c
}
courseStateIDs =
{
"dolpic0": 0x00,
"dolpic1": 0x01,
"dolpic5": 0x05,
"dolpic6": 0x06,
"dolpic7": 0x07,
"dolpic8": 0x08,
"dolpic9": 0x09,
"dolpic10": 0x02,
"Episode Selection": 0xff,
"Episode 1": 0x00,
"Episode 2": 0x01,
"Episode 3": 0x02,
"Episode 4": 0x03,
"Episode 5": 0x04,
"Episode 6": 0x05,
"Episode 7": 0x06,
"Episode 8": 0x07,
"pinnaParco0": 0x00,
"pinnaParco1": 0x01,
"pinnaParco2": 0x02,
"pinnaParco3": 0x03,
"pinnaParco4": 0x04,
"pinnaParco5": 0x05,
"pinnaParco6": 0x06,
"pinnaParco7": 0x07,
"pinnaBoss0": 0x00,
"pinnaBoss1": 0x01,
"delfino0": 0x00,
"delfino1": 0x01,
"casino0": 0x00,
"casino1": 0x01,
"mareBoss": 0x00
}
cutsceneIDs =
{
"stolenpeach": 0x00,
"MechaKuppa": 0x07,
"KuppaJr": 0x08,
"bath": 0x0b,
"epilogue": 0x0e,
"staffroll": 0x0f,
"omakeB": 0x11
}
gameStateIDs =
{
"Loading": 0x00,
"Intro": 0x01,
"Enter": 0x03,
"Active": 0x04,
"Die": 0x07,
"Warp": 0x09,
"Cutscene": 0x78
}
cameraIDs =
{
"Normal": 0x00,
"Mario": 0x07,
"Load Graffiti": 0x17,
"Enter Graffiti": 0x18,
"Defeat Gatekeeper": 0x19,
"Flower": 0x1e,
"Shine": 0x21,
"Defeat Eely-Mouth": 0x49
}
objectIDs =
{
"Gooper Blooper Nose": 0x08000008,
"Cataquack": 0x10000015,
"Bob-omb": 0x1000001e,
"1-Up Mushroom (Normal)": 0x20000005,
"1-Up Mushroom (Repel)": 0x20000006,
"1-Up Mushroom (Attract)": 0x20000007,
"Spring": 0x40000017,
"Pole": 0x4000002f,
"Palm Tree": 0x40000039,
"Fluff": 0x40000049,
"Silver Fence": 0x40000069,
"Silver Flip Fence": 0x4000006a,
"Green Fence": 0x4000006b,
"Delfino Boat": 0x4000007b,
"Rope": 0x40000098,
"Bianco Lily Pad": 0x4000009c,
"Lily Pad": 0x400000a5,
"Bianco Windmill": 0x400000a8,
"Corona Boat": 0x4000022e,
"Moving Platform": 0x400002bd,
"Cloud": 0x400002c7,
"Meteor Emblem": 0x400002c8,
"Coconut": 0x40000390,
"Papaya": 0x40000391,
"Pineapple": 0x40000392,
"Durian": 0x40000393,
"Bananas": 0x40000394,
"Pepper": 0x40000395
}
keyCodes =
{
"Invisible Barrel": 0x196d,
"Lost Yellow Toad": 0x3c7f,
"Darkest Corona Cloud": 0x45cb,
"Hidden Bianco Tree": 0x4ebe,
"Police Pianta 1": 0x8f73,
"Police Pianta 2": 0x8f74,
"Red Bird Pianta": 0x8f74,
"Dirty Bianco Pianta" : 0x8f7b,
"Luigi Pianta": 0x8f89
}
shineIDs =
{
"Bianco 1": 0x0000,
"Bianco 2": 0x0001,
"Bianco 3": 0x0002,
"Bianco 4": 0x0003,
"Bianco 5": 0x0004,
"Bianco 6": 0x0005,
"Bianco 7": 0x0006,
"Bianco 8": 0x0007,
"Bianco 3 Reds": 0x0008,
"Bianco 6 Reds": 0x0009,
"Ricco 1": 0x000a,
"Ricco 2": 0x000b,
"Ricco 3": 0x000c,
"Ricco 4": 0x000d,
"Ricco 5": 0x000e,
"Ricco 6": 0x000f,
"Ricco 7": 0x0010,
"Ricco 8": 0x0011,
"Ricco 4 Reds": 0x0012,
"Ricco 2 Sequel": 0x0013,
"Gelato 1": 0x0014,
"Gelato 2": 0x0015,
"Gelato 3": 0x0016,
"Gelato 4": 0x0017,
"Gelato 5": 0x0018,
"Gelato 6": 0x0019,
"Gelato 7": 0x001a,
"Gelato 8": 0x001b,
"Gelato 1 Reds": 0x001c,
"Gelato Staircase": 0x001d,
"Pinna 1": 0x001e,
"Pinna 2": 0x001f,
"Pinna 3": 0x0020,
"Pinna 4": 0x0021,
"Pinna 5": 0x0022,
"Pinna 6": 0x0023,
"Pinna 7": 0x0024,
"Pinna 8": 0x0025,
"Pinna 2 Reds": 0x0026,
"Pinna 6 Reds": 0x0027,
"Sirena 1": 0x0028,
"Sirena 2": 0x0029,
"Sirena 3": 0x002a,
"Sirena 4": 0x002b,
"Sirena 5": 0x002c,
"Sirena 6": 0x002d,
"Sirena 7": 0x002e,
"Sirena 8": 0x002f,
"Sirena 2 Reds": 0x0030,
"Sirena 4 Reds": 0x0031,
"Noki 1": 0x0032,
"Noki 2": 0x0033,
"Noki 3": 0x0034,
"Noki 4": 0x0035,
"Noki 5": 0x0036,
"Noki 6": 0x0037,
"Noki 7": 0x0038,
"Noki 8": 0x0039,
"Noki 6 Reds": 0x003a,
"Noki Gold Bird": 0x003b,
"Pianta 1": 0x003c,
"Pianta 4": 0x003d,
"Pianta 3": 0x003e,
"Pianta 6": 0x003f,
"Pianta 5": 0x0040,
"Pianta 2": 0x0041,
"Pianta 7": 0x0042,
"Pianta 8": 0x0043,
"Pianta 5 Reds": 0x0044,
"Pianta Sun": 0x0045,
"Airstrip": 0x0056,
"Turbo Track": 0x0057,
"Airstrip Reds": 0x0058,
"Pachinko Game": 0x0059,
"Super Slide": 0x005a,
"Lily Pad Ride": 0x005b,
"Red Coin Field": 0x005c,
"Lighthouse Roof": 0x005d,
"Box Game 1": 0x005e,
"Box Game 2": 0x005f,
"West Bell": 0x0060,
"East Bell": 0x0061,
"Chuckster": 0x0062,
"Shine Gate": 0x0063,
"Bianco 100 Coins": 0x0064,
"Ricco 100 Coins": 0x0065,
"Gelato 100 Coins": 0x0066,
"Pinna 100 Coins": 0x0067,
"Sirena 100 Coins": 0x0068,
"Noki 100 Coins": 0x0069,
"Pianta 100 Coins": 0x006a,
"Delfino 100 Coins": 0x006b,
"Turbo Gate": 0x0074,
"Beach": 0x0075,
"Gold Bird": 0x0076,
"Corona Mountain": 0x0077,
}
marioStateIDs =
{
"Backflip": 0x00000883,
"Spin Jump 1": 0x00000895,
"Spin Jump 2": 0x00000896,
"Wall Slide": 0x000008a7,
"Collect Shine": 0x00001302,
"Electrocute": 0x00020338,
"Get Chucked": 0x000208b8,
"Hang Idle": 0x00200349,
"Hang Move": 0x0020054a,
"Slide": 0x00800456,
"Ground Pound": 0x0080023c,
"Ride Blooper": 0x00810446,
"Slide Backwards": 0x00840453,
"Wall Jump": 0x02000886,
"Jump Blooper": 0x0281089a,
"Run": 0x04000440,
"Sleep": 0x0c000203,
"Defeat Eely-Mouth": 0x10020370,
"Climb Move": 0x30000569,
"Climb Idle": 0x38000368,
"Throw Object": 0x820008ab
}
marioAnimationIDs =
{
"Climb Pole": 0x0003,
"Hold Pole": 0x0006,
"Jump": 0x0017,
"Ledge Walking Left": 0x002e,
"Slide": 0x0030,
"Side Jump": 0x003d,
"Spin Jump": 0x0069,
"Sonic Run": 0x006a,
"Grab Fence (From Ground)": 0x006e,
"Grab Fence (From Air)": 0x006f,
"Hold Fence": 0x0070,
"Climb Fence Left": 0x0071,
"Climb Fence Right": 0x0072,
"Climb Fence Up": 0x0073,
"Climb Fence Down": 0x0074,
"Slide Somersault": 0x0085,
"Sleep": 0x00a8
}
nozzleIDs =
{
"Rocket": 0x01,
"Underwater": 0x02,
"Hover": 0x04,
"Turbo": 0x05
}
blooperColorIDs =
{
"Purple": 0x00,
"Yellow": 0x01,
"Green": 0x02
}
peteyAnimationIDs =
{
"Sleep": 0x17
}
gooperAnimationIDs =
{
"Ripped Tentacle": 0x03
}
enemyAnimationIDs =
{
"Petey Bianco 5": peteyAnimationIDs,
"Gooper Blooper": gooperAnimationIDs,
}
surfaceIDs =
{
"Statue": 0x02,
"Sand": 0x05,
"Wood": 0x07,
"Dirt": 0x08,
"Tree Trunk": 0x09,
"Metal Platform": 0x0c,
"Tree Leaf": 0x0e,
"Grass": 0x10,
"Rope/Rigid Tree Leaf": 0x15,
"Mushroom": 0x1e
}
// #endregion
// #region Offset
objectOffsets =
{
"Key Code": 0x00000008,
"x Coordinate": 0x00000010,
"y Coordinate": 0x00000014,
"z Coordinate": 0x00000018,
"ID": 0x0000004c,
"State": 0x00000067,
"Status": 0x000000f3
}
// #region Enemy
enemyOffsets =
{
"Bowser Pinna 1": 0x00000134,
"Chain Chomplet 1" : 0x00000160,
"Chain Chomplet 2" : 0x00000164,
"Chain Chomplet 3" : 0x00000168
}
// #endregion
// #region Object
// The campfire 1-Up was unpredictable, so a scan approach was taken instead
// plazaOneUps =
// {
// "dolpic0": [0x280, 0x284, 0x288, 0x3a0],
// "dolpic1": [0x280, 0x284, 0x288, 0x3a4],
// "dolpic5": [0x234, 0x238, 0x23c, 0x368],
// "dolpic6": [0x280, 0x284, 0x288, 0x3b8],
// "dolpic7": [0x280, 0x284, 0x288, 0x3bc],
// "dolpic8": [0x298, 0x29c, 0x2a0, 0x3d4]
// }
lilyPadOneUp =
{
"N/A": [0xcc]
}
biancoOneUps =
{
"Episode 8": [0x1fc, 0x20c, 0x2a8]
}
caveSecretOneUps =
{
"N/A": [0xcc, 0x128]
}
lakeSecretOneUps =
{
"N/A": [0xcc, 0xd0]
}
riccoOneUps =
{
"Episode 8": [0x294, 0x2a4, 0x32c]
}
towerSecretOneUps =
{
"N/A": [0xcc, 0xd0]
}
gelatoOneUps =
{
"Episode 1": [0x2cc],
"Episode 2": [0x2fc],
"Episode 3": [0x2b4],