clementgallet / libTAS

GNU/Linux software to (hopefully) give TAS tools to games
GNU General Public License v3.0
476 stars 56 forks source link

[Feature Request] Socket Communication Functions in Lua #588

Open victorsevero opened 5 months ago

victorsevero commented 5 months ago

I suggest a communication implementation in Lua just like Bizhawk does (the comm library). I suppose the most common use case would be sockets, so that seems like a good starting point. Lua already has a pretty known socket library named LuaSocket, so libTAS could "just" wrap it with common functions like BizHawk does.

I could try to implement this by myself. I think I would need some guidelines on how to get some data, but I can get by Lua.

clementgallet commented 5 months ago

Could you expose in which context you would use this feature?

victorsevero commented 5 months ago

Reinforcement Learning applications on games! I already accomplished that on PSX games with BizHawk: https://github.com/victorsevero/bizket