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 


Why .NET Flash trainers don't run under Vista/XP x64 and fix

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

Joined: 18 Feb 2009
Posts: 8

PostPosted: Wed Feb 18, 2009 4:12 pm    Post subject: Why .NET Flash trainers don't run under Vista/XP x64 and fix Reply with quote

I can't explain this while not getting a bit technical but here it goes:

.NET code is compiled on execution by what is called the JIT (Just In Time) compiler.

When you run a .NET application under a x86_64 operating system, the JIT compiler uses native x86_64 code.

.NET Flash trainers contain Flash objects which need the Flash Player installed. When the application is running in 64bits it's impossible to find a Flash Player because a 64bit one doesn't exist.

The workaround is simple: You need to force the JIT compiler to use 32bit code on these trainers and then it can find the Flash Player and it will work flawlessly.

There is a tool that allows you to permanently change the flag on the executable to force the JIT compiler to generate 32bit code. This tool is CorFlags.exe

For those of you who have the SDKs installed you can find it here:
C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin\x64\CorFlags.exe
or here:
C:\Program Files\Microsoft Visual Studio 9\SDK\v3.5\Bin\CorFlags.exe

depending on your system.

For those of you who don't have the SDKs I've attached the file here (any moderator feel free to check it for virii/malware and post the results).

Put it in the same directory as your trainer and run this command (from a command prompt) to permanently change the trainer's executable:

CorFlags trainer.exe /32BIT+ /Force

(where trainer.exe is the actual name of the executable of the flash trainer you're trying to run).


Considering how many people have posted questions about this problem with no answer, you may want to consider to sticky this.

Have fun:)

EDIT: Forgot to attach:P Fixed now:)



CorFlags.rar
 Description:
Tool to change flags on .NET executables.

Download
 Filename:  CorFlags.rar
 Filesize:  29.42 KB
 Downloaded:  946 Time(s)



Last edited by Nodens on Wed Feb 18, 2009 5:42 pm; edited 2 times in total
Back to top
View user's profile Send private message
jdm
Advanced Cheater
Reputation: 0

Joined: 19 Sep 2008
Posts: 88

PostPosted: Wed Feb 18, 2009 4:41 pm    Post subject: Reply with quote

Thanks for the advice. Cool
Back to top
View user's profile Send private message
Up2Admin
I'm a spammer
Reputation: 108

Joined: 17 Oct 2007
Posts: 6587
Location: Texas

PostPosted: Wed Feb 18, 2009 6:40 pm    Post subject: Reply with quote

Thank you. This is very useful, in fact I think it should be stickied.

You forgot one thing though.

If you have the CoreFlags in the same directory as the trainer exe then you probably need to do this in the command prompt before you do anything else:

Code:
chdir C:\Users\bstaind\stuff\


If my trainer.exe and CoreFlags are in the directory "stuff" then that would set the cmd prompt directory to "stuff" allowing you do use CoreFlags on the trainer.exe.

"C:" being the drive and the rest is just what leads to the "stuff" directory from the "C:" drive.

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

Joined: 18 Feb 2009
Posts: 8

PostPosted: Wed Feb 18, 2009 6:53 pm    Post subject: Reply with quote

You're right:) I just assumed that people know how to navigate in the command prompt, hehe
Back to top
View user's profile Send private message
Dr.Acula
Newbie cheater
Reputation: 0

Joined: 20 Sep 2008
Posts: 18
Location: Imaginary Manga World of neverending Hope

PostPosted: Sat Mar 14, 2009 9:05 am    Post subject: Reply with quote

Sorry but when in try to run the Command "CorFlags trainer.exe /32BIT /Force" it says CorFlags isn't a recognized command or something :S Help pls?
Back to top
View user's profile Send private message
Up2Admin
I'm a spammer
Reputation: 108

Joined: 17 Oct 2007
Posts: 6587
Location: Texas

PostPosted: Sat Mar 14, 2009 10:15 am    Post subject: Reply with quote

Lazarus wrote:
Sorry but when in try to run the Command "CorFlags trainer.exe /32BIT /Force" it says CorFlags isn't a recognized command or something :S Help pls?


-BloodStaind- wrote:
Thank you. This is very useful, in fact I think it should be stickied.

You forgot one thing though.

If you have the CoreFlags in the same directory as the trainer exe then you probably need to do this in the command prompt before you do anything else:

Code:
chdir C:\Users\bstaind\stuff\


If my trainer.exe and CoreFlags are in the directory "stuff" then that would set the cmd prompt directory to "stuff" allowing you do use CoreFlags on the trainer.exe.

"C:" being the drive and the rest is just what leads to the "stuff" directory from the "C:" drive.

_________________
Back to top
View user's profile Send private message
Dr.Acula
Newbie cheater
Reputation: 0

Joined: 20 Sep 2008
Posts: 18
Location: Imaginary Manga World of neverending Hope

PostPosted: Sun Mar 15, 2009 4:55 am    Post subject: Reply with quote

Umm still doesn't work cause it says this Version of CorFlags.exe is not compatible with the Version you're running. CorFlags isn't on my Comp so where can i get the right Version of CorFlags.exe for my Comp?
Back to top
View user's profile Send private message
Up2Admin
I'm a spammer
Reputation: 108

Joined: 17 Oct 2007
Posts: 6587
Location: Texas

PostPosted: Sun Mar 15, 2009 8:14 am    Post subject: Reply with quote

Lazarus wrote:
Umm still doesn't work cause it says this Version of CorFlags.exe is not compatible with the Version you're running. CorFlags isn't on my Comp so where can i get the right Version of CorFlags.exe for my Comp?
He has it attached to download...
_________________
Back to top
View user's profile Send private message
Dillonz
Grandmaster Cheater
Reputation: 4

Joined: 20 Jan 2008
Posts: 758
Location: Under your bed

PostPosted: Mon Mar 16, 2009 8:16 am    Post subject: Reply with quote

I got this error:
Quote:
corflags : error CF008 : The specified file does not have a valid managed header
Back to top
View user's profile Send private message MSN Messenger
Up2Admin
I'm a spammer
Reputation: 108

Joined: 17 Oct 2007
Posts: 6587
Location: Texas

PostPosted: Mon Mar 16, 2009 8:56 am    Post subject: Reply with quote

Teknological wrote:
I got this error:
Quote:
corflags : error CF008 : The specified file does not have a valid managed header
O.o

Wtf, are you sure you are doing it on an exe file?

_________________
Back to top
View user's profile Send private message
Dillonz
Grandmaster Cheater
Reputation: 4

Joined: 20 Jan 2008
Posts: 758
Location: Under your bed

PostPosted: Mon Mar 16, 2009 8:59 am    Post subject: Reply with quote

-BloodStaind- wrote:
Teknological wrote:
I got this error:
Quote:
corflags : error CF008 : The specified file does not have a valid managed header
O.o

Wtf, are you sure you are doing it on an exe file?

Yeah, it's an .exe
Back to top
View user's profile Send private message MSN Messenger
slcshine
How do I cheat?
Reputation: 0

Joined: 15 Mar 2009
Posts: 1

PostPosted: Mon Mar 16, 2009 2:43 pm    Post subject: Reply with quote

i tried it but it couldnt work, it said CF002 error: could not open file for reading, this is my first time on this forum lol, i hope i can get to learn things here Razz
Back to top
View user's profile Send private message
zabilac
How do I cheat?
Reputation: 0

Joined: 01 Mar 2009
Posts: 6

PostPosted: Wed Apr 01, 2009 4:03 pm    Post subject: Reply with quote

Finnaly i gett trainers to work ty soo much
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Flash Games 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)