| View previous topic :: View next topic |
| Do you think it's time Dark Byte should release a version of Cheat Engine supporting MP3 as a background music for trainers ?? |
| Yes!! |
|
55% |
[ 5 ] |
| No!! |
|
44% |
[ 4 ] |
|
| Total Votes : 9 |
|
| Author |
Message |
Sohail__Saha Advanced Cheater
Reputation: 0
Joined: 21 May 2014 Posts: 82 Location: India
|
Posted: Mon May 26, 2014 3:58 am Post subject: How to add background music to trainers(.exe) made with CE?? |
|
|
While making a trainer, there is an option to add a background music option to the trainer. However, only .xm format is supported. There is no way to convert .mp3,.wav,etc files to .xm file using a software. It can be done manually but it takes a lot of time. Can anyone say how to add .mp3 files as a background music in the trainers??
_________________
Don't underestimate the power of a common code.
 |
|
| Back to top |
|
 |
Daijobu Master Cheater
Reputation: 13
Joined: 05 Feb 2013 Posts: 301 Location: the Netherlands
|
Posted: Mon May 26, 2014 5:55 am Post subject: |
|
|
In general a trainer would be as lightweight as possible. This would directly oppose that.
I highly doubt adding MP3 files to the mix will ever be a thing for Cheat Engine.
_________________
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25854 Location: The netherlands
|
Posted: Mon May 26, 2014 6:08 am Post subject: |
|
|
mp3 also tends to come with extra license crap.
Anyhow, you can most likely get/write a lua extension or ce extension that adds mp3 playback
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
Sohail__Saha Advanced Cheater
Reputation: 0
Joined: 21 May 2014 Posts: 82 Location: India
|
Posted: Tue May 27, 2014 3:45 am Post subject: |
|
|
Well then Dark Byte, give a tutorial to "get/write a lua extension or ce extension that adds mp3 playback"
_________________
Don't underestimate the power of a common code.
 |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25854 Location: The netherlands
|
Posted: Tue May 27, 2014 4:16 am Post subject: |
|
|
I'd say get a mp3 playback library from somewhere. E.g BASS: http://www.un4seen.com/ (note that while it's free to use you may not sell trainers that make use of it unless you buy a license)
then it depends on what you like better.
You can inject the dll into the target process(or ce itself), extract the .MP3 file from the table to a temp folder and then execute an AA script that sets up the path and calls createThread to a asm routine that initializes the dll and plays the given file path
or
You can write a DLL using the CE plugin api
then either add a new auto assembler command like "PlayMP3" or use the GetLuaState export to register a lua command that does PlayMP3
Or just use the lua extension module straight out to add a PlayMP3 (compile it using the lua library in the svn)
And inside PlayMP3 it's up to you how to use the given library. Perhaps it gets an address, or it gets a filename. Just handle it accordingly
lua command to help: (next version that comes out very soon)
findTableFile('bla.exe').Stream.Memory will get you the address inside Cheat Engine's memory where the mp3 resides.
You can most likely (depending on the mp3 library you use) feed that address directly into a mp3 playback command
Or if this is all too difficult, you can just write a dll with the mp3 embedded in it that plays as soon as the dll is loaded. No need for manual activation. (just plays one mp3, but i'm sure you can always recompile it with a new resource)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
Sohail__Saha Advanced Cheater
Reputation: 0
Joined: 21 May 2014 Posts: 82 Location: India
|
Posted: Tue May 27, 2014 11:33 am Post subject: |
|
|
Thanks for helping...
_________________
Don't underestimate the power of a common code.
 |
|
| Back to top |
|
 |
|