GetTeamResources "received" value buggy?
Posted: 12 Feb 2007, 17:40
After two buggy games (both on Tropical if that matters) where my metalmaker AI wasn't responding to received energy from allies I did a lot of poking at my code trying to figure out why and eventually gave up after finding nothing that would cause it to ignore all energy received. I then got sent a replay by another player where the same thing happens so being determined to fix it I started outputting every variable I was tracking to find out which was reporting the wrong value...
It turned out the value being returned by GetTeamResources for received energy was always 0 despite him receiving energy from his allies, here's the replay:
http://pw3n.net/070211-VallesMarineris_v4-0.74b3.sdf
The player you want to watch is Ohmegaherz (Black), his received energy is never anything but 0 despite his allies hitting their share limits many times and his drain exceeding his output while full energy...
(you can spy on his received energy with a simple lua script)
It turned out the value being returned by GetTeamResources for received energy was always 0 despite him receiving energy from his allies, here's the replay:
http://pw3n.net/070211-VallesMarineris_v4-0.74b3.sdf
The player you want to watch is Ohmegaherz (Black), his received energy is never anything but 0 despite his allies hitting their share limits many times and his drain exceeding his output while full energy...
(you can spy on his received energy with a simple lua script)