[AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+

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!
MIH-XTC
Trained
Trained
Posts: 368
Joined: 31 Jan 2014, 07:06

Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+

Post by MIH-XTC »

Prot wrote:
Cyp wrote:On an unrelated note, does anyone happen to know anything about that weird wz2100_bot that seems to keep joining every hosted game?
Yep, this is mine, i recreated the network Protocol in php, the bot connects to the created game on the side of the player, and collects detailed information on the settings of the created game. Like start with base, alliances, energy, scavs, players and their rangs.
http://wz2100.euphobos.ru/
Because the master server Protocol is too simple and does not contain the necessary information about created games.
I just don't see another way how I can still conveniently provide information to those who are interested, but who are too lazy to run the game client.
I think it's nice that you made that, I think it would be cool to have that information and game statistics integrated with this web site if possible. It creates an incentive for people to play multiplayer. For about a year I've been using this one http://www.orbitcd.com/wzlobby/ I don't know who made it, I forget. I know Subsentient/Bendid also made a bot to gather game stats too.

As for game simulations, I assume you are using a BASH script to launch WZ with parameters to go directly into game and bypass menus? I've always wondered if that was possible. You can share code with
Spoiler:
User avatar
Prot
Trained
Trained
Posts: 242
Joined: 29 Nov 2010, 12:41

Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+

Post by Prot »

User avatar
Berserk Cyborg
Code contributor
Code contributor
Posts: 938
Joined: 26 Sep 2016, 19:56

Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+

Post by Berserk Cyborg »

Prot, do you have a master compatible version of BoneCrusher? The 2.2 release throws errors with production and some other areas.
User avatar
Prot
Trained
Trained
Posts: 242
Joined: 29 Nov 2010, 12:41

Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+

Post by Prot »

Yes, just yesterday I finished working on a new one.
http://wz2100.euphobos.ru/wzait/
It is in the last stage of testing, I think tomorrow I will publish
User avatar
Prot
Trained
Trained
Posts: 242
Joined: 29 Nov 2010, 12:41

Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+

Post by Prot »

Release v2.3: Enhanced team play
bonecrusher_v2.3.wz
(71.11 KiB) Downloaded 275 times
Shortlist:
  • new: He know, if his ally another BoneCrusher AI, and start way better team play
  • new: Can play now with settings "Start with bases" and "advanced bases"
  • new: Support master version of the Warzone2100
  • tweak: Now can handle not standart start on the maps, where from the start the builders are scattered on the map in different places (like warcon_jungle-T1)
  • tweak: Now can choose way to play, when enemy start position far or close
  • tweak: Smarter choose body for produce warriors
  • tweak: Smarter choose weapons for produce warriors
  • tweak: Even better play on island maps
  • tweak: Many tweaks of builders, targets, produce modules
  • fix: Bug with idle production units in some cases now fixed
  • fix: Fixed a bug where very little produced medium bodies
  • fix: Now it does not lag very long at the start of the game with an advanced base
  • fix: Sometimes wrong determined enemy/spectator on maps with spectators, now the more accuracy detects
  • fix: Now correctly handles if he himself or an ally has been kicked from the match
  • fix: Fixed very rarely errors in stdout, where trying build defence off the edge of map
WZ AI T
wzait.png
wzait.png (180.76 KiB) Viewed 10597 times
Note:
  • All algorithms of the bot work at the level of difficulty HARD+ and game version 3.2+
  • Some algorithms are disabled on NORMAL, and even more disabled on EASY
  • Many algorithms don't work in game version 3.1.5 and due this disabled by default on any difficulty level
  • After long tests and autotests in 3.2+ just before release i found that in 3.1.5 on island map he is play very-very poorly, i don't want to rework again for support 3.1.5, sorry..
    ...but in other situations in 3.1.5 he plays quite not poorly
  • I think this is my last work on BoneCrusher with support for the old version of the game 3.1.5

PS: Can some moderators pls add link to DIR of the releases bots to the start topic? Or give me edit access only to this my topic?
BoneCrusher's releases: http://wz2100.euphobos.ru/bonecrusher
Last edited by Prot on 25 Jun 2018, 07:57, edited 1 time in total.
User avatar
Berserk Cyborg
Code contributor
Code contributor
Posts: 938
Joined: 26 Sep 2016, 19:56

Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+

Post by Berserk Cyborg »

I noticed we made the same build logic mistake. If our bots are on a T2/T3 no bases setting, they will likely not have enough power to build the first power generator.
User avatar
Prot
Trained
Trained
Posts: 242
Joined: 29 Nov 2010, 12:41

Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+

Post by Prot »

Wow, i don't check T2 and T3 since it really disbalanced, and i don't known any people who play that settings)

