| View previous topic :: View next topic |
| Author |
Message |
joker76 How do I cheat?
Reputation: 0
Joined: 11 Jan 2016 Posts: 4
|
Posted: Mon Jan 11, 2016 6:44 pm Post subject: Custom Sound not work in CE 6.5 |
|
|
Up to version 6.4 of cheat engine, I used to my trainer custom sounds.
"_memrec_xxx_activated(te)"
As explained by
mgr.inz.Player
function _memrec_Timer_activated(te)
memrec_freeze(entry_soundenable)
memrec_unfreeze(entry_sounddisable)
control_setCaption( timefreezeLabel, timefreezeString .. " [enabled]")
end
But in the version 6.5 code is no longer executed.
|
|
| Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Tue Jan 12, 2016 9:42 am Post subject: |
|
|
"_memrec_xxx_activating(te)"
"_memrec_xxx_activated(te)"
"_memrec_xxx_deactivating(te)"
"_memrec_xxx_deactivated(te)"
Those are deprecated.
Use OnActivate and OnDeactivate. Example:
| Code: | function MemRecTimerActiv(mr,before,currentstate)
if before==true then return true end
if currentState==true then
entry_soundenable.Active = true
entry_sounddisable.Active = false
end
end
function MemRecTimerDeactiv(mr,before,currentstate)
if before==true then return true end
if currentState==false then
entry_soundenable.Active = false
entry_sounddisable.Active = true
end
end
al = getAddressList()
MemRecTimer = al.getMemoryRecordByDescription('Timer')
MemRecTimer.OnActivate = MemRecTimerActiv
MemRecTimer.OnDeactivate = MemRecTimerDeactiv |
PS: "memory record" == "table entry"
_________________
|
|
| Back to top |
|
 |
joker76 How do I cheat?
Reputation: 0
Joined: 11 Jan 2016 Posts: 4
|
Posted: Tue Jan 12, 2016 1:44 pm Post subject: |
|
|
You must excuse me so much but are not at your level.
How could I implement in my code?
Whereas activation of makeup also changes the text color.
As for the sound I think I understood, but in my code every trick has the sound and color independent.
I'm so sorry if I write quite understandable but do not speak English well
Thank you very much mgr.inz.Player are my idol
| Description: |
|
 Download |
| Filename: |
Tutorial-i386 Cheat Engine 6.4.CETRAINER |
| Filesize: |
318.73 KB |
| Downloaded: |
711 Time(s) |
|
|
| Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Tue Jan 12, 2016 5:11 pm Post subject: |
|
|
Since CE6.4 release we already have play sound feature. Just add wave files, click from menu "Table" then "add file", then use:
| Code: | | playSound( findTableFile('sound.wav') ) |
Below your trainer with small changes:
- OnActivate OnDeactivate
- few variable renames for better script readability
- playSound(soundenable) and playSound(sounddisable)
| Description: |
|
 Download |
| Filename: |
Tutorial-i386 Cheat Engine 6.4.ct |
| Filesize: |
241.94 KB |
| Downloaded: |
667 Time(s) |
_________________
|
|
| Back to top |
|
 |
joker76 How do I cheat?
Reputation: 0
Joined: 11 Jan 2016 Posts: 4
|
Posted: Tue Jan 12, 2016 5:22 pm Post subject: |
|
|
I do not know how to thank you, alone I would have never arrived.
For many years that using cheat engine and for better or worse I could always solve problems, but this time I did not know how to get on.
Thanks so much
mgr.inz.Player
sorry for the trouble I caused.
|
|
| Back to top |
|
 |
joker76 How do I cheat?
Reputation: 0
Joined: 11 Jan 2016 Posts: 4
|
Posted: Wed Jan 13, 2016 3:26 am Post subject: |
|
|
Hello mgr.inz.Player
I have a problem with the table that I was attached
when I close the process Tutorial-i386.exe options may be activated should turn off automatically when the process Tutorial-i386.exe not detected and the markings must be white and the start of Tutorial-i386.exe options must be turned off.
With the old method that I worked so attached in the previous post.
You have been an alternative method to deactivate an option automatically when the process is closed?
Thank you so much for all the help you give me
|
|
| Back to top |
|
 |
|