|
|
Search
|
|||||||
| Home | Register | Downloads | FAQ | Members List | Calendar | Arcade | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Banned
![]() ![]() ![]() ![]() ![]() Join Date: Feb 2007
Location: Lost.
Posts: 1,767
|
Mudlord's Game Trainer Framework (or How to Hack Games)
Here's some code I have been meaning to make public. Here is a simple game trainer framework, that should work with most games out there. Some systems, like Starforce, Blizzard Warden (used in WoW), Valve VAC and GameGuard, might blacklist this. This trainer shows the basics in how to access process memory and write to it directly. It also contains wrapper functions in how to easily access specific processes, as well as how to skin a application, as well as embed music in a executable. It also shows a real example in training, which is the freeware game "Frog Hunt", by Johan Peitz/Free Lunch Design. It is written in pure Win32 C/C++, with the aim of zero bloat. Which involves using PNG graphics and XM music by Dubmood/Razor1911. Enjoy. |
|
|
|
| Advertisement | [Remove Advertisement] | ||
|
|
|
|
#2 (permalink) |
|
T-5000 Modenator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Aug 2005
Location: Here, there, everywhere, even in your couch cushions..
Posts: 3,139
|
Thanks, I've been looking for a way to do a decent trainer. Just using T-search and Trainer Maker kit doesn't cut it as I wanted to learn to make something a bit more advanced.
__________________
![]() | Xtemulation Forums | Dolphin SVN Builds | | XTemulation Wiki | PCSX2 SVN Builds | Download the free Xtemulation Toolbar If you like Xtemulation, please Digg Us |
|
|
|
|
|
#4 (permalink) |
|
Regular User ;)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Oct 2007
Location: Naples Florida
Posts: 9,965
|
Thanks mud. now when do you optimize pcsx2 to run on 4 cores?
__________________
A Mac is like an escort, you pay a ton and get nothing.
A PC is like a hooker, it's a lot cheaper and gives you what you're after.. and if unlucky some diseases as well, that's why you gotta use protection. -CC |
|
|
|
|
|
#5 (permalink) | |
|
Banned
![]() ![]() ![]() ![]() ![]() Join Date: Feb 2007
Location: Lost.
Posts: 1,767
|
Quote:
I'm not going to touch PS2 emulation. So, thats not happening. Maybe when PCSX2 gets more mature, ref and co might work together to add more optimized code and threading....
|
|
|
|
|
|
|
#6 (permalink) | |
|
And the science gets done
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: May 2004
Location: Perpetual Pompei
Posts: 7,215
|
Quite the productive one you are, mudlord ;P Zero bloat certainly does sound nice.
__________________
![]() Quote:
|
|
|
|
|
|
|
#7 (permalink) |
|
Registered User
![]() Join Date: Jul 2006
Location: USA
Posts: 50
|
can i build a x64 binary out of this? nevermind...it won't build even for win32: Error 1 error C2664: 'GetDlgItemTextW' : cannot convert parameter 3 from 'char [128]' to 'LPWSTR' d:\projects\generic\trainerframework\include\dlg_c olors.h 88 Error 2 error C2664: 'DrawTextW' : cannot convert parameter 2 from 'char [128]' to 'LPCWSTR' d:\projects\generic\trainerframework\include\dlg_c olors.h 91 Error 3 error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'char *' to 'LPCWSTR' d:\projects\generic\trainerframework\source\main.c pp 91 Error 4 error C2440: '=' : cannot convert from 'const char [24]' to 'LPCWSTR' d:\projects\generic\trainerframework\source\main.c pp 139 Error 5 error C2440: '=' : cannot convert from 'char [260]' to 'LPWSTR' d:\projects\generic\trainerframework\source\main.c pp 140 Error 6 error C2440: '=' : cannot convert from 'const char [4]' to 'LPCWSTR' d:\projects\generic\trainerframework\source\main.c pp 143 Error 7 error C2664: 'CreateProcessW' : cannot convert parameter 2 from 'char [260]' to 'LPWSTR' d:\projects\generic\trainerframework\source\main.c pp 151 Error 8 error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'LPCSTR' to 'LPCWSTR' d:\projects\generic\trainerframework\source\main.c pp 165 Error 9 error C2664: 'strcmp' : cannot convert parameter 2 from 'WCHAR [260]' to 'const char *' d:\projects\generic\trainerframework\source\main.c pp 226 oh, well. Last edited by kidaware; September 12th, 2008 at 23:08.. |
|
|
|
|
|
#9 (permalink) |
|
Registered User
![]() Join Date: Jul 2006
Location: USA
Posts: 50
|
looks like it was because of wide character support. i only got one error left: Error 1 error C2664: 'strcmp' : cannot convert parameter 2 from 'WCHAR [260]' to 'const char *' d:\projects\generic\trainerframework\source\main.c pp 230 but don't know what to do. |
|
|
|
|
|
#11 (permalink) |
|
Registered User
![]() Join Date: Jul 2006
Location: USA
Posts: 50
|
ok, i fixed it. i changed 'strcmp' to 'wcscmp.' now i have linker error: Error 3 error LNK2019: unresolved external symbol _uFMOD_PlaySong@12 referenced in function _WinMain@16 main.obj Error 4 fatal error LNK1120: 1 unresolved externals D:\Projects\Generic\TrainerFramework\Debug\Trainer Framework.exe i'm using vs c++ .net 2008 sp1. |
|
|
|
|
|
#12 (permalink) | |
|
Banned
![]() ![]() ![]() ![]() ![]() Join Date: Feb 2007
Location: Lost.
Posts: 1,767
|
Quote:
|
|
|
|
|
|
|
#13 (permalink) |
|
Registered User
![]() Join Date: Jul 2006
Location: USA
Posts: 50
|
i fixed it by commenting out the following everywhere in main.cpp: #include "ufmod.h" uFMOD_StopSong() uFMOD_PlaySong(MAKEINTRESOURCE(IDR_MUSIC), 0, XM_RESOURCE); it runs now! it shows window with mario characters! now i try to make it x64! but no sound. ![]() x64 no good: Error 1 error C2664: 'DialogBoxParamW' : cannot convert parameter 4 from 'BOOL (__cdecl *)(HWND,UINT,WPARAM,LPARAM)' to 'DLGPROC' d:\Projects\Generic\TrainerFramework\source\main.c pp 113 i give up. ![]() i changed my mind. i fixed it! i changed this: BOOL CALLBACK DialogProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) to this: static INT_PTR CALLBACK DialogProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) and remove every place that has png lib (png lib 32-bits only?) in main. it runs as x64 binary but no mario picture or sound. oh, well. thanks for excellent framework, mudlord! Last edited by kidaware; September 13th, 2008 at 02:58.. |
|
|
|
|
|
#15 (permalink) | |
|
Heating up ma SPRITE!
![]() ![]() ![]() Join Date: Mar 2009
Location: Under your bed! Ngemu.wikidgamer.com Reputations: +11
Posts: 403
|
Quote:
__________________
[adult swim] ![]() |
|
|
|
|
|
|
#18 (permalink) |
|
More than you pay for~
![]() ![]() Join Date: Aug 2001
Location: Kuala Lumpur
Posts: 222
|
It's like that movie where one person is writing letters to someone 2 years in the past. Exciting!
__________________
When you you're signing your death warrant. ASUSnoir : Xeon E3110 @ 3.0 Ghz | ASUS P5QL Pro | 4GB DDR2 1066 | ASUS EN9800GT 512 DD3 | Seagate 500GB 7200rpm 32MB Tabby-chan: Dothan 1.6 Ghz | Intel Centrino | 1.5GB DDR 333 | Maxtor 150GB 7200rpm DangerPC : Athlon XP 1800+ | ASUS A7S333 | 1GB DDR 266 | ATI X1050 | Seagate 80GB 7200rpm 8MB - R.I.P. May '09 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|