FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   Knight Compressor (https://fileforums.com/showthread.php?t=103687)

bunti_o4u 22-07-2020 09:09

Knight Compressor
 
4 Attachment(s)
Knight Compressor

It is a compressor tool with simple GUI and lots of flexibility in term of adding new compression method and compression options.

Special thanks to Cesar82 for his significant contribution and efforts throughout this project and without his support it was not possible for me to complete this project.

Quote:

Steps to add new compression method and options are below: (lets say we want to add srep compression method)
  1. Add the compression method srep in "Methods_x32.ini" (if it is 32 bit) and/ or in "Methods_x64.ini" (if it is 64 bit).
  2. Create a folder srep in "Resource32" (if it is 32 bit) and/ or in "Resource64" (if it is 64 bit) and copy resources in the folder.
  3. Edit arc.ini file in "Resource32" (if it is 32 bit) and/ or in "Resource64" (if it is 64 bit).

    [External compressor:srep]
    header = 0
    packcmd = Resource32\srep\srep {options} InFile - <stdout>
    datafile = InFile

    [External compressor:srep]
    header = 0
    packcmd = Resource64\srep\srep{options} InFile - <stdout>
    datafile = InFile

  4. Create a text file and name it srep and change the extension to .ini. Add the options for the compression method.

Note: Try to keep the compression method and resource name same. e.g. srep

Remark:
There is no intention of infringing anyone's copyright.

Screenshots:

bunti_o4u 31-07-2020 08:30

Fixed a bug
 
Changelog v1.2
Fixed - temp directory was not getting deleted on cancelling the compression process.

Changelog v1.1
Fixed - processes keep running after cancelling the compression process.

ADMIRAL 03-08-2020 01:30

Hello dear friend and thanks you for your program
The program has a problem and that is that I compressed a 5gb game with the method pzlib + oodlrecm + mcm + srep + xz to test.
Now I tried to install the game with a setup, but it took a long time to start the installation, until I stopped the setup,please solve this problem .....

bunti_o4u 03-08-2020 05:49

Quote:

Originally Posted by ADMIRAL (Post 487201)
Hello dear friend and thanks you for your program
The program has a problem and that is that I compressed a 5gb game with the method pzlib + oodlrecm + mcm + srep + xz to test.
Now I tried to install the game with a setup, but it took a long time to start the installation, until I stopped the setup,please solve this problem .....

If the problem is with the compressor, it would have not created the archive itself. So the problem may be with installer you are using.

Can you share your installer script?

ADMIRAL 04-08-2020 21:40

1 Attachment(s)
Quote:

Originally Posted by bunti_o4u (Post 487207)
If the problem is with the compressor, it would have not created the archive itself. So the problem may be with installer you are using.

Can you share your installer script?

This is The BlackFire69 Script
Please Do Something...

bunti_o4u 05-08-2020 04:12

Quote:

Originally Posted by ADMIRAL (Post 487245)
This is The BlackFire69 Script
Please Do Something...

Below may be causing the issue:
  1. Setup is using fazip instead of freearc (both are same or not - I am not aware of).
  2. srep doesn't need unpack command in are.ini file (coz cls file will be automatically detected by freearc and it doesn't require any unpack command):

Code:

[External compressor:srep]
header    = 0
packcmd  = Srep\srep.exe {options} -a1 -m5f $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = fazip -i0 decompress:srep <stdin> <stdout>


ADMIRAL 05-08-2020 20:57

Quote:

Originally Posted by bunti_o4u (Post 487255)
Below may be causing the issue:
  1. Setup is using fazip instead of freearc (both are same or not - I am not aware of).
  2. srep doesn't need unpack command in are.ini file (coz cls file will be automatically detected by freearc and it doesn't require any unpack command):

Code:

[External compressor:srep]
header    = 0
packcmd  = Srep\srep.exe {options} -a1 -m5f $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = fazip -i0 decompress:srep <stdin> <stdout>


I Well Test It Again

Grumpy 05-08-2020 21:40

Thread moved to the correct Sub-Forum ;)

lolaya 06-08-2020 10:18

Excellent ... keep going.

ADMIRAL 07-08-2020 23:51

Quote:

Originally Posted by bunti_o4u (Post 487255)
Below may be causing the issue:
  1. Setup is using fazip instead of freearc (both are same or not - I am not aware of).
  2. srep doesn't need unpack command in are.ini file (coz cls file will be automatically detected by freearc and it doesn't require any unpack command):

Code:

