RLSDK Python
This is reverse engineered python SDK package aiming to read data from RocketLeague.exe.
How does it works
This SDK uses PyMem to read game memory and frida to hook game functions.
Installation
pip install rlsdk_python
Or
poetry add rlsdk_python
Usage
from rlsdk_python import RLSDK, EventTypes
import sys
rlsdk = RLSDK(hook_player_tick=True)
def on_tick(event):
game_event = rlsdk.get_game_event()
if game_event:
cars = game_event.get_cars()
for car in cars:
pri = car.get_pri()
player_name = pri.get_player_name()
# Display car position
x,y,z = car.get_location().get_xyz()
print(f"{player_name} is at {x},{y},{z}")
rlsdk.event.subscribe(EventTypes.ON_PLAYER_TICK, on_tick)
sys.stdin.read()
Events
You can attach a callback function to an event like this:
from rlsdk_python import RLSDK, EventTypes
sdk = RLSDK()
sdk.event.subscribe(EventTypes.ON_KEY_PRESSED, on_key_pressed)
def on_key_pressed(event):
print("Key pressed:", event.key)
More examples and documentation will be added if users ask for it.
Project using RLSDK Python
- RLMarlbot - Nexto bot based on my python SDK
Help needed
I need a way to find GObjects and GNames base offsets, because this offsets changes frequently (on each uptates) and are differents for Epic and Steam
Metadata
Release files for rlsdk_python 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rlsdk_python-0.5.0.tar.gz | 17.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rlsdk_python-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.1 kB
Release files / rlsdk_python-0.5.0.tar.gz
| Download URL | rlsdk_python-0.5.0.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98ef840f4242d5ba8e683e776523d6b36b99b900b79fbba54f3b890b0befe7bd
|
|
BLAKE2b-256 checksum How to use checksums |
e3842e032fd5a98571fd4f66045056cdb5bdd20584e67fe54b0e5e0a208764bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.0 Windows/10
|
Release files / rlsdk_python-0.5.0-py3-none-any.whl
| Download URL | rlsdk_python-0.5.0-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ea4fc4d538d0b79855685a1ff2bc811052bd48e9bbe21b3bed4fde91ce4f1a2
|
|
BLAKE2b-256 checksum How to use checksums |
2405b5f8b14d6eba0398ae4226137da44a130abe2d1aefef290d21db709aaef2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.0 Windows/10
|