r/Gladiabots • • Oct 15 '26

1 code to do it all

Just downloaded the game again and immediately got pulled into a long time project I had been working on. One code that does everything.

This is what I have and there are a few things it still struggles with:

1) when it goes to claim a neutral base and gets there at the same time as an enemy they sometimes just stare at each other and no one claims the base. This has stalled and lost me many matches.

2) when an enemy MG gets the forcefield point in the middle of the 4 base map it wrecks me and I can't recover.

Any way to fix these issues with what I have that you can share would be appreciated. Also if I'm wasting my time and there is already a layout that does all this better feel free to share or message me something better that I can use 😁

17 Upvotes

6 comments sorted by

8

u/GenuineDickies Oct 15 '26

Wow. People are still playing this? Right on. I was thinki g of giving it another go.

5

u/Jahck37 Oct 15 '26

Yea I come back to it every now and then, there's still people active in the discord too.

4

u/jsnlxndrlv Oct 15 '26

Thanks for the guide—I don't remember having the problems you describe in my own (otherwise pretty bad) routine, so I'll have to see if I need to incorporate any ideas from that one into this. If I find something that works better, I'll let you know.

3

u/Jahck37 Oct 16 '26

Absolutely, I don't mind sharing all my codes I think keeping them secret is silly, that's part of the fun

3

u/jsnlxndrlv Oct 16 '26

I definitely see what you meant about units sometimes just staring at adjacent enemies. I think you need to move the All Continue Attack sub-AI into the main ALL page and position it ahead of the connection to All Match, and perhaps add a few criteria to begin attacking an enemy at close range— I'm allowing bots to attack new enemies at that point if they're in close or medium range while the evaluating bot is in close range to a base, a resource, or a strategic objective, or if the enemy bot is already being attacked by another ally.

With tweaks like those, this AI routine has allowed me to climb past the point I'd stalled out for elimination and domination pretty significantly, but I had already reached the level 6 campaign collection stages, and I still can't get past the one I'm stuck on. The enemy is too effective in their aggression, or perhaps my retreat rules need to be modified for this stage. It's tricky.

3

u/Astindal- Oct 16 '26

thank you!