Skip to main content

No project description provided

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 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rlsdk_python-0.5.0.tar.gz (17.1 kB view hashes)

Uploaded Source

Built Distribution

rlsdk_python-0.5.0-py3-none-any.whl (18.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page