#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: | Patch: |
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 (4)
comment:1 by , 13 years ago
Component: | Game engine → Simulation |
---|
comment:2 by , 12 years ago
Milestone: | Backlog → Alpha 8 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
follow-up: 4 comment:3 by , 12 years ago
I think revision 10570 may have broken "auto-gather" after units build a Mill or Farmstead.
comment:4 by , 12 years ago
Replying to michael:
I think revision 10570 may have broken "auto-gather" after units build a Mill or Farmstead.
Thanks, hopefully fixed now :)
Fixed in [10570].