RidersPyTools 0.0.3__tar.gz → 0.0.4__tar.gz

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.
Files changed (39) hide show
  1. {riderspytools-0.0.3 → riderspytools-0.0.4}/PKG-INFO +1 -1
  2. {riderspytools-0.0.3 → riderspytools-0.0.4}/pyproject.toml +1 -1
  3. {riderspytools-0.0.3 → riderspytools-0.0.4}/src/RidersPyTools_KC/Player.py +16 -3
  4. {riderspytools-0.0.3 → riderspytools-0.0.4}/src/RidersPyTools_KC/include/Constants.py +2 -1
  5. {riderspytools-0.0.3 → riderspytools-0.0.4}/src/RidersPyTools_KC/include/GenericData.py +3 -0
  6. {riderspytools-0.0.3 → riderspytools-0.0.4}/.github/workflows/python-publish.yml +0 -0
  7. {riderspytools-0.0.3 → riderspytools-0.0.4}/.idea/.gitignore +0 -0
  8. {riderspytools-0.0.3 → riderspytools-0.0.4}/.idea/RidersPyTools.iml +0 -0
  9. {riderspytools-0.0.3 → riderspytools-0.0.4}/.idea/inspectionProfiles/profiles_settings.xml +0 -0
  10. {riderspytools-0.0.3 → riderspytools-0.0.4}/.idea/misc.xml +0 -0
  11. {riderspytools-0.0.3 → riderspytools-0.0.4}/.idea/modules.xml +0 -0
  12. {riderspytools-0.0.3 → riderspytools-0.0.4}/Examples/DiscordRPC.py +0 -0
  13. {riderspytools-0.0.3 → riderspytools-0.0.4}/Examples/GetDataFromGame.py +0 -0
  14. {riderspytools-0.0.3 → riderspytools-0.0.4}/Examples/GetSetValues.py +0 -0
  15. {riderspytools-0.0.3 → riderspytools-0.0.4}/Examples/LapCheck.py +0 -0
  16. {riderspytools-0.0.3 → riderspytools-0.0.4}/Examples/ReadInputs.py +0 -0
  17. {riderspytools-0.0.3 → riderspytools-0.0.4}/LICENSE +0 -0
  18. {riderspytools-0.0.3 → riderspytools-0.0.4}/README.md +0 -0
  19. {riderspytools-0.0.3 → riderspytools-0.0.4}/requirements.txt +0 -0
  20. {riderspytools-0.0.3 → riderspytools-0.0.4}/src/RidersPyTools_KC/Archetypes.py +0 -0
  21. {riderspytools-0.0.3 → riderspytools-0.0.4}/src/RidersPyTools_KC/Characters.py +0 -0
  22. {riderspytools-0.0.3 → riderspytools-0.0.4}/src/RidersPyTools_KC/DolphinProc.py +0 -0
  23. {riderspytools-0.0.3 → riderspytools-0.0.4}/src/RidersPyTools_KC/GameState.py +0 -0
  24. {riderspytools-0.0.3 → riderspytools-0.0.4}/src/RidersPyTools_KC/Gears.py +0 -0
  25. {riderspytools-0.0.3 → riderspytools-0.0.4}/src/RidersPyTools_KC/MapParser.py +0 -0
  26. {riderspytools-0.0.3 → riderspytools-0.0.4}/src/RidersPyTools_KC/RidersObject.py +0 -0
  27. {riderspytools-0.0.3 → riderspytools-0.0.4}/src/RidersPyTools_KC/Stages.py +0 -0
  28. {riderspytools-0.0.3 → riderspytools-0.0.4}/src/RidersPyTools_KC/__init__.py +0 -0
  29. {riderspytools-0.0.3 → riderspytools-0.0.4}/src/RidersPyTools_KC/config.py +0 -0
  30. {riderspytools-0.0.3 → riderspytools-0.0.4}/src/RidersPyTools_KC/include/Controller.py +0 -0
  31. {riderspytools-0.0.3 → riderspytools-0.0.4}/src/RidersPyTools_KC/include/GearStats.py +0 -0
  32. {riderspytools-0.0.3 → riderspytools-0.0.4}/src/RidersPyTools_KC/include/OffsetAttr.py +0 -0
  33. {riderspytools-0.0.3 → riderspytools-0.0.4}/src/RidersPyTools_KC/include/Structs.py +0 -0
  34. {riderspytools-0.0.3 → riderspytools-0.0.4}/src/RidersPyTools_KC/include/__init__.py +0 -0
  35. {riderspytools-0.0.3 → riderspytools-0.0.4}/src/__init__.py +0 -0
  36. {riderspytools-0.0.3 → riderspytools-0.0.4}/structText/Controller.txt +0 -0
  37. {riderspytools-0.0.3 → riderspytools-0.0.4}/structText/ConvertCStruct.py +0 -0
  38. {riderspytools-0.0.3 → riderspytools-0.0.4}/structText/GearStats +0 -0
  39. {riderspytools-0.0.3 → riderspytools-0.0.4}/structText/PlayerStructText.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: RidersPyTools
