I'm doing an AI course at university and for our project we need to do something with AI (obviously). I'm quite familiar with C and C++ so I'm sure I will pick up Galaxy pretty easily.
I'd like to write a custom AI for SC2, but I'm not really sure how to start. All the resources I can find on Google etc are for hacking MPQs from beta etc. I've had a quick poke around in the Map Editor, and have found the interface for writing custom Galaxy scripts, but I don't really know where to begin (what functions to use, where to put the scripts etc).
Basically all I want to do is create a custom Al that I can play against the default AI - the goal obviously to have my own AI be able to beat the default AI. I'd then obviously capture the game with fraps or something to go alongside my project.
Is anyone able to point me in the direction of some up to date resources? Is this even possible?
I don't know how you would implement an AI that is different though. When looking at the AI Libs it appears that most of them are just build orders depending on states.
Did you get answers to your original question? So far the only tutorial I've been able to find has you editing and replacing files in the MPQ directly, which obviously makes it very difficult to distribute the results.
I'm doing an AI course at university and for our project we need to do something with AI (obviously). I'm quite familiar with C and C++ so I'm sure I will pick up Galaxy pretty easily.
I'd like to write a custom AI for SC2, but I'm not really sure how to start. All the resources I can find on Google etc are for hacking MPQs from beta etc. I've had a quick poke around in the Map Editor, and have found the interface for writing custom Galaxy scripts, but I don't really know where to begin (what functions to use, where to put the scripts etc).
Basically all I want to do is create a custom Al that I can play against the default AI - the goal obviously to have my own AI be able to beat the default AI. I'd then obviously capture the game with fraps or something to go alongside my project.
Is anyone able to point me in the direction of some up to date resources? Is this even possible?
I think you do it with triggers. Make a trigger library (rename to AI project) and start from there. The Trigger Properties has an AI section.
You can take a look at the default AI scripts.
To do so you need an MPQ editor like Lakid's Editor.
Start it and open C:\Games\StarCraft II\Mods\Liberty.SC2Mod\Base.SC2Data
In there you find a folder called TriggerLibs. In there all libraries and AI scripts are stored.
I don't know how you would implement an AI that is different though. When looking at the AI Libs it appears that most of them are just build orders depending on states.
Why dont you ask the guy who made behemoth AI? I played it and it beat me easily.
the map- http://www.sc2mapster.com/assets/behemoth-ai/
the guy- http://www.sc2mapster.com/profiles/rrowland/
cheers for the help
Did you get answers to your original question? So far the only tutorial I've been able to find has you editing and replacing files in the MPQ directly, which obviously makes it very difficult to distribute the results.
To play with a custom AI you can either use the SC2AllIn1 launcher or make a custom map with the new scripts imported.