Update: Two things. (1) Switching Neutral player to Neutral control enabled the correct placement of works (in between town hall and minerals) when spawned...also seemed to unlock other AI functionality. (2) Explicitly setting starting positions in Map > Player Properties enabled true melee AI. See attached map.
Does anyone know what the deal with (1) is? And does anyone know how I can change starting positions (same as Map > Player Properties) using code during runtime?
Please see attached map and code screenshot. I'm trying to create a situation where I'm watching four computer players fight each other. I've tried many different things, including other AI scripts (like Mimic), AIDefaultEconomy, etc and I can't seem to get them to work in my map setup. If you fire up the attached map (which is a very simple approximation of a map I'm working on), you'll notice that sometimes computer players will send their workers to another start location to harvest. This is unpredictable however. I believe many of the problems here could be caused by the fact that I'm starting these players in arbitrary locations (not their "starting location" as in their player property). I can't seem to set this player property without going into the Player Properties dialog in the editor...which is not what I want anyway since I need to choose starting locations programmatically...not sure if that's the problem though.
Any help or insight on how I can get computers to fight each other with even dumb ai using the fewest lines of code possible, that would be great. This is just to test camera controls...I don't even really need it to actually be good AI...I've spent so much time on this compared to other features it's ridiculous.
Update: Two things. (1) Switching Neutral player to Neutral control enabled the correct placement of works (in between town hall and minerals) when spawned...also seemed to unlock other AI functionality. (2) Explicitly setting starting positions in Map > Player Properties enabled true melee AI. See attached map.
Does anyone know what the deal with (1) is? And does anyone know how I can change starting positions (same as Map > Player Properties) using code during runtime?
Please see attached map and code screenshot. I'm trying to create a situation where I'm watching four computer players fight each other. I've tried many different things, including other AI scripts (like Mimic), AIDefaultEconomy, etc and I can't seem to get them to work in my map setup. If you fire up the attached map (which is a very simple approximation of a map I'm working on), you'll notice that sometimes computer players will send their workers to another start location to harvest. This is unpredictable however. I believe many of the problems here could be caused by the fact that I'm starting these players in arbitrary locations (not their "starting location" as in their player property). I can't seem to set this player property without going into the Player Properties dialog in the editor...which is not what I want anyway since I need to choose starting locations programmatically...not sure if that's the problem though.
Any help or insight on how I can get computers to fight each other with even dumb ai using the fewest lines of code possible, that would be great. This is just to test camera controls...I don't even really need it to actually be good AI...I've spent so much time on this compared to other features it's ridiculous.