aka Definite Daily Drop Don't Starve Together
aka DDDDST
What a dream! This python script automaically opens your Don't Starve Together client and opens your login gifts. Configure the program directly in the script (ddddst.py
) by setting the values of the ALL_CAPS constants at the top.
The first time it runs, the program launches into a config mode that collects locations on screen using your mouse pointer. Dialog boxes will ask you to:
- hover the mouse to a specific place
- press the enter key to move on
The prompts on screen will guide you, eventually indicating that the setup is complete. The program will remain running forever, waiting about 24 hours before it wakes up and checks for the time again.
This project also includes a systemd configuration file that will automate the scheduling of this Don't Starve Together automatic daily gift opener. Especially useful for linux users who would like to automatically collect their daily gifts without having to close and reopen the client themselves.
- automates opening/closing of the Don't Starve Together client
- automates opening of daily (and other) gifts at startup
- easy to use: guides users through first-time setup with dialog boxes
- installs python dependencies easily using pipenv
- leverages virtualenv with pipenv for quick setup
- python >= 3.9
- python package 'pipenv' (requires virtualenv)
- remaining requirements are in Pipfile (notably, pyautogui, pymsgbox, and adict)
- a pinned link to the game on your screen that is always visible
- clone the repo from github
- make sure you have pipenv installed
- run pipenv to install the dependencies
- load the service script into systemd
# INCOMPLETE SETUP INSTRUCTIONS (aka setup inspiration)
# please feel free to contribute to this!
# download the code
git clone https://github.com/markusbaker/systemd-dstdrpz.git`
# open the downloaded directory
cd systemd-dstdrpz
# make sure pipenv is installed
python -m pip install pipenv
# install the Pipfile dependencies
# also automatically creates a new virtual environment
python -m pipenv install
The simplest useage directly invokes the python script:
python ddddst.py
More advanced useages:
- invoke from your own python projects
- modify and add the systemd script (ddddst.service) to your system's /etc/systemd
- March 27, 2021: initial release
- March 27 2021: python on Ubuntu is version 3.8 but version 3.9 is needed here
- install python 3.9 using premade ppa
- install pip for python 3.9 using get-pip.py
- run
python3.9
instead ofpython
- to stop fullscreen window minimizing, set
export SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0
in .profile as described in this SO article. You will need to re-login your ubuntu session.