Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-06-2017, 13:09
L0v3craft's Avatar
L0v3craft L0v3craft is offline
Registered User
 
Join Date: Dec 2015
Location: Rome
Posts: 96
Thanks: 421
Thanked 24 Times in 15 Posts
L0v3craft is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
Have this game any deflate streams at all?

Haven't checked yet.

Try to unpack game files, compress them, then pack the files to it's original again and make sure md5 is the same.
I checked with Zlib Checker Pro and it freezes on big files:

game2.resources | 6.01GB
game3.resources | 5.87GB
shared_2_3.sharedrsc | 7.87GB

Btw the program didn't freeze on the first file and found some stream inside game1.resources (7.28GB).

Someone suggested to me to use reflate. I tried with reflate 1500 by razor on a little file like I said and it is very slow. It takes more than 10 minutes to install LOL.

Tried with pzlib v3.2 and these parameters:

pzlib e -t8 -ct8 -c256m -b512k -r9

and it makes a very good work but I get error of crc mismatch with the installation. These .resources files given to me problems with pzlib and The Sims 4 files too. Seems like pzlib damages .resources files.

Anyone here can give to me the best version of reflate and pack command for arc.ini file(I'm using masked data compressor) ?

Last edited by L0v3craft; 06-06-2017 at 13:12.
Reply With Quote
Sponsored Links
  #2  
Old 06-06-2017, 13:49
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
Use this instead, it's better and not freezing at all (even with 19gb single file).
http://fileforums.com/showthread.php?t=98731

This settings should work without problems

packcmd = pZLib e -m2 -x -c32m -t25p - -o - $$arcdatafile$$.tmp -o - <stdout> -v
unpackcmd = pZLib d -t100p - -o - <stdin> <stdout>

And Sims 4 decompression is OK here. So no problems with resource files.

And for reflate, use reflateapi -> http://krinkels.org/resources/reflate-api.247/

It's faster.
__________________
Haters gonna hate

Last edited by KaktoR; 06-06-2017 at 13:55.
Reply With Quote
  #3  
Old 06-06-2017, 16:16
L0v3craft's Avatar
L0v3craft L0v3craft is offline
Registered User
 
Join Date: Dec 2015
Location: Rome
Posts: 96
Thanks: 421
Thanked 24 Times in 15 Posts
L0v3craft is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
Use this instead, it's better and not freezing at all (even with 19gb single file).
http://fileforums.com/showthread.php?t=98731

This settings should work without problems

packcmd = pZLib e -m2 -x -c32m -t25p - -o - $$arcdatafile$$.tmp -o - <stdout> -v
unpackcmd = pZLib d -t100p - -o - <stdin> <stdout>

And Sims 4 decompression is OK here. So no problems with resource files.

And for reflate, use reflateapi -> http://krinkels.org/resources/reflate-api.247/

It's faster.
Thanks for your help. Btw I'm trying reflateapi with a file (game1_004.resources / 595MB) and you can see here how much time it takes:



reflate seems to be slow like a snail. Never seen this with pzlib.

I have an Intel Xeon E3-1230 v3 and I'm using this command for reflate:

reflate c/d -l8 -t8 $$arcdatafile$$.tmp -o $$arcpackedfile$$.tmp

I tried with "l6" too, but it is the same. Any suggestion ?

Edit: I solved the problem, like an idiot I used "c/d" for compression XD

Last edited by L0v3craft; 06-06-2017 at 23:38.
Reply With Quote
  #4  
Old 06-06-2017, 18:08
mikey26 mikey26 is offline
Registered User
 
Join Date: Dec 2008
Location: south africa
Posts: 276
Thanks: 124
Thanked 110 Times in 61 Posts
mikey26 is on a distinguished road
Send a message via AIM to mikey26 Send a message via Yahoo to mikey26
Quote:
Originally Posted by L0v3craft View Post
Thanks for your help. Btw I'm trying reflateapi with a file (game1_004.resources / 595MB) and you can see here how much time it takes:



reflate seems to be slow like a snail. Never seen this with pzlib.

I have an Intel Xeon E3-1230 v3 and I'm using this command for reflate:

reflate c/d -l8 -t8 $$arcdatafile$$.tmp -o $$arcpackedfile$$.tmp

I tried with "l6" too, but it is the same. Any suggestion ?
Reflate is slow.but that Xeon is not going to make any difference cause that cpu only boosts to 3.7ghz on 1 core on normal boards thats why its so slow.

But if you have a good asrock mobo with the right bios you can get it to boost at 3.7ghz on all 4 cores and that will improve alot on your repacking not only with reflate but with other compressions.and a good hdd or ssd will help also.
Reply With Quote
  #5  
Old 08-06-2017, 05:30
Andu21 Andu21 is offline
Registered User
 
Join Date: Feb 2016
Location: Impossible Planet
Posts: 114
Thanks: 179
Thanked 48 Times in 38 Posts
Andu21 is on a distinguished road
How can i terminate a process after a succesful extraction or after hitting cancel, in Isdone 0.6 script?
Reply With Quote
  #6  
Old 09-06-2017, 05:24
Gupta Gupta is offline
Banned
 
Join Date: Aug 2016
Location: https://t.me/pump_upp
Posts: 399
Thanks: 139
Thanked 715 Times in 231 Posts
Gupta is on a distinguished road
Send a message via ICQ to Gupta Send a message via AIM to Gupta Send a message via Yahoo to Gupta
Exec(ExpandConstant('{sys}\taskkill.exe'), ' /F /IM pZLib.exe{YOUR EXE NAME HERE IS PZLIB}', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
Reply With Quote
The Following User Says Thank You to Gupta For This Useful Post:
Andu21 (09-06-2017)
  #7  
Old 10-06-2017, 05:42
Andu21 Andu21 is offline
Registered User
 
Join Date: Feb 2016
Location: Impossible Planet
Posts: 114
Thanks: 179
Thanked 48 Times in 38 Posts
Andu21 is on a distinguished road
Working great so far Gupta, i have another question, how can i run more parallel runs/threads of the same program to speed decompression in said script?

note: The program doesn't have -t4 option or something similar.
Reply With Quote
  #8  
Old 10-06-2017, 06:08
Gupta Gupta is offline
Banned
 
Join Date: Aug 2016
Location: https://t.me/pump_upp
Posts: 399
Thanks: 139
Thanked 715 Times in 231 Posts
Gupta is on a distinguished road
Send a message via ICQ to Gupta Send a message via AIM to Gupta Send a message via Yahoo to Gupta
Replace below function with the function here in this script
i am not gonna explain furthur details you have to answer it yoursef

Code:
function EXEC_UNPACK( const Exec , Option , inFiles, inDir : string; Deldest : boolean): boolean;
var
  ExecError :boolean;
  FindHandle1, ColFiles1, CurIndex1 : Integer;
  InFilePath, OutFilePath, OutFileName : PAnsiChar;
  temp : string;
  #ifdef ppx2
    Str : array of string;
    cmd : string;
    i : integer;
  #endif
begin
  FindHandle1:=ISFindFiles(0,inFiles,ColFiles1);
  ExecError:=false;
  #ifndef ppx2
    while not ExecError and ISPickFilename(FindHandle1,inDir,CurIndex1,DelDest) do
    begin
      temp := option;
      InFilePath:=ISGetName(0);
      OutFilePath:=ISGetName(1);
      OutFileName:=ISGetName(2);
      StringChangeEx(temp,'<infile>',InFilePath,true);
      StringChangeEx(temp,'<outfile>',OutFilePath,true);
      ExecError:=not ISExec(0, 0, 0, Exec,temp,ExpandConstant('{tmp}'),OutFileName,false);
    end;
  #else
    i := 1;
    CreateDir(ExpandConstant('{tmp}\Bat'));
    while not ExecError and ISPickFilename(FindHandle1,inDir,CurIndex1,false) do
    begin
      temp := option;
      InFilePath:=ISGetName(0);
      OutFilePath:=ISGetName(1);
      OutFileName:=ISGetName(2);
      StringChangeEx(temp,'<infile>',InFilePath,true);
      StringChangeEx(temp,'<outfile>',OutFilePath,true);
      Cmd := '"' + Exec + '" ' + temp;
      SaveStringToFile(ExpandConstant('{tmp}\bat\rest'+inttostr(i)+'.bat'),Cmd,False);
      i := i + 1;
      temp := '';
    end;
    if delDest then
      setArrayLength(Str,3)
    else
      setArrayLength(Str,2);
    Str[0] := 'title Restoring File';
    Str[1] := 'dir /b *rest*bat | "' + ExpandConstant('{tmp}\ppx2.exe') + '" -I {} -P %NUMBER_OF_PROCESSORS% -L 1 "{}"';
    if deldest then
      Str[3] := 'del /q /s  ' + inFiles ;
    SaveStringsToFile(ExpandConstant('{tmp}\Bat\Cmd_Master.bat'),Str,false);
    MsgBox('Wainting',mbInformation,mrOk);
    ExecError := not ISExec( 0, 0, 0, ExpandConstant('{tmp}\bat\Cmd_Master.bat'), '', ExpandConstant('{tmp}'), 'Restoring Files..',false) ; // Launches Batch File
    deltree(ExpandConstant('{tmp}\Bat'),true,true,true);
  #endif
  ISFindFree(FindHandle1);
  Result := ExecError;
end;
Reply With Quote
The Following User Says Thank You to Gupta For This Useful Post:
Andu21 (10-06-2017)
  #9  
Old 10-06-2017, 06:19
Andu21 Andu21 is offline
Registered User
 
Join Date: Feb 2016
Location: Impossible Planet
Posts: 114
Thanks: 179
Thanked 48 Times in 38 Posts
Andu21 is on a distinguished road
Fair enough, i will do my best to figure it out, thanks again.
Reply With Quote
  #10  
Old 23-06-2017, 10:41
Viper645 Viper645 is offline
Banned
 
Join Date: Feb 2017
Location: The Gaming World
Posts: 61
Thanks: 28
Thanked 3 Times in 3 Posts
Viper645 is on a distinguished road
Just a query(needed for a work) Is compression of srep 1.5(Yes, 1.5, no other version) superior than latest rep?

Last edited by Viper645; 28-06-2017 at 08:25.
Reply With Quote
  #11  
Old 28-06-2017, 09:18
Bulat Bulat is offline
Registered User
 
Join Date: May 2016
Location: Moscow
Posts: 63
Thanks: 26
Thanked 50 Times in 27 Posts
Bulat is on a distinguished road
Quote:
Originally Posted by Viper645 View Post
Just a query(needed for a work) Is compression of srep 1.5(Yes, 1.5, no other version) superior than latest rep?
no. but it can be made equivalent to modern -m4 which is very close to maximum compression provided by the -m5
Reply With Quote
The Following User Says Thank You to Bulat For This Useful Post:
Viper645 (28-06-2017)
  #12  
Old 28-06-2017, 09:26
Viper645 Viper645 is offline
Banned
 
Join Date: Feb 2017
Location: The Gaming World
Posts: 61
Thanks: 28
Thanked 3 Times in 3 Posts
Viper645 is on a distinguished road
Many many thanks bro
But what's meant by "it can be made"?

Last edited by Viper645; 28-06-2017 at 10:55.
Reply With Quote
  #13  
Old 28-06-2017, 11:25
Bulat Bulat is offline
Registered User
 
Join Date: May 2016
Location: Moscow
Posts: 63
Thanks: 26
Thanked 50 Times in 27 Posts
Bulat is on a distinguished road
there is the combination of options
Reply With Quote
  #14  
Old 28-06-2017, 23:10
doofoo24 doofoo24 is offline
Registered User
 
Join Date: Nov 2016
Location: canada
Posts: 408
Thanks: 138
Thanked 474 Times in 227 Posts
doofoo24 is on a distinguished road
i been using srep with m5f -l16 -c8 -a1 it help with 4x4:lzma:a1:mfbt4:d1m:fb273:mc10000:lc8,
but when try to use lzma:a1:mfbt4:d1024m:fb273:mc10000:lc8 i get almost the same ratio but when i change srep to m3f -l512 -c256 -a1 and use lzma:a1:mfbt4:d1024m:fb273:mc10000:lc8 i get better ratio in the end...
what the best setting for srep to use with 4x4:lzma:a1:mfbt4:dm:fb273:mc10000:lc8
Reply With Quote
  #15  
Old 02-07-2017, 17:48
Viper645 Viper645 is offline
Banned
 
Join Date: Feb 2017
Location: The Gaming World
Posts: 61
Thanks: 28
Thanked 3 Times in 3 Posts
Viper645 is on a distinguished road
Quote:
Originally Posted by Bulat View Post
there is the combination of options
Can you please explain?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The ONLY Half-Life 2 Thread. Do Not Create New Threads JoyBoy PC Games 286 25-03-2005 05:49
Official Sims 2 Thread JoyBoy PC Games 229 25-10-2004 16:01
'Official' CM4 Thread - Do Not Create New Threads Fila PC Games 119 23-07-2003 06:33



All times are GMT -7. The time now is 23:30.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com