pmdsky-debug-py 10.0.5__py3-none-any.whl → 10.0.8__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.10.0+5744c5ec24"
1
+ RELEASE = "v0.10.0+b64a9fa281"
pmdsky_debug_py/eu.py CHANGED
@@ -2906,7 +2906,7 @@ class EuArm9Functions:
2906
2906
  [0x1E14C],
2907
2907
  [0x201E14C],
2908
2908
  None,
2909
- "Note: unverified, ported from Irdkwia's notes\n\nr0: header_ptr\nr1: unk_pal\nr2: unk_tex\nr3: unk_tex_param",
2909
+ "Prepare a WTE data to be loaded into VRAM. Seems to need to be called with another undocumented function (at 0x0201e1d8 (EU))\nIt skips the texture and/or the palette if missing from the file. The texture VRAM has 128KiB of space, and palette has 16KiB.\nThe true palette VRAM offset will be upper_part*0x100+lower_part\n\nThis may or may not be the function that adds to the queue so it can be added during VBlank.\n\nr0: pointer to the WTE file header loaded in memory\nr1: where the WTE texture will be loaded in the VRAM (from 0 to 0x1FFFF)\nr2: upper part of the palette VRAM\nr3: lower part of the palette VRAM",
2910
2910
  )
2911
2911
 
