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 


Suggentions for new feacture for CE? Applying pointers Auto

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
paparazzi8)
How do I cheat?
Reputation: 1

Joined: 13 Oct 2010
Posts: 9

PostPosted: Fri Jul 25, 2014 12:14 am    Post subject: Suggentions for new feacture for CE? Applying pointers Auto Reply with quote

Hey nice to see u people back,

I was working in a cheat table and found some difficulties to find a solution for my problem that was applying like 600 pointers for all addresses I have found so... here I will show my solution for this, in case if u have some better idea please post, let me and people know to make their lives more easier. Maybe this can be included in CE soon, that will be really great. Who knows...

So this is what happened:
I was working in some car simulation game and have found all temperature addresses from all tires. They were non-static and was a list of 600 addresses that represented all d3d primes used in tire. Changed their value temperature get high and low so it's right ones in the list. So here comes my difficulty... do i have to make a pointer one by one for all addresses in CE? of course I didn't, that was insane so... I decide to make a program in VB6 to make the thing easier...

1. ok so.. I have found the pointer for the 1st address founded and both offsets, offset1 and offset2 (offset1 only for this game this can be different just adapt to ur case).
2. saved that table only with this pointer and 600 addresses non-static.
3. changed to the right pointer in vb code -> Ponteiro, offset1 -> Offset1 (just a offset to point another address only for this game), offset2 -> BaseOffset (increasing for to point on all addresses in the list) , 1st non-static adress -> BaseAdress.
4. Ok lets use VB6 to help us make pointers for all my non-static addresses since they have same basepointer and only that change is the offset to point in all non-static addresses.

This is my code, hope useful to you:

Code:

Dim Ponteiro As String
Dim Offset1 As Single
Dim Offset2 As String

Dim BaseOffset As Single
Dim BaseAdress As Single


Private Sub Command1_Click()
MsgBox ("Please wait this may not operate for while, please be patient.")

' change and custum vars: ponteiro, BaseAdress, BaseOffset, Offset1 with ur needs.
Ponteiro = "00900008"
BaseAdress = Int(&HC000000)
BaseOffset = Int(&H10)
Offset1 = &HF00

    Dim doc As DOMDocument
    Dim parte As String
    Dim stream As String
   
   
    Set doc = New DOMDocument
    doc.Load App.Path + "\conv.ct" 'this is a file that should be place in App folder to convert.
   
    ' write to stream first tags to build a new ct file.
    stream = "<?xml version=""1.0"" encoding=""utf-8""?>" & vbCrLf & _
                "   <CheatTable CheatEngineTableVersion=""18"">" & vbCrLf & _
                "       <CheatEntries>" & vbCrLf
               
               
    For Index = 0 To 519 '519 max numeber of adresses in the file to convert. (error may ocorrer if not changed properly)
   
    ' read CT file
    parte = doc.documentElement.childNodes(0).childNodes(Index).childNodes(5).Text
    Text1.Text = Text1.Text & parte & vbCrLf
    Text2.Text = Text2.Text & Hex(Int("&H" & parte) - BaseAdress) & vbCrLf
   
    Offset2 = Hex((Int("&H" & parte) - BaseAdress) + BaseOffset)
   
    ' write to stream var a pointer for adress
    stream = stream & "           <CheatEntry>" & vbCrLf & _
                "               <ID>" & Index + 1 & "</ID>" & vbCrLf & _
                "               <Description>""No description""</Description>" & vbCrLf & _
                "               <LastState Value=""0"" Activated=""0"" RealAddress=""" & parte & """/>" & vbCrLf & _
                "               <Color>80000008</Color>" & vbCrLf & _
                "               <VariableType>4 Bytes</VariableType>" & vbCrLf & _
                "               <Address>" & LCase(Ponteiro) & "</Address>" & vbCrLf & _
                "               <Offsets>" & vbCrLf & _
                "                   <Offset>" & Offset2 & "</Offset>" & vbCrLf & _
                "                   <Offset>" & Hex(Offset1) & "</Offset>" & vbCrLf & _
                "               </Offsets>" & vbCrLf & _
                "           </CheatEntry>" & vbCrLf

    Next
   
    ' close last xml tags in stream.
    stream = stream & "       </CheatEntries>" & vbCrLf & _
                "       <UserdefinedSymbols/>" & vbCrLf & _
                "</CheatTable>"
   
    ' stream to file
    Ficheiro = FreeFile
    Open App.Path + "\new.ct" For Output As #Ficheiro
       Print #Ficheiro, stream
    Close #Ficheiro
   
MsgBox ("Convert finished! new.ct file was placed in this App folder.")
End Sub


Image form:
- Add Text1.Text and Text2.Text
- Add a Botton
- Menu "References" need check XML 6.0

h t t p : / / s30.postimg.org/rcbueoiwh/pic.jpg

5. I'm lucky that CT files are XML based so... this program will read "conv.ct" file as xml and generate all pointers for all non-static addresses in the file. Output "new.CT" a new .CT table with all pointers for all addresses.
6. It's done, working as a charm and with pointers for all non-static addresses with simple steps.

Hope found this useful for u and ppl consider this work, my greets...

_________________
C,C++ and Vb6 programming
Assembly basics
DirectX 8,9 libraries knowledge
Reverse engineering with games & applications
Network structure's knowledge
Specialized in CPU/GPU overclocking
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 Discussions 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