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 


Bug feedback in ce7.0

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
.lua
Expert Cheater
Reputation: 1

Joined: 13 Sep 2018
Posts: 203

PostPosted: Fri Feb 07, 2020 5:34 am    Post subject: Bug feedback in ce7.0 Reply with quote

CE7.0 doesn't work in Windows XP. You can't open processes or even play MP3


error_482.jpg
 Description:
 Filesize:  27.86 KB
 Viewed:  2725 Time(s)

error_482.jpg


Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sat Feb 08, 2020 12:26 pm    Post subject: Reply with quote

I also noticed this issue. CheatEngine compiled with Lazarus and FreePascalCompiler 3.2.0(beta) does not work under WinXP.

Original CE7.0 and custom builds compiled with FPC 3.2.0 will raise exception at this line when you open process, if you have WinXP:
https://github.com/cheat-engine/cheat-engine/blob/363c0ef5f104336ad98826f68e7fd8a16daac1ef/Cheat%20Engine/MainUnit.pas#L2898-L2903

_________________
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Sat Feb 08, 2020 12:50 pm    Post subject: Reply with quote

that happens when processhandle is 0 which means OpenProcess failed
_________________
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
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sat Feb 08, 2020 1:15 pm    Post subject: Reply with quote

With FPC 3.0.4 it works normally.
_________________
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Sat Feb 08, 2020 1:57 pm    Post subject: Reply with quote

try now
_________________
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
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sat Feb 08, 2020 5:44 pm    Post subject: Reply with quote

Fixed.

From your patch, I think I can release CE selfhack fix.


EDIT:
Partially fixed.
There are more places with PROCESS_ALL_ACCESS, few of them:

- procedure protectme

- ownprocesshandle := OpenProcess(PROCESS_ALL_ACCESS, True, GetCurrentProcessId);

- procedure TProcessListLong.execute

- procedure TDebuggerthread.SetOnExecuteBreakpoint

- procedure TSymbolloaderthread.execute

And indeed, inside process list window after choosing "Process List(long)" from context menu, CE doesn't show anything. "Enumerate DLL's and Symbols" also doesn't show symbols.


EDIT2:
@.lua

Open cheatengine-i386.exe (official CE7.0) with hex editor, find
Code:
68 FF FF 1F 00 FF 15 90 4A E2 00


and replace ALL with
Code:
68 FF 0F 1F 00 FF 15 90 4A E2 00




and
Code:
68 FF FF 1F 00 E8 B3 AB F3 FF


with
Code:
68 FF 0F 1F 00 E8 B3 AB F3 FF






EDIT3:
Or you can use this Lua autorun script:
Code:
local a,b,c,d,e,f

if not cheatEngineIs64Bit() then
  a=autoAssemble("aobscan(a,68 FF FF 1F 00 FF 15 90 4A E2 00)\na:\ndb 68 FF 0F 1F 00 FF 15 90 4A E2 00",true)
  b=autoAssemble("aobscan(a,68 FF FF 1F 00 FF 15 90 4A E2 00)\na:\ndb 68 FF 0F 1F 00 FF 15 90 4A E2 00",true)
  c=autoAssemble("aobscan(a,68 FF FF 1F 00 FF 15 90 4A E2 00)\na:\ndb 68 FF 0F 1F 00 FF 15 90 4A E2 00",true)
  d=autoAssemble("aobscan(a,68 FF FF 1F 00 FF 15 90 4A E2 00)\na:\ndb 68 FF 0F 1F 00 FF 15 90 4A E2 00",true)
  e=autoAssemble("aobscan(a,68 FF FF 1F 00 FF 15 90 4A E2 00)\na:\ndb 68 FF 0F 1F 00 FF 15 90 4A E2 00",true)
  f=autoAssemble("aobscan(a,68 FF FF 1F 00 E8 B3 AB F3 FF)\na:\ndb 68 FF 0F 1F 00 E8 B3 AB F3 FF",true)
  if not (a and b and c and d and e and f) then
    print('CE_fix_WinXP_OpenProcess script does not work...')
  end
end

_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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