3 ms·
How to record data for reinforcement learning agent from any Linux game (2020)
- alfanick 5y agoThe title is misleading, it promises recording data from *any* game, yet it requires some UDP telemetry to be implemented in the game itself and uses F1 as the game. I was expecting something with a) strace to track IO or b) gdb to monitor specific memory regions which contain game state or c) some eBPF stuff (to track IO or memory aka a+b combined).
- westurner 5y ago"Sysdig vs DTrace vs Strace: A technical discussion." https://sysdig.com/blog/sysdig-vs-dtrace-vs-strace-a-technical-discussion/ https://sysdig.com/blog/sysdig-vs-dtrace-vs-strace-a-technic... There are sysdig chisels that reference gdb. https://github.com/openai/retro https://github.com/openai/retro : > Gym Retro lets you turn classic video games into Gym environments for reinforcement learning and comes with integrations for ~1000 games. It uses various emulators that support the Libretro API, making it fairly easy to add new emulators.
- quanto 5y agoThe method discussed in OP requires UDP telemetry to be implemented by the game. Not every game will have this option. I recall a researcher friend who tried RL on an arbitrary game of his choice by exploiting the system memory used by the game and using the memory state as a game state. Of course, the memory state is not human-readable (unless you have the source code and the intimate knowledge of the game; even so, it would be a difficult thing to do by a human) but a clever RL algorithm would treat the state just the same as from a human-readable state space. His project was a wild success and beat an experienced human player. I recall he had a youtube video somewhere. I miss that guy.
- CaptainNegative 5y agoDumb clickbait title. Only works for games with built-in "UDP telemetry". Next up: how to find all solutions to any 3SAT instance in polynomial time. Just read from the accompanying 3sat_instance_solutions.txt .