manolo_ wrote:suggestion name it just central_build_Ai.lua and what line do i have to change to change the group-number (e.g. from 1 to 9)
The file name and the internal name returned by widget:GetInfo()
should remain constant so that later versions can be dropped into the widgets folder and replace the older ones transparently. The reasons I keep changing them are 1) I keep losing track of which version I'm working on at any given time, 2) I sometimes like to keep two or three versions handy so I can swap them back and forth in the same game and compare behaviors, and 3) I've read the threads about Custom Formations 2 and Improved Metal Controller where people are having trouble keeping track of which version is the latest one.
I know it's annoying to have to pull up the widget manager, disable the old one, and enable the new one every time. But on the bright side, development should slow down now that I've got it doing mostly what I wanted, and you don't have to shuffle versions nearly as much as I do.
To change the group number, look down around line 33 or so for something that looks like this:
Code: Select all
local myGroupId = 1 -- Group number to be controlled by Central Build AI.
I have considered putting in a metakey combination or "/luaui cbgroup 5" text command sort of thing, but I figure those won't be any easier to remember than changing the code, and I figure the average user will change this setting exactly once to whatever group they usually use for builders and leave it there. I might create my own custom group using the Q/ctrl-Q commands that the old Group AI used to use.
With all due respect to ai-masterful hoijui, I have put units in group 0 before without difficulty. Also, gunblob's UnitGroups v5.1 displays icons so you can easily select groups and includes a group 0. I suspect hoijui is thinking of something else.