Search found 46 matches

by wanjia1
26 Jan 2025, 13:06
Forum: Addon discussions
Topic: dumb.js: a simple PSO based AI that stronger than bonecrusher
Replies: 26
Views: 57613

Re: dumb.js: a simple PSO based AI that stronger than bonecrusher

25a: Add Hyper Velocity Cannon mode

Set its name to "...-5" make it into Hyper Velocity Cannon mode:
It prefer tank upgrade and production
It will use Cyborg Grenade, Hyper Velocity Cannon Cobra/Panther, and Flashlight Cyborg
It build repair droids, which go with the army
It can beat previous hard ...
by wanjia1
10 Jan 2025, 02:17
Forum: Addon discussions
Topic: dumb.js: a simple PSO based AI that stronger than bonecrusher
Replies: 26
Views: 57613

Re: dumb.js: a simple PSO based AI that stronger than bonecrusher

To test, make small difference, and fight against previous bot.
If the new bot wins, overwrite previous bot, else rollback.
(The code changes a lot, reinforced learning is unavailable)
To save time, uses script to zip the code, and run skirmish game with setting file in ~/.local/share/warzone2100 ...
by wanjia1
27 Nov 2024, 19:27
Forum: Addon discussions
Topic: dumb.js: a simple PSO based AI that stronger than bonecrusher
Replies: 26
Views: 57613

Re: dumb.js: a simple PSO based AI that stronger than bonecrusher

25: rocket bugfix, rocket with mortar (low oil support is removed)

Normal dumb25-2 beat Insane dumb24a-2, dumb24a-1
It weak against MG rush from side

Fixed many zero-division error, it will make full AT rocket when enemy build 0 cyborgs
Won't change target position when attacked
Use 50% mortar and ...
by wanjia1
23 Oct 2024, 21:29
Forum: Addon discussions
Topic: dumb.js: a simple PSO based AI that stronger than bonecrusher
Replies: 26
Views: 57613

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 ...
by wanjia1
05 Sep 2024, 17:52
Forum: Addon discussions
Topic: dumb.js: a simple PSO based AI that stronger than bonecrusher
Replies: 26
Views: 57613

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)
by wanjia1
03 Sep 2024, 22:28
Forum: Addon discussions
Topic: dumb.js: a simple PSO based AI that stronger than bonecrusher
Replies: 26
Views: 57613

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 ...
by wanjia1
15 Aug 2024, 14:09
Forum: Addon discussions
Topic: lobby python API
Replies: 1
Views: 4157

Re: lobby python API

bugfix: AssertionError when have 12 games or more
by wanjia1
10 Aug 2024, 14:40
Forum: Addon discussions
Topic: dumb.js: a simple PSO based AI that stronger than bonecrusher
Replies: 26
Views: 57613

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'

23.png

It will attack parallel
Build gate if power>2500 && enemy flamer ratio>60%
Build tracks if enemy mortar ratio>60 ...
by wanjia1
15 Jul 2024, 10:18
Forum: Addon discussions
Topic: dumb.js: a simple PSO based AI that stronger than bonecrusher
Replies: 26
Views: 57613

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...
by wanjia1
10 Jul 2024, 15:15
Forum: Scripting
Topic: js type hints for AI scripting
Replies: 6
Views: 5504

Re: js type hints for AI scripting

bugfix:
fixed return type of more special cases

upgrade document to version 4.5.1
added jsdoc for map script
copy global variables from a T4 skirmish game ( for out-game references of weapon / structure statistics )
by wanjia1
11 Jun 2024, 05:18
Forum: Addon discussions
Topic: Modded map:2c-TinySoloNeedles
Replies: 3
Views: 4294

Re: Modded map:2c-TinySoloNeedles

TinyM: improved version for multiplayer
chat to select droid (replace all units, only once per game)

droid indexes is listed below:
(for example, chat "/11a", switch to "Hyper Velocity Cannon Mantis Tracks" and "Lancer Cyborg")

chat "/? tank0" will switch to tank template that names "tank0 ...
by wanjia1
09 Jun 2024, 03:41
Forum: Addon discussions
Topic: dumb.js: a simple PSO based AI that stronger than bonecrusher
Replies: 26
Views: 57613

Re: dumb.js: a simple PSO based AI that stronger than bonecrusher

The purpose is to create a AI that better than all previous bots and most players, at all case (current it only works at 40 oil map)
The use case is NTW 1v1 bot, currently
The final target is to reach the theoretically optimal (100% weapon usage, 0 unit loss, shortest truck path)

Compare to other ...
by wanjia1
07 Jun 2024, 04:21
Forum: Addon discussions
Topic: dumb.js: a simple PSO based AI that stronger than bonecrusher
Replies: 26
Views: 57613

Re: dumb.js: a simple PSO based AI that stronger than bonecrusher

analyse shows, for cannon game against previous version, dumb22's weapon use rate is about 130% of enemy,
by Lanchester's laws, it can destroy enemy of sqrt(1.3) (about 114%) size:


map: 3c-Ng-RO1v1Spec

x: 1 second / pixel, 60 seconds / grid
y: 1 unit / pixel, 50 units / grid

up(normal ...
by wanjia1
03 Jun 2024, 20:21
Forum: Addon discussions
Topic: dumb.js: a simple PSO based AI that stronger than bonecrusher
Replies: 26
Views: 57613

Re: dumb.js: a simple PSO based AI that stronger than bonecrusher

dumb22: Integration of 5 weapon lines, Better micro and unit counting (still for 40 oils T1 1v1)
to select weapon, chat s[0-4]:
s0: MG(default)
s1: Cannon
s2: Rocket
s3: Mortar
s4: Flamer
or sett last digit of name (in challenge file):
"player_2":{
"name":"dumb22-1",
"ai": "multiplay ...