How We Built Screen-Based Automation for Last War on Windows
Описание и применение
Создана автономная программа Last War Botu, которая автоматически выполняет задачи в игре Last War: Survival, используя скриншоты, распознавание шаблонов и турецкий OCR, и работает на разных разрешениях и масштабах экрана.
Задача
Creating a screen‑based automation tool for the PC client of Last War: Survival that works across different resolutions, scaling, and window states without modifying game memory or files.
Результат
The tool successfully automates in‑game tasks across supported resolutions (1920×1080, 1366×768, 1920×1057, 150% scaling) while avoiding prohibited actions and providing user controls for safety.
Рабочий процесс
- 1. Verify game window is full screen or maximized and in front.
- 2. Capture a screenshot of the current screen.
- 3. Use template matching to locate UI elements (buttons, icons).
- 4. Apply Turkish OCR to read text labels for ambiguous controls.
- 5. Decide action based on task logic (e.g., collect rewards, avoid "Go" button).
- 6. Perform randomized delays and wait for squad status before next click.
- 7. Monitor for stuck state, allow emergency stop, or observe mode.
- 8. Repeat for scheduled tasks or continuous operation.
Доказательства
Last War Botu is an independent, third‑party automation tool for Last War: Survival. It runs on Windows 10/11 with the game’s official PC client. An emulator is not required.
Live checks cover 1920×1080 and 1366×768. The recorded checks also include a 1920×1057 game window, multiple monitors, and Windows scaling at 150%.
The tool uses randomized delays and waits for an attacking squad. It also has a scheduler, a stuck‑state watchdog, an emergency stop control, and a mode that observes without clicking.
- Дата записи: 2026-10-21T09:56:29.507Z