pmdsky-debug-py 7.0.9__py3-none-any.whl → 7.0.10__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -53,11 +53,13 @@ class JpItcmArm9Functions:
53
53
  None,
54
54
  "Sets global parameters for the memory allocator.\n\nThis includes"
55
55
  " MEMORY_ALLOCATION_ARENA_GETTERS and some other stuff.\n\nDungeon mode uses"
56
- " the default arena getters. Ground mode uses its own arena getters, which are"
57
- " defined in overlay 11 and set (by calling this function) at the start of"
58
- " GroundMainLoop.\n\nr0: GetAllocArena function pointer (GetAllocArenaDefault"
59
- " is used if null)\nr1: GetFreeArena function pointer (GetFreeArenaDefault is"
60
- " used if null)",
56
+ " the default arena getters. Ground mode uses its own arena getters that return"
57
+ " custom arenas for some flag values, which are defined in overlay 11 and set"
58
+ " (by calling this function) at the start of GroundMainLoop. Note that the"
59
+ " sound memory arena is provided explicitly to MemLocateSet in the sound code,"
60
+ " so doesn't go through this path.\n\nr0: GetAllocArena function pointer"
61
+ " (GetAllocArenaDefault is used if null)\nr1: GetFreeArena function pointer"
62
+ " (GetFreeArenaDefault is used if null)",
61
63
  )
62
64
 
63
65
  GetAllocArenaDefault = Symbol(
@@ -2313,6 +2315,21 @@ class JpItcmArm9Functions:
2313
2315
  " command list'\n\nr0: Command to send",
2314
2316
  )
2315
2317
 
2318
+ InitSoundSystem = Symbol(
2319
+ None,
2320
+ None,
2321
+ None,
2322
+ "Initialize the DSE sound engine?\n\nThis function is called somewhere in the"
2323
+ " hierarchy under TaskProcBoot and appears to allocate a bunch of memory"
2324
+ " (including a dedicated memory arena, see SOUND_MEMORY_ARENA) for sound data,"
2325
+ " and reads a bunch of core sound files.\n\nFile paths referenced:\n-"
2326
+ " SOUND/SYSTEM/se_sys.swd\n- SOUND/SYSTEM/se_sys.sed\n- SOUND/SE/motion.swd\n-"
2327
+ " SOUND/SE/motion.sed\n- SOUND/BGM/bgm.swd (this is the main sample bank, see"
2328
+ " https://projectpokemon.org/home/docs/mystery-dungeon-nds/pok%C3%A9mon-mystery-dungeon-explorers-r78/)\n\nDebug"
2329
+ " strings:\n- entry system se swd %04x\n\n- entry system se sed %04x\n\n- entry"
2330
+ " motion se swd %04x\n\n- entry motion se sed %04x\n",
2331
+ )
2332
+
2316
2333
  ManipBgmPlayback = Symbol(
2317
2334
  None,
2318
2335
  None,
@@ -2402,6 +2419,32 @@ class JpItcmArm9Functions:
2402
2419
  " field 0x43 to 0xFF\n\nr0: animation control\nr1: sprite id in WAN_TABLE",
2403
2420
  )
2404
2421
 
2422
+ SetAnimationForAnimationControlInternal = Symbol(
2423
+ None,
2424
+ None,
2425
+ None,
2426
+ "Set the wan animation (and other related settings) of an"
2427
+ " animation_control\nUsed by SetAnimationForAnimationControl\n\nr0:"
2428
+ " animation_control\nr1: wan_header\nr2: animation group id\nr3: animation"
2429
+ " id\nstack[0]: ?\nstack[1] (0x4): palette pos low (see the field on"
2430
+ " animation_control)\nstack[2] (0x8): ?\nstack[3] (0xC): ?\nstack[4] (0x10):"
2431
+ " palette_bank (directly set to the animation_control field with said name)",
2432
+ )
2433
+
2434
+ SetAnimationForAnimationControl = Symbol(
2435
+ None,
2436
+ None,
2437
+ None,
2438
+ "Set the animation to play with this animation control, but do not start"
2439
+ " it.\n\n(args same as SetAndPlayAnimationForAnimationControl)\nr0:"
2440
+ " animation_control\nr1: animation key (either an animation or animation group"
2441
+ " depending on the type of sprite and if it does have animation group with this"
2442
+ " animation key as index)\nr2: direction_id (unsure) (the key to the"
2443
+ " wan_animation in itself, only used when animation key represent a"
2444
+ " wan_animation_group)\nr3: ?\nstack[0]: low_palette_pos\nstack[1] (0x4):"
2445
+ " ?\nstack[2] (0x8): ?\nstack[3] (0xC): ?",
2446
+ )
2447
+
2405
2448
  GetWanForAnimationControl = Symbol(
2406
2449
  None,
2407
2450
  None,
@@ -2411,6 +2454,19 @@ class JpItcmArm9Functions:
2411
2454
  " animation_control\nreturn: wan_header",
2412
2455
  )
