pmdsky-debug-py 5.1.12__py3-none-any.whl → 5.1.13__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.
@@ -1 +1 @@
1
- RELEASE = "v0.5.1+ccc99b9550"
1
+ RELEASE = "v0.5.1+20669e221f"
pmdsky_debug_py/eu.py CHANGED
@@ -1037,9 +1037,9 @@ class EuArm9Functions:
1037
1037
  None,
1038
1038
  (
1039
1039
  "Call LoadFileInPack after looking up the global Pack archive by its"
1040
- " identifier\n\nr0: pack file identifier\nr1: [output] target buffer\nr2:"
1041
- " file index\nreturn: number of read bytes (identical to the length of the"
1042
- " pack from the Table of Content)"
1040
+ " identifier\n\nr0: pack file identifier\nr1: file index\nr2: [output]"
1041
+ " target buffer\nreturn: number of read bytes (identical to the length of"
1042
+ " the pack from the Table of Content)"
1043
1043
  ),
1044
1044
  )
1045
1045
 
@@ -2679,17 +2679,30 @@ class EuArm9Functions:
2679
2679
  [0x201D278],
2680
2680
  None,
2681
2681
  (
2682
- "Note: unverified, ported from Irdkwia's notes\n\nr0: wan_table_ptr\nr1:"
2682
+ "Always delete an entry if the file is allocated externally"
2683
+ " (file_externally_allocated is set), otherwise, decrease the reference"
2684
+ " counter. If it reach 0, delete the sprite.\n\nr0: wan_table_ptr\nr1:"
2683
2685
  " wan_id"
2684
2686
  ),
2685
2687
  )
2686
2688
 
2689
+ AllocateWanTableEntry = Symbol(
2690
+ [0x1D2E0],
2691
+ [0x201D2E0],
2692
+ None,
2693
+ (
2694
+ "Return the identifier to a free wan table entry (-1 if none are"
2695
+ " avalaible). The entry is zeroed.\n\nr0: wan_table_ptr\nreturn: the entry"
2696
+ " id in wan_table"
2697
+ ),
2698
+ )
2699
+
2687
2700
  FindWanTableEntry = Symbol(
2688
2701
  [0x1D370],
2689
2702
  [0x201D370],
2690
2703
  None,
2691
2704
  (
2692
- "Appears to search in the given table (in practice always seems to be"
2705
+ "Search in the given table (in practice always seems to be"
2693
2706
  " LOADED_WAN_TABLE_PTR) for an entry with the given file name.\n\nr0: table"
2694
2707
  " pointer\nr1: file name\nreturn: index of the found file, if found, or -1"
2695
2708
  " if not found"
@@ -2701,8 +2714,19 @@ class EuArm9Functions:
2701
2714
  [0x201D3D0],
2702
2715
  None,
2703
2716
  (
2704
- "wan_id = -1 if it is not loaded\n\nNote: unverified, ported from Irdkwia's"
2705
- " notes\n\nr0: wan_table_ptr\nr1: bin_file_id\nr2: file_id\nreturn: wan_id"
2717
+ "Look up a sprite with the provided pack_id and file_index in the wan"
2718
+ " table.\n\nr0: wan_table_ptr\nr1: pack_id\nr2: file_index\nreturn: sprite"
2719
+ " id in the wan table, -1 if not found"
2720
+ ),
2721
+ )
2722
+
2723
+ InitWanTable = Symbol(
2724
+ [0x1D458],
2725
+ [0x201D458],
2726
+ None,
2727
+ (
2728
+ "Initialize the input WAN table with 0x60 free entries (it needs a length"
2729
+ " of 0x1510 bytes)\n\nr0: wan_table_ptr"
2706
2730
  ),
2707
2731
  )
2708
2732
 
@@ -2718,6 +2742,32 @@ class EuArm9Functions:
2718
2742
  ),
2719
2743
  )
2720
2744
 
2745
+ LoadWanTableEntryFromPack = Symbol(
2746
+ [0x1D520],
2747
+ [0x201D520],
2748
+ None,
2749
+ (
2750
+ "Return an already allocated entry for this sprite if it exists, otherwise"
2751
+ " allocate a new one and load the optionally compressed sprite.\n\nr0:"
2752
+ " wan_table_ptr\nr1: pack_id\nr2: file_index\nr3: allocation"
2753
+ " flags\nstack[0]: compressed\nreturn: the entry id in wan_table"
2754
+ ),
2755
+ )
2756
+
2757
+ LoadWanTableEntryFromPackUseProvidedMemory = Symbol(
2758
+ [0x1D62C],
2759
+ [0x201D62C],
2760
+ None,
2761
+ (
2762
+ "Return an already allocated entry for this sprite if it exists, otherwise"
2763
+ " allocate a new one and load the optionally compressed sprite into the"
2764
+ " provided memory area. Mark the sprite as externally allocated.\n\nr0:"
2765
+ " wan_table_ptr\nr1: pack_id\nr2: file_index\nr3:"
2766
+ " sprite_storage_ptr\nstack[0]: compressed\nreturn: the entry id in"
2767
+ " wan_table"
2768
+ ),
2769
+ )
2770
+
2721
2771
  ReplaceWanFromBinFile = Symbol(
2722
2772
  [0x1D720],
2723
2773
  [0x201D720],
@@ -13614,8 +13664,10 @@ class EuOverlay11Functions:
13614
13664
  [0x22EC480],
13615
13665
  None,
13616
13666
  (
13617
- "Note: unverified, ported from Irdkwia's notes\n\nr0: [output]"
13618
- " bg_attr_str\nr1: bg_id"
13667
+ "Open and read an entry from the MAP_BG/bg_list.dat\n\nDocumentation on"
13668
+ " this format can be found"
13669
+ " here:\nhttps://github.com/SkyTemple/skytemple-files/tree/55b3017631a8a1b0f106111ef91a901dc394c6df/skytemple_files/graphics/bg_list_dat\n\nr0:"
13670
+ " [output] The entry\nr1: background ID"
13619
13671
  ),
13620
13672
  )
