You might think these are small issues, but in fact these are very evil ones :-) . I think everyone knows them, but how to solve?
Here you go:
- sometimes workers don't start to mine if i right click on gold or wood
This happens because the engine doesn't know what you clicked, it doesn't 'render' objects/resources in selection mode, and it decides what that you wanted to harvest or move based on the cell you clicked. Sadly the code that determines the cell you clicked is not very accurate.
Solution: render resources in selection mode, and chose default orders accordingly.
- sometimes workers don't start to mine after creation if i set the meeting point to gold
This probably happens after resource depletion, the meeting point is set to a cell location, when there are no more resources there...
Solution: You could check meeting points on resource depletion, and shift any that were on the now depleted resource.
- if i can't build something because resources are missing, MG doesn't tell which resource is missing
Solution: use a return value / ref parameter and report to console (GAE does this with static variables, don't do that!).
- technicians can't start to build battle machines if they're standing together in a group (invalid position). they should spread if it's needed to build.
Maybe not so easy as the others, but hardly evil, or overly hard.
Solution: 'reserve' cells per faction/team, have other units on that team respect these reservations.
- if a technician starts building a battle machine, and another one stands next to him (because he also walks from the technodrome to the meeting point), the battle machine isn't finished (again: invalid position).
Solution: as above.
Cheers.