robloxmemoryapi 0.2.0__tar.gz → 0.2.1__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 (21) hide show
  1. {robloxmemoryapi-0.2.0/src/robloxmemoryapi.egg-info → robloxmemoryapi-0.2.1}/PKG-INFO +1 -1
  2. {robloxmemoryapi-0.2.0 → robloxmemoryapi-0.2.1}/pyproject.toml +1 -1
  3. {robloxmemoryapi-0.2.0 → robloxmemoryapi-0.2.1}/src/robloxmemoryapi/utils/memory.py +7 -0
  4. {robloxmemoryapi-0.2.0 → robloxmemoryapi-0.2.1}/src/robloxmemoryapi/utils/rbx/instance.py +5 -12
  5. {robloxmemoryapi-0.2.0 → robloxmemoryapi-0.2.1/src/robloxmemoryapi.egg-info}/PKG-INFO +1 -1
  6. {robloxmemoryapi-0.2.0 → robloxmemoryapi-0.2.1}/LICENSE.md +0 -0
  7. {robloxmemoryapi-0.2.0 → robloxmemoryapi-0.2.1}/README.md +0 -0
  8. {robloxmemoryapi-0.2.0 → robloxmemoryapi-0.2.1}/setup.cfg +0 -0
  9. {robloxmemoryapi-0.2.0 → robloxmemoryapi-0.2.1}/src/robloxmemoryapi/__init__.py +0 -0
  10. {robloxmemoryapi-0.2.0 → robloxmemoryapi-0.2.1}/src/robloxmemoryapi/utils/__init__.py +0 -0
  11. {robloxmemoryapi-0.2.0 → robloxmemoryapi-0.2.1}/src/robloxmemoryapi/utils/luau/__init__.py +0 -0
  12. {robloxmemoryapi-0.2.0 → robloxmemoryapi-0.2.1}/src/robloxmemoryapi/utils/luau/parser.py +0 -0
  13. {robloxmemoryapi-0.2.0 → robloxmemoryapi-0.2.1}/src/robloxmemoryapi/utils/offsets.py +0 -0
  14. {robloxmemoryapi-0.2.0 → robloxmemoryapi-0.2.1}/src/robloxmemoryapi/utils/rbx/__init__.py +0 -0
  15. {robloxmemoryapi-0.2.0 → robloxmemoryapi-0.2.1}/src/robloxmemoryapi/utils/rbx/bytecode/decryptor.py +0 -0
  16. {robloxmemoryapi-0.2.0 → robloxmemoryapi-0.2.1}/src/robloxmemoryapi/utils/rbx/bytecode/encryptor.py +0 -0
  17. {robloxmemoryapi-0.2.0 → robloxmemoryapi-0.2.1}/src/robloxmemoryapi/utils/rbx/datastructures.py +0 -0
  18. {robloxmemoryapi-0.2.0 → robloxmemoryapi-0.2.1}/src/robloxmemoryapi.egg-info/SOURCES.txt +0 -0
  19. {robloxmemoryapi-0.2.0 → robloxmemoryapi-0.2.1}/src/robloxmemoryapi.egg-info/dependency_links.txt +0 -0
  20. {robloxmemoryapi-0.2.0 → robloxmemoryapi-0.2.1}/src/robloxmemoryapi.egg-info/requires.txt +0 -0
  21. {robloxmemoryapi-0.2.0 → robloxmemoryapi-0.2.1}/src/robloxmemoryapi.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: robloxmemoryapi
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Python Library that abstracts reading and writing data from the Roblox DataModel
5
5
  Author-email: upio <notpoiu@users.noreply.github.com>, mstudio45 <mstudio45@users.noreply.github.com>, ActualMasterOogway <ActualMasterOogway@users.noreply.github.com>
6
6
  License: Copyright 2025 upio, mstudio45, master oogway
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "robloxmemoryapi"
7
- version = "0.2.0"
7
+ version = "0.2.1"
8
8
  description = "Python Library that abstracts reading and writing data from the Roblox DataModel"
9
9
  readme = { file = "README.md", content-type = "text/markdown" }
10
10
  requires-python = ">=3.9"
@@ -292,6 +292,10 @@ class EvasiveProcess:
292
292
  buffer = self.read(address + offset, 4)
293
293
  return int.from_bytes(buffer, 'little') if len(buffer) == 4 else 0
294
294
 
295
+ def read_int64(self, address: int, offset: int = 0) -> int:
296
+ buffer = self.read(address + offset, 8)
297
+ return int.from_bytes(buffer, 'little') if len(buffer) == 8 else 0
298
+
295
299
  def read_long(self, address: int, offset: int = 0) -> int:
296
300
  buffer = self.read(address + offset, 8)
297
301
  return int.from_bytes(buffer, 'little') if len(buffer) == 8 else 0
@@ -330,6 +334,9 @@ class EvasiveProcess:
330
334
  def write_int(self, address: int, value: int) -> None:
331
335
  self.write(address, struct.pack('<I', value & 0xFFFFFFFF))
332
336
 
337
+ def write_int64(self, address: int, value: int) -> None:
338
+ self.write(address, struct.pack('<Q', value & 0xFFFFFFFFFFFFFFFF))
339
+
333
340
  def write_long(self, address: int, value: int) -> None:
334
341
  self.write(address, struct.pack('<Q', value & 0xFFFFFFFFFFFFFFFF))
335
342
 
@@ -2283,23 +2283,16 @@ class LightingService(ServiceBase):
2283
2283
  except (KeyError, OSError):
2284
2284
  self.failed = True
2285
2285
 
2286
- # props #
2286
+ # props #
2287
2287
  @property
2288
2288
  def ClockTime(self):
2289
2289
  if self.failed: return 0.0
2290
- return self.memory_module.read_float(
2290
+
2291
+ # clocktime is in milliseconds
2292
+ return self.memory_module.read_int64(
2291
2293
  self.instance.raw_address,
2292
2294
  self.offset_base["ClockTime"]
2293
- )
2294
-
2295
- @ClockTime.setter
2296
- def ClockTime(self, value: float):
2297
- if self.failed: return
2298
- self._ensure_writable()
2299
- self.memory_module.write_float(
2300
- self.instance.raw_address + self.offset_base["ClockTime"],
2301
- float(value)
2302
- )
2295
+ ) / 3600000000
2303
2296
 
2304
2297
  @property
2305
2298
  def Brightness(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: robloxmemoryapi
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Python Library that abstracts reading and writing data from the Roblox DataModel
5
5
  Author-email: upio <notpoiu@users.noreply.github.com>, mstudio45 <mstudio45@users.noreply.github.com>, ActualMasterOogway <ActualMasterOogway@users.noreply.github.com>
6
6
  License: Copyright 2025 upio, mstudio45, master oogway