13621
13673
 
@@ -13892,6 +13944,13 @@ class EuOverlay11Data:
13892
13944
 
13893
13945
  GROUND_STATE_MAP = Symbol([0x48C80], [0x2325800], None, "[Runtime]")
13894
13946
 
13947
+ GROUND_STATE_WEATHER = Symbol(
13948
+ [0x48C8C],
13949
+ [0x232580C],
13950
+ None,
13951
+ "[Runtime] Same structure format as GROUND_STATE_MAP",
13952
+ )
13953
+
13895
13954
  GROUND_STATE_PTRS = Symbol(
13896
13955
  [0x48CB4],
13897
13956
  [0x2325834],
@@ -1024,9 +1024,9 @@ class EuItcmArm9Functions:
1024
1024
  None,
1025
1025
  (
1026
1026
  "Call LoadFileInPack after looking up the global Pack archive by its"
1027
- " identifier\n\nr0: pack file identifier\nr1: [output] target buffer\nr2:"
1028
- " file index\nreturn: number of read bytes (identical to the length of the"
1029
- " pack from the Table of Content)"
1027
+ " identifier\n\nr0: pack file identifier\nr1: file index\nr2: [output]"
1028
+ " target buffer\nreturn: number of read bytes (identical to the length of"
1029
+ " the pack from the Table of Content)"
1030
1030
  ),
1031
1031
  )
1032
1032
 
@@ -2592,17 +2592,30 @@ class EuItcmArm9Functions:
2592
2592
  None,
2593
2593
  None,
2594
2594
  (
2595
- "Note: unverified, ported from Irdkwia's notes\n\nr0: wan_table_ptr\nr1:"
2595
+ "Always delete an entry if the file is allocated externally"
2596
+ " (file_externally_allocated is set), otherwise, decrease the reference"
2597
+ " counter. If it reach 0, delete the sprite.\n\nr0: wan_table_ptr\nr1:"
2596
2598
  " wan_id"
2597
2599
  ),
2598
2600
  )
2599
2601
 
2602
+ AllocateWanTableEntry = Symbol(
2603
+ None,
2604
+ None,
2605
+ None,
2606
+ (
2607
+ "Return the identifier to a free wan table entry (-1 if none are"
2608
+ " avalaible). The entry is zeroed.\n\nr0: wan_table_ptr\nreturn: the entry"
2609
+ " id in wan_table"
2610
+ ),
2611
+ )
2612
+
2600
2613
  FindWanTableEntry = Symbol(
2601
2614
  None,
2602
2615
  None,
2603
2616
  None,
2604
2617
  (
2605
- "Appears to search in the given table (in practice always seems to be"
2618
+ "Search in the given table (in practice always seems to be"
2606
2619
  " LOADED_WAN_TABLE_PTR) for an entry with the given file name.\n\nr0: table"
2607
2620
  " pointer\nr1: file name\nreturn: index of the found file, if found, or -1"
2608
2621
  " if not found"
@@ -2614,8 +2627,19 @@ class EuItcmArm9Functions:
2614
2627
  None,
2615
2628
  None,
2616
2629
  (
2617
- "wan_id = -1 if it is not loaded\n\nNote: unverified, ported from Irdkwia's"
2618
- " notes\n\nr0: wan_table_ptr\nr1: bin_file_id\nr2: file_id\nreturn: wan_id"
2630
+ "Look up a sprite with the provided pack_id and file_index in the wan"
2631
+ " table.\n\nr0: wan_table_ptr\nr1: pack_id\nr2: file_index\nreturn: sprite"
2632
+ " id in the wan table, -1 if not found"
2633
+ ),
2634
+ )
2635
+
2636
+ InitWanTable = Symbol(
2637
+ None,
2638
+ None,
2639
+ None,
2640
+ (
2641
+ "Initialize the input WAN table with 0x60 free entries (it needs a length"
2642
+ " of 0x1510 bytes)\n\nr0: wan_table_ptr"
2619
2643
  ),
2620
2644
  )
2621
2645
 
@@ -2631,6 +2655,32 @@ class EuItcmArm9Functions:
2631
2655
  ),
2632
2656
  )
2633
2657
 
