Need some help with a bug
Posted: 29 Jun 2011, 11:34
https://code.google.com/p/evolutionrts/ ... etail?id=8
^^ just the issue tracker
https://code.google.com/p/evolutionrts/ ... i_Tech.lua
^^ the file in question
Ok, what is going on is...
The above file is the tech gadget that evo uses. It was written by zwzsg. It is meant to function as as gateway to use almost any type of teching system. In particular, evo uses the ranged system.
Now, the problem is in the checks. When the checks are run to see if a command is valid, it gets the position of the builder, meaning that the builder must be in range of the tech source in order for the unit to be be built.
What I want to do is either get the position of the mouse cursor or where the order is given via click (in other words, I click a unit on the build menu, and try to build it at a location. The script checks that position to see if there is power there, returns with yes or no.).
The check starts on line 507.
Lines 899 and 904 are relevant as well.
Please help?
^^ just the issue tracker
https://code.google.com/p/evolutionrts/ ... i_Tech.lua
^^ the file in question
Ok, what is going on is...
The above file is the tech gadget that evo uses. It was written by zwzsg. It is meant to function as as gateway to use almost any type of teching system. In particular, evo uses the ranged system.
Now, the problem is in the checks. When the checks are run to see if a command is valid, it gets the position of the builder, meaning that the builder must be in range of the tech source in order for the unit to be be built.
What I want to do is either get the position of the mouse cursor or where the order is given via click (in other words, I click a unit on the build menu, and try to build it at a location. The script checks that position to see if there is power there, returns with yes or no.).
The check starts on line 507.
Lines 899 and 904 are relevant as well.
Please help?