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 


CE 6.6 Error after upgrade windows to Win 7 64 bit

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Wed Mar 29, 2017 1:57 pm    Post subject: CE 6.6 Error after upgrade windows to Win 7 64 bit Reply with quote

I just re-install my PC to Win 7 Ultimate 64 Bit.
I got error as show on image attach while I try to open my trainers which created with CE 6.6 on Win 7 32 bit before.

Note :
-- CE 6.6 installed normally after upgraded to Win 7 64 bit.
-- My trainer work properly before upgraded Win 7 to 64 bit

How to fix it ?

Thanks



Error.JPG
 Description:
CE 6.6 Error on Win 7 64 bit while trying to open trainer created on Win 7 32 bit
 Filesize:  31.07 KB
 Viewed:  6378 Time(s)

Error.JPG



_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Viloresi
Expert Cheater
Reputation: 0

Joined: 02 Feb 2017
Posts: 149

PostPosted: Wed Mar 29, 2017 2:29 pm    Post subject: Reply with quote

Click on "view problem details" to see what's the error message.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Wed Mar 29, 2017 3:43 pm    Post subject: Reply with quote

try loading the 32-bit CE executable from the start menu and open your trainer in there

As for the error, no idea. Checked your anti virus ?

_________________
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
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Wed Mar 29, 2017 9:42 pm    Post subject: Reply with quote

View error detail code : BEX64 (as image attach)
Now trying to look for solution on MSN.

For a while my trainer can open after open file setting :

1. right click on CT file
2. choose open with
3. select "cheatengine-i386.exe' from cheat engine dir on C;\Program Files (x86)

Anyhow I will try to re-writing my old trainer script on current CE installed cheat table and get know it work or not, because for comparison, I've make a utf-8 regex lua script and others lua scripts using current installed CE, all scripts (written after Win 7 upgrade to 64 bit) just working fine.

Thanks for help

Regards

EDIT :

The problem is here, this function make CE 6.6 stop working on Win 7 64 bit :

Code:
function TableAddFont(path)
 if (type(path)=='string') then
 local font,filename
 font = findTableFile(path);
 if (not font) then
 local file = io.open(path,"r")
 if (not file) then
 error("ERROR loading font");
 else
 file:close();
 filename = path:match("\\(.-)$")
 font = findTableFile(filename)
 if (not font) then
 font = createTableFile(filename,path)
 end
 end
 end
 local pFont = font.stream.memory
 local length = font.stream.size
 local sAdd = "alloc(script,56)\nalloc(data,10)\nlabel(count)\nlabel(handle)\nregistersymbol(count)\nregistersymbol(handle)\nregistersymbol(script)\nregistersymbol(data)\n\nscript:\nlea eax,[count]\npush eax\npush 0\npush #%d\npush #%d\ncall AddFontMemResourceEx\nmov [handle],eax\nret\n\ndata:\ncount:\ndd -1\nhandle:\n\ndd -1\ncreatethread(script)"
 sAdd = sAdd:format(length,pFont)
 local status = autoAssemble(sAdd,true);
 if (status) then
 local sRemove = ("alloc(script,56)\nlabel(success)\nregistersymbol(success)\nregistersymbol(script)\n\nscript:\npush #%d\ncall RemoveFontMemResourceEx\nmov [success],eax\nret\n\nsuccess:\ndd -1\ncreatethread(script)")
 sRemove:format(readIntegerLocal("handle"));
 return true,function () return autoAssemble(sRemove); end;
 end
 end
end

--TableAddFont("Armalite_Rifle.ttf")
--TableAddFont("DS-DIGITAL.TTF")


Without call this function, my CT work properly



Error.JPG
 Description:
 Filesize:  51.19 KB
 Viewed:  6306 Time(s)

Error.JPG



_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Thu Mar 30, 2017 1:54 am    Post subject: Reply with quote

instead of using an autoassembler script written for the 32-bit CE, use the lua function loadFontFromStream

e.g loadFontFromStream(findTableFile('Armalite_Rifle.ttf').Stream)

_________________
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
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Thu Mar 30, 2017 3:57 am    Post subject: Reply with quote

Code:
 loadFontFromStream(findTableFile('Armalite_Rifle.ttf').Stream)


I just know if CE 6.6 is equipped with this function.. Wink

Regards

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
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 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