My objective requires that I am able to access game time variables like health bar, certain scores etc, when the game is running. I do not want to change this variables, or cheat in the game in anyway, I just need to collect this data and do not want to modify it.
I need to be able to get that information in a python/c++ environment. I know that cheat engine like software might be able to help me, but since DRM and anti cheat software prevent me from doing just that and therefore it might not be possible anymore, other option I am currently exploring is to screengrab and using opencv and character recognition get the information I need visually, but this seems like unnecessary and extra work that might even not work that well.
I also explored if there is any API from unreal engine (the game is based on unreal engine) that might just allow me to do just this, but had no luck so far. So I ask you one more time, you to suggest me some solutions to this issue.
I think DOTA 2 allows this in some way, since openAI/others use data like this to train their AI's so it should be possible right!? I am just interested in knowing how can this be done.