Page 1 of 1

Is it possible to convert a text file to a .CT?

Posted: Sat Mar 16, 2019 2:07 pm
by jackalj
Hi,

I tried finding a table for a game for awhile now, but I only could find the file in text format. So now I have a text document that I cant do anything with.

I am wondering if I could convert this somehow, or copy the text/code into Cheat Engine to make it work?

Re: Is it possible to convert a text file to a .CT?

Posted: Sat Mar 16, 2019 2:13 pm
by GreenHouse
If you mean a script, then yes. Go to 'Memory View' > 'Tools' > 'Auto Assemble', paste it there and then do 'File' > 'Assign to current cheat table'.

Re: Is it possible to convert a text file to a .CT?

Posted: Mon Jan 23, 2023 10:04 pm
by bittman.07@gmail.com
GreenHouse wrote:
Sat Mar 16, 2019 2:13 pm
If you mean a script, then yes. Go to 'Memory View' > 'Tools' > 'Auto Assemble', paste it there and then do 'File' > 'Assign to current cheat table'.
"The code needs an [ENABLE] and [DISABLE] if you want to use this script as a table entry." How do I code that?

Re: Is it possible to convert a text file to a .CT?

Posted: Mon Jan 23, 2023 10:09 pm
by Rhark
bittman.07@gmail.com wrote:
Mon Jan 23, 2023 10:04 pm
"The code needs an [ENABLE] and [DISABLE] if you want to use this script as a table entry." How do I code that?
If you paste the code here it would be easier to show you.

Re: Is it possible to convert a text file to a .CT?

Posted: Mon Jan 23, 2023 10:11 pm
by SunBeam
jackalj wrote:
Sat Mar 16, 2019 2:07 pm
Hi,

I tried finding a table for a game for awhile now, but I only could find the file in text format. So now I have a text document that I cant do anything with.

I am wondering if I could convert this somehow, or copy the text/code into Cheat Engine to make it work?
Would be useful if you actually opened a .CT file with Notepad++ and checked its format/framework. Then you'd have the answer to your question.

Re: Is it possible to convert a text file to a .CT?

Posted: Mon Jan 23, 2023 10:20 pm
by bittman.07@gmail.com
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="38">
<CheatEntries>
<CheatEntry>
<ID>5</ID>
<Description>"Lives"</Description>
<LastState Value="9" Activated="1" RealAddress="0450E5A4"/>
<VariableType>4 Bytes</VariableType>
<Address>"THREADSTACK0"-00000994</Address>
<Offsets>
<Offset>568</Offset>
<Offset>C</Offset>
<Offset>254</Offset>
<Offset>8</Offset>
</Offsets>
</CheatEntry>
</CheatEntries>
<UserdefinedSymbols/>
</CheatTable>

Re: Is it possible to convert a text file to a .CT?

Posted: Tue Jan 24, 2023 2:28 am
by bittman.07@gmail.com
Nevermind, I found the memory address for the amount of lives. I don't need this anymore.