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 


Command and Conquer 4: instant build
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
MohitKumarJangra
Newbie cheater
Reputation: 0

Joined: 30 Sep 2014
Posts: 17

PostPosted: Sun Oct 05, 2014 3:03 am    Post subject: Reply with quote

This time I am quite sure that the offset to player id is 004c as in screenshot.
After restarting the game it came back and the same digits 8 for friendly units and 4 for enemy units.
Now I am the worst ce user that dont know how to find this offset in memory viewer and dont know how to make script. I can just give you all by finding what I could If you wish to help me Rolling Eyes
Wait.... Hey mate could you help me by IRC I am online always
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun Oct 05, 2014 3:14 am    Post subject: Reply with quote

I already gave you the instructions. If there is something specific that you do not understand, just ask.

Regarding your 004C offset...your previous post shows otherwise.
Back to top
View user's profile Send private message
MohitKumarJangra
Newbie cheater
Reputation: 0

Joined: 30 Sep 2014
Posts: 17

PostPosted: Sun Oct 05, 2014 3:25 am    Post subject: Reply with quote

The question is which instruction should I highlight in memory viewer? The opcode which I found in debugging window or the offset of player Id?

I have to refresh page many times to see your replies
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun Oct 05, 2014 3:26 am    Post subject: Reply with quote

You highlight the instruction that you found that accesses all of the health addresses.
Back to top
View user's profile Send private message
MohitKumarJangra
Newbie cheater
Reputation: 0

Joined: 30 Sep 2014
Posts: 17

PostPosted: Sun Oct 05, 2014 3:34 am    Post subject: Reply with quote

ok. Is there any role of code injection too or straight ce framework code?
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun Oct 05, 2014 3:36 am    Post subject: Reply with quote

I do not understand your question.
Back to top
View user's profile Send private message
MohitKumarJangra
Newbie cheater
Reputation: 0

Joined: 30 Sep 2014
Posts: 17

PostPosted: Sun Oct 05, 2014 3:40 am    Post subject: I dont know how and what to write in this script I am a noob Reply with quote

sorry I was too lazy to see you told before

++Methos, I still cant consider what to write in this script. The all way I am seeing esi but nothing else.
The tutorial I saw on google says pushfd, pushaf and other thing to pop them.
I cant understand where to put player id and how to complete this script.
Believe me, I have never programmed before, Just a noob on ce and language.

this is the script:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
movss [esi+04],xmm0

exit:
jmp returnhere

"CNC4.game"+3AAF8E:
jmp newmem
returnhere:




[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"CNC4.game"+3AAF8E:
movss [esi+04],xmm0
//Alt: db CC 0F 11 46 04
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25296
Location: The netherlands

PostPosted: Sun Oct 05, 2014 5:15 am    Post subject: Reply with quote

put this between newmem: and originalcode:
Code:

cmp [esi+4c],8 //check if the value at esi+4c is 8
jne originalcode //if not, go to the original code

push eax //save eax
mov eax,[esi+8] //put what I assume is the max health into eax (it's a float, but a 4 byte can hold a float just fine)
mov [esi+4],eax //write the value of eax (currently max health) into the current health field
pop eax //restore eax
jmp exit  //skip the original code and return to the game

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
MohitKumarJangra
Newbie cheater
Reputation: 0

Joined: 30 Sep 2014
Posts: 17

PostPosted: Sun Oct 05, 2014 6:42 am    Post subject: Reply with quote

Thanx admin. Smile
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 Gamehacking All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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