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


All times are GMT -7. The time now is 21:01.

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