2658
+ LoadWanTableEntryFromPack = Symbol(
2659
+ None,
2660
+ None,
2661
+ None,
2662
+ (
2663
+ "Return an already allocated entry for this sprite if it exists, otherwise"
2664
+ " allocate a new one and load the optionally compressed sprite.\n\nr0:"
2665
+ " wan_table_ptr\nr1: pack_id\nr2: file_index\nr3: allocation"
2666
+ " flags\nstack[0]: compressed\nreturn: the entry id in wan_table"
2667
+ ),
2668
+ )
2669
+
2670
+ LoadWanTableEntryFromPackUseProvidedMemory = Symbol(
2671
+ None,
2672
+ None,
2673
+ None,
2674
+ (
2675
+ "Return an already allocated entry for this sprite if it exists, otherwise"
2676
+ " allocate a new one and load the optionally compressed sprite into the"
2677
+ " provided memory area. Mark the sprite as externally allocated.\n\nr0:"
2678
+ " wan_table_ptr\nr1: pack_id\nr2: file_index\nr3:"
2679
+ " sprite_storage_ptr\nstack[0]: compressed\nreturn: the entry id in"
2680
+ " wan_table"
2681
+ ),
2682
+ )
2683
+
2634
2684
  ReplaceWanFromBinFile = Symbol(
2635
2685
  None,
2636
2686
  None,
@@ -13315,8 +13365,10 @@ class EuItcmOverlay11Functions:
13315
13365
  None,
13316
13366
  None,
13317
13367
  (
13318
- "Note: unverified, ported from Irdkwia's notes\n\nr0: [output]"
13319
- " bg_attr_str\nr1: bg_id"
13368
+ "Open and read an entry from the MAP_BG/bg_list.dat\n\nDocumentation on"
13369
+ " this format can be found"
13370
+ " here:\nhttps://github.com/SkyTemple/skytemple-files/tree/55b3017631a8a1b0f106111ef91a901dc394c6df/skytemple_files/graphics/bg_list_dat\n\nr0:"
13371
+ " [output] The entry\nr1: background ID"
13320
13372
  ),
13321
13373
  )
13322
13374
 
@@ -13593,6 +13645,10 @@ class EuItcmOverlay11Data:
13593
13645
 
13594
13646
  GROUND_STATE_MAP = Symbol(None, None, None, "[Runtime]")
13595
13647
 
13648
+ GROUND_STATE_WEATHER = Symbol(
13649
+ None, None, None, "[Runtime] Same structure format as GROUND_STATE_MAP"
13650
+ )
13651
+
13596
13652
  GROUND_STATE_PTRS = Symbol(
13597
13653
  None,
13598
13654
  None,
pmdsky_debug_py/jp.py CHANGED
@@ -1037,9 +1037,9 @@ class JpArm9Functions:
1037
1037
  None,
1038
1038
  (
1039
1039
  "Call LoadFileInPack after looking up the global Pack archive by its"
1040
- " identifier\n\nr0: pack file identifier\nr1: [output] target buffer\nr2:"
1041
- " file index\nreturn: number of read bytes (identical to the length of the"
1042
- " pack from the Table of Content)"
1040
+ " identifier\n\nr0: pack file identifier\nr1: file index\nr2: [output]"
1041
+ " target buffer\nreturn: number of read bytes (identical to the length of"
1042
+ " the pack from the Table of Content)"
1043
1043
  ),
1044
1044
  )
1045
1045
 
@@ -2677,17 +2677,30 @@ class JpArm9Functions:
2677
2677
  [0x201D234],
2678
2678
  None,
2679
2679
  (
2680
- "Note: unverified, ported from Irdkwia's notes\n\nr0: wan_table_ptr\nr1:"
2680
+ "Always delete an entry if the file is allocated externally"
2681
+ " (file_externally_allocated is set), otherwise, decrease the reference"
2682
+ " counter. If it reach 0, delete the sprite.\n\nr0: wan_table_ptr\nr1:"
2681
2683
  " wan_id"
2682
2684
  ),
2683
2685
  )
2684
2686
 
2687
+ AllocateWanTableEntry = Symbol(
2688
+ None,
2689
+ None,
2690
+ None,
2691
+ (
2692
+ "Return the identifier to a free wan table entry (-1 if none are"
2693
+ " avalaible). The entry is zeroed.\n\nr0: wan_table_ptr\nreturn: the entry"
2694
+ " id in wan_table"
2695
+ ),
2696
+ )
2697
+
2685
2698
  FindWanTableEntry = Symbol(
2686
2699
  [0x1D32C],
2687
2700
  [0x201D32C],
2688
2701
  None,
2689
2702
  (
2690
- "Appears to search in the given table (in practice always seems to be"
2703
+ "Search in the given table (in practice always seems to be"
2691
2704
  " LOADED_WAN_TABLE_PTR) for an entry with the given file name.\n\nr0: table"
2692
2705
  " pointer\nr1: file name\nreturn: index of the found file, if found, or -1"
2693
2706
  " if not found"
@@ -2699,8 +2712,19 @@ class JpArm9Functions:
2699
2712
  [0x201D38C],
2700
2713
  None,
2701
2714
  (
2702
- "wan_id = -1 if it is not loaded\n\nNote: unverified, ported from Irdkwia's"
2703
- " notes\n\nr0: wan_table_ptr\nr1: bin_file_id\nr2: file_id\nreturn: wan_id"
2715
+ "Look up a sprite with the provided pack_id and file_index in the wan"
2716
+ " table.\n\nr0: wan_table_ptr\nr1: pack_id\nr2: file_index\nreturn: sprite"
2717
+ " id in the wan table, -1 if not found"
2718
+ ),
2719
+ )
2720
+
2721
+ InitWanTable = Symbol(
2722
+ None,
2723
+ None,
2724
+ None,
2725
+ (
2726
+ "Initialize the input WAN table with 0x60 free entries (it needs a length"
2727
+ " of 0x1510 bytes)\n\nr0: wan_table_ptr"
2704
2728
  ),
2705
2729
  )
2706
2730
 
@@ -2716,6 +2740,32 @@ class JpArm9Functions:
2716
2740
  ),
2717
2741
  )
2718
2742
 
