Newbie AI

User avatar
Den
Script
Script
Posts: 20

Newbie AI

Post#1 » 21 Aug 2018, 16:31

Hy all.

I'm a new player in this wonderfull game (well, elder new, i've have the game register on my google account since 3 years i believe).

For the moment, i have make this AI and passing the campaign easily (chapter 5 for the moment).

I just wonder if i can make it better (yeah, i know, you can always make it better ^^).

https://i.imgur.com/a9r2O8M.png

darktheatre
Script
Script
Posts: 34

Re: Newbie AI

Post#2 » 24 Aug 2018, 15:24

good

peasant
Hello World
Hello World
Posts: 2

Re: Newbie AI

Post#3 » 24 Aug 2018, 15:42

Do you find your bots are changing targets a lot? May be better to front load your "attack enemy already attacking" script? Otherwise looks pretty solid to me (but I'm no expert)

Meka_streisand
Hello World
Hello World
Posts: 9

Re: Newbie AI

Post#4 » 24 Aug 2018, 22:22

Hi, I'm a newcomer to Gladiabots too

First of all, thank you for sharing your work with us, to be honest there is not a lot of up to date content available for the moment so it's nice to see others people view of the game.

My current AI is also blocked at the level 5 of the chapter 5 (and 1300 in the arena). So i did copy yours, hope you don't mind.
I have some questions about it:
You only use Assault bot for the campaign ? I am currently trying all of them to get use to their possibilities
plus it doesn't feel possible at first to finish campaign only with Assault.

Do you try to keep your scheme with the lowest node possible ? I'm quite impressed, because it really did well in the first level of the Chapter 5 when I've tried it. I'm currently struggling with 80ich nodes or something, I might be doing something wrong :oops: !

It feels like this AI is only made for campaign, do you use it for Arena as well or do you have separate AI ?

Some stuff in your implementation still bugs me, You focus your fire after you chose your target and not the other way around ? You do some targetting then some grab/move then some targetting and then some move again, why not to group them ?

Anyway thank you again :D

User avatar
Den
Script
Script
Posts: 20

Re: Newbie AI

Post#5 » 25 Aug 2018, 01:14

Hi !

I'm using a mix of bot (always trying to go with only assault first, then change if needed) but with some "experimental treee" for the other AI.

I don't play at all on arena (i never play competitive game, even in overwatch ^^) so i never have to face too "human-ish" AI.

And for the few node... I'm really new in this game (and never ever get my hand on coding) so i try to keep it simple, for my own comprehension purpose !
To many node (and twist) is bugging me !
This is why i make mistake.
For the first grab, it's here to try to score even if all the EI are still present. But yeah, i can delete the last node on this tree i think...

Thanks for lighting this !

On the other hand, i have huge trouble to understand the right path of the target system.
As Peasant say, they change a lot of target and make this build sometime less powerful than i hope.

Meka_streisand
Hello World
Hello World
Posts: 9

Re: Newbie AI

Post#6 » 25 Aug 2018, 04:00

Oh! thanks for answering my questions, it make a lot more scene now.
If you try some other units, even just once in a while, then you should really decorate your tree with some self check on bot class cause targetting and focusing your fire varies a lot with the class ( look at the AI class aware bot in the tutorial for example) and then go to the arena it will teach you a lot and its fun !

For the focus thing, go and look a bit before here, there is a topic about layers, mine are Drop,retreat,score,focus,target,catch,push & dance (because it's seems to be a thing, you apparently have to make your bot dance at the end of the combat ;) )

In that order (attack enemy i'm already attacking) you want your bot to check if he should keep firing on the bot he previously targetted or if not look who to target next.

Layers are doing great so far (as its always do in programming), it allows you to isolate the bot behaviour, so if he does something you don't like (or an unexpectedly good thing) it's easier to debug, understand, modify.

And finally watch
https://www.youtube.com/watch?v=r762CJ6 ... Fau25XyxBR
8 videos that really helps me a lot.
(and if not done yet, read the bible of maxims as well)

Meka_streisand
Hello World
Hello World
Posts: 9

Re: Newbie AI

Post#7 » 25 Aug 2018, 05:07

To illustrate here is your AI but cut into layers

Image

The modification made in the retreat are just rubbish, I wanted your bot to stand more in the fight. but this is just a quick test. This bot goes form chapter 1 to chapter 3 right now.

The real point his how the bot his cut now into section that only old certain type of action node.

Hope this will help you.

User avatar
Den
Script
Script
Posts: 20

Re: Newbie AI

Post#8 » 26 Aug 2018, 01:35

Wow, nice work with your AI !
I will look at the youtube chanel ASAP too !

For the moment, i just launch miself in the ladder, and with this AI i'm right now in the gold league with 1 bot of each.

Image

For the moment, i'm not totaly ok with the behave of the "shotgun" bot.

Meka_streisand
Hello World
Hello World
Posts: 9

Re: Newbie AI

Post#9 » 26 Aug 2018, 20:29

Good, welcome to the arena, where the fun begins ;)

Before everything what i did with your AI was just an over exaggerated version of it to make my point about cutting things (and a good example of what not to do to retreat! ) and separate scoring and catching is probably a bad idea anyway.

About yours, its good over all, a very good start i think plus a lots of good things you can start to work on.

Oh and yes you don't like your shotgun yet, of course it's the most complicated bot class (i think).
But he is the only one to do what he do. and he can do a lot. so learn to cherish him and he'll soon become your MVP.

Now some though for your AI.
Shotgun is a coward he needs to flee more, two enemy targetting him, bam! you run, but come back quick to disrupt them again.
Don't try to make him engage combat at medium range too often he is good at short range but if you put him too much in danger he dies in a blink.

Machine gun his tanky as hell, so not bad at caring resources at some point in the game (close to a resource and to an ally base, don't drop your resource too quick cause he gonna score anyway) and don't need to make him flee too much (like you already started to do).
He's so slow at aiming that you should consider focus fire on the enemy he is attacking at long range (if sheild his low even if fleeing this move will grind a bit of it's live bar and it can break and hold assault bot from pushing yours)

Sniper should stay and engage fight at long range and should also try to bring support to his friends in needs. (it's the bot class that a know less about for now so I don't have a lot of relevant things to say about him).

and for Assault well you already knows what to do ;)

Meka_streisand
Hello World
Hello World
Posts: 9

Re: Newbie AI

Post#10 » 28 Aug 2018, 00:17

Hello Den,
I post this, because I realise all the bad ideas I had about possible good practice to make a good AI or whatever.
Well first, All that grouping the actions nodes only by type is bad :lol:
If you want to mix everything, go for it! (i mean still group them but don't limit yourself to do it either) After facing the first match against 1400 - 1500 Elo player well it became clear that making simple check
at the higher part of my AI as sort of "layers" or whatever is stupid as well, and a very limiting idea.
So don't go for it, even the "if myself attacked" for retreat is not that great.

So now I'm gonna have to restart from scratch.
have fun

User avatar
Den
Script
Script
Posts: 20

Re: Newbie AI

Post#11 » 29 Aug 2018, 18:04

I work on a brand new AI (named SCP, free ressource for the one who catch de reference). I will post it later, but for now, i've realy enjoy it and it's fun to watch !

KiNASuki
Hello World
Hello World
Posts: 5

Re: Newbie AI

Post#12 » 01 Sep 2018, 13:43

Image
In the spirit of sharing (right click and view in new tab to see full version).. Here's my attack code that reached grandmaster league. The retreat code requires more work before I can share.

Feel free to ask whatever and I can try to explain if I can, or maybe help improve it :D

User avatar
Den
Script
Script
Posts: 20

Re: Newbie AI

Post#13 » 01 Sep 2018, 15:18

Wow, that's quite... Complexe to me oO
But i will look at it.

For the moment, i'm stuck in the plat league, with this AI
https://imgur.com/82UPxTv
https://imgur.com/aPozSaT
https://imgur.com/Z6wfBfP

I'm not realy happy with, there is major flaw in my game but for the moment i can't see how update it.

User avatar
Den
Script
Script
Posts: 20

Re: Newbie AI

Post#14 » 01 Sep 2018, 18:43

I want to try a tag system to prevent the strat that i use (tag low life Ei at range and all target tagged EI in priority) with something like this:

If myself was attacked by at least 3 EI tag myself 1.
If myself was attacked by at least 3 EI and tagged 1 and i am low life, then tag myself 2 and remove 1
If myself tagged 2, avoid contact and gather ressources until my score was superior at the number of ressources left.

I don't know if it's possible, but it il be prevent the focus tagged fire, offer gatherer to the middle/ending part of the match. (this is a big problem for me)

Beside that, can you explain the gather part of your AI ? I don't even understand it ><

pier4r
Skynet
Skynet
Posts: 3389

Re: Newbie AI

Post#15 » 01 Sep 2018, 19:51

Suggestion. Until GM (I would say, nowadays at least, up to 2100+) you may consider to avoid using tags.

Not because tags are not allowed or such. Rather because the task to produce a good tactic (n1) is already hard in itself, adding too many complexity layers (see tags) creates a more difficult task.

My suggestion is to find first a good core tactic. In discord people discussed and tested things and it seems that with 20-30 nodes per bot class (so 80-120 in total) one can reach GM. (no tags involved)

Once the core tactic is there, you can go to find refinements.

If, on the other hand, you have fun using tags, independently from the result. By all means have fun!

n1: the game is not about who can code what, as one can code beautiful stuff in the sandbox that is not that useful in battle. See viewtopic.php?f=7&t=1578 . Rather the game is about coding proper tactical behaviors
http://www.reddit.com/r/Gladiabots/wiki/players/pier4r_nvidia_shield_k1 -> Gladiabots CHAT, stats, insights and more ;

Meka_streisand
Hello World
Hello World
Posts: 9

Re: Newbie AI

Post#16 » 02 Sep 2018, 13:53

Hi Den,
Great work, keep going like that, your AI is simple and your layout is clean, cut and well organised. It's easy for everyone to read and understand it.
I agree with pier4r, you should not be messing around with tags for now, there is no need for this. a better core strategy is the key.

Just a little reminder that few days ago, coding was some sort of wizardry to you, and now you fight in higher league :D a good proof that this game is for everyone.

have fun!

ps: nice KiNASuki and thanks for sharing.

User avatar
Den
Script
Script
Posts: 20

Re: Newbie AI

Post#17 » 02 Sep 2018, 15:39

Thanks for the reply !
I like the concept of the tag, but not used them like others in higher league but i found it fun to play arround for learning purpose.

For the moment, my main issue was the "pushing" part and by following, the gathering.
As I do not push enough, I do not occupy the field enough and my opponent is free to gather as he sees fit.

But if i push more, i loose my bot.
I think i need to work arround the mouvement...

ElvenMonk
Neural Network
Neural Network
Posts: 238

Re: Newbie AI

Post#18 » 03 Sep 2018, 05:15

First check if your bots don't switch targets when they shouldn't. Split fire and prioritize enemy sniper.

Then refine retreatment taking into account how many enemies and of what types are aiming at bot.

Return to “Strategies”

Who is online

Users browsing this forum: No registered users and 2 guests