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 


How to add background music to trainers(.exe) made with CE??

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
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%
 55%  [ 5 ]
No!!
44%
 44%  [ 4 ]
Total Votes : 9

Author Message
Sohail__Saha
Advanced Cheater
Reputation: 0

Joined: 21 May 2014
Posts: 82
Location: India

PostPosted: Mon May 26, 2014 3:58 am    Post subject: How to add background music to trainers(.exe) made with CE?? Reply with quote

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.
Laughing
Back to top
View user's profile Send private message Visit poster's website
Daijobu
Master Cheater
Reputation: 13

Joined: 05 Feb 2013
Posts: 301
Location: the Netherlands

PostPosted: Mon May 26, 2014 5:55 am    Post subject: Reply with quote

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.

_________________
Scripts/tables from scratch. Relation to other scripts is coincidental. Use of posted code is credited properly.
Euro Truck Simulator 2 Backwards Compatible Cheat
American Truck Simulator Backwards Compatible Cheat
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25854
Location: The netherlands

PostPosted: Mon May 26, 2014 6:08 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Sohail__Saha
Advanced Cheater
Reputation: 0

Joined: 21 May 2014
Posts: 82
Location: India

PostPosted: Tue May 27, 2014 3:45 am    Post subject: Reply with quote

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.
Laughing
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25854
Location: The netherlands

PostPosted: Tue May 27, 2014 4:16 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Sohail__Saha
Advanced Cheater
Reputation: 0

Joined: 21 May 2014
Posts: 82
Location: India

PostPosted: Tue May 27, 2014 11:33 am    Post subject: Reply with quote

Thanks for helping...
_________________
Don't underestimate the power of a common code.
Laughing
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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