FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   ZSTD precompressor (Side project) (https://fileforums.com/showthread.php?t=102599)

elit 10-02-2019 14:05

Thank you as well and its great to see you kicking again. If I may ask, why not just update zstd inside xtool and make another separate one?

darkwolves 10-02-2019 18:43

i've been collecting the side projects i sometimes tend to use them over Xtool

darkwolves 10-02-2019 18:52

Quote:

Originally Posted by panker1992 (Post 479446)
any ideas how to unpack game files and pack them again ??

this was passed onto me by KaKtor it extracts it
but i have yet to successfully pack it back up

http://forum.xentax.com/viewtopic.php?f=10&t=19304

Razor12911 10-02-2019 20:29

Quote:

Originally Posted by GTX590 (Post 479449)
Any chance that it works with Forza Horizon 4?

Am not sure lol

Quote:

Originally Posted by elit (Post 479451)
Thank you as well and its great to see you kicking again. If I may ask, why not just update zstd inside xtool and make another separate one?

because xtool is in a horrible state currently, a lot of months passed and I just decided to open the source recently and it didn't seem like I was the one who the WTF code it contains :D

So I decided start smaller projects to see how those fare in what I plan to do in future.

elit 11-02-2019 05:19

Quote:

Originally Posted by Razor12911 (Post 479458)
because xtool is in a horrible state currently, a lot of months passed and I just decided to open the source recently and it didn't seem like I was the one who the WTF code it contains :D

I know this feeling. Coded my own "Total Commander" in Borland C++ years ago and later decided to revisit. My code is actually extremely clean and ordered(others who saw it said as well), yet I gave up as it would take too much effort/time to digest it again.

I suspect this have to do with object oriented languages once they grow in size, never had such problem with C projects and even reading others work (like before mentioned LZ4 or plzip which I forked to xnlz) was such a breeze. Yet I could never properly digest C++ code not only from others, but even my own - well organized. And I used to be really good at C++ once before(before I forgot most of that crap) including complete STL knowledge, all kind of tricks etc..

Really, just drop that crap called "delphi pascal" and try plain C instead ;). I am almost certain you will not regret it + you will gain speed as well and besides, most of your tools are command line without GUI anyway :o.

Razor12911 13-02-2019 17:27

Quote:

Originally Posted by elit (Post 479465)
I know this feeling. Coded my own "Total Commander" in Borland C++ years ago and later decided to revisit. My code is actually extremely clean and ordered(others who saw it said as well), yet I gave up as it would take too much effort/time to digest it again.

I suspect this have to do with object oriented languages once they grow in size, never had such problem with C projects and even reading others work (like before mentioned LZ4 or plzip which I forked to xnlz) was such a breeze. Yet I could never properly digest C++ code not only from others, but even my own - well organized. And I used to be really good at C++ once before(before I forgot most of that crap) including complete STL knowledge, all kind of tricks etc..

Really, just drop that crap called "delphi pascal" and try plain C instead ;). I am almost certain you will not regret it + you will gain speed as well and besides, most of your tools are command line without GUI anyway :o.

I only code for fun bro or I should I say I used to as it is not fun anymore :/, so learning how to write in another language would simply mean I'm not doing it as a hobby but now taking a path towards something I do as a profession :(

L0v3craft 17-02-2019 08:05

Thank you Razor, btw here it doesn't pump(pre-compress) the files of the folders: 920560, 920561, 920562, 920563, 920564, 920567, 920568, 920569, 920570. Is the normal ? Btw it works with re_chunk_000.pak (22.1GB).

FitGirl 17-02-2019 22:06

Quote:

Originally Posted by L0v3craft (Post 479571)
Thank you Razor, btw here it doesn't pump(pre-compress) the files of the folders: 920560, 920561, 920562, 920563, 920564, 920567, 920568, 920569, 920570. Is the normal ? Btw it works with re_chunk_000.pak (22.1GB).

DLC paks are compressed with deflate

L0v3craft 23-02-2019 11:13

Edit: sorry you can delete this.

yasitha 05-03-2019 08:11

I have try it on Resident Evil 7 won't work :(

I know Re7 had zlib but i think something else also inthere like lzo, lz4 or zstd different header.. Maybe..

ZAZA4EVER 08-03-2019 00:24

Devil May Cry 5
 
Thanks Razor ... Tool Works Fine ...

ZSTDREC

Code:

FreeArc 0.67 (March 15 2014) creating archive: ZAZA.Data1zrec.bin
Compressed 1 file, 33,451,416,458 => 49,631,422,519 bytes. Ratio 148.37%
Compression time: cpu 95.28 sec/real 1752.97 sec = 5%. Speed 19.08 mB/s
All OK

Xtool V0.9 Zlib

Code:

FreeArc 0.67 (March 15 2014) creating archive: ZAZA.Data1xtool.bin
Compressed 1 file, 33,451,416,458 => 34,951,267,935 bytes. Ratio 104.48%
Compression time: cpu 94.34 sec/real 1402.57 sec = 7%. Speed 23.85 mB/s
All OK


yasitha 08-03-2019 00:35

Quote:

Originally Posted by ZAZA4EVER (Post 480065)
Thanks Razor ... Tool Works Fine ...

ZSTDREC

Code:

FreeArc 0.67 (March 15 2014) creating archive: ZAZA.Data1zrec.bin
Compressed 1 file, 33,451,416,458 => 49,631,422,519 bytes. Ratio 148.37%
Compression time: cpu 95.28 sec/real 1752.97 sec = 5%. Speed 19.08 mB/s
All OK

Xtool V0.9 Zlib

Code:

FreeArc 0.67 (March 15 2014) creating archive: ZAZA.Data1xtool.bin
Compressed 1 file, 33,451,416,458 => 34,951,267,935 bytes. Ratio 104.48%
Compression time: cpu 94.34 sec/real 1402.57 sec = 7%. Speed 23.85 mB/s
All OK


Awesome!!! GOOD JOB

so game had both,
like Re2 zlib+zstd..

Unfortunately i don't have The Game.
Waiting for it to happen :D

observer23232 04-05-2019 02:16

Thanks Razor!

BTW:
im used taskkill for zstdrec.exe

Code:

function IsProcessRunning(FileName: String): Boolean;
var
  objSWbemLocator, objSWbemServices: Variant;
begin
  try
    objSWbemLocator:= CreateOleObject('WbemScripting.SWbemLocator');
  except
    ShowExceptionMessage;
    Exit;
  end;
  objSWbemServices:= objSWbemLocator.ConnectServer();
  objSWbemServices.Security_.ImpersonationLevel := 3;
  Result := (objSWbemServices.ExecQuery('SELECT * FROM Win32_Process WHERE Name="' + FileName + '"').Count > 0);
end;

Cancel Button or ISDoneError
Code:

var
#ifdef zstdrec
  ResC: Integer;
#endif 
begin
------ 
    #ifdef zstdrec
      if IsProcessRunning('zstdrec.exe') then
      Exec(ExpandConstant('{sys}\taskkill.exe'), ' /F /IM zstdrec.exe', '', SW_HIDE, ewWaitUntilTerminated, ResC);
    #endif
end;


prince55 03-04-2020 19:50

Does zstdrec work with resident evil 3 remake ?
hmm , it does not expand for me !!
Are game files encrypted ?

panker1992 06-04-2020 17:30

you can check on my guide :D on RE3


All times are GMT -7. The time now is 16:00.

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