Skip to content

Running Dasher

Robin van der Wal edited this page May 7, 2018 · 2 revisions

This page contains all steps needed to run the Dasher agent on the game Geometry Dash. This page assumes you already completed the install instructions on the setup page.

Dasher is the agent that tries plays the game by itself.

Run the game

The first step to get the agent to play Geometry Dash is to launch the game through SerpentAI, this allows for frame and audio capture. To start open an Anaconda command prompt window and Change Directory to the directory where you unpacked the repository. Continue when you are in the correct folder.

Activate the serpent environment

activate serpent

Now SerpentAI requires Redis server to be running. Redis should have been installed somewhere on your pc, most likely C:\Program Files\Redis. Go tho this folder and run the server named redis-server.exe. This program should be running in the background when using SerpentAI. Now you are ready to launch the game using SerpentAI. Capital letters matter here.

Launch game

serpent launch GeometryDash

If everything goes correctly, then after some time the window of Geometry Dash should pop-up and move to the upper left corner of your screen. Its important that the resolution and texture quality have been set-up correctly as discussed in the setup.


Run the agent

If the game is running correctly, then you are now ready to start the agent. Click the play button in the game and go play the first level. The game should now start and the dash cube should be dying over and over again to the first spike, because the agent is not running yet. Go back to your anaconda window.

Run the Dasher agent

serpent play GeometryDash SerpentDasherGameAgent

It will take some time to start the agent. When the agent is ready it should start playing the game. The agent only works when the game is the main focus on the screen, so the Geometry Dash window should be the topmost window and be clicked. If the game window is not in focus, the agent will pause automatically. To stop the agent press ctrl + c.

Run the visual debugger

If the agent is set to output the frames you can run the visual debugger. After completing the run the game step you can type the following command:

serpent visual_debugger

A window should come up with four empty frames. You can resize the window. Then run the Dasher agent to start playing. The frames should then start updating.

Clone this wiki locally