Page 3 of 4

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

Posted: 09 Feb 2018, 03:32
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:

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

Posted: 09 Feb 2018, 06:55
by Prot

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

Posted: 15 Jun 2018, 18:05
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.

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

Posted: 15 Jun 2018, 18:38
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

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

Posted: 16 Jun 2018, 12:51
by Prot
Release v2.3: Enhanced team play
bonecrusher_v2.3.wz
(71.11 KiB) Downloaded 280 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 10631 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

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

Posted: 20 Jun 2018, 19:49
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.

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

Posted: 20 Jun 2018, 19:53
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

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

Posted: 23 Jun 2018, 19:47
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.

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

Posted: 25 Jun 2018, 08:01
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 262 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

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

Posted: 05 Jul 2018, 09:09
by Prot
Release v2.4: Fix and Tweaks
bonecrusher_v2.4.wz
(72.55 KiB) Downloaded 311 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.

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

Posted: 05 Jul 2018, 14:39
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

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

Posted: 14 Nov 2018, 09:12
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

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

Posted: 21 Feb 2019, 15:43
by Prot
Release v2.5: Still alive
bonecrusher_v2.5.wz
(72.89 KiB) Downloaded 254 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

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

Posted: 01 Apr 2019, 07:56
by Prot
History of "BoneCrusher!" bot:
https://wz2100.euphobos.ru/bc/

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

Posted: 01 Apr 2019, 18:04
by NoQ
Hmm, did you try automatic team vs. team matches in the AI tournament? Or free-for-all games.