2743
+ LoadWanTableEntryFromPack = Symbol(
2744
+ None,
2745
+ None,
2746
+ None,
2747
+ (
2748
+ "Return an already allocated entry for this sprite if it exists, otherwise"
2749
+ " allocate a new one and load the optionally compressed sprite.\n\nr0:"
2750
+ " wan_table_ptr\nr1: pack_id\nr2: file_index\nr3: allocation"
2751
+ " flags\nstack[0]: compressed\nreturn: the entry id in wan_table"
2752
+ ),
2753
+ )
2754
+
2755
+ LoadWanTableEntryFromPackUseProvidedMemory = Symbol(
2756
+ None,
2757
+ None,
2758
+ None,
2759
+ (
2760
+ "Return an already allocated entry for this sprite if it exists, otherwise"
2761
+ " allocate a new one and load the optionally compressed sprite into the"
2762
+ " provided memory area. Mark the sprite as externally allocated.\n\nr0:"
2763
+ " wan_table_ptr\nr1: pack_id\nr2: file_index\nr3:"
2764
+ " sprite_storage_ptr\nstack[0]: compressed\nreturn: the entry id in"
2765
+ " wan_table"
2766
+ ),
2767
+ )
2768
+
2719
2769
  ReplaceWanFromBinFile = Symbol(
2720
2770
  [0x1D6DC],
2721
2771
  [0x201D6DC],
@@ -13550,8 +13600,10 @@ class JpOverlay11Functions:
13550
13600
  [0x22ED174],
13551
13601
  None,
13552
13602
  (
13553
- "Note: unverified, ported from Irdkwia's notes\n\nr0: [output]"
13554
- " bg_attr_str\nr1: bg_id"
13603
+ "Open and read an entry from the MAP_BG/bg_list.dat\n\nDocumentation on"
13604
+ " this format can be found"
13605
+ " here:\nhttps://github.com/SkyTemple/skytemple-files/tree/55b3017631a8a1b0f106111ef91a901dc394c6df/skytemple_files/graphics/bg_list_dat\n\nr0:"
13606
+ " [output] The entry\nr1: background ID"
13555
13607
  ),
13556
13608
  )
13557
13609
 
@@ -13828,6 +13880,10 @@ class JpOverlay11Data:
13828
13880
 
13829
13881
  GROUND_STATE_MAP = Symbol(None, None, None, "[Runtime]")
13830
13882
 
13883
+ GROUND_STATE_WEATHER = Symbol(
13884
+ None, None, None, "[Runtime] Same structure format as GROUND_STATE_MAP"
13885
+ )
13886
+
13831
13887
  GROUND_STATE_PTRS = Symbol(
13832
13888
  None,
13833
13889
  None,
@@ -1024,9 +1024,9 @@ class JpItcmArm9Functions:
1024
1024
  None,
1025
1025
  (
1026
1026
  "Call LoadFileInPack after looking up the global Pack archive by its"
1027
- " identifier\n\nr0: pack file identifier\nr1: [output] target buffer\nr2:"
1028
- " file index\nreturn: number of read bytes (identical to the length of the"
1029
- " pack from the Table of Content)"
1027
+ " identifier\n\nr0: pack file identifier\nr1: file index\nr2: [output]"
1028
+ " target buffer\nreturn: number of read bytes (identical to the length of"
1029
+ " the pack from the Table of Content)"
1030
1030
  ),
1031
1031
  )
1032
1032
 
@@ -2592,17 +2592,30 @@ class JpItcmArm9Functions:
2592
2592
  None,
2593
2593
  None,
2594
2594
  (
2595
- "Note: unverified, ported from Irdkwia's notes\n\nr0: wan_table_ptr\nr1:"
2595
+ "Always delete an entry if the file is allocated externally"
2596
+ " (file_externally_allocated is set), otherwise, decrease the reference"
2597
+ " counter. If it reach 0, delete the sprite.\n\nr0: wan_table_ptr\nr1:"
2596
2598
  " wan_id"
2597
2599
  ),
2598
2600
  )
2599
2601
 
2602
+ AllocateWanTableEntry = Symbol(
2603
+ None,
2604
+ None,
2605
+ None,
2606
+ (
2607
+ "Return the identifier to a free wan table entry (-1 if none are"
2608
+ " avalaible). The entry is zeroed.\n\nr0: wan_table_ptr\nreturn: the entry"
2609
+ " id in wan_table"
2610
+ ),
2611
+ )
2612
+
2600
2613
  FindWanTableEntry = Symbol(
2601
2614
  None,
2602
2615
  None,
2603
2616
  None,
2604
2617
  (
2605
- "Appears to search in the given table (in practice always seems to be"
2618
+ "Search in the given table (in practice always seems to be"
2606
2619
  " LOADED_WAN_TABLE_PTR) for an entry with the given file name.\n\nr0: table"
2607
2620
  " pointer\nr1: file name\nreturn: index of the found file, if found, or -1"
2608
2621
  " if not found"
@@ -2614,8 +2627,19 @@ class JpItcmArm9Functions:
2614
2627
  None,
2615
2628
  None,
2616
2629
  (
2617
- "wan_id = -1 if it is not loaded\n\nNote: unverified, ported from Irdkwia's"
2618
- " notes\n\nr0: wan_table_ptr\nr1: bin_file_id\nr2: file_id\nreturn: wan_id"
2630
+ "Look up a sprite with the provided pack_id and file_index in the wan"
2631
+ " table.\n\nr0: wan_table_ptr\nr1: pack_id\nr2: file_index\nreturn: sprite"
2632
+ " id in the wan table, -1 if not found"
2633
+ ),
2634
+ )
2635
+
2636
+ InitWanTable = Symbol(
2637
+ None,
2638
+ None,
2639
+ None,
2640
+ (
2641
+ "Initialize the input WAN table with 0x60 free entries (it needs a length"
2642
+ " of 0x1510 bytes)\n\nr0: wan_table_ptr"
2619
2643
  ),
2620
2644
  )
2621
2645
 
@@ -2631,6 +2655,32 @@ class JpItcmArm9Functions:
2631
2655
  ),
