Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#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 historic_bruno, 9 years ago

Component: Game engineSimulation

comment:2 by historic_bruno, 9 years ago

Milestone: BacklogAlpha 8
Resolution: fixed
Status: newclosed

Fixed in [10570].

comment:3 by michael, 9 years ago

I think revision 10570 may have broken "auto-gather" after units build a Mill or Farmstead.

in reply to:  3 comment:4 by historic_bruno, 9 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 :)

Note: See TracTickets for help on using tickets.