Ticket #982 (closed defect: fixed)
Add "debugging mode" to command handling
| Reported by: | historic_bruno | Owned by: | |
|---|---|---|---|
| Priority: | Nice to Have | Milestone: | Alpha 8 |
| Component: | UI & Simulation | Keywords: | ai |
| Cc: |
Description
Since we've temporarily disabled build restrictions for AIs, it has revealed subtle flaws in AI logic, since previously commands would silently fail under certain conditions. So a "debugging mode" is proposed for Commands.js, which would optionally show errors that occur during command handling ("Gather failed: resource not owned by player", "Construct failed: invalid location", etc.) The idea is this mode could be used by AI developers to test changes in their scripts (and possibly UI devs?). Really it only needs to be a flag set somewhere, which parts of Commands.js would check before displaying a message on failure. Even a simple message would be helpful.
Change History
comment:2 Changed 18 months ago by historic_bruno
- Status changed from new to closed
- Resolution set to fixed
- Milestone changed from Backlog to Alpha 8
Fixed in [10570].
Note: See
TracTickets for help on using
tickets.