2413
2456
 
2457
+ SetAndPlayAnimationForAnimationControl = Symbol(
2458
+ None,
2459
+ None,
2460
+ None,
2461
+ "Set the animation to play with the animation control, and start it.\n\nr0:"
2462
+ " animation_control\nr1: animation key (either an animation or animation group"
2463
+ " depending on the type of sprite and if it does have animation group with this"
2464
+ " animation key as index)\nr2: direction_id (unsure) (the key to the"
2465
+ " wan_animation in itself, only used when animation key represent a"
2466
+ " wan_animation_group)\nr3: ?\nstack[0]: low_palette_pos\nstack[1] (0x4):"
2467
+ " ?\nstack[2] (0x8): ?\nstack[3] (0xC): ?",
2468
+ )
2469
+
2414
2470
  SwitchAnimationControlToNextFrame = Symbol(
2415
2471
  None,
2416
2472
  None,
@@ -2600,6 +2656,60 @@ class JpItcmArm9Functions:
2600
2656
  " unk_pal\nr2: unk_tex\nr3: unk_tex_param",
2601
2657
  )
2602
2658
 
2659
+ GeomSetTexImageParam = Symbol(
2660
+ None,
2661
+ None,
2662
+ None,
2663
+ "Send the 'TEXIMAGE_PARAM' geometry engine command, that defines some"
2664
+ " parameters for the texture\nSee"
2665
+ " http://problemkaputt.de/gbatek.htm#ds3dtextureattributes for more information"
2666
+ " on the parameters\n\nr0: texture format\nr1: texture coordinates"
2667
+ " transformation modes\nr2: texture S-Size\nr3: texture T-Size\nstack[0] (0x0):"
2668
+ " repeat in S Direction\nstack[1] (0x4): flip in S direction\nstack[2] (0x8):"
2669
+ " What to make of color 0 (bit 29)\nstack[3] (0xC): Texture VRAM offset (Will"
2670
+ " be divided by 8)",
2671
+ )
2672
+
2673
+ GeomSetVertexCoord16 = Symbol(
2674
+ None,
2675
+ None,
2676
+ None,
2677
+ "Send the 'VTX_16' geometry engine command, that defines the coordinate of a"
2678
+ " point of a polygon, using 16 bits.\nInputs are clamped over their 16 lower"
2679
+ " bits\n\nr0: x coordinate\nr1: y coordinate\nr2: z coordinate",
2680
+ )
2681
+
2682
+ InitRender3dData = Symbol(
2683
+ None, None, None, "Initialize the global 'RENDER_3D' structure.\n\nNo params."
2684
+ )
2685
+
2686
+ GeomSwapBuffers = Symbol(
2687
+ None,
2688
+ None,
2689
+ None,
2690
+ "Call the 'SWAP_BUFFERS' command. This will swap the geometry buffer. The"
2691
+ " parameter of 1 is provided, which enables manual Y-sorting of translucent"
2692
+ " polygons.\n\nNo params.",
2693
+ )
2694
+
2695
+ InitRender3dElement = Symbol(
2696
+ None,
2697
+ None,
2698
+ None,
2699
+ "Initialize the render_3d_element structure (without performing any drawing or"
2700
+ " external data access)\n\nr0: render_3d_element",
2701
+ )
2702
+
2703
+ Generate3dCanvasBorder = Symbol(
2704
+ None,
2705
+ None,
2706
+ None,
2707
+ "Draw the border for dialogue box and other menus, using the 3D engine.\nThe"
2708
+ " render_3d_element contains certain value that needs to be set to a correct"
2709
+ " value for it to work.\nThe element is not immediately sent to the geometry"
2710
+ " engine, but is queued up in RENDER_3D\n\nr0: render_3d_element",
2711
+ )
2712
+
2603
2713
  HandleSir0Translation = Symbol(
2604
2714
  None,
2605
2715
  None,
@@ -3865,7 +3975,8 @@ class JpItcmArm9Functions:
3865
3975
  None,
3866
3976
  None,
3867
3977
  "Increments by 1 the number of dungeons cleared.\n\nImplements"
3868
- " SPECIAL_PROC_0x3A (see ScriptSpecialProcessCall).\n\nNo params.",
3978
+ " SPECIAL_PROC_INCREMENT_DUNGEONS_CLEARED (see ScriptSpecialProcessCall).\n\nNo"
3979
+ " params.",
3869
3980
  )
