Thursday, April 19, 2012

Tutorial

This is a post where I'm hoping that different AI modders can post how to build an AI from start to finish, not necessarily in order. Personally, I am very interested. First of all: is knowledge of lua required.

I would be much obliged if each person would post a short how-to about each topic that they feel is necessary to talk about. Thanks a lot!|||You mean a Guide like this one? :P http://forums.gaspowered.com/viewtopic.php?t=13445



lua is not required, the files are readable and editable with Notepad. Most AI moddders use the freeware Notepad++ instead, as it helps you with formatting and other stuff.



A personal tip: Keep your changes rather small at the start, especially the priority-changes of the buildorder in the AIarchetype-file (one of the two main AI files), one change too much can have the wildest effects. I remembering raising the priority of the Commander Mex-building function from iirc 900 to 925 and the lad suddenly tried to walk all over the map into the enemy base to build a mex on a masspoint there, nasty surprise :D



The easiest way is to start with the platoontemplate file first and then slowly adapt the AIarchetype file after that. Sorian listed a lot of typos and bugs (and the needed corrections) in his AI's thread, make sure to apply them.



A random thing he discovered e.g. is the fact that in the platoontemplate file the -1, 3 thing does not work for SCUs, it has to be 1, 3.



Explanaition: with -1, 3 the AI should NORMALLY build SCU's with all gates/factories until it had a squad of 3, but this does not work for SCU's, only other factories and other units. :shock:|||The -1 behavior can be changed, would require a small modification. If you like Aralez I can make the core change in 2.5 so you could use it in your AI. Let me know.|||Na, don't. It's not such a big problem. thx nonetheless. :)|||Freeware programs



http://www.crimsoneditor.com/



Very nice code editor



http://winmerge.org/downloads/index.php



Great for comparing/merging different files.



http://www.7-zip.us/



Easy to use zip program



Moe

No comments:

Post a Comment