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
|
Posted: Thu Apr 07, 2011 8:04 am Post subject: CE6.1Alpha Trainer |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25788 Location: The netherlands
|
Posted: Thu Apr 07, 2011 10:49 am Post subject: |
|
|
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 |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Thu Apr 07, 2011 2:10 pm Post subject: |
|
|
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 |
|
 |
|