FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   ASIS/TC problem, BPK not unpacking? (https://fileforums.com/showthread.php?t=103770)

ps5haznogamez 23-08-2020 15:44

ASIS/TC problem, BPK not unpacking?
 
Hello.
I have been using ASIS and Tiny Compressor for a while, and they've been working fine. I have came across a game I want to compress that uses the Bink format for it's videos, so I decided to try adding BPK to my compression. (Note: Tiny Compressor already has BPK in it, i did not add/edit anything)

https://i.imgur.com/O8LVNyi.png

It compressed just fine actually, and I got a smaller size compared to not using BPK. However, when I go to ASIS, enable BPK in the GUI, and start my setup, i get this error.

https://i.imgur.com/AHPN7wP.png

What is wrong? TC compressed it just fine with BPK. Is this a problem with ASIS? Do they use different versions of BPK? I noticed that ASIS uses "CLS_BPK.dll", if anyone can clear this up, i'd be glad.

BLACKFIRE69 23-08-2020 18:14

Quote:

Originally Posted by ps5haznogamez (Post 487543)
Hello.
I have been using ASIS and Tiny Compressor for a while, and they've been working fine. I have came across a game I want to compress that uses the Bink format for it's videos, so I decided to try adding BPK to my compression. (Note: Tiny Compressor already has BPK in it, i did not add/edit anything)

https://i.imgur.com/O8LVNyi.png

It compressed just fine actually, and I got a smaller size compared to not using BPK. However, when I go to ASIS, enable BPK in the GUI, and start my setup, i get this error.

https://i.imgur.com/AHPN7wP.png

What is wrong? TC compressed it just fine with BPK. Is this a problem with ASIS? Do they use different versions of BPK? I noticed that ASIS uses "CLS_BPK.dll", if anyone can clear this up, i'd be glad.

cls_bpk.dll --> cls-bpk.dll

ps5haznogamez 23-08-2020 18:49

Quote:

Originally Posted by BLACKFIRE69 (Post 487545)
cls_bpk.dll --> cls-bpk.dll

Did you mean to rename that .DLL from the decompressors folder to that? I tried that, and I still get the same error. I don't know what the problem is, and I want to figure it out because without BPK, the size isn't that great.

BLACKFIRE69 24-08-2020 06:51

2 Attachment(s)
Quote:

Originally Posted by ps5haznogamez (Post 487546)
Did you mean to rename that .DLL from the decompressors folder to that? I tried that, and I still get the same error. I don't know what the problem is, and I want to figure it out because without BPK, the size isn't that great.

ok then,

profrager has created 2 different DLL libraries for BPK. one is for compression (cls-bpk.dll) and the other is for decompression (cls-bpk_u.dll). (instead of "bink_pack.exe" and the "bink_unpack.exe")

if you prefer to use "Fazip", you can try the further process below.

Code:

arc.ini

[External compressor:bpk]
header    = 0
packcmd    = fazip -i0  compress:bpk  <stdin> <stdout>
unpackcmd  = fazip -i0 decompress:bpk_u <stdin> <stdout>


_Pack.bat

arc.exe a -ep1 -ed -r -s -i2 -w.\temp -m=bpk .\Packed\data1.bin "Pack\*"



or find out more with this ...

https://fileforums.com/showthread.php?t=103601

,

ps5haznogamez 24-08-2020 11:40

Quote:

Originally Posted by BLACKFIRE69 (Post 487555)
ok then,

profrager has created 2 different DLL libraries for BPK. one is for compression (cls-bpk.dll) and the other is for decompression (cls-bpk_u.dll). (instead of "bink_pack.exe" and the "bink_unpack.exe")

if you prefer to use "Fazip", you can try the further process below.

Code:

arc.ini

[External compressor:bpk]
header    = 0
packcmd    = fazip -i0  compress:bpk  <stdin> <stdout>
unpackcmd  = fazip -i0 decompress:bpk_u <stdin> <stdout>


_Pack.bat

arc.exe a -ep1 -ed -r -s -i2 -w.\temp -m=bpk .\Packed\data1.bin "Pack\*"



or find out more with this ...

https://fileforums.com/showthread.php?t=103601

,

I legitimately don't understand any of this.

Okay, if cls-bpk.dll and cls-bpk_u.dll are used for BPK, then why does bink_pack.exe and bink_unpack.exe exist? Clearly, ASIS is using CLS, and TC is trying to use bink_pack.exe. What you linked me was an already configured script and installer for a normal FreeARC setup, saying that it can be used without arc.ini. I don't want to use that setup, I want to keep using ASIS.

How would I configure Tiny Compressor to use cls-bpk.dll to compress with?

KaktoR 24-08-2020 11:49

1 Attachment(s)
You have to use fazip to use cls

In TC arc.ini search for this

Code:

[External compressor:bpk]
header    = 0
packcmd    = "Resources\bink_pack" $$arcdatafile$$.tmp $$arcpackedfile$$.tmp

and replace with this

Code:

[External compressor:bpk]
header    = 0
packcmd    = "Resources\FAZip32" -i0 compress:bpk_c <stdin> <stdout>

Copy the attached files to Resources folder of TC.

This should work.

ps5haznogamez 24-08-2020 12:43

Quote:

Originally Posted by KaktoR (Post 487564)
You have to use fazip to use cls

In TC arc.ini search for this

Code:

[External compressor:bpk]
header    = 0
packcmd    = "Resources\bink_pack" $$arcdatafile$$.tmp $$arcpackedfile$$.tmp

and replace with this

Code:

[External compressor:bpk]
header    = 0
packcmd    = "Resources\FAZip32" -i0 compress:bpk_c <stdin> <stdout>

Copy the attached files to Resources folder of TC.

This should work.

Okay, thanks for the code and the included files. Now, would i still use /$binkpack=bpk in the custom method section, or would I have to use something else?

Also, unrelated to the whole BPK thing, but still related to ASIS. I have a game that does not have it's EXE or a short cut in its main directory, but rather to a subfolder. How would I get ASIS to to make a working shortcut? It's in a folder called "System", so i tried doing this.
{app}\System\Game.exe
Turns out that, that didn't work. Is it not possible, or am I typing in the wrong thing?

KaktoR 24-08-2020 20:28

Yes.

ExePath=System\Game.exe

ps5haznogamez 25-08-2020 07:20

Quote:

Originally Posted by KaktoR (Post 487568)
Yes.

ExePath=System\Game.exe

Okay, thanks for clearing up the .exe part. But what about adding FAZip to my custom compression method in TCs arc.ini? Here's what it looks like now, with just srep+lolz.
srep+lolz:dt:dtb1:dtw1:dtm1:dto1:dtd1:mtt1:mt4:d64 m:fba4096:mc1023
What would I add to the end to include it? I tried putting the name but that didn't work, because I got a size I normally would with just srep+lolz, not when i tried using bink pack before.

When I had bink pack, i had it go from 789 to like 270, so I must not be adding it right.

Grumpy 26-08-2020 03:54

Quote:

Originally Posted by ps5haznogamez (Post 487581)
Bump...

Never EVER Bump! Have patience someone will eventually answer your question, you have to take into account the different time zones around the world and wait. People also have work/school and living their life.

Again I will say, never ever bump.

ps5haznogamez 26-08-2020 08:45

Quote:

Originally Posted by Grumpy (Post 487587)
Never EVER Bump! Have patience someone will eventually answer your question, you have to take into account the different time zones around the world and wait. People also have work/school and living their life.

Again I will say, never ever bump.

Okay? The last response I got was 2 days ago, and I all i need to know is how to add it to my custom method, because everything I have tried doesn't actually add it. Sorry for being hasty. I wish this site had a Discord though.

KaktoR 26-08-2020 09:14

Sorry I don't have much time these days.

You need fazip only for encode with cls.

ps5haznogamez 26-08-2020 11:13

Quote:

Originally Posted by KaktoR (Post 487592)
Sorry I don't have much time these days.

You need fazip only for encode with cls.

What?
Do you mean that I can only compress with it only? I can't use anything else with it? Or do you mean i just have to add "fazip" as the end? Please, I just need to know all I can because size does matter with using BPK compression with what I am doing here, and I have been saying I want to add it.

srep+lolz:dt:dtb1:dtw1:dtm1:dto1:dtd1:mtt1:mt4:d64 m:fba4096:mc1023+fazip

I tried this and trying to compress it told me it's unsupported. Is it possible to add it with srep+lolz or no? How would I type it?

BLACKFIRE69 26-08-2020 16:57

Quote:

Originally Posted by ps5haznogamez (Post 487594)
What?
Do you mean that I can only compress with it only? I can't use anything else with it? Or do you mean i just have to add "fazip" as the end? Please, I just need to know all I can because size does matter with using BPK compression with what I am doing here, and I have been saying I want to add it.

srep+lolz:dt:dtb1:dtw1:dtm1:dto1:dtd1:mtt1:mt4:d64 m:fba4096:mc1023+fazip

I tried this and trying to compress it told me it's unsupported. Is it possible to add it with srep+lolz or no? How would I type it?

srep+lolz...+fazip ?

no you can't.

Harsh ojha 26-08-2020 19:32

Quote:

Originally Posted by ps5haznogamez (Post 487594)
What?
Do you mean that I can only compress with it only? I can't use anything else with it? Or do you mean i just have to add "fazip" as the end? Please, I just need to know all I can because size does matter with using BPK compression with what I am doing here, and I have been saying I want to add it.

srep+lolz:dt:dtb1:dtw1:dtm1:dto1:dtd1:mtt1:mt4:d64 m:fba4096:mc1023+fazip

I tried this and trying to compress it told me it's unsupported. Is it possible to add it with srep+lolz or no? How would I type it?


Try this

pZlib + srep + fazip
pZlib + srep + lolz
Precomp + srep + rz
Precomp + srep + msc + fazip

BLACKFIRE69 27-08-2020 00:36

Quote:

Originally Posted by ps5haznogamez (Post 487594)

srep+lolz:dt:dtb1:dtw1:dtm1:dto1:dtd1:mtt1:mt4:d64 m:fba4096:mc1023+fazip

I tried this and trying to compress it told me it's unsupported.

that's because of there's no compression method called "fazip".

ps5haznogamez 27-08-2020 07:02

Quote:

Originally Posted by BLACKFIRE69 (Post 487595)
srep+lolz...+fazip ?

no you can't.

I didn't know that, is there a reason why? I couldn't find any actual info regarding what can be used with what, because being vague is so cool on this site.

Okay, if I can't use srep+lolz with fazip, then i can sure as hell use bink_pack because it worked. How would I go with adding bink_pack to ASIS? I am at an actual loss here, does ANY installer on this site actually support bink_pack at all? Everything I have checked uses CLS, and TC is the only compressor on here that uses bink_pack, so there HAS to be a way I can use it.


Quote:

Originally Posted by Harsh ojha (Post 487598)
Try this

pZlib + srep + fazip
pZlib + srep + lolz
Precomp + srep + rz
Precomp + srep + msc + fazip

Is this a list of what I can use, or are you just saying to use all 4 of these?

KaktoR 27-08-2020 09:02

As I said, use fazip only if you compress with cls (f.e. cls-bpk.dll).

I think all installers use cls-bpk.dll for unpacking, because it's better.

And I don't know why ASIS give you an error on unpacking, sorry :(

BLACKFIRE69 27-08-2020 19:44

Quote:

Originally Posted by ps5haznogamez (Post 487604)
I didn't know that, is there a reason why? I couldn't find any actual info regarding what can be used with what, because being vague is so cool on this site.

Okay, if I can't use srep+lolz with fazip, then i can sure as hell use bink_pack because it worked. How would I go with adding bink_pack to ASIS? I am at an actual loss here, does ANY installer on this site actually support bink_pack at all? Everything I have checked uses CLS, and TC is the only compressor on here that uses bink_pack, so there HAS to be a way I can use it.




Is this a list of what I can use, or are you just saying to use all 4 of these?

are you still expecting srep+lolz+bpk, so here is an easy example of that.

BPK example.rar

this is just an example, remember to make changes with your compressor and the ASIS.

Masquerade 28-08-2020 01:21

Don't use srep+lolz+bpk

Always universal tools last!

bpk+srep+lolz

Finally - don't use bink_pack.exe to compress, you use the cls dll. The exe is buggy, breaks files, causes errors - not fun! This fazip matter is my fault since I suggested KaktoR to add it to the installer.

@KaktoR
You can remove the fazip bpk config (maybe even remove fazip.exe since I don't recall it having any important usage). Instead rename cls-bpk_u.dll to cls-bpk.dll then unarc will just work the cls as normally, not needing fazip to handle it. My apologies! When I first suggested the method, I didn't know very much, especially how cls dlls worked.

@ps5haznogames
Download latest bpk, rename the dll for packing to cls-bpk and put it into your compressor. Method name is bpk, since its a cls. It must be then next to arc.exe to work.

Make a file called arc.groups, inside write:

Code:

$bpk
*.bik
*.bk2

Then use this method:

srep+lolz/$bpk=bpk

This will compress all of the bink video using bpk and the rest with srep, lolz.

If I remember anything else you will find remotely useful I'll add it.

ps5haznogamez 28-08-2020 08:54

Quote:

Originally Posted by Masquerade (Post 487614)
Don't use srep+lolz+bpk

Always universal tools last!

bpk+srep+lolz

Finally - don't use bink_pack.exe to compress, you use the cls dll. The exe is buggy, breaks files, causes errors - not fun! This fazip matter is my fault since I suggested KaktoR to add it to the installer.

@KaktoR
You can remove the fazip bpk config (maybe even remove fazip.exe since I don't recall it having any important usage). Instead rename cls-bpk_u.dll to cls-bpk.dll then unarc will just work the cls as normally, not needing fazip to handle it. My apologies! When I first suggested the method, I didn't know very much, especially how cls dlls worked.

@ps5haznogames
Download latest bpk, rename the dll for packing to cls-bpk and put it into your compressor. Method name is bpk, since its a cls. It must be then next to arc.exe to work.

Make a file called arc.groups, inside write:

Code:

$bpk
*.bik
*.bk2

Then use this method:

srep+lolz/$bpk=bpk

This will compress all of the bink video using bpk and the rest with srep, lolz.

If I remember anything else you will find remotely useful I'll add it.

Download the latest BPK? Where is that? Do you mean the latest "cls-bpk.dll" that someone else linked here? Would I add it to my arc.ini like this or continue with the FAzip edit?

[External compressor:bpk]
header = 0
packcmd = "Resources\cls-bpk" $$arcdatafile$$.tmp $$arcpackedfile$$.tmp

Masquerade 28-08-2020 09:19

1 Attachment(s)
Quote:

Originally Posted by ps5haznogamez (Post 487621)
Download the latest BPK? Where is that?

See attatched file.

Quote:

Originally Posted by ps5haznogamez (Post 487621)
Would I add it to my arc.ini like this or continue with the FAzip edit?

You don't need fazip, or arc.ini to use cls dlls.

Put cls-bpk.dll in the above archive into your compressor. The method name is the string that follows cls- prefix, so, the method is bpk

srep+lolz/$bpk=bpk

($bpk is just the name of our group, I see KaktoR on the last page used $binkpack)


For unpacking, open arc.ini in asis, remove the bpk fazip config.

Take cls-bpk_u from the above archive, and put it into your bpk folder in asis. Rename it to cls-bpk.dll.

Now, make sure you use the ini file to ensure that the dll file will be built with the setup, now install your archive.

KaktoR 28-08-2020 09:38

Quote:

Originally Posted by Masquerade (Post 487614)
@KaktoR
You can remove the fazip bpk config (maybe even remove fazip.exe since I don't recall it having any important usage). Instead rename cls-bpk_u.dll to cls-bpk.dll then unarc will just work the cls as normally, not needing fazip to handle it. My apologies! When I first suggested the method, I didn't know very much, especially how cls dlls worked.

I don't know, but in latest version fazip is not present anymore (nor any arc.ini settings). It seems that in the meantime I reverted it back to cls, but I don't know :D


All times are GMT -7. The time now is 07:47.

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