[3.1+] NullBot: an adaptive skirmish AI

Did you create a mod, map, music, or a tool? Present them here and earn feedback!
Note: addon requests do not belong here.
Note, everything uploaded to this forum, MUST have a license!
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: NullBot: an adaptive skirmish AI for Warzone 2100 v3.1+

Post by NoQ »

v1.21: yet even more code optimization.

I just switched to safeDest() when there are too many oils available for capturing; even though this function is known to be inaccurate, the time gap at which its inaccuracy causes problems is very narrow (you don't have over 20 free oils on map too often).
Giani wrote:
NoQ wrote:
I saw that nullbot doesn't make any repair facility
Works for me. Map? Save?
Probably 5 facilities are already present, so he can't make more?
The map was Gear9 and he didn't have any facilitie.
Still can't reproduce. Most of them made repair facilities during the first 10 minutes, and one of them even put it straight in the middle of the map:
You do not have the required permissions to view the files attached to this post.
User avatar
Giani
Regular
Regular
Posts: 804
Joined: 23 Aug 2011, 22:42
Location: Argentina

Re: NullBot: an adaptive skirmish AI for Warzone 2100 v3.1+

Post by Giani »

Giani wrote: The map was Gear9 and he didn't have any facilitie.
NoQ wrote:Still can't reproduce. Most of them made repair facilities during the first 10 minutes, and one of them even put it straight in the middle of the map:
Second time... :|
My maps: http://forums.wz2100.net/viewtopic.php?f=10&t=9501
User avatar
Tenoh
Trained
Trained
Posts: 359
Joined: 18 Nov 2008, 15:06

Re: NullBot: an adaptive skirmish AI for Warzone 2100 v3.1+

Post by Tenoh »

NoQ wrote:Tenoh: Hardware? AI version? Exactly what map? Bases? Scavengers?
map :NTW10-T1
no scavengers
bases? dont get it
ai: nullbot 1.17
game : 3.1 b7
amd dual core.8gb ram.hd6670
"No, you don't want to buy this Sh[beep]t from me. It shoots sideways, it was built by retard zombies in some f[beep]king outreach program." HL:G
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: NullBot: an adaptive skirmish AI for Warzone 2100 v3.1+

Post by NoQ »

bases? dont get it
no bases, medium bases, advanced bases. How much the map is filled with structures at the start of the game?
Anyway, 1.21 should be much faster, and i'm not sure what to optimize next.
Giani wrote:Second time... :|
You were right the first time (though the case was pretty complicated, eg. it started to break after a save/load, but i don't save/load too often to notice).
User avatar
Tenoh
Trained
Trained
Posts: 359
Joined: 18 Nov 2008, 15:06

Re: NullBot: an adaptive skirmish AI for Warzone 2100 v3.1+

Post by Tenoh »

advance bases then.
and i think it has something to do with graphics as if i switch from wz to desktop, it doesn freez in backround.
"No, you don't want to buy this Sh[beep]t from me. It shoots sideways, it was built by retard zombies in some f[beep]king outreach program." HL:G
User avatar
Giani
Regular
Regular
Posts: 804
Joined: 23 Aug 2011, 22:42
Location: Argentina

Re: NullBot: an adaptive skirmish AI for Warzone 2100 v3.1+

Post by Giani »

Bug whit pathfinding.
I saw nullbot trying to atack the enemy by going on a mountain before of that.(a mountain whit an allied derrick)
You do not have the required permissions to view the files attached to this post.
My maps: http://forums.wz2100.net/viewtopic.php?f=10&t=9501
User avatar
Giani
Regular
Regular
Posts: 804
Joined: 23 Aug 2011, 22:42
Location: Argentina

Re: NullBot: an adaptive skirmish AI for Warzone 2100 v3.1+

Post by Giani »

Bugs of nullbot when researching:
(even if it isn't a bug it would be better that he improves materials of structures and defences instead of cannons when he is a MR nullbot)
You do not have the required permissions to view the files attached to this post.
My maps: http://forums.wz2100.net/viewtopic.php?f=10&t=9501
User avatar
aubergine
Professional
Professional
Posts: 3462
Joined: 10 Oct 2010, 00:58

Re: NullBot: an adaptive skirmish AI for Warzone 2100 v3.1+

Post by aubergine »

IIRC you need to research some cannons to get certain other techs. The MR nullbot has a specific list of research goals and it will research whatever it needs to get there.
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
Giani
Regular
Regular
Posts: 804
Joined: 23 Aug 2011, 22:42
Location: Argentina

Re: NullBot: an adaptive skirmish AI for Warzone 2100 v3.1+

Post by Giani »

aubergine wrote:IIRC you need to research some cannons to get certain other techs. The MR nullbot has a specific list of research goals and it will research whatever it needs to get there.
I know, but that was an advanced cannon tech, and nullbot even wasn't getting mortars.
My maps: http://forums.wz2100.net/viewtopic.php?f=10&t=9501
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: NullBot: an adaptive skirmish AI for Warzone 2100 v3.1+

Post by NoQ »

Bug whit pathfinding.
Unfortunately, i can't control pathfinding with the current JS api.
Bugs of nullbot when researching:
Nice one, probably some hurricane damage upgrade requires that. Is it generic (that happened to be MR) or the MR from extras?
User avatar
Giani
Regular
Regular
Posts: 804
Joined: 23 Aug 2011, 22:42
Location: Argentina

Re: NullBot: an adaptive skirmish AI for Warzone 2100 v3.1+

Post by Giani »

NoQ wrote:Is it generic (that happened to be MR) or the MR from extras?
MR of extras.
My maps: http://forums.wz2100.net/viewtopic.php?f=10&t=9501
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: NullBot: an adaptive skirmish AI for Warzone 2100 v3.1+

Post by NoQ »

All right, i just caught the AA accuracy upgrade that requires howitzers, but i still have no idea what caused cannon research :dontknow:
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: NullBot: an adaptive skirmish AI for Warzone 2100 v3.1+

Post by NoQ »

v1.22.

Changes:
  • Don't make too many unnecessary fallbacks with attack groups
    • probably decreases traffic jams too
  • ~MR~: Remove some AA accuracy upgrades from the research tree, since they require howitzer accuracy upgrades
    • still couldn't fix the unwanted cannon research problem mentioned by Giani
  • Probably fix the bug with adding too many tanks to defend group under certain conditions
  • Scavenger AI: use DORDER_SCOUT for attacks, since some problems with it were either fixed or my imagination
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: NullBot: an adaptive skirmish AI for Warzone 2100 v3.1+

Post by NoQ »

Here is a little bit of promotional video.

New players will be surprised how quickly the AI may be defeated, but the older players will be surprised to see that he survived for so long (:
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: NullBot: an adaptive skirmish AI for Warzone 2100 v3.1+

Post by NoQ »

v1.23.

Changes:
  • Anti-traffic-jam mechanism fixes. Most importantly, don't rush trucks to enemy base and don't keep sending units to repair when trying to unstuck.
  • Turtle AI: fix broken defenses recycling code, on master don't try to defend gateways that belong to the enemy.
  • Fix a problem that caused capturing oils in a weird order.