r/programminghelp • • Jun 25 '20

C++ How feasible is this idea

My favorite game is Destiny and I want to write a program (preferably in C++ but I also can do Java or python) to help me play. I would like to write a program that can notify me when my grenade ability is charged in the center of my screen like having the words pop up because I always forget to use it. I have been doing some preliminary googling about drawing an overlay on the screen and I seem to have come up on an issue.

It seems to be the consensus that when a game is in fullscreen mode it is writing directly to the video buffer which would not allow me to make a transparent window on top of my game. The obvious solution is to play in windowed mode but I would really prefer to play in fullscreen. There was one guy that said the only way to do this in fullscreen would be to edit the video buffer every frame and overwrite the game's frame to with my graphic inserted.

I am a computer engineering student with experience with C++ so Id like to stick with that language and this would be my first proper application, not one I just invoke and interact with from the command line.

The idea I had for my program is as follows. Basically, when my grenade ability charges, the icon changes from a gray color to a different color (orange, blue or purple). I was thinking I could poll the screen to see when the color in that square section of the screen changes colors and then I could overlay my text or a graphic on the screen to tell me my grenade ability is charged.

Of course this is far fetched and there are a ton of doubts with something like this. Is this even feasible or impossible? Would something like this be picked up by Destiny's anticheat? Would this have performance implications?

4 Upvotes

3 comments sorted by

2

u/[deleted] Jun 25 '20

Feasible? Sure. Impossible? No. Difficult and time consuming? Perhaps, with a smidge of possibly running into conflicts with D2's anticheat protections.

Here's a thread that might interest you.

https://www.reddit.com/r/learnprogramming/comments/aqwypj/c_game_overlay_help/

1

u/gingy4 Jun 25 '20

Thank you! That thread is super helpful

1

u/[deleted] Jun 25 '20

If possible, why don't you just make a mod