dumb.js: a simple PSO based AI that stronger than bonecrusher
Re: dumb.js: a simple PSO based AI that stronger than bonecrusher
Reason of forgotten can be vary, as lack of maintenance, no specialty, or simply hard to download
But for merged one, there is always maintenance, and exists with the game
Merged AI have one common: they are best of the time.
Maybe it's the only way to be merged...
But for merged one, there is always maintenance, and exists with the game
Merged AI have one common: they are best of the time.
Maybe it's the only way to be merged...
Re: dumb.js: a simple PSO based AI that stronger than bonecrusher
The map to test AI, not in map database:
- Attachments
-
- 3c-Ng-RO1v1Spec-a433e1a676a928260ba7474d29c48a7e908007ec908c71ab160325abbdf945b7.wz
- License: GPL 2+
- (9.67 KiB) Downloaded 100 times
Re: dumb.js: a simple PSO based AI that stronger than bonecrusher
dumb23: Rocket tweaks
It can beat all previous Insane bot with Rocket
It can beat previous Insane Rocket bot with Cannon
Now all chat commands starts with '!', like '!s1'
It will attack parallel
Build gate if power>2500 && enemy flamer ratio>60%
Build tracks if enemy mortar ratio>60%
Tweaked rocket path, complete Rocket ROF3 before 10 minutes, Tiger Body before 25 minutes
When uses cannon and against rocket, It will rush into enemy
Introduced behavior tree, but not enabled
(bugfix: truck build at edge of map)
It can beat all previous Insane bot with Rocket
It can beat previous Insane Rocket bot with Cannon
Now all chat commands starts with '!', like '!s1'
It will attack parallel
Build gate if power>2500 && enemy flamer ratio>60%
Build tracks if enemy mortar ratio>60%
Tweaked rocket path, complete Rocket ROF3 before 10 minutes, Tiger Body before 25 minutes
When uses cannon and against rocket, It will rush into enemy
Introduced behavior tree, but not enabled
(bugfix: truck build at edge of map)
- Attachments
-
- dumb23.zip
- (32.67 KiB) Downloaded 96 times
Re: dumb.js: a simple PSO based AI that stronger than bonecrusher
24: Low oil tweaks (only T1, rocket tested)
It can beat all previous Insane bot in land low oil
It can beat most Insane bot in hover low oil
Limit factory count in low oil
Take oil earlier and with less trucks
Build repair droid if no repair center
Better build position for terrain map
bugfix:
Infinite loop when destination of spamBuild unreachable
It can beat all previous Insane bot in land low oil
It can beat most Insane bot in hover low oil
Limit factory count in low oil
Take oil earlier and with less trucks
Build repair droid if no repair center
Better build position for terrain map
bugfix:
Infinite loop when destination of spamBuild unreachable
- Attachments
-
- dumb24.zip
- (45.8 KiB) Downloaded 80 times
Re: dumb.js: a simple PSO based AI that stronger than bonecrusher
Having an interest in the progress, I made a few tests on Sk-FishNets map with this bot.
The build order when using no bases, strongly advise changing this. This factor is causing it to lose the game. Other bots first make 2 facs, lab, then CC after but dumb24 makes lab, gen and CC first before any facs. As per this screenshot.
This delays trucks way too long or any other kind of unit production.
It lost against my arty-hackbot ( almost same as Cobra ) on Hard vs Hard.
On body weapon pairing, I saw Heavy Cannons being used on a Leopard body which is another thing to look at adjusting.
You'd want to match weight to body ratio is more appropriate.
With those tweaks it'll do much better on no base games.
( Getting a consistent HTTP error uploading the png file that is 1.5 MiB )
I see this though - "Maximum filesize per attachment: 10 MiB." - Maybe that message is out of date now?
The build order when using no bases, strongly advise changing this. This factor is causing it to lose the game. Other bots first make 2 facs, lab, then CC after but dumb24 makes lab, gen and CC first before any facs. As per this screenshot.
This delays trucks way too long or any other kind of unit production.
It lost against my arty-hackbot ( almost same as Cobra ) on Hard vs Hard.
On body weapon pairing, I saw Heavy Cannons being used on a Leopard body which is another thing to look at adjusting.
You'd want to match weight to body ratio is more appropriate.
With those tweaks it'll do much better on no base games.
( Getting a consistent HTTP error uploading the png file that is 1.5 MiB )
I see this though - "Maximum filesize per attachment: 10 MiB." - Maybe that message is out of date now?
Last edited by Tzeentch on 06 Sep 2024, 08:11, edited 1 time in total.
Re: dumb.js: a simple PSO based AI that stronger than bonecrusher
It only tested on full base, where already have 2 factories
For it's truck code, only structure count and power involved, other is ignored
I will fix it at next version
(The max file size is 1 MiB, convert the image to jpg to reduce size)
For it's truck code, only structure count and power involved, other is ignored
I will fix it at next version
(The max file size is 1 MiB, convert the image to jpg to reduce size)
Re: dumb.js: a simple PSO based AI that stronger than bonecrusher
I had a thought as well that, while droid order == move || retreat, to perform some terrain analysis as it moves to prefer moving over roads if seen and to avoid steep inclines where possible.
Also, consider factory orientation to face direction of produced units to local map gateway or enemy, relevant to position.
Also, consider factory orientation to face direction of produced units to local map gateway or enemy, relevant to position.
Re: dumb.js: a simple PSO based AI that stronger than bonecrusher
dumb24a: no-base & rocket bugfix
Normal dumb24a-1 beat Hard dumb24-1 at 50% chance
Normal dumb24a-2 beat Hard dumb24-2 at 65% chance
(new code have bugs at low oil map)
(below enabled at >= 24 oils or no base)
better 40 oils, no base truck code
(below enabled at >= 24 oils)
better rocket hit-run function, droid will not rush into enemy when patroling
better rocket Anti Tank / Artillery ratio, calculated from enemy Tank / Cyborg ratio
rocket attack earlier when against flamer
cannon will hit-run when against cannon
reduce movement at defense state
remove unused functions
add comment for legacy truck code
Normal dumb24a-1 beat Hard dumb24-1 at 50% chance
Normal dumb24a-2 beat Hard dumb24-2 at 65% chance
(new code have bugs at low oil map)
(below enabled at >= 24 oils or no base)
better 40 oils, no base truck code
(below enabled at >= 24 oils)
better rocket hit-run function, droid will not rush into enemy when patroling
better rocket Anti Tank / Artillery ratio, calculated from enemy Tank / Cyborg ratio
rocket attack earlier when against flamer
cannon will hit-run when against cannon
reduce movement at defense state
remove unused functions
add comment for legacy truck code
- Attachments
-
- dumb24a.zip
- (24.47 KiB) Downloaded 19 times