2912
2912
  GeomSetTexImageParam = Symbol(
@@ -13565,11 +13565,18 @@ class EuOverlay11Functions:
13565
13565
 
13566
13566
  SsbLoad2 = Symbol([0x84BC], [0x22E503C], None, "")
13567
13567
 
13568
- ProcessScriptParam = Symbol(
13568
+ ScriptParamToInt = Symbol(
13569
13569
  [0x866C],
13570
13570
  [0x22E51EC],
13571
13571
  None,
13572
- "Checks if the two most significant bits (0x8000 and 0x4000) are set on a given script opcode parameter, and modifies the value if so.\n\nr0: On input, the parameter. On output, the modified parameter if either of the two bits listed above is set, same parameter otherwise.",
13572
+ "Converts the given opcode parameter to a signed integer.\n\nThe parameter will be returned unchanged unless one of its two most significant bits (0x8000 and 0x4000) are set, in which case both bits will be cleared and the original value will be modified according to the following two rules:\n- If the 0x4000 bit is set (sign bit), the value will be set to -16384 + value.\n- If the 0x8000 bit is set (fixed-point flag), the value will be set to value / 256, rounded down.\nBoth rules can be applied, in the same order as listed, if both conditions are met.\n\nr0: Parameter to convert\nreturn: The input parameter, as a signed integer",
13573
+ )
13574
+
13575
+ ScriptParamToFixedPoint16 = Symbol(
13576
+ [0x86A0],
13577
+ [0x22E5220],
13578
+ None,
13579
+ "Converts the given opcode parameter to a 16-bit signed fixed-point number with 8 fraction bits.\n\nThe resulting number is encoded as (value) * 256, with the last byte acting as a fraction byte capable of representing multiples of 1/256.\n\nThe parameter will either be returned unchanged or modified depending on which of its two most significant bits (0x8000 and 0x4000) are set. Both bits are unset before running the operations listed below:\n- If the 0x4000 bit is set (sign bit), the value will be set to -16384 + value.\n- If the 0x8000 bit is set (fixed-point flag), the raw value is interpreted as being fixed-point already, and nothing else happens. Otherwise, it's assumed to be a normal integer and is converted to fixed-point by left-shifting it by 8 (moving the integer part to its proper place).\nBoth rules can be applied, in the same order as listed, if both conditions are met.\n\nr0: Parameter to convert\nreturn: The input parameter, as a 16-bit signed fixed-point number with 8 fraction bits",
13573
13580
  )
13574
13581
 
13575
13582
  StationLoadHanger = Symbol([0x8994], [0x22E5514], None, "")
@@ -17336,7 +17343,7 @@ class EuOverlay29Functions:
17336
17343
  [0x2235C],
17337
17344
  [0x22FEEDC],
17338
17345
  None,
17339
- "Executes the set action for the specified monster. Used for both AI actions and player-inputted actions. If the action is not ACTION_NOTHING, ACTION_PASS_TURN, ACTION_WALK or ACTION_UNK_4, the monster's already_acted field is set to true. Includes a switch based on the action ID that performs the action, although some of them aren't handled by said swtich.\n\nr0: Pointer to monster entity",
17346
+ "Executes the set action for the specified monster. Used for both AI actions and player-inputted actions. If the action is not ACTION_NOTHING, ACTION_PASS_TURN, ACTION_WALK or ACTION_UNK_4, the monster's already_acted field is set to true. Includes a switch based on the action ID that performs the action, although some of them aren't handled by said swtich.\n\nr0: Pointer to monster entity\nreturn: If the result is true, the AI is run again for the current ally, and it performs another action. This can happen up to three times.",
17340
17347
  )
17341
17348
 
17342
17349
  TryActivateFlashFireOnAllMonsters = Symbol(
@@ -20821,11 +20828,25 @@ class EuOverlay29Functions:
20821
20828
  "Calls HandleFadesDungeon for both screens.\n\nNo params.",
20822
20829
  )
20823
20830
 
20831
+ DisplayFloorTip = Symbol(
20832
+ [0x70C08],
20833
+ [0x234D788],
20834
+ None,
20835
+ "Display the dungeon tip that displays on floor change, based on which tips have already been displayed.\n\nNo params.\n\nreturn: 1 if a tip has been displayed, 0 otherwise",
20836
+ )
20837
+
20838
+ DisplayItemTip = Symbol(
20839
+ [0x70D34],
20840
+ [0x234D8B4],
20841
+ None,
20842
+ "Display the dungeon tip if not already displayed matching the (presumably newly acquired) item\n\nr0: item id\nreturn: 1 if a tip has been displayed, 0 otherwise",
20843
+ )
20844
+
20824
20845
  DisplayDungeonTip = Symbol(
20825
20846
  [0x70F70],
20826
20847
  [0x234DAF0],
20827
20848
  None,
20828
- "Checks if a given dungeon tip should be displayed at the start of a floor and if so, displays it. Called up to 4 times at the start of each new floor, with a different r0 parameter each time.\n\nr0: Pointer to the message_tip struct of the message that should be displayed\nr1: True to log the message in the message log",
20849
+ "Checks if a given dungeon tip should be displayed at the start of a floor and if so, displays it. Called up to 4 times at the start of each new floor, with a different r0 parameter each time.\n\nr0: Pointer to the message_tip struct of the message that should be displayed\nr1: True to log the message in the message log\n\nreturn: 1 if the message has been displayed, 0 if it wasn’t",
20829
20850
  )
20830
20851
 
20831
20852
  SetBothScreensWindowColorToDefault = Symbol(
@@ -22449,6 +22470,13 @@ class EuRamData:
22449
22470
  "Starts at 0 when the game is first launched, and continuously ticks up once per frame while the game is running.",
22450
22471
  )
22451
22472
 
22473
+ TOUCHSCREEN_STATUS = Symbol(
22474
+ [0x2A3F1C],
22475
+ [0x22A3F1C],
22476
+ 0x104,
22477
+ "Status of the touchscreen, including the coordinates of the currently pressed position in pixels.",
22478
+ )
22479
+
22452
22480
  BAG_ITEMS = Symbol(
22453
22481
  [0x2A4164],
22454
22482
  [0x22A4164],
@@ -2819,7 +2819,7 @@ class EuItcmArm9Functions:
2819
2819
  None,
2820
2820
  None,
2821
2821
  None,
2822
- "Note: unverified, ported from Irdkwia's notes\n\nr0: header_ptr\nr1: unk_pal\nr2: unk_tex\nr3: unk_tex_param",
2822
+ "Prepare a WTE data to be loaded into VRAM. Seems to need to be called with another undocumented function (at 0x0201e1d8 (EU))\nIt skips the texture and/or the palette if missing from the file. The texture VRAM has 128KiB of space, and palette has 16KiB.\nThe true palette VRAM offset will be upper_part*0x100+lower_part\n\nThis may or may not be the function that adds to the queue so it can be added during VBlank.\n\nr0: pointer to the WTE file header loaded in memory\nr1: where the WTE texture will be loaded in the VRAM (from 0 to 0x1FFFF)\nr2: upper part of the palette VRAM\nr3: lower part of the palette VRAM",
2823
2823
  )
2824
2824
 
2825
2825
  GeomSetTexImageParam = Symbol(
@@ -13217,11 +13217,18 @@ class EuItcmOverlay11Functions:
13217
13217
 
13218
13218
  SsbLoad2 = Symbol(None, None, None, "")
13219
13219
 
13220
- ProcessScriptParam = Symbol(
13220
+ ScriptParamToInt = Symbol(
13221
13221
  None,
13222
13222
  None,
13223
13223
  None,
13224
- "Checks if the two most significant bits (0x8000 and 0x4000) are set on a given script opcode parameter, and modifies the value if so.\n\nr0: On input, the parameter. On output, the modified parameter if either of the two bits listed above is set, same parameter otherwise.",
13224
+ "Converts the given opcode parameter to a signed integer.\n\nThe parameter will be returned unchanged unless one of its two most significant bits (0x8000 and 0x4000) are set, in which case both bits will be cleared and the original value will be modified according to the following two rules:\n- If the 0x4000 bit is set (sign bit), the value will be set to -16384 + value.\n- If the 0x8000 bit is set (fixed-point flag), the value will be set to value / 256, rounded down.\nBoth rules can be applied, in the same order as listed, if both conditions are met.\n\nr0: Parameter to convert\nreturn: The input parameter, as a signed integer",
13225
+ )
13226
+
13227
+ ScriptParamToFixedPoint16 = Symbol(
13228
+ None,
13229
+ None,
13230
+ None,
13231
+ "Converts the given opcode parameter to a 16-bit signed fixed-point number with 8 fraction bits.\n\nThe resulting number is encoded as (value) * 256, with the last byte acting as a fraction byte capable of representing multiples of 1/256.\n\nThe parameter will either be returned unchanged or modified depending on which of its two most significant bits (0x8000 and 0x4000) are set. Both bits are unset before running the operations listed below:\n- If the 0x4000 bit is set (sign bit), the value will be set to -16384 + value.\n- If the 0x8000 bit is set (fixed-point flag), the raw value is interpreted as being fixed-point already, and nothing else happens. Otherwise, it's assumed to be a normal integer and is converted to fixed-point by left-shifting it by 8 (moving the integer part to its proper place).\nBoth rules can be applied, in the same order as listed, if both conditions are met.\n\nr0: Parameter to convert\nreturn: The input parameter, as a 16-bit signed fixed-point number with 8 fraction bits",
13225
13232
  )
13226
13233
 
13227
13234
  StationLoadHanger = Symbol(None, None, None, "")
@@ -16784,7 +16791,7 @@ class EuItcmOverlay29Functions:
16784
16791
  None,
16785
16792
  None,
16786
16793
  None,
16787
- "Executes the set action for the specified monster. Used for both AI actions and player-inputted actions. If the action is not ACTION_NOTHING, ACTION_PASS_TURN, ACTION_WALK or ACTION_UNK_4, the monster's already_acted field is set to true. Includes a switch based on the action ID that performs the action, although some of them aren't handled by said swtich.\n\nr0: Pointer to monster entity",
16794
+ "Executes the set action for the specified monster. Used for both AI actions and player-inputted actions. If the action is not ACTION_NOTHING, ACTION_PASS_TURN, ACTION_WALK or ACTION_UNK_4, the monster's already_acted field is set to true. Includes a switch based on the action ID that performs the action, although some of them aren't handled by said swtich.\n\nr0: Pointer to monster entity\nreturn: If the result is true, the AI is run again for the current ally, and it performs another action. This can happen up to three times.",
16788
16795
  )
16789
16796
 
16790
16797
  TryActivateFlashFireOnAllMonsters = Symbol(
@@ -20251,11 +20258,25 @@ class EuItcmOverlay29Functions:
20251
20258
  None, None, None, "Calls HandleFadesDungeon for both screens.\n\nNo params."
20252
20259
  )
20253
20260
 
20261
+ DisplayFloorTip = Symbol(
20262
+ None,
20263
+ None,
20264
+ None,
20265
+ "Display the dungeon tip that displays on floor change, based on which tips have already been displayed.\n\nNo params.\n\nreturn: 1 if a tip has been displayed, 0 otherwise",
20266
+ )
20267
+
20268
+ DisplayItemTip = Symbol(
20269
+ None,
20270
+ None,
20271
+ None,
20272
+ "Display the dungeon tip if not already displayed matching the (presumably newly acquired) item\n\nr0: item id\nreturn: 1 if a tip has been displayed, 0 otherwise",
20273
+ )
20274
+
20254
20275
  DisplayDungeonTip = Symbol(
20255
20276
  None,
20256
20277
  None,
20257
20278
  None,
20258
- "Checks if a given dungeon tip should be displayed at the start of a floor and if so, displays it. Called up to 4 times at the start of each new floor, with a different r0 parameter each time.\n\nr0: Pointer to the message_tip struct of the message that should be displayed\nr1: True to log the message in the message log",
20279
+ "Checks if a given dungeon tip should be displayed at the start of a floor and if so, displays it. Called up to 4 times at the start of each new floor, with a different r0 parameter each time.\n\nr0: Pointer to the message_tip struct of the message that should be displayed\nr1: True to log the message in the message log\n\nreturn: 1 if the message has been displayed, 0 if it wasn’t",
20259
20280
  )
20260
20281
 
20261
20282
  SetBothScreensWindowColorToDefault = Symbol(
@@ -21753,6 +21774,13 @@ class EuItcmRamData:
21753
21774
  "Starts at 0 when the game is first launched, and continuously ticks up once per frame while the game is running.",
21754
21775
  )
21755
21776
 
21777
+ TOUCHSCREEN_STATUS = Symbol(
21778
+ None,
21779
+ None,
21780
+ None,
21781
+ "Status of the touchscreen, including the coordinates of the currently pressed position in pixels.",
21782
+ )
21783
+
21756
21784
  BAG_ITEMS = Symbol(
21757
21785
  None,
21758
21786
  None,
pmdsky_debug_py/jp.py CHANGED
@@ -2904,7 +2904,7 @@ class JpArm9Functions:
2904
2904
  [0x1E108],
2905
2905
  [0x201E108],
2906
2906
  None,
2907
- "Note: unverified, ported from Irdkwia's notes\n\nr0: header_ptr\nr1: unk_pal\nr2: unk_tex\nr3: unk_tex_param",
2907
+ "Prepare a WTE data to be loaded into VRAM. Seems to need to be called with another undocumented function (at 0x0201e1d8 (EU))\nIt skips the texture and/or the palette if missing from the file. The texture VRAM has 128KiB of space, and palette has 16KiB.\nThe true palette VRAM offset will be upper_part*0x100+lower_part\n\nThis may or may not be the function that adds to the queue so it can be added during VBlank.\n\nr0: pointer to the WTE file header loaded in memory\nr1: where the WTE texture will be loaded in the VRAM (from 0 to 0x1FFFF)\nr2: upper part of the palette VRAM\nr3: lower part of the palette VRAM",
2908
2908
  )
2909
2909
 
2910
2910
  GeomSetTexImageParam = Symbol(
@@ -13536,11 +13536,18 @@ class JpOverlay11Functions:
13536
13536
 
13537
13537
  SsbLoad2 = Symbol([0x8448], [0x22E5D28], None, "")
13538
13538
 
13539
- ProcessScriptParam = Symbol(
13539
+ ScriptParamToInt = Symbol(
13540
13540
  [0x85F8],
13541
13541
  [0x22E5ED8],
13542
13542
  None,
13543
- "Checks if the two most significant bits (0x8000 and 0x4000) are set on a given script opcode parameter, and modifies the value if so.\n\nr0: On input, the parameter. On output, the modified parameter if either of the two bits listed above is set, same parameter otherwise.",
13543
+ "Converts the given opcode parameter to a signed integer.\n\nThe parameter will be returned unchanged unless one of its two most significant bits (0x8000 and 0x4000) are set, in which case both bits will be cleared and the original value will be modified according to the following two rules:\n- If the 0x4000 bit is set (sign bit), the value will be set to -16384 + value.\n- If the 0x8000 bit is set (fixed-point flag), the value will be set to value / 256, rounded down.\nBoth rules can be applied, in the same order as listed, if both conditions are met.\n\nr0: Parameter to convert\nreturn: The input parameter, as a signed integer",
13544
+ )
13545
+
13546
+ ScriptParamToFixedPoint16 = Symbol(
13547
+ None,
13548
+ None,
13549
+ None,
13550
+ "Converts the given opcode parameter to a 16-bit signed fixed-point number with 8 fraction bits.\n\nThe resulting number is encoded as (value) * 256, with the last byte acting as a fraction byte capable of representing multiples of 1/256.\n\nThe parameter will either be returned unchanged or modified depending on which of its two most significant bits (0x8000 and 0x4000) are set. Both bits are unset before running the operations listed below:\n- If the 0x4000 bit is set (sign bit), the value will be set to -16384 + value.\n- If the 0x8000 bit is set (fixed-point flag), the raw value is interpreted as being fixed-point already, and nothing else happens. Otherwise, it's assumed to be a normal integer and is converted to fixed-point by left-shifting it by 8 (moving the integer part to its proper place).\nBoth rules can be applied, in the same order as listed, if both conditions are met.\n\nr0: Parameter to convert\nreturn: The input parameter, as a 16-bit signed fixed-point number with 8 fraction bits",
13544
13551
  )
13545
13552
 
13546
13553
  StationLoadHanger = Symbol([0x8920], [0x22E6200], None, "")
@@ -17118,7 +17125,7 @@ class JpOverlay29Functions:
17118
17125
  [0x21FC4],
17119
17126
  [0x22FF8A4],
17120
17127
  None,
17121
- "Executes the set action for the specified monster. Used for both AI actions and player-inputted actions. If the action is not ACTION_NOTHING, ACTION_PASS_TURN, ACTION_WALK or ACTION_UNK_4, the monster's already_acted field is set to true. Includes a switch based on the action ID that performs the action, although some of them aren't handled by said swtich.\n\nr0: Pointer to monster entity",
17128
+ "Executes the set action for the specified monster. Used for both AI actions and player-inputted actions. If the action is not ACTION_NOTHING, ACTION_PASS_TURN, ACTION_WALK or ACTION_UNK_4, the monster's already_acted field is set to true. Includes a switch based on the action ID that performs the action, although some of them aren't handled by said swtich.\n\nr0: Pointer to monster entity\nreturn: If the result is true, the AI is run again for the current ally, and it performs another action. This can happen up to three times.",
17122
17129
  )
17123
17130
 
17124
17131
  TryActivateFlashFireOnAllMonsters = Symbol(
@@ -20600,11 +20607,25 @@ class JpOverlay29Functions:
20600
20607
  "Calls HandleFadesDungeon for both screens.\n\nNo params.",
20601
20608
  )
20602
20609
 
20610
+ DisplayFloorTip = Symbol(
20611
+ None,
20612
+ None,
20613
+ None,
20614
+ "Display the dungeon tip that displays on floor change, based on which tips have already been displayed.\n\nNo params.\n\nreturn: 1 if a tip has been displayed, 0 otherwise",
20615
+ )
20616
+
20617
+ DisplayItemTip = Symbol(
20618
+ None,
20619
+ None,
20620
+ None,
20621
+ "Display the dungeon tip if not already displayed matching the (presumably newly acquired) item\n\nr0: item id\nreturn: 1 if a tip has been displayed, 0 otherwise",
20622
+ )
20623
+
20603
20624
  DisplayDungeonTip = Symbol(
20604
20625
  [0x70874],
20605
20626
  [0x234E154],
20606
20627
  None,
20607
- "Checks if a given dungeon tip should be displayed at the start of a floor and if so, displays it. Called up to 4 times at the start of each new floor, with a different r0 parameter each time.\n\nr0: Pointer to the message_tip struct of the message that should be displayed\nr1: True to log the message in the message log",
20628
+ "Checks if a given dungeon tip should be displayed at the start of a floor and if so, displays it. Called up to 4 times at the start of each new floor, with a different r0 parameter each time.\n\nr0: Pointer to the message_tip struct of the message that should be displayed\nr1: True to log the message in the message log\n\nreturn: 1 if the message has been displayed, 0 if it wasn’t",
20608
20629
  )
20609
20630
 
20610
20631
  SetBothScreensWindowColorToDefault = Symbol(
@@ -22121,6 +22142,13 @@ class JpRamData:
22121
22142
  "Starts at 0 when the game is first launched, and continuously ticks up once per frame while the game is running.",
22122
22143
  )
22123
22144
 
22145
+ TOUCHSCREEN_STATUS = Symbol(
22146
+ None,
22147
+ None,
22148
+ None,
22149
+ "Status of the touchscreen, including the coordinates of the currently pressed position in pixels.",
22150
+ )
22151
+
22124
22152
  BAG_ITEMS = Symbol(
22125
22153
  None,
22126
22154
  None,
@@ -2819,7 +2819,7 @@ class JpItcmArm9Functions:
2819
2819
  None,
2820
2820
  None,
2821
2821
  None,
2822
- "Note: unverified, ported from Irdkwia's notes\n\nr0: header_ptr\nr1: unk_pal\nr2: unk_tex\nr3: unk_tex_param",
2822
+ "Prepare a WTE data to be loaded into VRAM. Seems to need to be called with another undocumented function (at 0x0201e1d8 (EU))\nIt skips the texture and/or the palette if missing from the file. The texture VRAM has 128KiB of space, and palette has 16KiB.\nThe true palette VRAM offset will be upper_part*0x100+lower_part\n\nThis may or may not be the function that adds to the queue so it can be added during VBlank.\n\nr0: pointer to the WTE file header loaded in memory\nr1: where the WTE texture will be loaded in the VRAM (from 0 to 0x1FFFF)\nr2: upper part of the palette VRAM\nr3: lower part of the palette VRAM",
2823
2823
  )
2824
2824
 
2825
2825
  GeomSetTexImageParam = Symbol(
@@ -13217,11 +13217,18 @@ class JpItcmOverlay11Functions:
13217
13217
 
13218
13218
  SsbLoad2 = Symbol(None, None, None, "")
13219
13219
 
13220
- ProcessScriptParam = Symbol(
13220
+ ScriptParamToInt = Symbol(
13221
13221
  None,
13222
13222
  None,
13223
13223
  None,
13224
- "Checks if the two most significant bits (0x8000 and 0x4000) are set on a given script opcode parameter, and modifies the value if so.\n\nr0: On input, the parameter. On output, the modified parameter if either of the two bits listed above is set, same parameter otherwise.",
13224
+ "Converts the given opcode parameter to a signed integer.\n\nThe parameter will be returned unchanged unless one of its two most significant bits (0x8000 and 0x4000) are set, in which case both bits will be cleared and the original value will be modified according to the following two rules:\n- If the 0x4000 bit is set (sign bit), the value will be set to -16384 + value.\n- If the 0x8000 bit is set (fixed-point flag), the value will be set to value / 256, rounded down.\nBoth rules can be applied, in the same order as listed, if both conditions are met.\n\nr0: Parameter to convert\nreturn: The input parameter, as a signed integer",
13225
+ )
13226
+
13227
+ ScriptParamToFixedPoint16 = Symbol(
13228
+ None,
13229
+ None,
13230
+ None,
13231
+ "Converts the given opcode parameter to a 16-bit signed fixed-point number with 8 fraction bits.\n\nThe resulting number is encoded as (value) * 256, with the last byte acting as a fraction byte capable of representing multiples of 1/256.\n\nThe parameter will either be returned unchanged or modified depending on which of its two most significant bits (0x8000 and 0x4000) are set. Both bits are unset before running the operations listed below:\n- If the 0x4000 bit is set (sign bit), the value will be set to -16384 + value.\n- If the 0x8000 bit is set (fixed-point flag), the raw value is interpreted as being fixed-point already, and nothing else happens. Otherwise, it's assumed to be a normal integer and is converted to fixed-point by left-shifting it by 8 (moving the integer part to its proper place).\nBoth rules can be applied, in the same order as listed, if both conditions are met.\n\nr0: Parameter to convert\nreturn: The input parameter, as a 16-bit signed fixed-point number with 8 fraction bits",
13225
13232
  )
13226
13233
 
13227
13234
  StationLoadHanger = Symbol(None, None, None, "")
@@ -16784,7 +16791,7 @@ class JpItcmOverlay29Functions:
16784
16791
  None,
16785
16792
  None,
16786
16793
  None,
16787
- "Executes the set action for the specified monster. Used for both AI actions and player-inputted actions. If the action is not ACTION_NOTHING, ACTION_PASS_TURN, ACTION_WALK or ACTION_UNK_4, the monster's already_acted field is set to true. Includes a switch based on the action ID that performs the action, although some of them aren't handled by said swtich.\n\nr0: Pointer to monster entity",
16794
+ "Executes the set action for the specified monster. Used for both AI actions and player-inputted actions. If the action is not ACTION_NOTHING, ACTION_PASS_TURN, ACTION_WALK or ACTION_UNK_4, the monster's already_acted field is set to true. Includes a switch based on the action ID that performs the action, although some of them aren't handled by said swtich.\n\nr0: Pointer to monster entity\nreturn: If the result is true, the AI is run again for the current ally, and it performs another action. This can happen up to three times.",
16788
16795
  )
16789
16796
 
16790
16797
  TryActivateFlashFireOnAllMonsters = Symbol(
@@ -20251,11 +20258,25 @@ class JpItcmOverlay29Functions:
20251
20258
  None, None, None, "Calls HandleFadesDungeon for both screens.\n\nNo params."
20252
20259
  )
20253
20260
 
20261
+ DisplayFloorTip = Symbol(
20262
+ None,
20263
+ None,
20264
+ None,
20265
+ "Display the dungeon tip that displays on floor change, based on which tips have already been displayed.\n\nNo params.\n\nreturn: 1 if a tip has been displayed, 0 otherwise",
20266
+ )
20267
+
20268
+ DisplayItemTip = Symbol(
20269
+ None,
20270
+ None,
20271
+ None,
20272
+ "Display the dungeon tip if not already displayed matching the (presumably newly acquired) item\n\nr0: item id\nreturn: 1 if a tip has been displayed, 0 otherwise",
20273
+ )
20274
+
20254
20275
  DisplayDungeonTip = Symbol(
20255
20276
  None,
20256
20277
  None,
20257
20278
  None,
20258
- "Checks if a given dungeon tip should be displayed at the start of a floor and if so, displays it. Called up to 4 times at the start of each new floor, with a different r0 parameter each time.\n\nr0: Pointer to the message_tip struct of the message that should be displayed\nr1: True to log the message in the message log",
20279
+ "Checks if a given dungeon tip should be displayed at the start of a floor and if so, displays it. Called up to 4 times at the start of each new floor, with a different r0 parameter each time.\n\nr0: Pointer to the message_tip struct of the message that should be displayed\nr1: True to log the message in the message log\n\nreturn: 1 if the message has been displayed, 0 if it wasn’t",
20259
20280
  )
20260
20281
 
20261
20282
  SetBothScreensWindowColorToDefault = Symbol(
@@ -21753,6 +21774,13 @@ class JpItcmRamData:
21753
21774
  "Starts at 0 when the game is first launched, and continuously ticks up once per frame while the game is running.",
21754
21775
  )
21755
21776
 
21777
+ TOUCHSCREEN_STATUS = Symbol(
21778
+ None,
21779
+ None,
21780
+ None,
21781
+ "Status of the touchscreen, including the coordinates of the currently pressed position in pixels.",
21782
+ )
21783
+
21756
21784
  BAG_ITEMS = Symbol(
21757
21785
  None,
21758
21786
  None,
pmdsky_debug_py/na.py CHANGED
@@ -2906,7 +2906,7 @@ class NaArm9Functions:
2906
2906
  [0x1E0B0],
2907
2907
  [0x201E0B0],
2908
2908
  None,
2909
- "Note: unverified, ported from Irdkwia's notes\n\nr0: header_ptr\nr1: unk_pal\nr2: unk_tex\nr3: unk_tex_param",
2909
+ "Prepare a WTE data to be loaded into VRAM. Seems to need to be called with another undocumented function (at 0x0201e1d8 (EU))\nIt skips the texture and/or the palette if missing from the file. The texture VRAM has 128KiB of space, and palette has 16KiB.\nThe true palette VRAM offset will be upper_part*0x100+lower_part\n\nThis may or may not be the function that adds to the queue so it can be added during VBlank.\n\nr0: pointer to the WTE file header loaded in memory\nr1: where the WTE texture will be loaded in the VRAM (from 0 to 0x1FFFF)\nr2: upper part of the palette VRAM\nr3: lower part of the palette VRAM",
2910
2910
  )
2911
2911
 
2912
2912
  GeomSetTexImageParam = Symbol(
@@ -13572,11 +13572,18 @@ class NaOverlay11Functions:
13572
13572
 
13573
13573
  SsbLoad2 = Symbol([0x84BC], [0x22E46FC], None, "")
13574
13574
 
13575
- ProcessScriptParam = Symbol(
13575
+ ScriptParamToInt = Symbol(
13576
13576
  [0x866C],
13577
13577
  [0x22E48AC],
13578
13578
  None,
13579
- "Checks if the two most significant bits (0x8000 and 0x4000) are set on a given script opcode parameter, and modifies the value if so.\n\nr0: On input, the parameter. On output, the modified parameter if either of the two bits listed above is set, same parameter otherwise.",
13579
+ "Converts the given opcode parameter to a signed integer.\n\nThe parameter will be returned unchanged unless one of its two most significant bits (0x8000 and 0x4000) are set, in which case both bits will be cleared and the original value will be modified according to the following two rules:\n- If the 0x4000 bit is set (sign bit), the value will be set to -16384 + value.\n- If the 0x8000 bit is set (fixed-point flag), the value will be set to value / 256, rounded down.\nBoth rules can be applied, in the same order as listed, if both conditions are met.\n\nr0: Parameter to convert\nreturn: The input parameter, as a signed integer",
13580
+ )
13581
+
13582
+ ScriptParamToFixedPoint16 = Symbol(
13583
+ [0x86A0],
13584
+ [0x22E48E0],
13585
+ None,
13586
+ "Converts the given opcode parameter to a 16-bit signed fixed-point number with 8 fraction bits.\n\nThe resulting number is encoded as (value) * 256, with the last byte acting as a fraction byte capable of representing multiples of 1/256.\n\nThe parameter will either be returned unchanged or modified depending on which of its two most significant bits (0x8000 and 0x4000) are set. Both bits are unset before running the operations listed below:\n- If the 0x4000 bit is set (sign bit), the value will be set to -16384 + value.\n- If the 0x8000 bit is set (fixed-point flag), the raw value is interpreted as being fixed-point already, and nothing else happens. Otherwise, it's assumed to be a normal integer and is converted to fixed-point by left-shifting it by 8 (moving the integer part to its proper place).\nBoth rules can be applied, in the same order as listed, if both conditions are met.\n\nr0: Parameter to convert\nreturn: The input parameter, as a 16-bit signed fixed-point number with 8 fraction bits",
13580
13587
  )
13581
13588
 
13582
13589
  StationLoadHanger = Symbol([0x8994], [0x22E4BD4], None, "")
@@ -17359,7 +17366,7 @@ class NaOverlay29Functions:
17359
17366
  [0x2227C],
17360
17367
  [0x22FE4BC],
17361
17368
  None,
17362
- "Executes the set action for the specified monster. Used for both AI actions and player-inputted actions. If the action is not ACTION_NOTHING, ACTION_PASS_TURN, ACTION_WALK or ACTION_UNK_4, the monster's already_acted field is set to true. Includes a switch based on the action ID that performs the action, although some of them aren't handled by said swtich.\n\nr0: Pointer to monster entity",
17369
+ "Executes the set action for the specified monster. Used for both AI actions and player-inputted actions. If the action is not ACTION_NOTHING, ACTION_PASS_TURN, ACTION_WALK or ACTION_UNK_4, the monster's already_acted field is set to true. Includes a switch based on the action ID that performs the action, although some of them aren't handled by said swtich.\n\nr0: Pointer to monster entity\nreturn: If the result is true, the AI is run again for the current ally, and it performs another action. This can happen up to three times.",
17363
17370
  )
17364
17371
 
17365
17372
  TryActivateFlashFireOnAllMonsters = Symbol(
@@ -20844,11 +20851,25 @@ class NaOverlay29Functions:
20844
20851
  "Calls HandleFadesDungeon for both screens.\n\nNo params.",
20845
20852
  )
20846
20853
 
20854
+ DisplayFloorTip = Symbol(
20855
+ [0x70948],
20856
+ [0x234CB88],
20857
+ None,
20858
+ "Display the dungeon tip that displays on floor change, based on which tips have already been displayed.\n\nNo params.\n\nreturn: 1 if a tip has been displayed, 0 otherwise",
20859
+ )
20860
+
20861
+ DisplayItemTip = Symbol(
20862
+ [0x70A74],
20863
+ [0x234CCB4],
20864
+ None,
20865
+ "Display the dungeon tip if not already displayed matching the (presumably newly acquired) item\n\nr0: item id\nreturn: 1 if a tip has been displayed, 0 otherwise",
20866
+ )
20867
+
20847
20868
  DisplayDungeonTip = Symbol(
20848
20869
  [0x70CB0],
20849
20870
  [0x234CEF0],
20850
20871
  None,
20851
- "Checks if a given dungeon tip should be displayed at the start of a floor and if so, displays it. Called up to 4 times at the start of each new floor, with a different r0 parameter each time.\n\nr0: Pointer to the message_tip struct of the message that should be displayed\nr1: True to log the message in the message log",
20872
+ "Checks if a given dungeon tip should be displayed at the start of a floor and if so, displays it. Called up to 4 times at the start of each new floor, with a different r0 parameter each time.\n\nr0: Pointer to the message_tip struct of the message that should be displayed\nr1: True to log the message in the message log\n\nreturn: 1 if the message has been displayed, 0 if it wasn’t",
20852
20873
  )
20853
20874
 
20854
20875
  SetBothScreensWindowColorToDefault = Symbol(
@@ -22475,6 +22496,13 @@ class NaRamData:
22475
22496
  "Starts at 0 when the game is first launched, and continuously ticks up once per frame while the game is running.",
22476
22497
  )
22477
22498
 
22499
+ TOUCHSCREEN_STATUS = Symbol(
22500
+ [0x2A35DC],
22501
+ [0x22A35DC],
22502
+ 0x104,
22503
+ "Status of the touchscreen, including the coordinates of the currently pressed position in pixels.",
22504
+ )
22505
+
22478
22506
  BAG_ITEMS = Symbol(
22479
22507
  [0x2A3824],
22480
22508
  [0x22A3824],
@@ -2819,7 +2819,7 @@ class NaItcmArm9Functions:
2819
2819
  None,
2820
2820
  None,
2821
2821
  None,
2822
- "Note: unverified, ported from Irdkwia's notes\n\nr0: header_ptr\nr1: unk_pal\nr2: unk_tex\nr3: unk_tex_param",
2822
+ "Prepare a WTE data to be loaded into VRAM. Seems to need to be called with another undocumented function (at 0x0201e1d8 (EU))\nIt skips the texture and/or the palette if missing from the file. The texture VRAM has 128KiB of space, and palette has 16KiB.\nThe true palette VRAM offset will be upper_part*0x100+lower_part\n\nThis may or may not be the function that adds to the queue so it can be added during VBlank.\n\nr0: pointer to the WTE file header loaded in memory\nr1: where the WTE texture will be loaded in the VRAM (from 0 to 0x1FFFF)\nr2: upper part of the palette VRAM\nr3: lower part of the palette VRAM",
2823
2823
  )
2824
2824
 
2825
2825
  GeomSetTexImageParam = Symbol(
@@ -13217,11 +13217,18 @@ class NaItcmOverlay11Functions:
13217
13217
 
13218
13218
  SsbLoad2 = Symbol(None, None, None, "")
13219
13219
 
13220
- ProcessScriptParam = Symbol(
13220
+ ScriptParamToInt = Symbol(
13221
13221
  None,
13222
13222
  None,
13223
13223
  None,
13224
- "Checks if the two most significant bits (0x8000 and 0x4000) are set on a given script opcode parameter, and modifies the value if so.\n\nr0: On input, the parameter. On output, the modified parameter if either of the two bits listed above is set, same parameter otherwise.",
13224
+ "Converts the given opcode parameter to a signed integer.\n\nThe parameter will be returned unchanged unless one of its two most significant bits (0x8000 and 0x4000) are set, in which case both bits will be cleared and the original value will be modified according to the following two rules:\n- If the 0x4000 bit is set (sign bit), the value will be set to -16384 + value.\n- If the 0x8000 bit is set (fixed-point flag), the value will be set to value / 256, rounded down.\nBoth rules can be applied, in the same order as listed, if both conditions are met.\n\nr0: Parameter to convert\nreturn: The input parameter, as a signed integer",
13225
+ )
13226
+
13227
+ ScriptParamToFixedPoint16 = Symbol(
13228
+ None,
13229
+ None,
13230
+ None,
13231
+ "Converts the given opcode parameter to a 16-bit signed fixed-point number with 8 fraction bits.\n\nThe resulting number is encoded as (value) * 256, with the last byte acting as a fraction byte capable of representing multiples of 1/256.\n\nThe parameter will either be returned unchanged or modified depending on which of its two most significant bits (0x8000 and 0x4000) are set. Both bits are unset before running the operations listed below:\n- If the 0x4000 bit is set (sign bit), the value will be set to -16384 + value.\n- If the 0x8000 bit is set (fixed-point flag), the raw value is interpreted as being fixed-point already, and nothing else happens. Otherwise, it's assumed to be a normal integer and is converted to fixed-point by left-shifting it by 8 (moving the integer part to its proper place).\nBoth rules can be applied, in the same order as listed, if both conditions are met.\n\nr0: Parameter to convert\nreturn: The input parameter, as a 16-bit signed fixed-point number with 8 fraction bits",
13225
13232
  )
13226
13233
 
13227
13234
  StationLoadHanger = Symbol(None, None, None, "")
@@ -16784,7 +16791,7 @@ class NaItcmOverlay29Functions:
16784
16791
  None,
16785
16792
  None,
16786
16793
  None,
16787
- "Executes the set action for the specified monster. Used for both AI actions and player-inputted actions. If the action is not ACTION_NOTHING, ACTION_PASS_TURN, ACTION_WALK or ACTION_UNK_4, the monster's already_acted field is set to true. Includes a switch based on the action ID that performs the action, although some of them aren't handled by said swtich.\n\nr0: Pointer to monster entity",
16794
+ "Executes the set action for the specified monster. Used for both AI actions and player-inputted actions. If the action is not ACTION_NOTHING, ACTION_PASS_TURN, ACTION_WALK or ACTION_UNK_4, the monster's already_acted field is set to true. Includes a switch based on the action ID that performs the action, although some of them aren't handled by said swtich.\n\nr0: Pointer to monster entity\nreturn: If the result is true, the AI is run again for the current ally, and it performs another action. This can happen up to three times.",
16788
16795
  )
16789
16796
 
16790
16797
  TryActivateFlashFireOnAllMonsters = Symbol(
@@ -20251,11 +20258,25 @@ class NaItcmOverlay29Functions:
20251
20258
  None, None, None, "Calls HandleFadesDungeon for both screens.\n\nNo params."
20252
20259
  )
20253
20260
 
20261
+ DisplayFloorTip = Symbol(
20262
+ None,
20263
+ None,
20264
+ None,
20265
+ "Display the dungeon tip that displays on floor change, based on which tips have already been displayed.\n\nNo params.\n\nreturn: 1 if a tip has been displayed, 0 otherwise",
20266
+ )
20267
+
20268
+ DisplayItemTip = Symbol(
20269
+ None,
20270
+ None,
20271
+ None,
20272
+ "Display the dungeon tip if not already displayed matching the (presumably newly acquired) item\n\nr0: item id\nreturn: 1 if a tip has been displayed, 0 otherwise",
20273
+ )
20274
+
20254
20275
  DisplayDungeonTip = Symbol(
20255
20276
  None,
20256
20277
  None,
20257
20278
  None,
20258
- "Checks if a given dungeon tip should be displayed at the start of a floor and if so, displays it. Called up to 4 times at the start of each new floor, with a different r0 parameter each time.\n\nr0: Pointer to the message_tip struct of the message that should be displayed\nr1: True to log the message in the message log",
20279
+ "Checks if a given dungeon tip should be displayed at the start of a floor and if so, displays it. Called up to 4 times at the start of each new floor, with a different r0 parameter each time.\n\nr0: Pointer to the message_tip struct of the message that should be displayed\nr1: True to log the message in the message log\n\nreturn: 1 if the message has been displayed, 0 if it wasn’t",
20259
20280
  )
20260
20281
 
20261
20282
  SetBothScreensWindowColorToDefault = Symbol(
@@ -21753,6 +21774,13 @@ class NaItcmRamData:
21753
21774
  "Starts at 0 when the game is first launched, and continuously ticks up once per frame while the game is running.",
21754
21775
  )
21755
21776
 
21777
+ TOUCHSCREEN_STATUS = Symbol(
21778
+ None,
21779
+ None,
21780
+ None,
21781
+ "Status of the touchscreen, including the coordinates of the currently pressed position in pixels.",
21782
+ )
21783
+
21756
21784
  BAG_ITEMS = Symbol(
21757
21785
  None,
21758
21786
  None,
@@ -11299,7 +11299,12 @@ class Overlay11FunctionsProtocol(Protocol):
11299
11299
  None,
11300
11300
  ]
11301
11301
 
11302
- ProcessScriptParam: Symbol[
11302
+ ScriptParamToInt: Symbol[
11303
+ Optional[list[int]],
11304
+ None,
11305
+ ]
11306
+
11307
+ ScriptParamToFixedPoint16: Symbol[
11303
11308
  Optional[list[int]],
11304
11309
  None,
11305
11310
  ]
@@ -17142,6 +17147,16 @@ class Overlay29FunctionsProtocol(Protocol):
17142
17147
  None,
17143
17148
  ]
17144
17149
 
17150
+ DisplayFloorTip: Symbol[
17151
+ Optional[list[int]],
17152
+ None,
17153
+ ]
17154
+
17155
+ DisplayItemTip: Symbol[
17156
+ Optional[list[int]],
17157
+ None,
17158
+ ]
17159
+
17145
17160
  DisplayDungeonTip: Symbol[
17146
17161
  Optional[list[int]],
17147
17162
  None,
@@ -18465,6 +18480,11 @@ class RamDataProtocol(Protocol):
18465
18480
  Optional[int],
18466
18481
  ]
18467
18482
 
18483
+ TOUCHSCREEN_STATUS: Symbol[
18484
+ Optional[list[int]],
18485
+ Optional[int],
18486
+ ]
18487
+
18468
18488
  BAG_ITEMS: Symbol[
18469
18489
  Optional[list[int]],
18470
18490
  Optional[int],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pmdsky-debug-py
3
- Version: 10.0.5
3
+ Version: 10.0.8
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=eBJlo1bkuLv2B7ifSsgs5jKccgy9uKqn24HR49j5uro,31
3
+ pmdsky_debug_py/eu.py,sha256=_2ERRptVVIM54re1CBTbQW7iAunsKCMfYp3o8MueYjU,903808
4
+ pmdsky_debug_py/eu_itcm.py,sha256=W_g5V0SHJivPSCerRgRxXxXrojJ6K991GDoZ2n9QN98,854008
5
+ pmdsky_debug_py/jp.py,sha256=ontZuxBqpm1zZBFZsrsWA4zjyddXwmUpzOYVmdKg8Uo,888602
6
+ pmdsky_debug_py/jp_itcm.py,sha256=xW4xkQZoft7gBS9KRAYfbX3v4A8w5cN2TBHWCwqkBnU,853998
7
+ pmdsky_debug_py/na.py,sha256=IvdMXCD74Pr1nnfpzLFipQOZkRjho1oncpYW4nW3umM,905020
8
+ pmdsky_debug_py/na_itcm.py,sha256=I8zP_YvmTtdbARbQKegk29xL1MlJZpjexEHMXaqRcDI,854028
9
+ pmdsky_debug_py/protocol.py,sha256=JrjZgrepsucNPZBdMSEscAyXzExrIlwvTUAsdhOi4cg,324587
10
+ pmdsky_debug_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
+ pmdsky_debug_py-10.0.8.dist-info/METADATA,sha256=ONiezLq-JnaZDKvC4BqXj9bcacWQbVm7xFvXcer5P_k,1373
12
+ pmdsky_debug_py-10.0.8.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
13
+ pmdsky_debug_py-10.0.8.dist-info/top_level.txt,sha256=cqvpcJbud2s8IyBAc1MfCySwniko_6qO5LWSSxNIoXI,16
14
+ pmdsky_debug_py-10.0.8.dist-info/RECORD,,
@@ -1,14 +0,0 @@
1
- pmdsky_debug_py/__init__.py,sha256=xvXjdxEqeoQaaS6ssZYVI9jARzv5M4q6FNwA3Z6fOw4,1831
2
- pmdsky_debug_py/_release.py,sha256=d3PVWchf-rC3TKpWCO7UPX06yxzTwdgvEZ0lyUUlQ84,31
3
- pmdsky_debug_py/eu.py,sha256=j0i0Ui2a2BAc6zhWECaIBMQ88SvGnGk6PhF1tQmkSDQ,900867
4
- pmdsky_debug_py/eu_itcm.py,sha256=baAm0kpNbW7lHzc6WWQqo4TdxvReey-SDbYZltnq3ho,851116
5
- pmdsky_debug_py/jp.py,sha256=UeEujecn0I2Hfsy6X25KTICUn7f9nSvhpBbhjHOLljk,885710
6
- pmdsky_debug_py/jp_itcm.py,sha256=J9-MZlfEC5NLamR5oaNLDAuBELkv67B7dU_THWt4VsY,851106
7
- pmdsky_debug_py/na.py,sha256=r7yjXh07pr5RdxsN3rr4xhnfPEW-oC3NX6VQOamltHE,902079
8
- pmdsky_debug_py/na_itcm.py,sha256=VnxXnTIeeCbNhGQaV_SNzwp_7JhG3d6LOsutUvxlXrc,851136
9
- pmdsky_debug_py/protocol.py,sha256=2L0AGCpSIjCHz6PnImla8OG04PZpIDBywiSg076RJLs,324252
10
- pmdsky_debug_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- pmdsky_debug_py-10.0.5.dist-info/METADATA,sha256=0UMRPfyzSkh883MEXC3vfapEwsjQpzg2yUFTDy2lgG4,1373
12
- pmdsky_debug_py-10.0.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
13
- pmdsky_debug_py-10.0.5.dist-info/top_level.txt,sha256=cqvpcJbud2s8IyBAc1MfCySwniko_6qO5LWSSxNIoXI,16
14
- pmdsky_debug_py-10.0.5.dist-info/RECORD,,