2632
2656
  )
2633
2657
 
2658
+ LoadWanTableEntryFromPack = Symbol(
2659
+ None,
2660
+ None,
2661
+ None,
2662
+ (
2663
+ "Return an already allocated entry for this sprite if it exists, otherwise"
2664
+ " allocate a new one and load the optionally compressed sprite.\n\nr0:"
2665
+ " wan_table_ptr\nr1: pack_id\nr2: file_index\nr3: allocation"
2666
+ " flags\nstack[0]: compressed\nreturn: the entry id in wan_table"
2667
+ ),
2668
+ )
2669
+
2670
+ LoadWanTableEntryFromPackUseProvidedMemory = Symbol(
2671
+ None,
2672
+ None,
2673
+ None,
2674
+ (
2675
+ "Return an already allocated entry for this sprite if it exists, otherwise"
2676
+ " allocate a new one and load the optionally compressed sprite into the"
2677
+ " provided memory area. Mark the sprite as externally allocated.\n\nr0:"
2678
+ " wan_table_ptr\nr1: pack_id\nr2: file_index\nr3:"
2679
+ " sprite_storage_ptr\nstack[0]: compressed\nreturn: the entry id in"
2680
+ " wan_table"
2681
+ ),
2682
+ )
2683
+
2634
2684
  ReplaceWanFromBinFile = Symbol(
2635
2685
  None,
2636
2686
  None,
@@ -13315,8 +13365,10 @@ class JpItcmOverlay11Functions:
13315
13365
  None,
13316
13366
  None,
13317
13367
  (
13318
- "Note: unverified, ported from Irdkwia's notes\n\nr0: [output]"
13319
- " bg_attr_str\nr1: bg_id"
13368
+ "Open and read an entry from the MAP_BG/bg_list.dat\n\nDocumentation on"
13369
+ " this format can be found"
13370
+ " here:\nhttps://github.com/SkyTemple/skytemple-files/tree/55b3017631a8a1b0f106111ef91a901dc394c6df/skytemple_files/graphics/bg_list_dat\n\nr0:"
13371
+ " [output] The entry\nr1: background ID"
13320
13372
  ),
13321
13373
  )
13322
13374
 
@@ -13593,6 +13645,10 @@ class JpItcmOverlay11Data:
13593
13645
 
13594
13646
  GROUND_STATE_MAP = Symbol(None, None, None, "[Runtime]")
13595
13647
 
13648
+ GROUND_STATE_WEATHER = Symbol(
13649
+ None, None, None, "[Runtime] Same structure format as GROUND_STATE_MAP"
13650
+ )
13651
+
13596
13652
  GROUND_STATE_PTRS = Symbol(
13597
13653
  None,
13598
13654
  None,
pmdsky_debug_py/na.py CHANGED
@@ -1037,9 +1037,9 @@ class NaArm9Functions:
1037
1037
  None,
1038
1038
  (
1039
1039
  "Call LoadFileInPack after looking up the global Pack archive by its"
1040
- " identifier\n\nr0: pack file identifier\nr1: [output] target buffer\nr2:"
1041
- " file index\nreturn: number of read bytes (identical to the length of the"
1042
- " pack from the Table of Content)"
1040
+ " identifier\n\nr0: pack file identifier\nr1: file index\nr2: [output]"
1041
+ " target buffer\nreturn: number of read bytes (identical to the length of"
1042
+ " the pack from the Table of Content)"
1043
1043
  ),
1044
1044
  )
1045
1045
 
@@ -2679,17 +2679,30 @@ class NaArm9Functions:
2679
2679
  [0x201D1DC],
2680
2680
  None,
2681
2681
  (
2682
- "Note: unverified, ported from Irdkwia's notes\n\nr0: wan_table_ptr\nr1:"
2682
+ "Always delete an entry if the file is allocated externally"
2683
+ " (file_externally_allocated is set), otherwise, decrease the reference"
2684
+ " counter. If it reach 0, delete the sprite.\n\nr0: wan_table_ptr\nr1:"
2683
2685
  " wan_id"
2684
2686
  ),
2685
2687
  )
2686
2688
 