[External compressor:srep]
header    = 0
packcmd  = Srep\srep.exe {options} -a1 -m5f $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = fazip -i0 decompress:srep <stdin> <stdout>


I tried it, but it still did not work
I think its cause mcm

bunti_o4u 08-08-2020 01:56

1 Attachment(s)
Quote:

Originally Posted by ADMIRAL (Post 487295)
I tried it, but it still did not work
I think its cause mcm

Replace the files in your installer with the files attached in this post and let me know if its worked..

ADMIRAL 08-08-2020 05:20

Quote:

Originally Posted by bunti_o4u (Post 487297)
Replace the files in your installer with the files attached in this post and let me know if its worked..

Thankful
I am busy now, if there is no problem, I will test it in a few hours:o:o

lolaya 15-08-2020 13:14

waiting for updates and upgrades

ps5haznogamez 19-08-2020 10:05

I get "WARNING: no files, erasing empty archive" when I try to compress, even though I chose my source and output folder, and my source has my data. What did I do wrong?

ADMIRAL 19-08-2020 21:30

Quote:

Originally Posted by bunti_o4u (Post 487297)
Replace the files in your installer with the files attached in this post and let me know if its worked..

Still its not working..
I guess its about mcm

darkwolves 20-08-2020 01:56

Quote:

Originally Posted by bunti_o4u (Post 487143)
Changelog v1.2
Fixed - temp directory was not getting deleted on cancelling the compression process.

Changelog v1.1
Fixed - processes keep running after cancelling the compression process.

i have to say you have definately come a long way i remember awhile back when we were both puzzled about a wpi installer

kudos!

ps5haznogamez 20-08-2020 12:56

Quote:

Originally Posted by ps5haznogamez (Post 487491)
I get "WARNING: no files, erasing empty archive" when I try to compress, even though I chose my source and output folder, and my source has my data. What did I do wrong?

bump...

IRAQIGHOST 20-08-2020 13:42

Thanks for it

I want to ask what is best plan to comprising games with high rate and high speed of installing with Knight Compressor?

bunti_o4u 24-08-2020 10:28

Quote:

Originally Posted by ADMIRAL (Post 487496)
Still its not working..
I guess its about mcm

mcm takes huge time for decompression. e.g. I had compressed one file which was around 1.5GB of size. It took almost 50 min to decompress.

If you are using it with other tools and file size is say 4GB it may take around 2.5 hours appr.

Quote:

Originally Posted by ps5haznogamez (Post 487491)
I get "WARNING: no files, erasing empty archive" when I try to compress, even though I chose my source and output folder, and my source has my data. What did I do wrong?

Try using bpk before srep and lolz..

bunti_o4u 24-08-2020 10:36

Quote:

Originally Posted by IRAQIGHOST (Post 487509)
Thanks for it

I want to ask what is best plan to comprising games with high rate and high speed of installing with Knight Compressor?

This application has nothing to do with compression on its own. It uses different tools in background to compress the files..

There are many different tools available.. some are game specific.. some are game engine specific.. some are media stream related.. and some are for general compression..

So selecting the right method is the key for high compression ratio.. and compression time and decompression time varies from tool to tool..

So there is no straight answer to your question..

You can refer the below thread to know game specific most optimal method..
https://www.fileforums.com/showthread.php?t=99554

Welder05 17-09-2020 22:58

can you reduce the length a bit? to make it look better at 1366x768, thanks, great tool, sorry for my English

bunti_o4u 20-09-2020 08:44

Quote:

Originally Posted by Welder05 (Post 487989)
can you reduce the length a bit? to make it look better at 1366x768, thanks, great tool, sorry for my English

Reduced the height by 50 pixels. Added the update in the first post.

Hope now it will look better.

Welder05 20-09-2020 10:07

Ty
 
Quote:

Originally Posted by bunti_o4u (Post 488024)
Reduced the height by 50 pixels. Added the update in the first post.

Hope now it will look better.

Thank you. :D

ravikant 28-09-2020 03:51