3870
3981
 
3871
3982
  GetNbDungeonsCleared = Symbol(
@@ -3973,7 +4084,8 @@ class JpItcmArm9Functions:
3973
4084
  None,
3974
4085
  None,
3975
4086
  "Increments by 1 the number of big treasure wins.\n\nImplements"
3976
- " SPECIAL_PROC_0x3B (see ScriptSpecialProcessCall).\n\nNo params.",
4087
+ " SPECIAL_PROC_INCREMENT_BIG_TREASURE_WINS (see"
4088
+ " ScriptSpecialProcessCall).\n\nNo params.",
3977
4089
  )
3978
4090
 
3979
4091
  SetNbBigTreasureWins = Symbol(
@@ -5671,8 +5783,33 @@ class JpItcmArm9Functions:
5671
5783
  None, None, None, "Note: unverified, ported from Irdkwia's notes"
5672
5784
  )
5673
5785
 
5786
+ ParseDseEvents = Symbol(
5787
+ None,
5788
+ None,
5789
+ None,
5790
+ "From https://projectpokemon.org/docs/mystery-dungeon-nds/procyon-studios-digital-sound-elements-r12/",
5791
+ )
5792
+
5793
+ UpdateSequencerTracks = Symbol(
5794
+ None,
5795
+ None,
5796
+ None,
5797
+ "From https://projectpokemon.org/docs/mystery-dungeon-nds/procyon-studios-digital-sound-elements-r12/",
5798
+ )
5799
+
5674
5800
  UpdateChannels = Symbol(
5675
- None, None, None, "Note: unverified, ported from Irdkwia's notes\n\nNo params."
5801
+ None,
5802
+ None,
5803
+ None,
5804
+ "From https://projectpokemon.org/docs/mystery-dungeon-nds/procyon-studios-digital-sound-elements-r12/"
5805
+ " and Irdkwia's notes.\n\nNo params.",
5806
+ )
5807
+
5808
+ UpdateTrackVolumeEnvelopes = Symbol(
5809
+ None,
5810
+ None,
5811
+ None,
5812
+ "From https://projectpokemon.org/docs/mystery-dungeon-nds/procyon-studios-digital-sound-elements-r12/",
5676
5813
  )
5677
5814
 
5678
5815
  EnableVramBanksInSetDontSave = Symbol(
@@ -7144,6 +7281,14 @@ class JpItcmArm9Data:
7144
7281
  "pointer to the list of wan sprite loaded in RAM\n\nstruct wan_table*",
7145
7282
  )
7146
7283
 
7284
+ RENDER_3D = Symbol(
7285
+ None,
7286
+ None,
7287
+ None,
7288
+ "The (seemingly) unique instance render_3d_global in the game\n\ntype: struct"
7289
+ " render_3d_global",
7290
+ )
7291
+
7147
7292
  LANGUAGE_INFO_DATA = Symbol(None, None, None, "[Runtime]")
7148
7293
 
7149
7294
  TBL_TALK_GROUP_STRING_ID_START = Symbol(
@@ -7237,7 +7382,9 @@ class JpItcmArm9Data:
7237
7382
  None,
7238
7383
  None,
7239
7384
  None,
7240
- "Irdkwia's notes: named DSEEventFunctionPtrTable with length 0x3C0 (note the"
7385
+ "Table of all DSE events, see"
7386
+ " https://projectpokemon.org/docs/mystery-dungeon-nds/procyon-studios-digital-sound-elements-r12/\n\nIrdkwia's"
7387
+ " notes: named DSEEventFunctionPtrTable with length 0x3C0 (note the"
7241
7388
  " disagreement), 240*0x4.",
7242
7389
  )
7243
7390
 
@@ -7285,6 +7432,24 @@ class JpItcmArm9Section:
7285
7432
 
7286
7433
 
7287
7434
  class JpItcmItcmFunctions:
7435
+ AllocateRender3dElement = Symbol(
7436
+ None,
7437
+ None,
7438
+ None,
7439
+ "Return a new render_3d_element from RENDER_3D, to be to draw a new element"
7440
+ " using the 3d render engine later in the frame.\n\nreturn: render_3d_element"
7441
+ " or NULL if there is no more available space in the stack",
7442
+ )
7443
+
7444
+ Render3dStack = Symbol(
7445
+ None,
7446
+ None,
7447
+ None,
7448
+ "Perform rendering of the render_stack of RENDER_3D structure. Does nothing if"
7449
+ " there are no elements, otherwise, sort them based on a value, and render them"
7450
+ " all consecutively.\n\nNo params.",
7451
+ )
7452
+
7288
7453
  GetKeyN2MSwitch = Symbol(
7289
7454
  [0x149C],
7290
7455
  [0x1FF949C],
@@ -7411,6 +7576,14 @@ class JpItcmItcmData:
7411
7576
  " mem_block[256]",
7412
7577
  )
7413
7578
 
7579
+ RENDER_3D_FUNCTIONS = Symbol(
7580
+ None,
7581
+ None,
7582
+ None,
7583
+ "Pointers to the 4 functions available from render_3d_element (in"
7584
+ " ITCM)\n\ntype: render_3d_element_concrete[4]",
7585
+ )
7586
+
7414
7587
 
7415
7588
  class JpItcmItcmSection:
7416
7589
  name = "itcm"
@@ -11757,8 +11930,10 @@ class JpItcmOverlay11Functions:
11757
11930
  None,
11758
11931
  None,
11759
11932
  "The GetAllocArena function used for ground mode. See SetMemAllocatorParams for"
11760
- " more information.\n\nr0: initial memory arena pointer, or null\nr1: flags"
11761
- " (see MemAlloc)\nreturn: memory arena pointer, or null",
11933
+ " more information.\n\nFor (flags & 0xFF):\n 8, 15, 16:"
11934
+ " GROUND_MEMORY_ARENA_1\n 14: GROUND_MEMORY_ARENA_2\n other: null (default"
11935
+ " arena)\n\nr0: initial memory arena pointer, or null\nr1: flags (see"
11936
+ " MemAlloc)\nreturn: memory arena pointer, or null",
11762
11937
  )
11763
11938
 
11764
11939
  GetFreeArenaGround = Symbol(
@@ -12151,6 +12326,8 @@ class JpItcmOverlay11Data:
12151
12326
  " scene\n\ntype: struct main_ground_data",
12152
12327
  )
12153
12328
 
12329
+ WORLD_MAP_MODE = Symbol(None, None, None, "The current world map")
12330
+
12154
12331
 
12155
12332
  class JpItcmOverlay11Section:
12156
12333
  name = "overlay11"
@@ -18589,7 +18766,7 @@ class JpItcmOverlay29Functions:
18589
18766
  None,
18590
18767
  None,
18591
18768
  None,
18592
- "Note: unverified, ported from Irdkwia's notes\n\nr0: call_back_str\nr1: x"
18769
+ "Note: unverified, ported from Irdkwia's notes\n\nr0: render_3d_element\nr1: x"
18593
18770
  " position\nr2: y position\nr3: char_id\nstack[0]: ?\nreturn: ?",
18594
18771
  )
18595
18772
 
@@ -21737,6 +21914,36 @@ class JpItcmRamFunctions:
21737
21914
 
21738
21915
 
21739
21916
  class JpItcmRamData:
21917
+ DEFAULT_MEMORY_ARENA_MEMORY = Symbol(
21918
+ None,
21919
+ None,
21920
+ None,
21921
+ "The memory region for the default memory arena.\n\nThe length is defined by"
21922
+ " DEFAULT_MEMORY_ARENA_SIZE.\n\nOne mode that uses this region for heap"
21923
+ " allocations is dungeon mode.",
21924
+ )
21925
+
21926
+ GROUND_MEMORY_ARENA_2 = Symbol(
21927
+ None,
21928
+ None,
21929
+ None,
21930
+ "This is a memory subarena under DEFAULT_MEMORY_ARENA used for some things in"
21931
+ " ground mode.\n\nIt's used for user_flags 14.\n\nIncluding the allocator"
21932
+ " metadata, this arena occupies 0xB0000 bytes of space.\n\ntype: struct"
21933
+ " mem_arena",
21934
+ )
21935
+
21936
+ GROUND_MEMORY_ARENA_2_BLOCKS = Symbol(
21937
+ None,
21938
+ None,
21939
+ None,
21940
+ "The block array for GROUND_MEMORY_ARENA_2.\n\ntype: struct mem_block[32]",
21941
+ )
21942
+
21943
+ GROUND_MEMORY_ARENA_2_MEMORY = Symbol(
21944
+ None, None, None, "The memory region for GROUND_MEMORY_ARENA_2."
21945
+ )
21946
+
21740
21947
  DUNGEON_COLORMAP_PTR = Symbol(
21741
21948
  None,
21742
21949
  None,
@@ -21766,6 +21973,33 @@ class JpItcmRamData:
21766
21973
  " ARM 9 binary.\n\ntype: struct move_data_table",
21767
21974
  )