2689
+ AllocateWanTableEntry = Symbol(
2690
+ None,
2691
+ None,
2692
+ None,
2693
+ (
2694
+ "Return the identifier to a free wan table entry (-1 if none are"
2695
+ " avalaible). The entry is zeroed.\n\nr0: wan_table_ptr\nreturn: the entry"
2696
+ " id in wan_table"
2697
+ ),
2698
+ )
2699
+
2687
2700
  FindWanTableEntry = Symbol(
2688
2701
  [0x1D2D4],
2689
2702
  [0x201D2D4],
2690
2703
  None,
2691
2704
  (
2692
- "Appears to search in the given table (in practice always seems to be"
2705
+ "Search in the given table (in practice always seems to be"
2693
2706
  " LOADED_WAN_TABLE_PTR) for an entry with the given file name.\n\nr0: table"
2694
2707
  " pointer\nr1: file name\nreturn: index of the found file, if found, or -1"
2695
2708
  " if not found"
@@ -2701,8 +2714,19 @@ class NaArm9Functions:
2701
2714
  [0x201D334],
2702
2715
  None,
2703
2716
  (
2704
- "wan_id = -1 if it is not loaded\n\nNote: unverified, ported from Irdkwia's"
2705
- " notes\n\nr0: wan_table_ptr\nr1: bin_file_id\nr2: file_id\nreturn: wan_id"
2717
+ "Look up a sprite with the provided pack_id and file_index in the wan"
2718
+ " table.\n\nr0: wan_table_ptr\nr1: pack_id\nr2: file_index\nreturn: sprite"
2719
+ " id in the wan table, -1 if not found"
2720
+ ),
2721
+ )
2722
+
2723
+ InitWanTable = Symbol(
2724
+ None,
2725
+ None,
2726
+ None,
2727
+ (
2728
+ "Initialize the input WAN table with 0x60 free entries (it needs a length"
2729
+ " of 0x1510 bytes)\n\nr0: wan_table_ptr"
2706
2730
  ),
2707
2731
  )
2708
2732
 
@@ -2718,6 +2742,32 @@ class NaArm9Functions:
2718
2742
  ),
2719
2743
  )
2720
2744
 
2745
+ LoadWanTableEntryFromPack = Symbol(
2746
+ None,
2747
+ None,
2748
+ None,
2749
+ (
2750
+ "Return an already allocated entry for this sprite if it exists, otherwise"
2751
+ " allocate a new one and load the optionally compressed sprite.\n\nr0:"
2752
+ " wan_table_ptr\nr1: pack_id\nr2: file_index\nr3: allocation"
2753
+ " flags\nstack[0]: compressed\nreturn: the entry id in wan_table"
2754
+ ),
2755
+ )
2756
+
2757
+ LoadWanTableEntryFromPackUseProvidedMemory = Symbol(
2758
+ None,
2759
+ None,
2760
+ None,
2761
+ (
2762
+ "Return an already allocated entry for this sprite if it exists, otherwise"
2763
+ " allocate a new one and load the optionally compressed sprite into the"
2764
+ " provided memory area. Mark the sprite as externally allocated.\n\nr0:"
2765
+ " wan_table_ptr\nr1: pack_id\nr2: file_index\nr3:"
2766
+ " sprite_storage_ptr\nstack[0]: compressed\nreturn: the entry id in"
2767
+ " wan_table"
2768
+ ),
2769
+ )
2770
+
2721
2771
  ReplaceWanFromBinFile = Symbol(
2722
2772
  [0x1D684],
2723
2773
  [0x201D684],
@@ -13669,8 +13719,10 @@ class NaOverlay11Functions:
13669
13719
  [0x22EBB40],
13670
13720
  None,
13671
13721
  (
13672
- "Note: unverified, ported from Irdkwia's notes\n\nr0: [output]"
13673
- " bg_attr_str\nr1: bg_id"
13722
+ "Open and read an entry from the MAP_BG/bg_list.dat\n\nDocumentation on"
13723
+ " this format can be found"
13724
+ " here:\nhttps://github.com/SkyTemple/skytemple-files/tree/55b3017631a8a1b0f106111ef91a901dc394c6df/skytemple_files/graphics/bg_list_dat\n\nr0:"
13725
+ " [output] The entry\nr1: background ID"
13674
13726
  ),
13675
13727
  )
13676
13728
 
@@ -13947,6 +13999,10 @@ class NaOverlay11Data:
13947
13999
 
13948
14000
  GROUND_STATE_MAP = Symbol([0x48A80], [0x2324CC0], None, "[Runtime]")
13949
14001
 
14002
+ GROUND_STATE_WEATHER = Symbol(
14003
+ None, None, None, "[Runtime] Same structure format as GROUND_STATE_MAP"
14004
+ )
14005
+
13950
14006
  GROUND_STATE_PTRS = Symbol(
13951
14007
  [0x48AB4],
13952
14008
  [0x2324CF4],
@@ -1024,9 +1024,9 @@ class NaItcmArm9Functions:
1024
1024
  None,
1025
1025
  (
1026
1026
  "Call LoadFileInPack after looking up the global Pack archive by its"
1027
- " identifier\n\nr0: pack file identifier\nr1: [output] target buffer\nr2:"
1028
- " file index\nreturn: number of read bytes (identical to the length of the"
1029
- " pack from the Table of Content)"
1027
+ " identifier\n\nr0: pack file identifier\nr1: file index\nr2: [output]"
1028
+ " target buffer\nreturn: number of read bytes (identical to the length of"
1029
+ " the pack from the Table of Content)"
1030
1030
  ),
1031
1031
  )
1032
1032
 
@@ -2592,17 +2592,30 @@ class NaItcmArm9Functions:
2592
2592
  None,
2593
2593
  None,
2594
2594
  (
2595
- "Note: unverified, ported from Irdkwia's notes\n\nr0: wan_table_ptr\nr1:"
2595
+ "Always delete an entry if the file is allocated externally"
2596
+ " (file_externally_allocated is set), otherwise, decrease the reference"
2597
+ " counter. If it reach 0, delete the sprite.\n\nr0: wan_table_ptr\nr1:"
2596
2598
  " wan_id"
2597
2599
  ),
2598
2600
  )
2599
2601
 
