Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Command error" locks drone until reset #176

Open
darozak opened this issue Aug 13, 2021 · 1 comment
Open

"Command error" locks drone until reset #176

darozak opened this issue Aug 13, 2021 · 1 comment
Assignees
Labels

Comments

@darozak
Copy link
Contributor

darozak commented Aug 13, 2021

Certain programs generate a "Command error" which, once generated, will repeat until the drone is reset. It's not clear what program elements are generating this error and why it persists until reset. Keep a lookout for the recurrence of this error so we can determine what is happening here.

@darozak darozak added the bug label Aug 13, 2021
@darozak darozak self-assigned this Aug 13, 2021
@darozak darozak added this to To Do in Game Mechanics via automation Aug 13, 2021
@darozak
Copy link
Contributor Author

darozak commented Nov 24, 2022

The command error appears to be generated when the drone submits a query for which there is no results, such as the following query for a sell order for resource 1010:

SELECT e.new_credits, e.new_quantity, i.available, e.drone FROM exmachinis.events AS e INNER JOIN ( SELECT drone, max(timestamp) AS my_time FROM exmachinis.events WHERE outcome = 1 AND event_type = 4 AND resource = 1010 GROUP BY drone) AS current_transactions ON e.timestamp = current_transactions.my_time AND e.drone = current_transactions.drone   INNER JOIN ( SELECT e2.drone, e2.new_quantity AS available FROM exmachinis.events AS e2 INNER JOIN (  SELECT drone, max(timestamp) AS my_time FROM exmachinis.events WHERE outcome = 1 AND locked = 0 AND (event_type = 1 OR event_type = 2) AND resource = 1010 GROUP BY drone) AS current_inventory ON e2.timestamp = current_inventory.my_time AND e2.drone = current_inventory.drone ) AS i ON e.drone = i.drone ORDER BY e.new_credits ASC;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Game Mechanics
  
To Do
Development

No branches or pull requests

1 participant