21768
21975
 
21976
+ SOUND_MEMORY_ARENA = Symbol(
21977
+ None,
21978
+ None,
21979
+ None,
21980
+ "This is a memory subarena under DEFAULT_MEMORY_ARENA that seems to be used"
21981
+ " exclusively for sound data.\n\nIncluding allocator metadata, this subarena"
21982
+ " occupies 0x3C000 bytes of space within the default arena.\n\nIt's referenced"
21983
+ " by various sound functions like LoadDseFile, PlaySeLoad, and PlayBgm when"
21984
+ " allocating memory.\n\ntype: struct mem_arena",
21985
+ )
21986
+
21987
+ SOUND_MEMORY_ARENA_BLOCKS = Symbol(
21988
+ None,
21989
+ None,
21990
+ None,
21991
+ "The block array for SOUND_MEMORY_ARENA.\n\ntype: struct mem_block[20]",
21992
+ )
21993
+
21994
+ SOUND_MEMORY_ARENA_MEMORY = Symbol(
21995
+ None,
21996
+ None,
21997
+ None,
21998
+ "The memory region for SOUND_MEMORY_ARENA.\n\nThis region appears to be used"
21999
+ " for sound-related heap allocations, like when loading sound files into"
22000
+ " memory.",
22001
+ )
22002
+
21769
22003
  FRAMES_SINCE_LAUNCH = Symbol(
21770
22004
  None,
21771
22005
  None,
@@ -21886,6 +22120,8 @@ class JpItcmRamData:
21886
22120
  None, None, None, "animation_control of 'FONT/alter.wan'"
21887
22121
  )
21888
22122
 
22123
+ SOUND_MEMORY_ARENA_PTR = Symbol(None, None, None, "Pointer to SOUND_MEMORY_ARENA.")
22124
+
21889
22125
  DIALOG_BOX_LIST = Symbol(None, None, None, "Array of allocated dialog box structs.")
21890
22126
 
21891
22127
  LAST_NEW_MOVE = Symbol(
@@ -22003,7 +22239,33 @@ class JpItcmRamData:
22003
22239
  " the game is running.",
22004
22240
  )
22005
22241
 
22006
- WORLD_MAP_MODE = Symbol(None, None, None, "The current world map")
22242
+ GROUND_MEMORY_ARENA_1_PTR = Symbol(
22243
+ None, None, None, "Pointer to GROUND_MEMORY_ARENA_1."
22244
+ )
22245
+
22246
+ GROUND_MEMORY_ARENA_2_PTR = Symbol(
22247
+ None, None, None, "Pointer to GROUND_MEMORY_ARENA_2."
22248
+ )
22249
+
22250
+ GROUND_MEMORY_ARENA_1 = Symbol(
22251
+ None,
22252
+ None,
22253
+ None,
22254
+ "This is a top-level memory arena used for some things in ground mode.\n\nIt's"
22255
+ " used for user_flags 8, 15, and 16.\n\nIncluding the allocator metadata, this"
22256
+ " arena occupies 0x64000 bytes of space.\n\ntype: struct mem_arena",
22257
+ )
22258
+
22259
+ GROUND_MEMORY_ARENA_1_BLOCKS = Symbol(
22260
+ None,
22261
+ None,
22262
+ None,
22263
+ "The block array for GROUND_MEMORY_ARENA_1.\n\ntype: struct mem_block[52]",
22264
+ )
22265
+
22266
+ GROUND_MEMORY_ARENA_1_MEMORY = Symbol(
22267
+ None, None, None, "The memory region for GROUND_MEMORY_ARENA_1."
22268
+ )
22007
22269
 
22008
22270
  SENTRY_DUTY_STRUCT = Symbol(None, None, None, "")
22009
22271