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 


CE6.1Alpha Trainer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author 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: Thu Apr 07, 2011 8:04 am    Post subject: CE6.1Alpha Trainer Reply with quote

I know it's unfinished. But I already tried to use it.
I find out that some files are still existing inside temp folder after trainer is closed. Inside cetrainers\CET42.tmp I found "extracted" folder with files.

I looked at standalonephase2\main.pas:
WaitForSingleObject(.......);
(...)
deleteFolder(launchdir);



You immediately launch deleting procedure. But in that short time not all file locks are lifted. I added delay procedure, like this:

WaitForSingleObject(.......);
Delay(2000);
deleteFolder(launchdir);


Seems to work.

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

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

PostPosted: Thu Apr 07, 2011 10:49 am    Post subject: Reply with quote

Are you sure you didn't have that folder is use and it's not a old version?
And which particular file are you talking about?
Some files in the package might not be used and could just be deleted (especially the defines.lua file can be deleted always) so if even those are in the folder then it's something else

and speedhack might also cause a problem if the game hasn't closed

_________________
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: Thu Apr 07, 2011 2:10 pm    Post subject: Reply with quote

Dark Byte wrote:
Are you sure you didn't have that folder is use and it's not a old version?

Revision 830. Successful folder deletion ratio: 60%

Dark Byte wrote:

And which particular file are you talking about?

As I said: "Inside cetrainers\CET42.tmp" (42 = xx)

F:\temp\cetrainers>dir /a /b /s
F:\temp\cetrainers\CET6C.tmp
F:\temp\cetrainers\CET6C.tmp\extracted
F:\temp\cetrainers\CET6C.tmp\extracted\lua5.1-32.dll
F:\temp\cetrainers\CET6C.tmp\extracted\Trainer.EXE
F:\temp\cetrainers\CET6C.tmp\extracted\win32
F:\temp\cetrainers\CET6C.tmp\extracted\win32\dbghelp.dll

(BTW. I had 200MB of CETXX.tmp folders & files)

Dark Byte wrote:

Some files in the package might not be used and could just be deleted (especially the defines.lua file can be deleted always) so if even those are in the folder then it's something else

Yes, "defines.lua" is deleted, always.


Dark Byte wrote:

and speedhack might also cause a problem if the game hasn't closed

I wasn't using it.


Everything is OK with this patch applied. Successful folder deletion ratio: 100%
Quote:
Index: main.pas
===================================================================
--- main.pas (wersja 830)
+++ main.pas (kopia robocza)

@@ -5,7 +5,7 @@
interface

uses
- windows, Classes, SysUtils, zstream;
+ windows, Classes, SysUtils, zstream, crt;

procedure launch;

@@ -144,7 +144,7 @@


end;
-
+ delay(2000);
deleteFolder(launchdir);
end;



My OS:
WinXP SP3 32 bit with all updates.


Edit:
Added few informations (i.e. successful ratio).
Tried with "delay(50);". It's working too but I think it's more reliable to stay with one thousand or 2000 value.

_________________
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 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