A Python Reconnection Tool for alt:V

Overview

altv-reconnect

What?

It invokes a reconnect in the altV Client Dev Console. You get to determine when your local client should reconnect when developing.

This allows for an easy to use developer controlled reconnection script.

Why?

I'm tired of typing reconnect in the alt:V console. This tool is going to do it for me whether it likes it or not.

Usage

Download the executable from releases and simply run it in the background.

Invoke a HTTP GET request for localhost:5599 to invoke a reconnect. (Example Below)

This will only allow reconnecting from a local Windows Machine that is also running an alt:V Server

Append to your altv.cfg

These must be added to your client configuration for this to work:

debug: 'true'
useExternalConsole: 'true'

Append to your Game Mode

Add and call ReconnectHelper.invoke() after your game mode loads to invoke a local reconnection.

import * as alt from 'alt-server';
import * as http from 'http';

const RECONNECTION_ADDRESS = 'http://localhost:5599';
let caughtErrorOnce = false;

export class ReconnectHelper {
    static invoke() {

        if (!ReconnectHelper.isWindows()) {
            return;
        }

        ReconnectHelper.sendRequest();
    }

    private static isWindows() {
        return process.platform.includes('win');
    }

    private static sendRequest() {
        const req = http.get(RECONNECTION_ADDRESS);
        req.on('response', () => {
            alt.log(`~g~[altv-reconnect] Invoked Reconnection Successfully`);
        });

        req.on('error', () => {
            if (caughtErrorOnce) {
                return;
            }

            caughtErrorOnce = true;
            alt.log(`~r~[altv-reconnect] ~y~Not Currently Running`);
            alt.log(`~r~[altv-reconnect] ~y~Download Binaries from https://github.com/Stuyk/altv-reconnect`);
        });
    }
}

Building from Scratch

Requires pyinstaller

pyinstaller --clean --name altv-reconnect --onefile --icon=main.ico src/altv-reconnect.py 
You might also like...
A basic reminder tool written in Python.
A basic reminder tool written in Python.

A simple Python Reminder Here's a basic reminder tool written in Python that speaks to the user and sends a notification. Run pip3 install pyttsx3 w

Intrusion Test Tool with Python
Intrusion Test Tool with Python

P3ntsT00L Uma ferramenta escrita em Python, feita para Teste de intrusão. Requisitos ter o python 3.9.8 instalado em sua máquina. ter a git instalada

FridaHookAppTool - Frida Hook App Tool With Python
FridaHookAppTool - Frida Hook App Tool With Python

FridaHookAppTool(以下是Hook mpaas框架的例子) mpaas移动开发框架ios端抓包hook脚本 使用方法:链接数据线,开启burp设置

Fake-user-agent-traffic-geneator - Python CLI Tool to generate fake traffic against URLs with configurable user-agents
Fake-user-agent-traffic-geneator - Python CLI Tool to generate fake traffic against URLs with configurable user-agents

Fake traffic generator for Gartner Demo Generate fake traffic to URLs with custo

a delightful machine learning tool that allows you to train, test and use models without writing code
a delightful machine learning tool that allows you to train, test and use models without writing code

igel A delightful machine learning tool that allows you to train/fit, test and use models without writing code Note I'm also working on a GUI desktop

Parris, the automated infrastructure setup tool for machine learning algorithms.
Parris, the automated infrastructure setup tool for machine learning algorithms.

README Parris, the automated infrastructure setup tool for machine learning algorithms. What Is This Tool? Parris is a tool for automating the trainin

Simple command line tool for text to image generation using OpenAI's CLIP and Siren (Implicit neural representation network)
Simple command line tool for text to image generation using OpenAI's CLIP and Siren (Implicit neural representation network)

Deep Daze mist over green hills shattered plates on the grass cosmic love and attention a time traveler in the crowd life during the plague meditative

BitPack is a practical tool to efficiently save ultra-low precision/mixed-precision quantized models.
BitPack is a practical tool to efficiently save ultra-low precision/mixed-precision quantized models.

BitPack is a practical tool that can efficiently save quantized neural network models with mixed bitwidth.

DNA-RECON { Automatic Web Reconnaissance Tool }
DNA-RECON { Automatic Web Reconnaissance Tool }

ABOUT TOOL : DNA-RECON is an automatic web reconnaissance tool written in python. This tool made for reconnaissance and information gathering with an

Releases(1.0.4)
Owner
Learn by solving problems you love.
null
Raptor-Multi-Tool - Raptor Multi Tool With Python

Promises ?? 20 Stars and I'll fix every error that there is 50 Stars and we will

Aran 44 Jan 4, 2023
Fuzzing tool (TFuzz): a fuzzing tool based on program transformation

T-Fuzz T-Fuzz consists of 2 components: Fuzzing tool (TFuzz): a fuzzing tool based on program transformation Crash Analyzer (CrashAnalyzer): a tool th

HexHive 244 Nov 9, 2022
Torchlight2 lan game server tool - A message forwarding tool for Torchlight 2 lan game

Torchlight 2 Lan Game Server Tool A message forwarding tool for Torchlight 2 lan

Huaijun Jiang 3 Nov 1, 2022
Simple tool to combine(merge) onnx models. Simple Network Combine Tool for ONNX.

snc4onnx Simple tool to combine(merge) onnx models. Simple Network Combine Tool for ONNX. https://github.com/PINTO0309/simple-onnx-processing-tools 1.

Katsuya Hyodo 8 Oct 13, 2022
A Python Automated Machine Learning tool that optimizes machine learning pipelines using genetic programming.

Master status: Development status: Package information: TPOT stands for Tree-based Pipeline Optimization Tool. Consider TPOT your Data Science Assista

Epistasis Lab at UPenn 8.9k Dec 30, 2022
naked is a Python tool which allows you to strip a model and only keep what matters for making predictions.

naked is a Python tool which allows you to strip a model and only keep what matters for making predictions. The result is a pure Python function with no third-party dependencies that you can simply copy/paste wherever you wish.

Max Halford 24 Dec 20, 2022
A light-weight image labelling tool for Python designed for creating segmentation data sets.

An image labelling tool for creating segmentation data sets, for Django and Flask.

null 117 Nov 21, 2022
✂️ EyeLipCropper is a Python tool to crop eyes and mouth ROIs of the given video.

EyeLipCropper EyeLipCropper is a Python tool to crop eyes and mouth ROIs of the given video. The whole process consists of three parts: frame extracti

Zi-Han Liu 9 Oct 25, 2022
Little tool in python to watch anime from the terminal (the better way to watch anime)

ani-cli Script working again :), thanks to the fork by Dink4n for the alternative approach to by pass the captcha on gogoanime A cli to browse and wat

Harshith 4.5k Dec 31, 2022