• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

A couple AI scripting questions

Status
Not open for further replies.
Level 2
Joined
Oct 9, 2011
Messages
6
What file do I need to edit to change how the computer lays out its base, like how much distance between buildings or the pattern?

When you run the "test map" option from the editor what level of difficulty script does it use for the AI? Easy, hard, insane?

I ask only because the annoying publish map thing gives me document dependency header file errors all the time (randomly) and regardless it's a lot faster to just test the map from the editor rather than logging in, creating game, etc. Also, the script seems magical. What I mean by that is when I changed each zerg script Zerg0.galaxy, Zerg1.galaxy, etc. one by one to see which one the editor's test map uses. I told each one to not call on the techup function (which builds buildings) and removed any build building command references from zerg0 to zerg5, yet the AI will still builds an extractor, a spawning pool, a roach warren, and a hydralisk den after all were edited out. I also tried it on battle.net and with each different skill selected it still built the same stuff. I have no idea what's telling it to build these buildings yet it does.

How would I start an AI script from scratch, yet keeping all the usual tactical info, requirements, attack info, etc? All I'm looking to do is make different build orders that I can test from the editor but can't even get that started. If anyone has an idea please help.
 
Last edited:
Level 2
Joined
Oct 9, 2011
Messages
6
Well I've directed the script to always defer to one specific difficulty so I know which script it's supposedly using. I say supposedly because it still does things I never told it to..

But I'm still wondering what file determines the spacing the computer builds, and why it decides to do things like build supply depots next to each other in the way it does, etc.
 
Level 2
Joined
Oct 9, 2011
Messages
6
It would be so cool if the AI sued a footprint for city layout, and each tile of the 48x48 limit could be like 48x48 in terms of map size not building size. Just think of how people could write custom scripts per map so that the comp would build its city in various ways depending on where it starts. Would be awesome.
 
Status
Not open for further replies.
Top