[AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+
Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+
I just downloaded 2.1 and can not play it. It makes the game (3.2.3) lag and the longer the game runs the more the lag until it locks up all together. Maybe I should not play with 7 bots but it lags in 2 player also.
Tried it with 3.1.1 and got the same.
Tried it with 3.1.1 and got the same.
Transmission ends ...
- Berserk Cyborg
- Code contributor
- Posts: 938
- Joined: 26 Sep 2016, 19:56
Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+
If it helps, I did a 4v4 AI test (all normal difficulty) on the map mero_WarPaths and attached the logs. Some of your averages get really high (~50000 in some cases) while the worst column can be almost 1/4 of a second. eventResearched, eventDroidIdle, and eventStructureBuilt are the ones I remember being bad with performance. Not that my bot has amazing performance, but I think a goal of 5ms should be the max of any one function.
Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+
Can you say, how much RAM you have, what a CPU, and OS?JimmyJack wrote:I just downloaded 2.1 and can not play it. It makes the game (3.2.3) lag and the longer the game runs the more the lag until it locks up all together. Maybe I should not play with 7 bots but it lags in 2 player also.
Tried it with 3.1.1 and got the same.
Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+
Tech Support Guy System Info Utility version 1.0.0.4
OS Version: Microsoft Windows 10 Home, 64 bit
Processor: Intel(R) Pentium(R) CPU N3540 @ 2.16GHz, Intel64 Family 6 Model 55 Stepping 8
Processor Count: 4
RAM: 3985 Mb
Graphics Card: Intel(R) HD Graphics, -2039 Mb
Hard Drives: C: 446 GB (398 GB Free); D: 18 GB (1 GB Free);
Motherboard: Hewlett-Packard, 233F
Antivirus: Windows Defender
OS Version: Microsoft Windows 10 Home, 64 bit
Processor: Intel(R) Pentium(R) CPU N3540 @ 2.16GHz, Intel64 Family 6 Model 55 Stepping 8
Processor Count: 4
RAM: 3985 Mb
Graphics Card: Intel(R) HD Graphics, -2039 Mb
Hard Drives: C: 446 GB (398 GB Free); D: 18 GB (1 GB Free);
Motherboard: Hewlett-Packard, 233F
Antivirus: Windows Defender
Transmission ends ...
Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+
Btw you can code it so that your console prints are only enabled in cheat mode. `eventCheatMode()` helps figuring out if it is on. If you want to print stuff at start of the game, you can delay them by like 10 seconds by changing `debug(string_to_print)` to eg. `queue("debug", 10000, string_to_print)` (hope it works) so that you had time to press shift+backspace. This way you can still read them but regular users aren't distracted.
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+
Thanks, it's good way to enable debug when it needs during the gameNoQ wrote:`eventCheatMode()` helps figuring out if it is on.
Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+
please, use english version the info overlay.Prot wrote:W.I.P.
https://youtu.be/rza-mLYjmTw
vaut ΣΑ [GN], ru streamer.
Tournaments channel: https://www.youtube.com/channel/UCzusNa-54ydodtSz2TdHFww
Tournaments channel: https://www.youtube.com/channel/UCzusNa-54ydodtSz2TdHFww
Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+
Release v2.2: Better, faster, smarter
Changes:
For both game v3.1.5 and v3.2.3:
In the AI championship (WZ AI T) it is already distinguished by the ratio of victories and defeats among other bots. Much of the planned in this release, I did not have time to finish for my vacation. I'll put it on hold for the next release.
This is one of the penultimate versions with support for 3.1.5, in the future I plan to give up support for 3.1.5 and focus on performance.
Changes:
For both game v3.1.5 and v3.2.3:
- new: Now can play on islands maps
- fix: Did not capture the oil on the maps, where the allies begin to come close to each other
- fix: Now the Builder determines if the oil rig or barrel is built inside the trees or rubbish, and does not stand near it forever
- fix: Secondary search construction group in idle state not idling, and helps the main builders inside the base
- fix: Fixed a rare errors in events.js, while try to move a group of "hunters" from empty group "buildersMain"
- fix: Fixed a rare errors in builders.js, while try to sort unused oil, if fully captured maps.
- tweak: If it plays with a small amount of energy, then do not waste energy and do not build the latest module at the factory
- tweak: If it plays with a small amount of energy, do not waste the remaining energy on all available laboratories
- tweak: Do not produce anymore heavy flamethrower, it is too slow
- tweak: Main army while collecting half of the troops begins to act
- tweak: Finishing the remaining enemy builders at the end of match
- tweak: After a partially destroyed base, now restores the base on the basis of available resources and the situation
- changes: Rewritten the main function that killed performance, filling the cache variable (optimization)
- HARD+ tweak: Do not use weak research paths
- HARD+ tweak: Do not use slow buildorders
- HARD+ tweak: Additional logic and a microcontrols for the army and builders (there may be some loss of performance)
- HARD+ tweak: Builders build more defensive towers, strengthening strategic points
- new: The army is made up of hovers
- new: Does not build many wheel builders
- new: Does not build a lot of laboratories, if under the control of little oil
- new: A different logic of redistribution of groups of builders
- new: Remove all research from path related to cyborgs
- 3.2+ new: Replacement builders on hovers, selling old
- 3.2+ new: Now he can share units with a partner on the team
- 3.2+ new: Collects the barrels by the builders, if they are visible
- new: New buildorder for NTW-style maps
- new: Secondary army group has different attack and intelligence logic
- new: Builders build defensive towers in places of skirmishes of armies
- 3.2+ HARD+ new: New experimental control function of the main army (stacks, retreats, waitings, better performance)
In the AI championship (WZ AI T) it is already distinguished by the ratio of victories and defeats among other bots. Much of the planned in this release, I did not have time to finish for my vacation. I'll put it on hold for the next release.
This is one of the penultimate versions with support for 3.1.5, in the future I plan to give up support for 3.1.5 and focus on performance.
Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+
How were you able to simulate so many games played? You have simulated over 50,000 games??
Eventually I want to make a neural net for Nexus in Python but one problem is that it will require simulation of several thousand games. Right now I do manual simulations with autogame on but it's way too slow to collect enough game data to train a neural net because each game I have to go through the menus to relaunch it. I need to figure out if I can automate several game simulations with no human interaction so that I can collect data while I'm away.
Eventually I want to make a neural net for Nexus in Python but one problem is that it will require simulation of several thousand games. Right now I do manual simulations with autogame on but it's way too slow to collect enough game data to train a neural net because each game I have to go through the menus to relaunch it. I need to figure out if I can automate several game simulations with no human interaction so that I can collect data while I'm away.
Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+
The match goes from 30 seconds to two minutes, averaging a minute. The game match is from 15 minutes to 2 hours, when the bots got stupid. It turns out 50,000 games somewhere for a month. I have already longer spin scripts and autogame running on server 24/7.MIH-XTC wrote:How were you able to simulate so many games played? You have simulated over 50,000 games??
Eventually I want to make a neural net for Nexus in Python but one problem is that it will require simulation of several thousand games. Right now I do manual simulations with autogame on but it's way too slow to collect enough game data to train a neural net because each game I have to go through the menus to relaunch it. I need to figure out if I can automate several game simulations with no human interaction so that I can collect data while I'm away.
Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+
It would be nice if you published your scripts, so that other people could use them as well.Prot wrote: [...] The match goes from 30 seconds to two minutes, averaging a minute. The game match is from 15 minutes to 2 hours, when the bots got stupid. It turns out 50,000 games somewhere for a month. I have already longer spin scripts and autogame running on server 24/7.
Besides, will your website soon be online again?
Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+
Some scripts are outright bad code, and I am ashamed to show them. I've been asked to show code parsing maps in layers, still can not reach the hands to put in order code. As soon as I put in order immediately publish on githubForgon wrote:It would be nice if you published your scripts, so that other people could use them as well.
Besides, will your website soon be online again?
By the way, my site is already online, there were problems with the Registrar.
Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+
On an unrelated note, does anyone happen to know anything about that weird wz2100_bot that seems to keep joining every hosted game?
Re: [AI] "BoneCrusher! 2" bot player for 3.1.5 and 3.2+
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.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?
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.