3
- Version: 0.0.3
3
+ Version: 0.0.4
4
4
  Summary: Tools to read/write data and scripts for Sonic Riders (GC) & mods on dolphin
5
5
  Project-URL: Homepage, https://github.com/KidWizardOfTheWeb/RidersPyTools
6
6
  Project-URL: Issues, https://github.com/KidWizardOfTheWeb/RidersPyTools/issues
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "RidersPyTools"
7
- version = "0.0.3"
7
+ version = "0.0.4"
8
8
  authors = [
9
9
  { name="KidChameleon", email="smasih2020@gmail.com" },
10
10
  ]
@@ -212,6 +212,7 @@ class Player:
212
212
  self.dreamTrail_timer = GenericData(ptr_start_addr + 0x113, u8)
213
213
  self.exhaustTrailColor = GenericData(ptr_start_addr + 0x114, u32) # Uses RGBA class
214
214
  self.berserkerCooldown = GenericData(ptr_start_addr + 0x118, u8) # Uses RGBA class
215
+ self.gearActionByte = GenericData(ptr_start_addr + 0x119, u8) # Uses RGBA class
215
216
 
216
217
  # State unions (same addresses, different names)
217
218
  self.coverF_archetype = GenericData(ptr_start_addr + 0x11A, u8)
@@ -258,6 +259,9 @@ class Player:
258
259
  self.hyperSonic_totalLinkTimer = GenericData(ptr_start_addr + 0x87C, u32)
259
260
  self.SuperMetalFrameCounter = GenericData(ptr_start_addr + 0x87C, u32)
260
261
 
262
+ # ptr
263
+ self.boostEnd = GenericData(ptr_start_addr + 0x898, u32)
264
+
261
265
  self.boostDuration = GenericData(ptr_start_addr + 0x8AC, s32)
262
266
  self.lightBoard_flag = GenericData(ptr_start_addr + 0x8C0, u32)
263
267
 
@@ -299,6 +303,15 @@ class Player:
299
303
 
300
304
  self.speedAsInt = GenericData(ptr_start_addr + 0xABC, u32)
301
305
 
306
+ self.stageRotation = GenericData(ptr_start_addr + 0xAD0, f32)
307
+
308
+ # Flags for what a player can/cannot do.
309
+ self.abilityFlags = GenericData(ptr_start_addr + 0xB08, u32)
310
+
311
+ self.unkB24 = GenericData(ptr_start_addr + 0xB24, f32)
312
+ self.unkB28 = GenericData(ptr_start_addr + 0xB28, f32)
313
+ self.unkB2C = GenericData(ptr_start_addr + 0xB2C, f32)
314
+
302
315
  self.driftDirection = GenericData(ptr_start_addr + 0xB4C, f32)
303
316
  self.driftDashFrames = GenericData(ptr_start_addr + 0xB54, s32)
304
317
  self.boostingAnimationID = GenericData(ptr_start_addr + 0xB7C, u32)
@@ -325,9 +338,9 @@ class Player:
325
338
 
326
339
  # Ptrs to attacking/who's attacked.
327
340
  # Needs their own structs.
328
- # self.attackedPlayer = GenericData(ptr_start_addr + 0xF38, u32)
329
- # self.attackingPlayer = GenericData(ptr_start_addr + 0xF3C, u32)
330
- # self.attackProperties = GenericData(ptr_start_addr + 0xF40, u32)
341
+ self.attackedPlayer = GenericData(ptr_start_addr + 0xF38, u32)
342
+ self.attackingPlayer = GenericData(ptr_start_addr + 0xF3C, u32)
343
+ self.attackProperties = GenericData(ptr_start_addr + 0xF40, u32)
331
344
 
332
345
  # This is an array of bytes:
333
346
  # 1st byte = ms, 2nd byte = sec, 3rd byte = min
@@ -10,8 +10,9 @@ BASE_ID: int = 8770000
10
10
  VANILLA_PLAYER_PTR: int = 0x80609440
11
11
 
12
12
  # NOTE: init player ptr for TE if detected using map file/map file passed in
13
- TE_PLAYER_PTR: int = 0x80532d80 # change to match the current ptr at time of release. Read main.map using map parser and change in config.py.
13
+ TE_PLAYER_PTR: int = 0x8054d160 # change to match the current version at time of release. Read main.map using map parser and change in config.py.
14
14
  # 2.4.6 fix 1 0x80532d80
15
+ # 3.0 0x8054d160
15
16
 
16
17
  ZG_PLAYER_PTR: int = 0x804970CC # Player 1, other players may not be sequential. Do more research for this.
17
18
 
@@ -79,6 +79,9 @@ class GenericData(OffsetAttr):
79
79
  other = getattr(other, "READ_FROM_DME")
80
80
  return getattr(self, "READ_FROM_DME") >= other
81
81
 
82
+ def __hex__(self):
83
+ return hex(getattr(self, "READ_FROM_DME"))
84
+
82
85
  def __int__(self):
83
86
  return int(getattr(self, "READ_FROM_DME"))
84
87
 
File without changes
File without changes