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 


Comments

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
fred26
Expert Cheater
Reputation: 0

Joined: 20 Dec 2014
Posts: 103

PostPosted: Sun Apr 23, 2017 6:57 pm    Post subject: Comments Reply with quote

Can I save comments to code that can be available in further instances ?

Will they be available when attach to code in the future ?

Thanks
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Sun Apr 23, 2017 7:47 pm    Post subject: Reply with quote

Comments in the memory viewer get saved in a cheat table so if you save the cheat table after making comments they'll still be there.

here's a copy-paste of the relevant portion from my tutorial cheat table (it's essentially an xml file so you can open it in any text editor):

Code:
  </Structures>
  <DisassemblerComments>
    <DisassemblerComment>
      <Address>"Tutorial-i386.exe"+267E7</Address>
      <Comment>You Lose message
</Comment>
    </DisassemblerComment>
    <DisassemblerComment>
      <Address>"Tutorial-i386.exe"+2684C</Address>
      <Comment>Winning Change
</Comment>
    </DisassemblerComment>
    <DisassemblerComment>
      <Address>"Tutorial-i386.exe"+10567D</Address>
      <Comment>%s
</Comment>
    </DisassemblerComment>
  </DisassemblerComments>
</CheatTable>


You can also right click and choose "add to the code list" and that will add an entry to the "advanced options" window (the one accessed from the bottom left of CE's main window). Choosing the "replace with code that does nothing" will also add an entry to the code list (hence why it asks for a name). While these comments don't show in the memory viewer it does provide a way for you to quickly jump to them simply by opening the "advanced options" window and double clicking one of them, here's an example from my tutorial ct again:

Code:
  <CheatCodes>
    <CodeEntry>
      <Description>Step 9 - Losing message call</Description>
      <Address>004267E7</Address>
      <ModuleName>Tutorial-i386.exe</ModuleName>
      <ModuleNameOffset>267E7</ModuleNameOffset>
      <Before>
        <Byte>A1</Byte>
        <Byte>F4</Byte>
        <Byte>F4</Byte>
        <Byte>54</Byte>
        <Byte>00</Byte>
      </Before>
      <Actual>
        <Byte>E8</Byte>
        <Byte>04</Byte>
        <Byte>FB</Byte>
        <Byte>0E</Byte>
        <Byte>00</Byte>
      </Actual>
      <After>
        <Byte>8B</Byte>
        <Byte>83</Byte>
        <Byte>88</Byte>
        <Byte>04</Byte>
        <Byte>00</Byte>
      </After>
    </CodeEntry>
    <CodeEntry>
      <Description>Step 9 - Winning change...</Description>
      <Address>0042684C</Address>
      <ModuleName>Tutorial-i386.exe</ModuleName>
      <ModuleNameOffset>2684C</ModuleNameOffset>
      <Before>
        <Byte>15</Byte>
        <Byte>E4</Byte>
        <Byte>F4</Byte>
        <Byte>54</Byte>
        <Byte>00</Byte>
      </Before>
      <Actual>
        <Byte>E8</Byte>
        <Byte>BF</Byte>
        <Byte>AB</Byte>
        <Byte>06</Byte>
        <Byte>00</Byte>
      </Actual>
      <After>
        <Byte>EB</Byte>
        <Byte>24</Byte>
        <Byte>8B</Byte>
        <Byte>83</Byte>
        <Byte>88</Byte>
      </After>
    </CodeEntry>
  </CheatCodes>


The Before/After bytes are actually the bytes before and after the "actual" bytes being saved to the code list... not sure why they are recorded at all but...
Back to top
View user's profile Send private message
fred26
Expert Cheater
Reputation: 0

Joined: 20 Dec 2014
Posts: 103

PostPosted: Mon Apr 24, 2017 7:00 am    Post subject: Reply with quote

FreeER, thanks so much. I will try your suggestions.

Regards,
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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