Play bot: play Acts 1–4 by clicks only and list the real gaps

Open
#83 2 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp

Research direction

Read tests/smoke_d2d.py and tests/coop_d2d.py for the headless input and state-reading approach, then inspect tests/quests_d2d.py and the Act 1 quest sequence in the issue. Build tests/play_d2d.py to drive town, Den of Evil, Blood Raven, Cain, and Andariel using clicks and keys, logging each stuck point and its reason. Done means the bot reaches the Act 1 goals or records actionable gaps in issues or todo.md.

Written by the indexing model from the issue text.

Description

enhancement help wanted

Goal

A play bot that plays Acts 1–4 the way a player does, using only clicks and keys and no debug verbs, so we get a real list of gaps instead of a guessed one.

Background

The quest tests (tests/quests_d2d.py) set each quest up with devctl debug verbs. That proves each quest's logic works, but nobody has played an act end to end. Anything between the quests, such as walking a level, finding the waypoint, a door that won't open or a monster that won't die, is untested. See PLAN.md "Checkpoint 2026-10-14 (later)".

Scope

  1. tests/play_d2d.py, headless like smoke_d2d.py and coop_d2d.py. It drives d2d through input only and reads state through devctl.
  2. Start with Act 1: town, Den of Evil, Blood Raven, Cain, Andariel. Log every place the bot gets stuck, along with its reason.
  3. Report the stuck points as issues, or add them as rows in todo.md.
  4. Optional: every class and weapon class, and casting each skill once. This also fills in todo #36 (anim_coverage reaches only about a quarter of the animations today).

Why it helps

Every other row in todo.md comes from reading code. This is the only one that checks the game as a player plays it, so its output sets the priority for everything else.

Contributing

AI assistance is welcome, but a human contributor must review and test the work, take responsibility for the result, and sign off on the PR. Do not add AI co-authorship. game.exe 1.14d is the ground truth: cite the function each change was traced from.

Source: docs/research/re/todo.md row #1 and #36

Dominant language
C++
Stars
17
Forks
6
Avg merge
6h 14m
Merged PRs (30d)
570

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from psi29a/d2decomped

All issues in psi29a/d2decomped

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.