To generate new values for these parameters, you can use the following command: It is extremely dangerous to leave these as default, as these values serve as authentication tokens for internal APIs and session cookies. You MUST provide unique, random values for the secret and token fields of your config. Once you have the project cloned, open your terminal of choice (Command Prompt, bash, etc), navigate to the directory you cloned the project in, and run: If you happen to have cloned the repo without git lfs installed, you can recover this by installing git lfs and use the command git lfs pull in the repo. ImageMagick (optional, required for generating preview gifs in animation tool)Įnsure you have Git LFS installed before you clone the repo! Git LFS is required to pull down the asset files the game uses, as storing them in normal Git would stuff up the tree pretty badly.
Pony Town's code is released to public domain. If you need to clone this for something else than french language, please use the original pixel.horse which is the exact same thing in english. It is made to give users transparency and the opportunity to add/correct french translation to the game. WARNING: This repo is not made to be cloned and used in production. Although a solution to this problem could be developed, using a virtual machine just seemed simpler.A Pony Town custom server translated in french and tweaked for use with french words as commands and french keyboard layout
The script was developed with virtual machines in mind because xdotool can't send keypresses to windows on other workspaces without switching to them. This is because of the expectation that the script is being run in a virtual machine, as well as the developer's laziness to not bother using xdotool's command chaining functionality to search for windows first. CaveatsĪ specific window is not currently targeted by xdotool. It is intended for use in a virtual machine where the active window is always the game. You may be able to tweak it to suit your needs. The script has been written to support Linux systems using the XFCE desktop environment.
imagehash: comparing screen captures to determine if the chat textbox is open.Pillow: screen image capture and image loading.The following external Python 3 libraries are used: The Linux utility xdotool is used to simulate keyboard input.
A small portion of the screen is captured to determine whether the user has the chat textbox open.If the user has been active in the past 2 minutes, earlier notice is given for actions.Mouse movement events are recorded and cleared over 1 second periods to track actual user activity.The delay between each keypress is a random value between 100 and 200 ms.Each keypress has a random duration from 20 to 100 ms.Turning the head is done randomly every 10 to 15 (or so) minutes.Desktop notifications are sent informing the user of script action.If so, the action is not performed and the user is notified.Whether the user appears to be typing (has the chat textbox open).Whether the user has moved their mouse in the past two minutes.The script attempts to turn the player's head back and forth every 10 to 15 (or so) minutes.This is an anti-AFK script for the game Pony Town and its derivatives.Īs of now, it has only been tested on Pony Town and Ashes Town.