No Description

Fabian Peter Hammerle 2acae9f56e drop launching functionality 4 years ago
docs 57a4b4a1ea readme: added svg showing default mapping 6 years ago
screenshots c0f49c9067 extended controls: map f -> select fog in battle 6 years ago
scripts 2acae9f56e drop launching functionality 4 years ago
tooncher 2acae9f56e drop launching functionality 4 years ago
.gitignore 2acae9f56e drop launching functionality 4 years ago
.pylintrc 5860e57415 pylint: disable bad-continuation & missing-docstring check 4 years ago
CHANGELOG.md b688de2fee rename package tooncher -> rescriptoon 4 years ago
LICENSE.txt 5b192b434a release v0.4.1 4 years ago
Pipfile 2acae9f56e drop launching functionality 4 years ago
Pipfile.lock 2acae9f56e drop launching functionality 4 years ago
README.md ef403928b1 Merge remote-tracking branch 'tooncher/master' 4 years ago
setup.cfg 1e7fc4b920 initial 7 years ago
setup.py 2acae9f56e drop launching functionality 4 years ago

README.md

tooncher

automates toontown rewritten's login process

Last Release Python Version

Installation

$ pip3 install --user --upgrade tooncher

or:

$ pip3 install --user --upgrade git+https://github.com/fphammerle/tooncher@master

Optional: Install cpulimit to enable use of parameter --cpu-limit

$ sudo apt-get install cpulimit

Optional: Install xlib and psutil for python to enable extended controls:

$ sudo apt-get install python3-xlib python3-psutil

or

$ pip3 install --user xlib psutil

Configuration

# default path: $HOME/.tooncher
accounts:
- username: toon
  password: secret
- username: ceo
  password: golf
- username: cfo
  password: train
engine_path: '/opt/Toontown Rewritten/TTREngine'

Usage

$ tooncher [username]

tooncher --help shows all available options.

Extended Controls

To enable the use of WASD keys for walking, launch tooncher with the --extended-controls option:

$ tooncher --extended-controls username

While in the game press ` (grave) to enable extended controls. Press ` again to disable.

The command line parameter --extended-controls-toggle may be used to change the toggling key:

$ tooncher --extended-controls --extended-controls-toggle slash username

Extended controls require the X Window System (X11).

Examples

$ tooncher toon
$ tooncher --extended-controls ceo
$ tooncher --cpu-limit 70 cfo

Python Interface

import pathlib
import tooncher

tooncher.launch(
    engine_path=pathlib.Path('/somewhere/toontown-rewritten/TTREngine'),
    username='toon',
    password='secret',
)

Extended Controls Default Mappings

default mapping

(based on https://en.wikipedia.org/wiki/File:Qwerty.svg)

Movement

Key Action Target Engine
` turn Extended Controls on / off
w walk forward 0
s walk backward 0
a turn left 0
d turn right 0
v throw pie 0
i walk forward 1
k walk backward 1
j turn left 1
l turn right 1
/ jump 1
n throw pie 1
space jump all

Gag Selection

Key Action Target Engine
e select elephant trunk in battle 0
o select elephant trunk in battle 1
f select fog in battle 0
; select fog in battle 1