View Single Post
Old 11-13-20, 02:03 PM   #6
rfxcasey
Bosun
 
Join Date: Jun 2009
Posts: 68
Downloads: 10
Uploads: 0
Default

OK, I edited the 3 scripts to this. Is this correct?

[ENABLE]
Aobscan(_place,5c 42 00 00 AA 42 00 00 00 3F 00 00 C0 3F 00)
label(place)
registersymbol(place)

_place:
place:
db 40 42
[DISABLE]
place:

db 5c 42 00 00 AA 42 00 00 00 3F 00 00 C0 3F 00

Is this correct? If so what do I do next, can you be very specific.

"5c in bytes is 92 push this to 64 result 40 in hexa"

How exactly do I do that? Do I change 5c in the scripts, or do I start SH5.CT and change it through Cheat Engine? Thanks for your help.

Here is my SH5.ct file:

<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="31">
<Forms>
<CETrainer Class="TTrainerForm" Encoding="Ascii85">eN#/u):Zrz6ViMQ#9/OQj,}I-7a$ztt/kb3YCHiq,^A6Ix[0HdL,{$hpxyR2[z7fjo2H{e6unNKkN0]vI}M;[T*aOcL^l!AzEFA/BD_ZPWo%}LSI;td#@)#.^sAsgYxnKI]@..za6b-wMAwEZIXr.Qkl.,34iekBL+x/)wPAkLKAM-,GAPuBKhXFu*}c+DV-htGra=;*F4uyaW)Z4M.0Yx8r1j/0$F;_]T^#^AK=5tOWFo;{$OIN{j57-Y^^ht:6nrlIAr%kbMG3oQB9,ZPemK3(*OV(=ZBO(9IXZo6VW$o Vo#wh],8Kbbv6XC%Q8I:{enXNQLh]XS:Io3*uiK38[Qt.Lj0IFAs*4QoxHYQeKUvs=?4;0snl^-cO,RW!n^1}JY%1xB(Y729!%KXu;.ATZIREO{ef-jBW}xO9]uU.{hNPD-Kb@084/7S9]Jdc[gL9^q%jlGec$AYX^56BgUN73mcHYWGJNNIpY:$Fcmh4AdP}EU2 C6o?pf$]-hT%t*?kTf6nXzSCoZw_D0He.1{MB6JEWqFDF1z#T+^A+wE2Or9 6q4XvW:,agUPIYW:P1kYn[Vhaj.4c</CETrainer>
<CETrainer_1 Class="TTrainerForm" Encoding="Ascii85">eN#/u):Zrz6ViMQ#9/OQj,}I-7a$ztt/kb3YCHiq,^A6Ix[0HdL,{$hpxyR2[z7fjo2H{e6unNKkN0]vI}M;[T*aOcL^l!AzEFA/BD_ZPWo%}LSI;td#@)#.^sAsgYxnKI]@..za6b-wMAwEZIXr.Qkl.,34iekBL+x/)wPAkLKAM-,GAPuBKhXFu*}c+DV-htGra=;*F4uyaW)Z4M.0Yx8r1j/0$F;_]T^#^AK=5tOWFo;{$OIN{j57-Y^^ht:6nrlIAr%kbMG3oQB9,ZPemK3(*OV(=ZBO(9IXZo6VW$o Vo#wh],8Kbbv6XC%Q8I:{enXNQLh]XS:Io3*uiK38[Qt.Lj0IFAs*4QoxHYQeKUvs=?4;0snl^-cO,RW!n^1}JY%1xB(Y729!%KXu;.ATZIREO{ef-jBW}xO9]uU.{hNPD-Kb@084/7S9]Jdc[gL9^q%jlGec$AYX^56BgUN73mcHYWGJNNIpY:$Fcmh4AdP}EU2 C6o?pf$]-hT%t*?kTf6nXzSCoZw_D0He.1{MB6JEWqFDF1z#T+^A+wE2Or9 6q4XvW:,agUPIYW:P1kYn[Vhaj.4c</CETrainer_1>
</Forms>
<CheatEntries>
<CheatEntry>
<ID>0</ID>
<Description>"fov"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">Code:
[ENABLE]
Aobscan(_place,5c 42 00 00 AA 42 00 00 00 3F 00 00 C0 3F 00)
label(place)
registersymbol(place)

_place:*
place:
db 40 42
[DISABLE]
place:

db 5c 42 00 00 AA 42 00 00 00 3F 00 00 C0 3F 00

</AssemblerScript>
<Hotkeys>
<Hotkey>
<Action>Activate</Action>
<Keys>
<Key>106</Key>
</Keys>
<ID>0</ID>
</Hotkey>
<Hotkey>
<Action>Deactivate</Action>
<Keys>
<Key>105</Key>
</Keys>
<ID>1</ID>
</Hotkey>
</Hotkeys>
</CheatEntry>
<CheatEntry>
<ID>1</ID>
<Description>"fov1"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">Code:
[ENABLE]
Aobscan(_place,5c 42 00 00 AA 42 00 00 00 3F 00 00 C0 3F 00)
label(place)
registersymbol(place)

