View previous topic :: View next topic |
Author |
Message |
ZoDDeL Newbie cheater Reputation: 1
Joined: 02 Sep 2012 Posts: 23 Location: Germany
|
Posted: Sun Feb 02, 2014 12:34 am Post subject: Freeze Value in Script (not lua) |
|
|
is there maybe a simple way to freeze a value (byte,2byte,4byte) in my sort of "script"?
pls no lua stuff ( i dont understand it + it wont fit to my table )
example how my stuff looks normally (when no freeze is needed)
Code: |
define(ADDRESS,01200345) // info
[ENABLE]
ADDRESS:
db 00
ADDRESS+2:
db 00
ADDRESS+4:
db 00
[DISABLE]
|
_________________
if (math+offset) > "codingskill"
then [ignore] and [do_as_you_like]
exit |
|
Back to top |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sun Feb 02, 2014 1:12 am Post subject: |
|
|
Don't quite understand what you're asking. Following this format works the same as freeze:
Code: | [ENABLE]
[[[[["game.exe"+0159ECD0]+A4]+94]+1C]+4]+14:
dd 2
[["game.exe"+0159EC00]+103C]+7C:
dd (float)2.0
[DISABLE]
[[[[["game.exe"+0159ECD0]+A4]+94]+1C]+4]+14:
dd 0
[["game.exe"+0159EC00]+103C]+7C:
dd (float)1.0 |
|
|
Back to top |
|
|
Gniarf Grandmaster Cheater Supreme Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
Posted: Sun Feb 02, 2014 1:19 am Post subject: |
|
|
...In the meantime I made this: Code: | [enable]
define(ADDRESS_TO_FREEZE,test.exe+1D090)
define(NR_OF_BYTES_TO_WRITE,#4)
define(FREEZE_TIME,#100) //in miliseconds
globalalloc(MyFreezer,500)
label(SourceBytes)
label(StopFreezing)
registersymbol(StopFreezing)
MyFreezer: //never deallocate that or you risk a crash
//this block copies NR_OF_BYTES_TO_WRITE from SourceBytes to ADDRESS_TO_FREEZE
push NR_OF_BYTES_TO_WRITE
push SourceBytes
push ADDRESS_TO_FREEZE
call memcpy //memcpy(destination,source,byte count)
add esp,c //undoes the 3 pushs above
// push NR_OF_BYTES_TO_WRITE2
// push SourceBytes2
// push ADDRESS_TO_FREEZE2
// call memcpy //memcpy(destination,source,byte count)
// add esp,c //undoes the 3 pushs above
// ...
push FREEZE_TIME //sleep between each write operation
call kernel32.Sleep //otherwise you'll get 100% cpu usage
cmp byte [StopFreezing],0 //should we stop?
je MyFreezer
retn
StopFreezing:
db 0
SourceBytes:
db 00 10 00 00
createthread(MyFreezer) //create the thread that will freeze the value
[disable]
unregistersymbol(StopFreezing)
StopFreezing:
db 1 | Which begs for the question: why do you even need it rather that the usual cheat entries?
_________________
DO NOT PM me if you want help on making/fixing/using a hack. |
|
Back to top |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sun Feb 02, 2014 1:29 am Post subject: |
|
|
If you're asking about value type, use this:
db = Define Byte
dw = Define Word
dd = Define Dword
|
|
Back to top |
|
|
ZoDDeL Newbie cheater Reputation: 1
Joined: 02 Sep 2012 Posts: 23 Location: Germany
|
Posted: Sun Feb 02, 2014 2:04 am Post subject: |
|
|
Gniarf wrote: | ...In the meantime I made this: Code: | [enable]
define(ADDRESS_TO_FREEZE,test.exe+1D090)
define(NR_OF_BYTES_TO_WRITE,#4)
define(FREEZE_TIME,#100) //in miliseconds
globalalloc(MyFreezer,500)
label(SourceBytes)
label(StopFreezing)
registersymbol(StopFreezing)
MyFreezer: //never deallocate that or you risk a crash
//this block copies NR_OF_BYTES_TO_WRITE from SourceBytes to ADDRESS_TO_FREEZE
push NR_OF_BYTES_TO_WRITE
push SourceBytes
push ADDRESS_TO_FREEZE
call memcpy //memcpy(destination,source,byte count)
add esp,c //undoes the 3 pushs above
// push NR_OF_BYTES_TO_WRITE2
// push SourceBytes2
// push ADDRESS_TO_FREEZE2
// call memcpy //memcpy(destination,source,byte count)
// add esp,c //undoes the 3 pushs above
// ...
push FREEZE_TIME //sleep between each write operation
call kernel32.Sleep //otherwise you'll get 100% cpu usage
cmp byte [StopFreezing],0 //should we stop?
je MyFreezer
retn
StopFreezing:
db 0
SourceBytes:
db 00 10 00 00
createthread(MyFreezer) //create the thread that will freeze the value
[disable]
unregistersymbol(StopFreezing)
StopFreezing:
db 1 | Which begs for the question: why do you even need it rather that the usual cheat entries? |
thanks this was 1000% what i needed
ill give you credits in m next trainer ^^
by the way to answer your question.
6 entries address/value + hotkeys to set value and freeze is a bit crappy for a trainer...
1 script with 1 hotkey for toggle on/off is nice
thats why
_________________
if (math+offset) > "codingskill"
then [ignore] and [do_as_you_like]
exit |
|
Back to top |
|
|
Gniarf Grandmaster Cheater Supreme Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
Posted: Sun Feb 02, 2014 2:22 am Post subject: |
|
|
ZoDDeL wrote: | by the way to answer your question.
6 entries address/value + hotkeys to set value and freeze is a bit crappy for a trainer...
1 script with 1 hotkey for toggle on/off is nice
thats why | Yeah I kinda smelled something like that, the best solution is to create 12 hotkeys in CE, but map them all to the same button.
_________________
DO NOT PM me if you want help on making/fixing/using a hack. |
|
Back to top |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sun Feb 02, 2014 2:28 am Post subject: |
|
|
|
|
Back to top |
|
|
Gniarf Grandmaster Cheater Supreme Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
|
Back to top |
|
|
ZoDDeL Newbie cheater Reputation: 1
Joined: 02 Sep 2012 Posts: 23 Location: Germany
|
Posted: Sun Feb 02, 2014 2:41 pm Post subject: |
|
|
okay i got a new problem ^^
Code: |
[enable]
define(AURABATTLESTAT,01D00123)
define(AURAFREEZE1,AURA_BATTLESTAT)
define(AURAFREEZE2,AURA_BATTLESTAT+D0)
define(AURAFREEZE3,AURA_BATTLESTAT+1A0)
define(AURABYTES_TO_WRITE1,#1)
define(AURABYTES_TO_WRITE2,#1)
define(AURABYTES_TO_WRITE3,#1)
define(AURAFREEZE_TIME,#100) //in miliseconds
globalalloc(AURAMyFreezer,1024)
label(AURASourceBytes1)
label(AURASourceBytes2)
label(AURASourceBytes3)
label(StopFreezing)
registersymbol(StopFreezing)
AURAMyFreezer: //never deallocate that or you risk a crash
//this block copies NR_OF_BYTES_TO_WRITE from SourceBytes to ADDRESS_TO_FREEZE
push AURABYTES_TO_WRITE1
push AURASourceBytes1
push AURAFREEZE1
call memcpy //memcpy(destination,source,byte count)
add esp,c //undoes the 3 pushs above
push AURABYTES_TO_WRITE2
push AURASourceBytes2
push AURAFREEZE2
call memcpy //memcpy(destination,source,byte count)
add esp,c //undoes the 3 pushs above
push AURABYTES_TO_WRITE3
push AURASourceBytes3
push AURAFREEZE3
call memcpy //memcpy(destination,source,byte count)
add esp,c //undoes the 3 pushs above
// push NR_OF_BYTES_TO_WRITE2
// push SourceBytes2
// push ADDRESS_TO_FREEZE2
// call memcpy //memcpy(destination,source,byte count)
// add esp,c //undoes the 3 pushs above
// ...
push FREEZE_TIME //sleep between each write operation
call kernel32.Sleep //otherwise you'll get 100% cpu usage
cmp byte [StopFreezing],0 //should we stop?
je AURAMyFreezer
retn
AURASourceBytes1:
db 01
AURASourceBytes2:
db 01
AURASourceBytes3:
db 01
createthread(AURAMyFreezer) //create the thread that will freeze the value
[disable]
unregistersymbol(StopFreezing)
StopFreezing:
db 1
|
i got the error:
Not all code is injectable.
(Error in line 18 (label(StopFreezing)) :label StopFreezing is not defined in the script)
as you seed i tried to freeze 3 adresses with 1 byte value
what did i miss?
_________________
if (math+offset) > "codingskill"
then [ignore] and [do_as_you_like]
exit |
|
Back to top |
|
|
Gniarf Grandmaster Cheater Supreme Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
Posted: Sun Feb 02, 2014 5:10 pm Post subject: |
|
|
Seriously, paste that in cheat engine's main menu and press F4:
Code: | <?xml version="1.0" encoding="utf-8"?>
<CheatTable>
<CheatEntries>
<CheatEntry>
<ID>4</ID>
<Description>"Aura"</Description>
<Options moBindActivation="1" moRecursiveSetValue="1"/>
<LastState Value="" Activated="0" RealAddress="00000000"/>
<Color>80000008</Color>
<GroupHeader>1</GroupHeader>
<Hotkeys>
<Hotkey>
<Action>Toggle Activation</Action>
<Keys>
<Key>115</Key>
</Keys>
<ID>0</ID>
</Hotkey>
<Hotkey>
<Action>Set Value</Action>
<Keys>
<Key>115</Key>
</Keys>
<Value>1</Value>
<ID>1</ID>
</Hotkey>
</Hotkeys>
<CheatEntries>
<CheatEntry>
<ID>5</ID>
<Description>"address 1"</Description>
<LastState Value="??" Activated="0" RealAddress="01D00123"/>
<Color>80000008</Color>
<VariableType>Byte</VariableType>
<Address>01D00123</Address>
</CheatEntry>
<CheatEntry>
<ID>6</ID>
<Description>"address 2"</Description>
<LastState Value="??" Activated="0" RealAddress="01D001F3"/>
<Color>80000008</Color>
<VariableType>Byte</VariableType>
<Address>01D00123+D0</Address>
</CheatEntry>
<CheatEntry>
<ID>7</ID>
<Description>"address 3"</Description>
<LastState Value="??" Activated="0" RealAddress="01D002C3"/>
<Color>80000008</Color>
<VariableType>Byte</VariableType>
<Address>01D00123+1A0</Address>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
</CheatTable>
|
ZoDDeL wrote: | i got the error:
Not all code is injectable.
(Error in line 18 (label(StopFreezing)) :label StopFreezing is not defined in the script)
as you seed i tried to freeze 3 adresses with 1 byte value
what did i miss? | ctrl+F StopFreezing on this page, and you'll see there is one more match in my code that in yours.
_________________
DO NOT PM me if you want help on making/fixing/using a hack. |
|
Back to top |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sun Feb 02, 2014 5:15 pm Post subject: |
|
|
|
|
Back to top |
|
|
henrysimon How do I cheat? Reputation: 0
Joined: 29 May 2015 Posts: 8
|
Posted: Tue Jun 30, 2015 4:56 am Post subject: |
|
|
Gniarf wrote: | ...In the meantime I made this:[code][enable]
define(ADDRESS_TO_FREEZE,test.exe+1D090)
define(NR_OF_BYTES_TO_WRITE,#4)
define(FREEZE_TIME,#100) //in miliseconds
globalalloc(MyFreezer,500)
|
hi the timer is working, it is looping and setting the address, but when the address is change, it seems the function is not being updated (i'm trying to do step 8 tutorial using script, it will repeatedly change value 5000, but when i click change pointer, the timer doesnt work, only when i disable and enable again, the value change (it seems the address got refreshed when I enable it)
here is my code (some of it)
MyFreezer: //never deallocate that or you risk a crash
mov [[[[["Tutorial-i386.exe"+00245390]+C]+14]+0]+18],#5000
push FREEZE_TIME //sleep between each write operation
call kernel32.Sleep //otherwise you'll get 100% cpu usage
cmp byte [StopFreezing],0 //should we stop?
je MyFreezer
retn
----even when I do above the it will stop working once i click change the pointer......
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Tue Jun 30, 2015 4:03 pm Post subject: |
|
|
Code: | push eax
mov eax,["Tutorial-i386.exe"+00245390]
mov eax,[eax+C]
mov eax,[eax+14]
mov eax,[eax+0]
mov [eax+18],#5000
pop eax |
|
|
Back to top |
|
|
henrysimon How do I cheat? Reputation: 0
Joined: 29 May 2015 Posts: 8
|
Posted: Tue Jun 30, 2015 8:48 pm Post subject: |
|
|
Zanzer wrote: | Code: | push eax
mov eax,["Tutorial-i386.exe"+00245390]
mov eax,[eax+C]
mov eax,[eax+14]
mov eax,[eax+0]
mov [eax+18],#5000
pop eax |
|
thanks finally got it working......
|
|
Back to top |
|
|
|