by Prot » 07 Mar 2017, 21:06
Yeah, i knew that the newer NullBots better old one, but no, i even not try to port/run my bot on 3.2
On the 3.2 has many new, like better JS API and other cool stuff, i think when i finish(emm.. tired) on 3.1 i start from scratch again, because some of the features that would have worked, written so that overload CPU on 3.1. So I think that's a bit pointless to port it, it's easier to write from scratch, and use the functions from 3.2.
For now EASY has some limits, first - is completely random research, it choose from available using Math.random, then limits: 2 factory and one army with 7 droids, 1 cyborg factory and 5 cyborgs, 1 VTOL and 5 jets, only 5 builders, 3 on base, and 2 resource-hunters. I think i also change some timers, to not overload CPU.
On MEDIUM it has no limits for buildings and units if enough money. Two army droids, the first army has from 5-20 units with repair droids, strikes on resources, and makes forays detours, following the algorithm "go to the nearest resource", located on the map resources are usually doing all the work in the direction of the army detours. The second gets at least 10 units, trying to come together again and strike back where just hotter, is based on eventAttacked().
Also i do not known how to set it HARD, if only use cheats, like see through Fog of War аnd in advance to respond to enemy movements, but.. no, it's non-cheat, i hate cheats =))
Better i little bit tweak timers to not overload CPU on MEDIUM, and use full-power on HARD to react.