Everytime i use bpk it gives me errors :( please fix the problem

Masquerade 29-09-2020 02:53

@ravikant

What errors are you having?

Evil_1993 04-11-2020 06:14

Thank you for your program, but there is a problem, the compression mode without temporary files is buggy, then it works, then it does not pop up an error: The program is terminated arc.exe here is the config
[External compressor:zstd]
header = 0
packcmd = zstd\zstd.exe {options} <stdin> <stdout>
unpackcmd = zstd\zstd.exe -d -f -T2 <stdin> <stdout>

Masquerade 04-11-2020 09:11

@Evil_1993

Try replacing STDIO with $$arcdatafile$$.tmp $$arcpackedfile$$.tmp

e.g.

Code:

[External compressor:zstd]
header = 0
packcmd = zstd\zstd.exe {options} $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = zstd\zstd.exe -d -f -T2 $$arcpackedfile$$.tmp $$arcdatafile$$.tmp


Evil_1993 05-11-2020 04:57

Quote:

Originally Posted by Masquerade (Post 488791)
@Evil_1993

Try replacing STDIO with $$arcdatafile$$.tmp $$arcpackedfile$$.tmp

e.g.

Code:

[External compressor:zstd]
header = 0
packcmd = zstd\zstd.exe {options} $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = zstd\zstd.exe -d -f -T2 $$arcpackedfile$$.tmp $$arcdatafile$$.tmp


This command works tested

Evil_1993 06-11-2020 06:24

Good afternoon! Tell me, is it my system problem, or is this utility error>?

bunti_o4u 06-11-2020 08:45

Quote:

Originally Posted by Evil_1993 (Post 488827)
Good afternoon! Tell me, is it my system problem, or is this utility error>?

share the error detail or screenshot.

Evil_1993 06-11-2020 08:57

2 Attachment(s)
PS RAM and SSD serviceable. Checked.

bunti_o4u 09-11-2020 05:40

Quote:

Originally Posted by Evil_1993 (Post 488834)
PS RAM and SSD serviceable. Checked.

Add "zstd" in method list i.e. "1.Methods_x64.ini"

Add below in arc.ini file in resource64 folder:
Code:

[External compressor: zstd]
header    = 0
packcmd  = Resource64\zstd\zstd.exe -{options} <stdin> <stdout>
unpackcmd = zstd.exe -d <stdin> <stdout>

Create folder "zstd" in Resource64 folder and paste the zstd.exe file.

Create "zstd.ini" file in INIFiles folder and add options ":-ultra" or so...

Let me know if it works

pralin 06-02-2021 03:32

Hey man can u help me plzzzz

Since this compressor compresses whole folder in one .bin file��

What i want exactly that is there any option like
---->Threshold percentage <---- like in case of ultra arc by Razor

bunti_o4u 21-04-2021 06:19

This will be added in next version..

But it will not come out soon..:rolleyes:

fabrieunko 15-10-2021 23:06

What is the option to use xzlib?

Hexagon123 20-02-2022 14:40

XTool 2020 0.3.20 doesn't seem to work with multiple files then it crashes, but works with single file instead. Any solution?

bunti_o4u 24-02-2022 09:54

Quote:

Originally Posted by Hexagon123 (Post 495929)
XTool 2020 0.3.20 doesn't seem to work with multiple files then it crashes, but works with single file instead. Any solution?

Check your arc.ini file.

instead of using <stdin> <stdout>, you can try following options:
Option 1:

Code:

[External compressor:ZTool]
header    = 0
packcmd  = Resource64\ZTool\ztool e{:option} InFile - <stdout>
datafile  = InFile

Option 2:
Code:

Replace - - <stdin> <stdout> with $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
Please let me know if it works for you..

Hexagon123 14-03-2022 16:40

Quote:

Originally Posted by bunti_o4u (Post 495987)
Check your arc.ini file.

instead of using <stdin> <stdout>, you can try following options:
Option 1:

Code:

[External compressor:ZTool]
header    = 0
packcmd  = Resource64\ZTool\ztool e{:option} InFile - <stdout>
datafile  = InFile

Option 2:
Code:

Replace - - <stdin> <stdout> with $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
Please let me know if it works for you..

It had to be solid = 0 or else, it may not work. Tried them but it had weak ratio than old XTool(s).

NouZ-Bi 29-07-2022 22:36

hello the question may seem stupid, but what is the difference between xtool and xtool 19h8?

Which one is the most recent ? the most efficient ?

Thanks in advance for your answer

Kasti666 02-05-2024 06:13

2 Attachment(s)
Hi Bro, I apreciate all the work that you do, but, I have a question... when I want to use a compressor I receive the same error with all of them:

"You do not have access to the file because another process has it in use"

I´m using both of the picture, but, they do not work, I reinstalled the windows, Downloaded the files, too, again... But the same problem is present.

Even I tried with another compressor, using directly .bat files, and the same error... a black windows appears and dissapears.

Thanks Bro.


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

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