How can I make a overlay?

Ask questions about cheating in any games you would like. Does not need to pertain to MicroMacro.
Post Reply
Message
Author
Exempt
Posts: 197
Joined: Wed Jan 20, 2010 9:55 am

How can I make a overlay?

#1 Post by Exempt » Sat Nov 21, 2015 10:41 am

I'm curious if anyone has any idea how I could write a GUI overlay for a java game? Maybe some good resources on the subject or any useful libraries I could look into would be great.

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: How can I make a overlay?

#2 Post by BlubBlab » Sat Nov 21, 2015 12:15 pm

I would say java and games are a really bad idea so far you don't intend to cross compile it to native code like LOL but if you so desire.
Google is your friend http://www.java-gaming.org/index.php?action=resources
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

Exempt
Posts: 197
Joined: Wed Jan 20, 2010 9:55 am

Re: How can I make a overlay?

#3 Post by Exempt » Sat Nov 21, 2015 1:05 pm

I want to make a overlay gui for a java game not write a java game. I need to write data to the game window without it interfering with mouse clicks and such to =\

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: How can I make a overlay?

#4 Post by BlubBlab » Sat Nov 21, 2015 2:58 pm

Exempt wrote:I want to make a overlay gui for a java game not write a java game. I need to write data to the game window without it interfering with mouse clicks and such to =\
You mean something like a remote control gui?
In theory you can use the memory functions but all your addresses will shift around like crazy , so you need every time the program starts a pattern search.
The other way would be changing the code of the game itself which could be far more simpler in case of Java, so you program your gui in java (new window) and bypass all functions by reverse engineering the game. There a lot of tools for this.
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

Exempt
Posts: 197
Joined: Wed Jan 20, 2010 9:55 am

Re: How can I make a overlay?

#5 Post by Exempt » Sat Nov 21, 2015 6:05 pm

I'm hoping to find a less hacky way to do it. It's not really for a bot it's only information from logs as a overlay in game to assist with a few things.

User avatar
Administrator
Site Admin
Posts: 5318
Joined: Sat Jan 05, 2008 4:21 pm

Re: How can I make a overlay?

#6 Post by Administrator » Sat Nov 21, 2015 6:51 pm

Can't really comment on Java as it's not my thing, but the best way to accomplish an overlay would be a DLL injection targeting DirectX or OpenGL (whichever the game uses). It's... a large task if you're a beginner. I would recommend a starter kit that you can build on.

Just search "DirectX injection overlay" on Google to get started. A fairly-well-known hacker going by Azorbix created an excellent DirectX starter kit which I used for a few projects years ago.

Exempt
Posts: 197
Joined: Wed Jan 20, 2010 9:55 am

Re: How can I make a overlay?

#7 Post by Exempt » Sat Nov 21, 2015 8:19 pm

I've used it before but I want to avoid injecting things since that breaks the rules sadly. hmm

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: How can I make a overlay?

#8 Post by BlubBlab » Sat Nov 21, 2015 9:45 pm

Exempt wrote:I've used it before but I want to avoid injecting things since that breaks the rules sadly. hmm
Okay I may jumped to conclusion but if we talk stuff like TS's Overwolf overlay I must say I only know this example and it definitely use injection because something like it isn't a feature from windows as an OS.

Or other way said I once had the Overwolf stuff inside a debugger without wanting it while TS ran in background :D
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

Exempt
Posts: 197
Joined: Wed Jan 20, 2010 9:55 am

Re: How can I make a overlay?

#9 Post by Exempt » Sat Nov 21, 2015 11:13 pm

Ever heard of any library that can handle partially transparent windows? I was thinking maybe it'd be possible to just have a gui as a separate program running in the foreground but it'd be transparent and adjust position based on the game client window cords. It'd also have to be possible to click thru it so that may be tricky...

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: How can I make a overlay?

#10 Post by BlubBlab » Sun Nov 22, 2015 8:27 am

Transparency isn't a problem http://www.codeproject.com/Articles/547 ... ansparency the problem is that the windows won't be in the foreground when an application runs in full-screen
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: How can I make a overlay?

#11 Post by BlubBlab » Thu Feb 18, 2016 11:57 pm

Hm it seems that Game Guard is gone I stopped with the game playing a few days ago but I can maybe play a bit with the memory now.
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

User avatar
Administrator
Site Admin
Posts: 5318
Joined: Sat Jan 05, 2008 4:21 pm

Re: How can I make a overlay?

#12 Post by Administrator » Fri Feb 19, 2016 1:01 pm

For which game is this? I seem to be missing something.

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: How can I make a overlay?

#13 Post by BlubBlab » Sat Feb 20, 2016 9:14 am

I'm sure I posted under Blade and Soul and this game I meant with Game Guard seems to begone it seems with the update on 10th Feb 2016 .
I didn't noticed immediately and I don't find references about it on in the internet at least I can read the process and I don't see Game Guard starting with the game.

What I don't can is attaching code to the process the game crash immediately when I use Cheat Engine and say show me all what access this memory section. So I need to make old school pointer search for it.
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests