[3.1+] NullBot: an adaptive skirmish AI
-
aubergine
- Professional

- Posts: 3462
- Joined: 10 Oct 2010, 00:58
Re: NullBot: yet another AI for v3.1+
Release notes for v0.25?
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
-- https://warzone.atlassian.net/wiki/display/GO
-
NoQ
- Special

- Posts: 6226
- Joined: 24 Dec 2009, 11:35
- Location: /var/zone
Re: NullBot: yet another AI for v3.1+
Emm what do you mean? Here?aubergine wrote:Release notes for v0.25?
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
-
aubergine
- Professional

- Posts: 3462
- Joined: 10 Oct 2010, 00:58
Re: NullBot: yet another AI for v3.1+
Ah, I must have been having a senior moment. Ignore me heh
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
-- https://warzone.atlassian.net/wiki/display/GO
-
NoQ
- Special

- Posts: 6226
- Joined: 24 Dec 2009, 11:35
- Location: /var/zone
Re: NullBot: yet another AI for v3.1+
Well, suppose this one is v0.26.
Changes:
Changes:
- New personality: ~Turtle~. Well, i'm far from being satisfied with it so far. Anyway, it builds only defenses and VTOLs, and prefers howitzer/rocket technology, even though it invents some machineguns at start. It uses lancer and heap bomb VTOLs and all sorts of artillery (apart from incendiary mortars/howitzers).
- Some defense code changes. The AI now sometimes sells outdated defensive structures.
- A very primitive support for gateways. It just builds some hardpoints somewhere around gateways, but not on exact locations, due to lack of passability checks in the current scripting engine;
- Don't expand the base until really have too much money (over 2000 now).
- Fixes in VTOL rearming.
- Stop instead of getting together when running a regroup on the biggest cluster (v3.1 only, already worked on master);
- Removed workaround for breaking through walls, since it didn't work anyway, but only made things worse;
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
-
NoQ
- Special

- Posts: 6226
- Joined: 24 Dec 2009, 11:35
- Location: /var/zone
Re: NullBot: yet another AI for v3.1+
v0.27
Changes:
Early tests have shown that dynamic-research NullBot "Itself" sometimes behaves better than the original fixed-research personalities even in 1x1 matches, where adaptation to a fixed and probably-balanced research path shouldn't actually have lead to a better play.
Changes:
- Generic and Random AIs are now deprecated, being replaced by "The NullBot Itself": an AI with very short pre-defined research path that then descends into one of the following five research branches: mg/cannons, mg/rockets, flamer/cannons, flamer/rockets and mg/flamers. All other personalities were moved to the extra package.
- Dynamic research path support. Once the initial ("Primary") research path is completed, the AI starts balancing between several research paths: Fundamental, Anti-Tank, Anti-Cyborg, Anti-Air and Anti-Building, depending on the game situation. Extra personalities were not updated to use the dynamic research path yet; only NullBot "Itself" uses that so far.
- Reverted change of base expansion for everybody but Turtle AI.
- Fixed a few typos that appeared because i didn't know how to use .concat JS array function.
Early tests have shown that dynamic-research NullBot "Itself" sometimes behaves better than the original fixed-research personalities even in 1x1 matches, where adaptation to a fixed and probably-balanced research path shouldn't actually have lead to a better play.
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
-
aubergine
- Professional

- Posts: 3462
- Joined: 10 Oct 2010, 00:58
Re: NullBot: an adaptive skirmish AI for v3.1+
Loving the new version. Nullbot should be bundled with the game, replacing Nexus IMHO.
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
-- https://warzone.atlassian.net/wiki/display/GO
-
NoQ
- Special

