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 


[HELP]C++

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Xoujiro
Advanced Cheater
Reputation: 0

Joined: 20 Mar 2006
Posts: 86

PostPosted: Fri Feb 29, 2008 10:50 pm    Post subject: [HELP]C++ Reply with quote

*(WORD*)0x342A16FC = 0x2500; // Wolfteam WP HACK

I need help with this, instead of changing the value to 2500, it changes to 9472,

and i also need a dll injector source in c++,
thanks in advance to all who help
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Fri Feb 29, 2008 11:00 pm    Post subject: Reply with quote

1) *((unsigned short*)0x342A16FC) = 2500; // Wolfteam WP HACK

2) Eidolon Injector: http://forum.cheatengine.org/viewtopic.php?t=150901&postdays=0&postorder=asc&start=0
Back to top
View user's profile Send private message
Xoujiro
Advanced Cheater
Reputation: 0

Joined: 20 Mar 2006
Posts: 86

PostPosted: Fri Feb 29, 2008 11:34 pm    Post subject: Reply with quote

thanks for help
do u mind telling me the diff between those 2?
+rep
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Fri Feb 29, 2008 11:36 pm    Post subject: Reply with quote

You just had a 0x in front of the number, making the compiler believe it was a hexadecimal number. No big deal.
Back to top
View user's profile Send private message
Xoujiro
Advanced Cheater
Reputation: 0

Joined: 20 Mar 2006
Posts: 86

PostPosted: Fri Feb 29, 2008 11:52 pm    Post subject: Reply with quote

ohh,didnt realize that, thanks for the injector too!

btw is it possible to freeze a value?

and how do i add process watch in the injector? it will be much easier
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Sat Mar 01, 2008 12:28 am    Post subject: Reply with quote

All you do when you "freeze" a value, is you constantly write to it in a loop:
Code:
for(;; Sleep(1)) *((unsigned short*)0x342A16FC) = 2500;

Would "freeze" the value.

Process watch is actually quite simple also, just keep calling GetProcessID() (included in the injector) in a loop. If it equals -1, check again.
Code:
while((pId = GetProcessID("process.exe")) == -1) Sleep(10);
Back to top
View user's profile Send private message
Xoujiro
Advanced Cheater
Reputation: 0

Joined: 20 Mar 2006
Posts: 86

PostPosted: Sat Mar 01, 2008 1:20 am    Post subject: Reply with quote

Flyte wrote:
All you do when you "freeze" a value, is you constantly write to it in a loop:
Code:
for(;; Sleep(1)) *((unsigned short*)0x342A16FC) = 2500;

Would "freeze" the value.

Process watch is actually quite simple also, just keep calling GetProcessID() (included in the injector) in a loop. If it equals -1, check again.
Code:
while((pId = GetProcessID("process.exe")) == -1) Sleep(10);


Is the freeze the same as ce's? im afraid that it may lag me too much if the sleep is too short
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Sat Mar 01, 2008 1:26 am    Post subject: Reply with quote

CE uses the same idea, infact, in the settings you can set the Sleep() time:




Sleep(1) should be fine, but if you really feel like you need more, you can try CE's default value, which is 250. I would definitely recommend it to be as small as possible though.
Back to top
View user's profile Send private message
Xoujiro
Advanced Cheater
Reputation: 0

Joined: 20 Mar 2006
Posts: 86

PostPosted: Mon Mar 03, 2008 1:21 am    Post subject: Reply with quote

Flyte wrote:
CE uses the same idea, infact, in the settings you can set the Sleep() time:




Sleep(1) should be fine, but if you really feel like you need more, you can try CE's default value, which is 250. I would definitely recommend it to be as small as possible though.


haha okay, thanks i thought it was different from ce's so i put mine at 5000ms lol xP


Last edited by Xoujiro on Tue Mar 04, 2008 12:35 am; edited 1 time in total
Back to top
View user's profile Send private message
DebugMe
Newbie cheater
Reputation: 0

Joined: 29 May 2007
Posts: 20

PostPosted: Mon Mar 03, 2008 11:01 am    Post subject: Reply with quote

Flyte wrote:

2) Eidolon Injector: http://forum.cheatengine.org/viewtopic.php?t=150901&postdays=0&postorder=asc&start=0


Thanks for the open source unicode injector. Although it doesn't want to inject my dll into any process. It says that the dll wasn't found, but it's in the folder. >_>
Back to top
View user's profile Send private message
Xoujiro
Advanced Cheater
Reputation: 0

Joined: 20 Mar 2006
Posts: 86

PostPosted: Tue Mar 04, 2008 12:34 am    Post subject: Reply with quote

[quote="Xoujiro"]
Flyte wrote:
CE uses the same idea, infact, in the settings you can set the Sleep() time:




Sleep(1) should be fine, but if you really feel like you need more, you can try CE's default value, which is 250. I would definitely recommend it to be as small as possible though.


haha okay, thanks i thought it was different from ce's so i put mine at 5000ms lol xP


EDIT: ok i need another help, how do you change the input for process to auto wolfteam.bin


Change

_tscanf_s(_T("%s"), lpTarget, sizeof(lpTarget)/sizeof(_TCHAR));
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Tue Mar 04, 2008 5:14 pm    Post subject: Reply with quote

Code:
while((pId = GetProcessID("wolfteam.bin")) == -1) Sleep(10);
Back to top
View user's profile Send private message
Xoujiro
Advanced Cheater
Reputation: 0

Joined: 20 Mar 2006
Posts: 86

PostPosted: Wed Mar 05, 2008 12:53 am    Post subject: Reply with quote

error C2664: 'GetProcessID' : cannot convert parameter 1 from 'const char [13]' to 'LPTSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

fatal error C1903: unable to recover from previous error(s); stopping compilation
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Wed Mar 05, 2008 9:29 am    Post subject: Reply with quote

Xoujiro wrote:
error C2664: 'GetProcessID' : cannot convert parameter 1 from 'const char [13]' to 'LPTSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

fatal error C1903: unable to recover from previous error(s); stopping compilation


Code:
while((pId = GetProcessID( L"wolfteam.bin" )) == -1) Sleep(10);


Your using UNICODE so you have to add an L before open strings. You can also use _T("string") or TEXT("string")

_________________
Back to top
View user's profile Send private message
Xoujiro
Advanced Cheater
Reputation: 0

Joined: 20 Mar 2006
Posts: 86

PostPosted: Thu Mar 06, 2008 12:39 am    Post subject: Reply with quote

thanks alot
Back to top
View user's profile Send private message
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