View previous topic :: View next topic |
Author |
Message |
Alice0725 Expert Cheater
Reputation: 11
Joined: 24 Jul 2012 Posts: 145
|
Posted: Tue Aug 07, 2012 12:56 pm Post subject: [Solved]How to embed an image to cetrainer file and read it? |
|
|
I've made an ingame menu trainer for OMD2, as there are some pictures ,just want to make it a single trainer file. So, how to make a picture embedded to a cetrainer file, then we can do sth. like this:
Code: | menuTexture=d3dhook_createTexture(getCheatEngineDir().."cheats\\omd2\\menu.png") |
Last edited by Alice0725 on Tue Aug 07, 2012 3:34 pm; edited 1 time in total |
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25805 Location: The netherlands
|
Posted: Tue Aug 07, 2012 2:32 pm Post subject: |
|
|
When using a cetrainer file (or tiny trainer), I recommend making use of the variable: TrainerOrigin which points to the location of the .cetrainer or tiny .exe
If it is a gigantic trainer(See those like .net exes bundled with the whole .net framework), you can embed the files into the exe
When at the "Exe trainer generator" click on add folder (or add files) and add the folder (or files) to the list
If you wish to change the folder the files will be in, rightclick each file and choose the option "edit folder"
example: \cheats\cmd2\
Also, you can create a table form, and in that form have an image.
Then when the table is loaded just get the picture object from that image so no need for a separate file
_________________
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 |
|
 |
Alice0725 Expert Cheater
Reputation: 11
Joined: 24 Jul 2012 Posts: 145
|
Posted: Tue Aug 07, 2012 3:33 pm Post subject: |
|
|
Thanks!
I'm so stupid, even forgotten there's an table object!
Did you write "TrainerOrigin" into the help file ? Can't even see it !
By the way, I hate the "EXE" Trainer! This XML trainer is very nice!
|
|
Back to top |
|
 |
Ludwig Advanced Cheater
Reputation: 0
Joined: 10 Jan 2016 Posts: 68
|
Posted: Sun Mar 20, 2016 6:30 am Post subject: |
|
|
Dark Byte wrote: | When using a cetrainer file (or tiny trainer), I recommend making use of the variable: TrainerOrigin which points to the location of the .cetrainer or tiny .exe
If it is a gigantic trainer(See those like .net exes bundled with the whole .net framework), you can embed the files into the exe
When at the "Exe trainer generator" click on add folder (or add files) and add the folder (or files) to the list
If you wish to change the folder the files will be in, rightclick each file and choose the option "edit folder"
example: \cheats\cmd2\
Also, you can create a table form, and in that form have an image.
Then when the table is loaded just get the picture object from that image so no need for a separate file |
so...if i want to use .vbs script files that i call with os.execute("wscript path\my.vbs) ...can i include the vbs files in e gigantic version, and how do i call them then?
|
|
Back to top |
|
 |
|