nago wrote:Whoa, that's a big file, I hope I'll have time to tweak it.
Thank you - but I still hope some already ready file shows up.
My intent with ff.rc is generally "Automate out all the boring parts", with an eye towards reducing the realtime required to play a vanilla DCSS game down to something approaching coffeebreak duration. The script engages when you press Tab, and generally returns control to the player when it thinks something interesting is happening.
Some potentially useful things I've written in there that you might like to look at:
autoshop, this adds things eligible for autopickup to your shoplist automatically,
before showing you the shop window
autoequip, which uses predefined ego / artprop weightings to wear whatever it considers most useful in your inventory
autodrop, this tries to handle inventory management in an automated way so you don't have to spend half of your realtime at midgame+ juggling items
auto-minLOS, this uses dijkstra's pathfinding to locate and path to a nearby position with minimum visibility from which it can autofight
auto-id,
auto-uncurse,
auto branch travel,
auto orbrun pathing,
autoskilling templating using predefined targets,
per-game realtime keycode input tracking (in offline wizmode only), to help you figure out what inputs you've spent the most realtime on for realtime optimization
There's a bunch of stuff in there, and it's approaching the level of a full Crawl bot, but a lot of the code is still really rough and not ready for public use. It does not currently work well with all combos; you don't want to use this stuff if you're streaking.
Still, using some of these optimizations, I've taken my 3 rune gametime down from ~2h 30min to ~0h 45 min. (This is a little bit longer if used online, because the folks in ##crawl-dev request that large clua scripts have a ~100ms delay between actions.)
If you do end up using any pieces of that code, and you make any useful modifications, please feel free to send me a pull request at that repository.