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 


Custom Sound not work in CE 6.5

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
joker76
How do I cheat?
Reputation: 0

Joined: 11 Jan 2016
Posts: 4

PostPosted: Mon Jan 11, 2016 6:44 pm    Post subject: Custom Sound not work in CE 6.5 Reply with quote

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
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Tue Jan 12, 2016 9:42 am    Post subject: Reply with quote

"_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
View user's profile Send private message MSN Messenger
joker76
How do I cheat?
Reputation: 0

Joined: 11 Jan 2016
Posts: 4

PostPosted: Tue Jan 12, 2016 1:44 pm    Post subject: Reply with quote

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



Tutorial-i386 Cheat Engine 6.4.CETRAINER
 Description:

Download
 Filename:  Tutorial-i386 Cheat Engine 6.4.CETRAINER
 Filesize:  318.73 KB
 Downloaded:  711 Time(s)

Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Tue Jan 12, 2016 5:11 pm    Post subject: Reply with quote

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)



Tutorial-i386 Cheat Engine 6.4.ct
 Description:

Download
 Filename:  Tutorial-i386 Cheat Engine 6.4.ct
 Filesize:  241.94 KB
 Downloaded:  667 Time(s)


_________________
Back to top
View user's profile Send private message MSN Messenger
joker76
How do I cheat?
Reputation: 0

Joined: 11 Jan 2016
Posts: 4

PostPosted: Tue Jan 12, 2016 5:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
joker76
How do I cheat?
Reputation: 0

Joined: 11 Jan 2016
Posts: 4

PostPosted: Wed Jan 13, 2016 3:26 am    Post subject: Reply with quote

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