2602
+ AllocateWanTableEntry = Symbol(
2603
+ None,
2604
+ None,
2605
+ None,
2606
+ (
2607
+ "Return the identifier to a free wan table entry (-1 if none are"
2608
+ " avalaible). The entry is zeroed.\n\nr0: wan_table_ptr\nreturn: the entry"
2609
+ " id in wan_table"
2610
+ ),
2611
+ )
2612
+
2600
2613
  FindWanTableEntry = Symbol(
2601
2614
  None,
2602
2615
  None,
2603
2616
  None,
2604
2617
  (
2605
- "Appears to search in the given table (in practice always seems to be"
2618
+ "Search in the given table (in practice always seems to be"
2606
2619
  " LOADED_WAN_TABLE_PTR) for an entry with the given file name.\n\nr0: table"
2607
2620
  " pointer\nr1: file name\nreturn: index of the found file, if found, or -1"
2608
2621
  " if not found"
@@ -2614,8 +2627,19 @@ class NaItcmArm9Functions:
2614
2627
  None,
2615
2628
  None,
2616
2629
  (
2617
- "wan_id = -1 if it is not loaded\n\nNote: unverified, ported from Irdkwia's"
2618
- " notes\n\nr0: wan_table_ptr\nr1: bin_file_id\nr2: file_id\nreturn: wan_id"
2630
+ "Look up a sprite with the provided pack_id and file_index in the wan"
2631
+ " table.\n\nr0: wan_table_ptr\nr1: pack_id\nr2: file_index\nreturn: sprite"
2632
+ " id in the wan table, -1 if not found"
2633
+ ),
2634
+ )
2635
+
2636
+ InitWanTable = Symbol(
2637
+ None,
2638
+ None,
2639
+ None,
2640
+ (
2641
+ "Initialize the input WAN table with 0x60 free entries (it needs a length"
2642
+ " of 0x1510 bytes)\n\nr0: wan_table_ptr"
2619
2643
  ),
2620
2644
  )
2621
2645
 
@@ -2631,6 +2655,32 @@ class NaItcmArm9Functions:
2631
2655
  ),
2632
2656
  )
2633
2657
 
2658
+ LoadWanTableEntryFromPack = Symbol(
2659
+ None,
2660
+ None,
2661
+ None,
2662
+ (
2663
+ "Return an already allocated entry for this sprite if it exists, otherwise"
2664
+ " allocate a new one and load the optionally compressed sprite.\n\nr0:"
2665
+ " wan_table_ptr\nr1: pack_id\nr2: file_index\nr3: allocation"
2666
+ " flags\nstack[0]: compressed\nreturn: the entry id in wan_table"
2667
+ ),
2668
+ )
2669
+
2670
+ LoadWanTableEntryFromPackUseProvidedMemory = Symbol(
2671
+ None,
2672
+ None,
2673
+ None,
2674
+ (
2675
+ "Return an already allocated entry for this sprite if it exists, otherwise"
2676
+ " allocate a new one and load the optionally compressed sprite into the"
2677
+ " provided memory area. Mark the sprite as externally allocated.\n\nr0:"
2678
+ " wan_table_ptr\nr1: pack_id\nr2: file_index\nr3:"
2679
+ " sprite_storage_ptr\nstack[0]: compressed\nreturn: the entry id in"
2680
+ " wan_table"
2681
+ ),
2682
+ )
2683
+
2634
2684
  ReplaceWanFromBinFile = Symbol(
2635
2685
  None,
2636
2686
  None,
@@ -13315,8 +13365,10 @@ class NaItcmOverlay11Functions:
13315
13365
  None,
13316
13366
  None,
13317
13367
  (
13318
- "Note: unverified, ported from Irdkwia's notes\n\nr0: [output]"
13319
- " bg_attr_str\nr1: bg_id"
13368
+ "Open and read an entry from the MAP_BG/bg_list.dat\n\nDocumentation on"
13369
+ " this format can be found"
13370
+ " here:\nhttps://github.com/SkyTemple/skytemple-files/tree/55b3017631a8a1b0f106111ef91a901dc394c6df/skytemple_files/graphics/bg_list_dat\n\nr0:"
13371
+ " [output] The entry\nr1: background ID"
13320
13372
  ),
13321
13373
  )
13322
13374
 
@@ -13593,6 +13645,10 @@ class NaItcmOverlay11Data:
13593
13645
 
13594
13646
  GROUND_STATE_MAP = Symbol(None, None, None, "[Runtime]")
13595
13647
 
13648
+ GROUND_STATE_WEATHER = Symbol(
13649
+ None, None, None, "[Runtime] Same structure format as GROUND_STATE_MAP"
13650
+ )
13651
+
13596
13652
  GROUND_STATE_PTRS = Symbol(
13597
13653
  None,
13598
13654
  None,
@@ -1491,6 +1491,11 @@ class Arm9FunctionsProtocol(Protocol):
1491
1491
  None,
1492
1492
  ]
1493
1493
 
1494
+ AllocateWanTableEntry: Symbol[
1495
+ Optional[List[int]],
1496
+ None,
1497
+ ]
1498
+
1494
1499
  FindWanTableEntry: Symbol[
1495
1500
  Optional[List[int]],
1496
1501
  None,
@@ -1501,11 +1506,26 @@ class Arm9FunctionsProtocol(Protocol):
1501
1506
  None,
1502
1507
  ]
1503
1508
 
1509
+ InitWanTable: Symbol[
1510
+ Optional[List[int]],
1511
+ None,
1512
+ ]
1513
+
1504
1514
  LoadWanTableEntry: Symbol[
1505
1515
  Optional[List[int]],
1506
1516
  None,
1507
1517
  ]
1508
1518
 
