RLSDK modifications I made to train with Python.
Project description
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 wayz_rlsdk_python
Or
poetry add wayz_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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wayz_rlsdk_python-0.1.1.tar.gz.
File metadata
- Download URL: wayz_rlsdk_python-0.1.1.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b23bde4b842996bb4263c1cc07501cacbfb57b66ac9712e28a6e36c111b07c2
|
|
| MD5 |
9ff3182b8015f99e76e429812ea2db1a
|
|
| BLAKE2b-256 |
932a55a8cfde9a0c01bf92d13710a1ad95b9dd76ddee7aa699f8327d807d16bd
|
File details
Details for the file wayz_rlsdk_python-0.1.1-py3-none-any.whl.
File metadata
- Download URL: wayz_rlsdk_python-0.1.1-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7c50debcfa73e7b8c808678e7742a1ccc3ece820fd60dd03b47cc0a46d64711
|
|
| MD5 |
9f643f8932e86657600ff485d5f292f9
|
|
| BLAKE2b-256 |
860f127e02a4a16ecd2553cf617ca20c3b4225c3c11e21e401121dd88ca06ee0
|