Author Topic: Touhou bot.  (Read 6735 times)

Touhou bot.
« on: June 08, 2011, 07:07:01 AM »
Well, it's currently in development, but it works fine right now and i thought i should share it.
http://replays.gensokyou.org/download.php?id=14165 - replay of 1cc MoF lunatic with version in development of our bot(it's in development coz it requires human assistance - manual increasing of danmaku detection. I don't want bot to be reliant on player).
http://thbot.kt15.ru/ - site of the project.

Well, that's it. I am open for suggestions, dodging algorithms and anything else. Remember that this is fair bot - it doesn't hack ZUN's files, only DirectX graphics(and sound for deathbombing). So, currently bot doesn't even know speed of bullets(it will take too much time).

Added revision 241(MoF lunatic replay was made with that version) to the download links. It allows you to control dodging slightly(by changing bullet detection radius).

PS sorry for my poor english.
PSS  should we release API for writing bots?
« Last Edit: June 08, 2011, 04:59:07 PM by Adepht »

Drake

  • *
Re: Touhou bot.
« Reply #1 on: June 08, 2011, 07:52:19 AM »
This is simultaneously hilarious and badass. The replay was a thrill to watch. Good work so far; I eagerly await the finished product.

The main concerns I noted were that the bot didn't take too kindly to specific kinds of walls, and that it couldn't tell when it was appropriate to macrododge or micrododge, usually resulting in a horrible skewing of the pattern. A lot of difficulties for the bot were essentially created by its own sporadic movement.

I suppose another insignificant issue is that the bot never ever POCs. Isn't a big deal though.
« Last Edit: June 08, 2011, 07:54:01 AM by Drake »

A Colorful Calculating Creative and Cuddly Crafty Callipygous Clever Commander
- original art by Aiけん | ウサホリ -

Re: Touhou bot.
« Reply #2 on: June 08, 2011, 08:12:51 AM »
Well, you got main problems of this bot. We have to process information about hundreds of moving objects every frame without having much information about them, so we can't do much. You may try launch bot for Subterran Anemism and see, that basicly he screwes each and every pattern and dies around level 4-5 normal(and lack of focus screwes him even more). I don't know, it's possible that we will relise API for writing bots and let everyone to write bot for each and every spellcard(it's not hard to understand which spellcard boss uses currently, bigger problem is Non-spell cards, but mostly they are not patterned).

Re: Touhou bot.
« Reply #3 on: June 08, 2011, 09:51:22 AM »
Twitchy Reimu is twitchy.

Either way, this is really interesting.


Thanks to GreenVirus for the Siggy.
My TF2 Backpack of DOOM

Re: Touhou bot.
« Reply #4 on: June 08, 2011, 05:08:57 PM »
I think we will and support for the th12 soon(it doesn't take a lot of effort, really). I think bot has the chances of 1cc'ing it(it depends on how ZUN draws curved lasers mainly, everything else is piece of cake).

Anyway, has anyone hacked ZUN's replay format? I really want to mark them somehow(like changing the character name from ReimuA to Bot or smthing like that, or smthing like that).

DX7.EP

  • Red shroom
  • *
  • Smooth Charisma
    • Sanmaat (site of personal tat)
Re: Touhou bot.
« Reply #5 on: June 08, 2011, 08:19:26 PM »
Ah, Russian coder! Not surprised that this is so badass then.

Not sure about ZUN's replay format...can't help much there.

C:DOS> ayayaya.mid
Bad command or file name

C:>_

Re: Touhou bot.
« Reply #6 on: June 10, 2011, 05:58:56 AM »
UFO update is near, but I think it will be on the level of SA, if not worse. Those damn fists/anchors. They are way too fast and big when come near player. That's not counting lazorz of death. Still i think that  Hijiri won't be much for him.  Additionaly stages rarely require(or even support) mad dodging, they are more about streaming + using your brain a little.

I think after releasing UFO version we will work on mouse support(to make bot follow the current position of the mouse). Of course this option will be turnable on/off at will.

And another question will be - which type of UFO's should bot collect? Currently it's red, but i am thinking about green(first every bomb is like a life for bot, he doesn't lose power after deathbombing and it gives him more points). So what do you think guys?.

PS second developer threatened me... Now bot supports Sanae too... What have I done.
PPS it was a surprise to understand that ZUN draws the dialogs (not draws rectangle and then uses functions for printing text). It's certainly understandable(Fonts problems), but it wasn't that obvious. That means that we can easily change them to whatever we want(it requires a lot of patience, but entirely possible).

Drake

  • *
Re: Touhou bot.
« Reply #7 on: June 10, 2011, 06:16:00 AM »
He does use .msg files for dialogue, though. If you edit those files you can change the dialogue.


Also Green UFOs are always better than Red. Not only does it give the bot an extra bomb instantly instead of having to wait for another UFO, but it gives more resources per UFO summoned. The fact that the bot always autobombs when possible if only more incentive.

A Colorful Calculating Creative and Cuddly Crafty Callipygous Clever Commander
- original art by Aiけん | ウサホリ -

Re: Touhou bot.
« Reply #8 on: June 10, 2011, 07:53:09 AM »
Let's take 5 UFO's for example. Red ones give you 2 lifes and green ones 6 bombs. But each life is another 2 bombs, so for bot life value of red and green ones is the same. The problem is that if you don't destroy green UFO it only nets you 1/5 of bomb as opposed to 1/5 life(which is 2/5 of bomb too). And if bot gets like 4/5 of bomb and dies, then those 4/5 are lost(at least i think so).

I think to make anchors and fists(and Utsuho Gian Red Suns) work i will need their actual hitbox... How the hell am i supposed to find that?




Re: Touhou bot.
« Reply #9 on: June 10, 2011, 08:18:19 PM »
Whenever I try to download the two DLL files (Or even the older version of the program), it says it's forbidden and won't download...

Re: Touhou bot.
« Reply #10 on: June 11, 2011, 12:51:34 PM »
Whenever I try to download the two DLL files (Or even the older version of the program), it says it's forbidden and won't download...
Fixed.

Re: Touhou bot.
« Reply #11 on: June 11, 2011, 10:25:26 PM »
Thank you!

Holy crap. This is awesome. :O

Re: Touhou bot.
« Reply #12 on: June 12, 2011, 08:34:36 PM »
The new version of Touhou Bot (r269) was released few minutes ago.
New features: Mouse Control and Bot Default Position Mouse Control. Also, touhou 12 (UFO) is now supported.
To know more, read the updated information of our website.

Re: Touhou bot.
« Reply #13 on: June 14, 2011, 09:31:12 AM »
Revision 269 is playing worse, than 241 or 231. So we released revision 274, which supports all new features, but plays as revision 241. We recommend it for downloading.
There are some problems with taking right UFOs still. Don't pay attention.