Hi There,
Excelent updates, Well Done.
Just want to confirm buildings and comment on quickest bot winning.
For buildings, do buffs stack or do they only apply to territory?
So will a food node surrounded by Farms yield +80% on the output? Or will only one building count
Secondly to answer the Quickest bot winning,
Due to the nature of the engine commands are processed on a first in first out basis.
Its not the simplest thing to correct. But I feel the following could work.
In the tick processor, Instead of processing player commands immediately, store all received player commands in a object.
Then run a balancing function on the command object:
What this balancing function can do is:
A) Handle max units, if users sent 500 units to a node with only 300 available. Then adjust the command to only 300.
If you can get point A in. Then the next part is easy.
B) Compare all player commands to the same nodes So if both player A and Player B sends 300 units to a base with 300 max units, Then calculate their percentages and let each player only have 150 units.
And if I send 100 units and player B sends 300 units, Player B should still get 75% of the resources.
Some notes:
A) What do we do with illegal units? I feel if you made an illegal move those units should return to your base and enter a 10 tick cooldown. As it is now, its possible that illegal units just get home without penalty. But I have not actually tested this
B) Doing max units first is important. because you do not want someone sending 1000 units to a 300 max unit base and walking off with most res.
If you do command validation inside this command balancing function, you can potentially remove a bit of validations from other functions. But it could be cool to give units some kind of timeout to the homebase. Essentially traveling nowhere.
Otherwise it feels like theres a unneeded margin for error there.
Anyways, just wanted to touch base on the Quickest bot winning error and what i feel would be the quickest way to fix. Dont want to take away the problemsolving fun here. But we are on a tight schedule.
Exelent updates above. I will hopefully have my own visualiser back on with buildings. Just first need to actually build something. And having Gold fixed was essential to those tests.