1519
+ LoadWanTableEntryFromPack: Symbol[
1520
+ Optional[List[int]],
1521
+ None,
1522
+ ]
1523
+
1524
+ LoadWanTableEntryFromPackUseProvidedMemory: Symbol[
1525
+ Optional[List[int]],
1526
+ None,
1527
+ ]
1528
+
1509
1529
  ReplaceWanFromBinFile: Symbol[
1510
1530
  Optional[List[int]],
1511
1531
  None,
@@ -7551,6 +7571,11 @@ class Overlay11DataProtocol(Protocol):
7551
7571
  None,
7552
7572
  ]
7553
7573
 
7574
+ GROUND_STATE_WEATHER: Symbol[
7575
+ Optional[List[int]],
7576
+ None,
7577
+ ]
7578
+
7554
7579
  GROUND_STATE_PTRS: Symbol[
7555
7580
  Optional[List[int]],
7556
7581
  Optional[int],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pmdsky-debug-py
3
- Version: 5.1.12
3
+ Version: 5.1.13
4
4
  Summary: pmdsky-debug symbols for Python.
5
5
  Author-email: Marco 'Capypara' Köpcke <hello@capypara.de>
6
6
  License: MIT
@@ -0,0 +1,14 @@
1
+ pmdsky_debug_py/__init__.py,sha256=xvXjdxEqeoQaaS6ssZYVI9jARzv5M4q6FNwA3Z6fOw4,1831
2
+ pmdsky_debug_py/_release.py,sha256=m_4wHUAh7fIkJhLghvXDMx60svb5_T9jGHMSLmdHu0k,30
3
+ pmdsky_debug_py/eu.py,sha256=eEnB9Mvk_HjKGbQIShZIbFaC3GSDKbzaCT7N_sQDzBA,735398
4
+ pmdsky_debug_py/eu_itcm.py,sha256=qtuFAnJOqdbuLCwbYaJGSma-xxhYCfKG_46mpRNHPXE,702961
5
+ pmdsky_debug_py/jp.py,sha256=R2KFcWNF91hKc1wHowrN5BxKUcRCsuaXEvPDnV2SAJk,724050
6
+ pmdsky_debug_py/jp_itcm.py,sha256=hXYmxKwrSLCFdH1ee9KhsQEl7Rqa_W-vTHhOJFalJB0,702961
7
+ pmdsky_debug_py/na.py,sha256=ZiJqfrWKBeIPnCtUi1Ryo4KLkPRPWKF75B_XV7cBvGM,741954
8
+ pmdsky_debug_py/na_itcm.py,sha256=w_Bc6QfViXM-636X03p9SO2XHromghFFtO7KsSkfdo0,702972
9
+ pmdsky_debug_py/protocol.py,sha256=nnuBhWc32dYuiPcIrxybr7iox1rYcHTn6I4TPfQh2zs,233116
10
+ pmdsky_debug_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
+ pmdsky_debug_py-5.1.13.dist-info/METADATA,sha256=8PD_e4cKWuRuS2tFg98xVbVKN2UomJq7IO-bHoQh3YM,1321
12
+ pmdsky_debug_py-5.1.13.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
13
+ pmdsky_debug_py-5.1.13.dist-info/top_level.txt,sha256=cqvpcJbud2s8IyBAc1MfCySwniko_6qO5LWSSxNIoXI,16
14
+ pmdsky_debug_py-5.1.13.dist-info/RECORD,,
@@ -1,14 +0,0 @@
1
- pmdsky_debug_py/__init__.py,sha256=xvXjdxEqeoQaaS6ssZYVI9jARzv5M4q6FNwA3Z6fOw4,1831
2
- pmdsky_debug_py/_release.py,sha256=eGcYhhnGzdVhPNBmICHxTaT0mTwCIUjiVYyS4N3Cbv0,30
3
- pmdsky_debug_py/eu.py,sha256=jrYZYgj5YLilSUWLSYZrDN70rex9OqcOwOYYUQvKx2M,733251
4
- pmdsky_debug_py/eu_itcm.py,sha256=vwlYQ7GROyrgqc3-mPhCHMiAq0orA35vPFGq4RRlRWQ,700899
5
- pmdsky_debug_py/jp.py,sha256=xyVg-lwBpGaTkbS6jMAW1no5BksmeDJRKM8cku75f0k,721988
6
- pmdsky_debug_py/jp_itcm.py,sha256=kLWNLkjuzzBZQs4dqOKL7ASrF9t1tVdpXwN5kkwa3UQ,700899
7
- pmdsky_debug_py/na.py,sha256=4TMK2spDw2aoFwP_O2keG9dRVpumspLrfFpir65c3TI,739892
8
- pmdsky_debug_py/na_itcm.py,sha256=0a4DPJmpdFmXrmc9bsZdodn6oZCOlH5L9BptJyZDCak,700910
9
- pmdsky_debug_py/protocol.py,sha256=zMuv8AMk1bKZ5_qs8WziTziwVYBwLDumrZVn42NjcaY,232676
10
- pmdsky_debug_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- pmdsky_debug_py-5.1.12.dist-info/METADATA,sha256=MrAGGNw9nMhAHdIVSq430OXW03e61QHM0u8lBTxF10k,1321
12
- pmdsky_debug_py-5.1.12.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
13
- pmdsky_debug_py-5.1.12.dist-info/top_level.txt,sha256=cqvpcJbud2s8IyBAc1MfCySwniko_6qO5LWSSxNIoXI,16
14
- pmdsky_debug_py-5.1.12.dist-info/RECORD,,