- Posts: 6226
- Joined: 24 Dec 2009, 11:35
- Location: /var/zone
Re: NullBot: an adaptive skirmish AI for v3.1+
Thanks
On the other hand, i feel the code to be feature-rich enough already (i won't ever use commanders, i think, for they are useless against humans, and i still can't use chat due to #3199), so i will now focus on polishing and bugfixing. Gonna really need feedback now (: Maybe release 1.0 some day ...
I also could use some ideas on how to implement difficulty levels. Right now i think that "Easy" should be something like the "Generic" personality i just removed (but i think i still have the code), with all sorts of adaptation disabled, "Medium" should be focusing research, but with all adaptation still disabled, and "Hard" should be the best AI i managed to make. Insane will differ from Hard only by some hard-coded cheats (eg., starting with defenses).
In fact, there are few things that got worse. For example, it now actually fails to even research any AA before the enemy produces VTOLs. And every time i try to make him give at least some minimal priority to AA research, it starts researching it way too early (when it is usually a deadly mistake to research it).aubergine wrote:Loving the new version.
On the other hand, i feel the code to be feature-rich enough already (i won't ever use commanders, i think, for they are useless against humans, and i still can't use chat due to #3199), so i will now focus on polishing and bugfixing. Gonna really need feedback now (: Maybe release 1.0 some day ...
Not until we fix #3161aubergine wrote:Nullbot should be bundled with the game
I also could use some ideas on how to implement difficulty levels. Right now i think that "Easy" should be something like the "Generic" personality i just removed (but i think i still have the code), with all sorts of adaptation disabled, "Medium" should be focusing research, but with all adaptation still disabled, and "Hard" should be the best AI i managed to make. Insane will differ from Hard only by some hard-coded cheats (eg., starting with defenses).
I think the classic AI should remain, simply for it is classic; on the other hand, i have no idea what a "classic" is, cause i came to know about the game only a couple of years ago. By the way: i just had an idea to make a mod that has all personalities in it, but removes the Nexus/Semperfi AIs from the list. We will have just enough widget space (see also #3147) for thataubergine wrote:replacing Nexus IMHO.
Last edited by NoQ on 23 Feb 2012, 19:38, edited 2 times in total.
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
-
effigy
- Regular

- Posts: 1217
- Joined: 22 Jan 2010, 03:21
Re: NullBot: an adaptive skirmish AI for v3.1+
IIRC the Nexus AI does get updates from time to time. It appears to me that it now at least sends out larger attack groups then I remember. We probably need cheating AI's if there's a future for survival maps.
This is why some features aren't implemented: http://forums.wz2100.net/viewtopic.php?f=30&t=7490&view=unread#p87241
-
aubergine
- Professional

- Posts: 3462
- Joined: 10 Oct 2010, 00:58
Re: NullBot: an adaptive skirmish AI for v3.1+
If Ai difficulty is set to insane, would it be worth checking to see if there you own oil derricks (pre-placed in base) and if so build a power gen before the HQ? Will mean you're getting power in sooner from up to 4 gens.
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
-- https://warzone.atlassian.net/wiki/display/GO
-
Shadow Wolf TJC
- Regular

- Posts: 1047
- Joined: 16 Apr 2011, 05:12
- Location: Raleigh, NC
Re: NullBot: an adaptive skirmish AI for v3.1+
Perhaps, after a certain amount of time passes since the match begins, you could have your AI switch its research priorities so that it could better time its acquisition of AA weapons to just before VTOLs could possibly be researched?NoQ wrote:In fact, there are few things that got worse. For example, it now actually fails to even research any AA before the enemy produces VTOLs. And every time i try to make him give at least some minimal priority to AA research, it starts researching it way too early (when it is usually a deadly mistake to research it).
Creator of Warzone 2100: Contingency!
Founder of Wikizone 2100: http://wikizone2100.wikia.com/wiki/Wikizone_2100
Founder of Wikizone 2100: http://wikizone2100.wikia.com/wiki/Wikizone_2100
-
NoQ
- Special

- Posts: 6226
- Joined: 24 Dec 2009, 11:35
- Location: /var/zone
Re: NullBot: an adaptive skirmish AI for v3.1+
I don't think so. Starting with a power gen is always a bad idea; your starting power is enough to do something more useful than that. We don't start with power gen not only because we don't own oil derricks yet, but also because anybody who has 1000 extra power unspent is already dead.aubergine wrote:If Ai difficulty is set to insane, would it be worth checking to see if there you own oil derricks (pre-placed in base) and if so build a power gen before the HQ? Will mean you're getting power in sooner from up to 4 gens.
Yeah, one of the ideas is to introduce some new entities like "timed research" (research something at nth minute) or forced research (always research Y after we occasionally researched X). Another idea is to add AA techs to the weapon branches (for example, insert Sunburst to some point into rocket research, or add Hurricane with a few upgrades into MG tech).Shadow Wolf TJC wrote:Perhaps, after a certain amount of time passes since the match begins, you could have your AI switch its research priorities so that it could better time its acquisition of AA weapons to just before VTOLs could possibly be researched?
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
-
aubergine
- Professional

- Posts: 3462
- Joined: 10 Oct 2010, 00:58
Re: NullBot: an adaptive skirmish AI for v3.1+
@NoQ - on INSANE AI difficulty, no structures are removed at start of game. So, for example, on your "Frozen" map, nullbot will have 4 derricks, which it owns, already built right from the start of the game. If it built just one power gen, it would be getting oil from them from the outset. So maybe a FRPCRF sort of build order?
Also, nullbot is building some very outdated radars late in to the game:

Also, nullbot is building some very outdated radars late in to the game:

"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
-- https://warzone.atlassian.net/wiki/display/GO
-
NoQ
- Special

- Posts: 6226
- Joined: 24 Dec 2009, 11:35
- Location: /var/zone
Re: NullBot: an adaptive skirmish AI for v3.1+
No, i think he'd better build some tanks or research 30 seconds earlier. Though it may be worth thinking about. What we are really lacking is different build orders for different starting tech levels; it's currently really crappy when starting at T3/no bases.aubergine wrote:So maybe a FRPCRF sort of build order?
Yeah, i think i already fixed it locallyaubergine wrote:Also, nullbot is building some very outdated radars late in to the game:
Last edited by NoQ on 24 Feb 2012, 07:02, edited 1 time in total.
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
-
NoQ
- Special

- Posts: 6226
- Joined: 24 Dec 2009, 11:35
- Location: /var/zone
Re: NullBot: an adaptive skirmish AI for v3.1+
v0.28
Changes:
(gonna need UNIX shell, of course ... but afaik git for windows uses cygwin anyway) Anybody wants an rw account? (: There is also a wiki present on sourceforge, which is now empty, and it is planned to be filled with some description of how NullBot works.
Changes:
- Fixed broken challenges, add "[NullBot] Hide Behind Me" challenge to the extra package (a remake of the original Hide Behind Me challenge with NullBot ~MR~ as your allies).
- Force AI to research anti-air defenses even when no VTOL threats are present.
- Add hardened sensor towers to the fundamental research path.
Code: Select all
git clone git://git.code.sf.net/p/nullbot2100/code nullbot2100-codeMaps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
-
dak180
- Trained

- Posts: 288
- Joined: 01 Nov 2009, 23:58
- Location: Keeper of the Mac Builds
Re: NullBot: an adaptive skirmish AI for v3.1+
Very nifty.NoQ wrote:Also, following the suggestion of dak180, i posted NullBot on sourceforge, which means we're now having a git repository.
User:dak180
Keeper of the Mac Builds
Keeper of the Mac Builds