View previous topic :: View next topic |
Author |
Message |
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Wed Mar 29, 2017 1:57 pm Post subject: CE 6.6 Error after upgrade windows to Win 7 64 bit |
|
|
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
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) |
|
_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL |
|
Back to top |
|
|
Viloresi Expert Cheater Reputation: 0
Joined: 02 Feb 2017 Posts: 149
|
Posted: Wed Mar 29, 2017 2:29 pm Post subject: |
|
|
Click on "view problem details" to see what's the error message.
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Wed Mar 29, 2017 3:43 pm Post subject: |
|
|
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 |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Wed Mar 29, 2017 9:42 pm Post subject: |
|
|
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
Description: |
|
Filesize: |
51.19 KB |
Viewed: |
6306 Time(s) |
|
_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Thu Mar 30, 2017 1:54 am Post subject: |
|
|
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 |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
|
Back to top |
|
|
|