upd: i'm fix this in boncrusher-master https://github.com/EuPhobos/bonecrusher ... master.zip
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+

Post by NoQ »

Yeah, that's an annoying thing to implement; you need to avoid research and war droid production until you have a reasonable supply of power. I played T3 turtling games a lot back when i was a noob, and i suspect there are more people like me. So i guess it's not worth it to spend too much time coming up with a competitive build order for this setup, simply starting with a power generator and some derricks should be enough for most practical purposes.
User avatar
Prot
Trained
Trained
Posts: 242
Joined: 29 Nov 2010, 12:41

Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+

Post by Prot »

Oh.. I made a gross mistake in the logic that prevented the team playing bots..

Release v2.3.1: Enhanced team play (fix)
bonecrusher_v2.3.1.wz
(71.37 KiB) Downloaded 259 times
Changes:
  • new: Can play on maps T2/T3 with settings "Start without bases"
  • fix: An error in which AI BoneCrushers did not help each other
User avatar
Prot
Trained
Trained
Posts: 242
Joined: 29 Nov 2010, 12:41

Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+

Post by Prot »

Release v2.4: Fix and Tweaks
bonecrusher_v2.4.wz
(72.55 KiB) Downloaded 309 times
Shortlist:
  • fix: Fixing build order on difficulty INSANE which broke in the version 2.3.1
  • tweak: On difficulty INSANE and maps type High Oil use more expancive defences
  • tweak: Some improvement in builder module
  • tweak: Some improvement in research path's
  • tweak: Some improvement in targeting regular army
  • tweak: Some improvement in targeting VTOL's
  • tweak: Now experimental control function of the main army for High Oil map types, which has new in version 2.2 works and on NORMAL difficulty, but less agressive.
Note: On game version 3.1.5 not tested at all, sorry.
User avatar
WZ2100ModsFAn
Trained
Trained
Posts: 371
Joined: 15 Apr 2018, 17:25
Location: United States.

Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+

Post by WZ2100ModsFAn »

Prot wrote:Note: On game version 3.1.5 not tested at all, sorry.
i gave the ai a try on 3.1.5 then it sits there and does nothing
User avatar
Prot
Trained
Trained
Posts: 242
Joined: 29 Nov 2010, 12:41

Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+

Post by Prot »

WZ2100ModsFAn wrote: 05 Jul 2018, 14:39 i gave the ai a try on 3.1.5 then it sits there and does nothing
Yep, the last working version for wz3.1.5 is BoneCrusher v2.2
I quick look to code, and don't see any problem, it's need more time to investigate why it doesn't work with 3.1.5
Most likely somewhere I forgot to make branches of if-else for 3.1.5 version, and for it functions intended only for 3.2+ work
Maybe some time later i'l fix that.
But at the moment most of the logic of the bot from v2.2 is designed for 3.2+ so I don't think there will be much difference in bot behavior between v2.2 and v2.4+ specifically on the game version 3.1.5
Definitely a BoneCrusher of one version for version 3.2.3 will be much smarter than it self for version 3.1.5
User avatar
Prot
Trained
Trained
Posts: 242
Joined: 29 Nov 2010, 12:41

Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+

Post by Prot »

Release v2.5: Still alive
bonecrusher_v2.5.wz
(72.89 KiB) Downloaded 251 times

Shortlist:
  • Fix for 3.1.5: now it works again
  • Fix for 3.3.0-beta1: it works
  • tweak Increased base construction radius
  • tweak Reduced bravery of the army on High Oil maps
  • tweak Roll back changes in the choice of body production
QA: Will the bot on version 3.3.0-beta1 pick up artifacts from enemy bases? - Nope
User avatar
Prot
Trained
Trained
Posts: 242
Joined: 29 Nov 2010, 12:41

Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+

Post by Prot »

History of "BoneCrusher!" bot:
https://wz2100.euphobos.ru/bc/
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+

Post by NoQ »

Hmm, did you try automatic team vs. team matches in the AI tournament? Or free-for-all games.
Post Reply