_place:
place:
db 40 42
[DISABLE]
place:

db 5c 42 00 00 AA 42 00 00 00 3F 00 00 C0 3F 00

</AssemblerScript>
<Hotkeys>
<Hotkey>
<Action>Activate</Action>
<Keys>
<Key>106</Key>
</Keys>
<ID>0</ID>
</Hotkey>
<Hotkey>
<Action>Deactivate</Action>
<Keys>
<Key>105</Key>
</Keys>
<ID>1</ID>
</Hotkey>
</Hotkeys>
</CheatEntry>
<CheatEntry>
<ID>2</ID>
<Description>"fov2"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">Code:
[ENABLE]
Aobscan(_place,5c 42 00 00 AA 42 00 00 00 3F 00 00 C0 3F 00)
label(place)
registersymbol(place)

_place:
place:
db 40 42
[DISABLE]
place:

db 5c 42 00 00 AA 42 00 00 00 3F 00 00 C0 3F 00

</AssemblerScript>
<Hotkeys>
<Hotkey>
<Action>Activate</Action>
<Keys>
<Key>106</Key>
</Keys>
<ID>0</ID>
</Hotkey>
<Hotkey>
<Action>Deactivate</Action>
<Keys>
<Key>105</Key>
</Keys>
<ID>1</ID>
</Hotkey>
</Hotkeys>
</CheatEntry>
</CheatEntries>
<CheatCodes>
<CodeEntry Color="20000000">
<Description>Code :fld dword ptr [esi+000019A0]</Description>
<AddressString>PortalSystem.act+633F</AddressString>
<Before>
<Byte>C9</Byte>
<Byte>D9</Byte>
<Byte>5C</Byte>
<Byte>24</Byte>
<Byte>04</Byte>
</Before>
<Actual>
<Byte>D9</Byte>
<Byte>86</Byte>
<Byte>A0</Byte>
<Byte>19</Byte>
<Byte>00</Byte>
<Byte>00</Byte>
</Actual>
<After>
<Byte>D8</Byte>
<Byte>4C</Byte>
<Byte>24</Byte>
<Byte>20</Byte>
<Byte>DE</Byte>
</After>
</CodeEntry>
<CodeEntry Color="20000000">
<Description>fov</Description>
<AddressString>PortalSystem.act+633F</AddressString>
<Before>
<Byte>C9</Byte>
<Byte>D9</Byte>
<Byte>5C</Byte>
<Byte>24</Byte>
<Byte>04</Byte>
</Before>
<Actual>
<Byte>D9</Byte>
<Byte>86</Byte>
<Byte>A0</Byte>
<Byte>19</Byte>
<Byte>00</Byte>
<Byte>00</Byte>
</Actual>
<After>
<Byte>D8</Byte>
<Byte>4C</Byte>
<Byte>24</Byte>
<Byte>20</Byte>
<Byte>DE</Byte>
</After>
</CodeEntry>
<CodeEntry Color="20000000">
<Description>Code :fld dword ptr [esi+000019A0]</Description>
<AddressString>PortalSystem.act+633F</AddressString>
<Before>
<Byte>C9</Byte>
<Byte>D9</Byte>
<Byte>5C</Byte>
<Byte>24</Byte>
<Byte>04</Byte>
</Before>
<Actual>
<Byte>D9</Byte>
<Byte>86</Byte>
<Byte>A0</Byte>
<Byte>19</Byte>
<Byte>00</Byte>
<Byte>00</Byte>
</Actual>
<After>
<Byte>D8</Byte>
<Byte>4C</Byte>
<Byte>24</Byte>
<Byte>20</Byte>
<Byte>DE</Byte>
</After>
</CodeEntry>
</CheatCodes>
<UserdefinedSymbols/>
<LuaScript>--TRAINERGENERATORSTART--
--This is autogenerated code. Changing code in this block will
--get erased and rewritten if you regenerate the trainer code

--Uncomment the following line if this is a Cheat Table format trainer and you don't want CE to show (Tip, save as .CETRAINER alternatively)
--hideAllCEWindows()

RequiredCEVersion=7.1
if (getCEVersion==nil) or (getCEVersion()&lt;RequiredCEVersion) then
messageDialog('Please install Cheat Engine '..RequiredCEVersion, mtError, mbOK)
closeCE()
end
addresslist=getAddressList()


CETrainer.SEPERATOR.Visible=false

getAutoAttachList().add("sh5.exe")
gPlaySoundOnAction=false
CETrainer.show()
function AboutClick()
showMessage(gAboutText)
end
gAboutText=[[This trainer was made by Cheat
Engine
www.cheatengine.org]]

function CloseClick()
--called by the close button onClick event, and when closing the form
closeCE()
return caFree --onClick doesn't care, but onClose would like a result
end

--TRAINERGENERATORSTOP--
</LuaScript>
</CheatTable>

Last edited by rfxcasey; 11-13-20 at 02:52 PM.
rfxcasey is offline   Reply With Quote