robloxmemoryapi 0.2.7__tar.gz → 0.2.9__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.
- {robloxmemoryapi-0.2.7/src/robloxmemoryapi.egg-info → robloxmemoryapi-0.2.9}/PKG-INFO +1 -1
- {robloxmemoryapi-0.2.7 → robloxmemoryapi-0.2.9}/pyproject.toml +1 -1
- {robloxmemoryapi-0.2.7 → robloxmemoryapi-0.2.9}/src/robloxmemoryapi/utils/memory.py +20 -11
- {robloxmemoryapi-0.2.7 → robloxmemoryapi-0.2.9}/src/robloxmemoryapi/utils/rbx/datastructures.py +23 -0
- {robloxmemoryapi-0.2.7 → robloxmemoryapi-0.2.9}/src/robloxmemoryapi/utils/rbx/instance.py +2827 -635
- {robloxmemoryapi-0.2.7 → robloxmemoryapi-0.2.9/src/robloxmemoryapi.egg-info}/PKG-INFO +1 -1
- {robloxmemoryapi-0.2.7 → robloxmemoryapi-0.2.9}/LICENSE.md +0 -0
- {robloxmemoryapi-0.2.7 → robloxmemoryapi-0.2.9}/README.md +0 -0
- {robloxmemoryapi-0.2.7 → robloxmemoryapi-0.2.9}/setup.cfg +0 -0
- {robloxmemoryapi-0.2.7 → robloxmemoryapi-0.2.9}/src/robloxmemoryapi/__init__.py +0 -0
- {robloxmemoryapi-0.2.7 → robloxmemoryapi-0.2.9}/src/robloxmemoryapi/utils/__init__.py +0 -0
- {robloxmemoryapi-0.2.7 → robloxmemoryapi-0.2.9}/src/robloxmemoryapi/utils/luau/__init__.py +0 -0
- {robloxmemoryapi-0.2.7 → robloxmemoryapi-0.2.9}/src/robloxmemoryapi/utils/luau/parser.py +0 -0
- {robloxmemoryapi-0.2.7 → robloxmemoryapi-0.2.9}/src/robloxmemoryapi/utils/offsets.py +0 -0
- {robloxmemoryapi-0.2.7 → robloxmemoryapi-0.2.9}/src/robloxmemoryapi/utils/rbx/__init__.py +0 -0
- {robloxmemoryapi-0.2.7 → robloxmemoryapi-0.2.9}/src/robloxmemoryapi/utils/rbx/bytecode/decryptor.py +0 -0
- {robloxmemoryapi-0.2.7 → robloxmemoryapi-0.2.9}/src/robloxmemoryapi/utils/rbx/bytecode/encryptor.py +0 -0
- {robloxmemoryapi-0.2.7 → robloxmemoryapi-0.2.9}/src/robloxmemoryapi/utils/rbx/fflags.py +0 -0
- {robloxmemoryapi-0.2.7 → robloxmemoryapi-0.2.9}/src/robloxmemoryapi.egg-info/SOURCES.txt +0 -0
- {robloxmemoryapi-0.2.7 → robloxmemoryapi-0.2.9}/src/robloxmemoryapi.egg-info/dependency_links.txt +0 -0
- {robloxmemoryapi-0.2.7 → robloxmemoryapi-0.2.9}/src/robloxmemoryapi.egg-info/requires.txt +0 -0
- {robloxmemoryapi-0.2.7 → robloxmemoryapi-0.2.9}/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.
|
|
3
|
+
Version: 0.2.9
|
|
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.
|
|
7
|
+
version = "0.2.9"
|
|
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"
|
|
@@ -393,29 +393,38 @@ class EvasiveProcess:
|
|
|
393
393
|
|
|
394
394
|
if length < current_capacity:
|
|
395
395
|
self.write(ptr + length, b'\x00')
|
|
396
|
+
|
|
397
|
+
self.write_int(length_address, length)
|
|
398
|
+
return
|
|
399
|
+
# ptr is null despite capacity > 15 — fall through to allocate
|
|
396
400
|
else:
|
|
397
401
|
data_to_write = encoded + b'\x00' * (16 - length)
|
|
398
402
|
self.write(address, data_to_write[:16])
|
|
403
|
+
self.write_int(length_address, length)
|
|
404
|
+
return
|
|
399
405
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
self.write_long(address, ptr) # Pointer
|
|
410
|
-
self.write_int(capacity_address, new_capacity) # Capacity
|
|
406
|
+
# Need to allocate new memory (capacity too small, or pointer was null)
|
|
407
|
+
new_capacity = length + 16 # Padding for future edits
|
|
408
|
+
ptr = self.virtual_alloc(new_capacity)
|
|
409
|
+
|
|
410
|
+
if ptr == 0:
|
|
411
|
+
raise MemoryError("Failed to allocate memory for string.")
|
|
412
|
+
|
|
413
|
+
self.write(ptr, encoded + b'\x00') # Write string
|
|
411
414
|
|
|
415
|
+
self.write_long(address, ptr) # Pointer
|
|
412
416
|
self.write_int(length_address, length)
|
|
417
|
+
self.write_int(capacity_address, new_capacity) # Capacity
|
|
413
418
|
|
|
414
419
|
def read_string(self, address: int, offset: int = 0) -> str:
|
|
415
420
|
if offset != 0:
|
|
416
421
|
address += offset
|
|
417
422
|
|
|
418
423
|
string_length = self.read_int(address + 0x10)
|
|
424
|
+
if string_length <= 0:
|
|
425
|
+
return ""
|
|
426
|
+
if string_length > 1024 * 1024: # sanity cap at 1 MB
|
|
427
|
+
return ""
|
|
419
428
|
if string_length <= 15:
|
|
420
429
|
return self.read_raw_string(address, string_length)
|
|
421
430
|
else:
|
{robloxmemoryapi-0.2.7 → robloxmemoryapi-0.2.9}/src/robloxmemoryapi/utils/rbx/datastructures.py
RENAMED
|
@@ -47,6 +47,21 @@ class Vector2:
|
|
|
47
47
|
and self.Y == other.Y
|
|
48
48
|
)
|
|
49
49
|
|
|
50
|
+
class NumberRange:
|
|
51
|
+
def __init__(self, min_val=0, max_val=None):
|
|
52
|
+
self.Min = float(min_val)
|
|
53
|
+
self.Max = float(max_val if max_val is not None else min_val)
|
|
54
|
+
|
|
55
|
+
def __repr__(self):
|
|
56
|
+
return f"{self.Min}, {self.Max}"
|
|
57
|
+
|
|
58
|
+
def __eq__(self, other):
|
|
59
|
+
return (
|
|
60
|
+
isinstance(other, NumberRange)
|
|
61
|
+
and self.Min == other.Min
|
|
62
|
+
and self.Max == other.Max
|
|
63
|
+
)
|
|
64
|
+
|
|
50
65
|
class Color3:
|
|
51
66
|
def __init__(self, r=0, g=0, b=0):
|
|
52
67
|
self.R = float(r)
|
|
@@ -391,6 +406,14 @@ class AnimationTrack:
|
|
|
391
406
|
def IsPlaying(self):
|
|
392
407
|
return self.memory_module.read_bool(self.raw_address, self._offsets["IsPlaying"])
|
|
393
408
|
|
|
409
|
+
@property
|
|
410
|
+
def TimePosition(self):
|
|
411
|
+
return self.memory_module.read_float(self.raw_address, self._offsets["TimePosition"])
|
|
412
|
+
|
|
413
|
+
@TimePosition.setter
|
|
414
|
+
def TimePosition(self, value: float):
|
|
415
|
+
self.memory_module.write_float(self.raw_address + self._offsets["TimePosition"], float(value))
|
|
416
|
+
|
|
394
417
|
class FFlag:
|
|
395
418
|
__slots__ = ("name", "type", "_value", "offset", "_manager")
|
|
396
419
|
|