Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Implimenting GUI in a game

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
TurboGrafx
Newbie cheater
Reputation: 0

Joined: 27 May 2015
Posts: 15

PostPosted: Mon Feb 13, 2017 6:20 pm    Post subject: Implimenting GUI in a game Reply with quote

Tried making the title useful for the near future

So I would like to know how individuals have went about making in game GUI's?

Some of these mods look as if it does not belong to the default game engine at all.

I have:

C++ knowledge.
Squirrel knowledge
That's it so far Razz

Is the cheat engine source capable of doing this in lua? No clue what to even ask as to how..
It's hard to find research for this :/
I seriously look forward to a response Wink Very Happy
Back to top
View user's profile Send private message Send e-mail
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Thu Mar 02, 2017 3:42 am    Post subject: Reply with quote

There are a few ways people go about doing this depending on the target.

1. Inject, hook and draw your own objects (1). The jist of this is to inject a DLL and hook the rendering engine being used (Direct3D, OpenGL, etc.) and use the device pointer to draw your own objects each frame. For Direct3D8/9, this is usually handled within EndScene or Present calls of the device. You would draw your code before the game handles the call itself allowing your objects to be drawn over the entire scene.

2. Inject, hook and draw your own objects (2). Similar to the above, however instead of hooking the rendering engine such as Direct3D, you would instead hook the games code itself and use the games rendering functions to draw things. This would allow you to draw a UI using the games functions meaning the UI will look like the rest of the games controls etc since you are using its own code.

3. Overlays. A more popular method these days due to anti-cheats, overlays are instead just a transparent window sitting on top of the games window using completely custom, up to you, rendering methods. Such as C# (via its built in GDI or WPF (Direct3D)), Direct3D, GDI/GDI+, and so on. This is a more common approach these days as I said since anti-cheats are a bit more strict on hooking. This also helps avoid typical screenshot functions that a lot of games use to detect ESP and other non-game rendered things on the screen within the given context.


If you go with route 1, there are premade UI libraries that you can use to inject with your stuff after you have the rendering device pointer. For example, IMGUI (https://github.com/ocornut/imgui) has become a popular UI codebase that many game hacks have been using lately.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites