pkgRipper icon indicating copy to clipboard operation
pkgRipper copied to clipboard

Error : Disk Free Space (C:) = 0

Open ItsOuba opened this issue 2 years ago • 6 comments

i get this error every time when the program tries to create the image even though the program folder is NOT on drive C , i tried a .bat file to change the temp folder location but it didn't fix the issue .

log :

Extracting pkg ........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ Pkg extracted correctly Patching files Patches applied successfully Creating an image... 0 20 40 60 80 100 |.|.|.|.|.|

[Debug] 2022-03-12 22:34:39 Create image Process started. [Debug] nptitle.dat: NP Title file. [Warn] The latest QA passed package file is not specified although Application Version is 01.06. Delta patch feature is disabled. Make sure that it is intentional. [Debug] Custom patches thanks to flat_z and cfwprophet!
[Warn] Patched By CyB1K! Credits to SocraticBliss and TheRadziu [Warn] SDK Version 08.508 [Debug] Custom patches thanks to flat_z and cfwprophet!
[Warn] Patched By CyB1K! Credits to SocraticBliss and TheRadziu [Warn] Publishing Tools Version 3.87 [Error] Could not open or write compressed file. (C:\Users\Xxs\AppData\Local\Temp\ps4pub\build00000bb059958329\00000080.tpfs) [Error] Could not create compressed file. (C:\Users\Xxs\AppData\Local\Temp\ps4pub\build00000bb059958329\00000080.tpfs) [Debug] Original file path = data_final/orbis/worlds/fctworlds.dat. [Debug] Original file size = 13927567408. [Debug] Disk Free Space (C:) = 0. [Error] 2022-03-12 22:41:29 Create image Process finished with error(s).

ItsOuba avatar Mar 12 '22 23:03 ItsOuba

Can you, share contents of your .bat file? Maybe you didn't set it up correctly. I had the same issue until I adapted CyB1K's Orbis-Pub-Gen Temp Folder Patcher

@echo off
echo.
echo PKGRipper Folder Patcher
echo Adapted from Orbis-Pub-Gen Temp Folder Patcher by CyB1K
echo.
echo Please Choose Your Temp Folder Location
ECHO.
ECHO 1.C:\Temp
ECHO 2.I:\Temp
ECHO 3.Custom Location
ECHO.
ECHO Choose one option (Press 1~3)
CHOICE /C 123 /M "Choose your option:" >nul

IF ERRORLEVEL 3 GOTO Input
IF ERRORLEVEL 2 GOTO D
IF ERRORLEVEL 1 GOTO C

:C
echo 1
SET "TEMP=C:\Temp"
SET "TMP=C:\Temp"
echo Temp Set to C:\Temp
echo.
GOTO Start

:D
echo 2
SET "TEMP=I:\Temp"
SET "TMP=I:\Temp"
echo Temp Set to I:\Temp
echo.
GOTO Start

:Input
echo 3
echo.
echo Please Enter Your Temp Folder Location
set /p temp=
SET "TEMP=%temp%"
SET "TMP=%temp%"
echo.
echo Temp Set to %temp%
echo.
GOTO Start

:Start
echo Starting PKGRipper...
Start "" "PkgRipper.exe"
timeout /t 5 >nul
GOTO Exit

:Exit
Exit

Exodius avatar Apr 28 '22 15:04 Exodius

I did some tests here and let me explain what may be happening for the error to appear. I have two HD's, the main one that is operating system C (Windows) and another one, the D where is the PKGRipper and all the games I'm ripping. The D drive has enough free space to run the tasks, but for some reason PKGRipper relies on the free space of C, where Windows is. Turns out my free space in C was smaller than the size of the game I was ripping. When I decided to clean it up and make the space bigger, the game was ripped normally without any errors. PKGRipped is based on free space in C to work, as I'm a noob, it doesn't make sense to me since all the games and the PKGRipper itself are on my D disk.

kozdroy avatar May 18 '22 22:05 kozdroy

I ran into this issue as well. I have a HTPC where I deal with many things but decided to give windows a somewhat small partition since I mainly use Linux. I too had plenty of room on external, internal and raid to perform the rip but since the app uses AppData\Local\Temp\ps4pub, I wasted a lot of time waiting for extractions before realizing the issue. I feel the best option is for the app to have a temp folder in its own directory right next to the exe. This would avoid potential issues like we have had. You could also have a settings ini file or something to easily allow custom directories. I noticed there is a .bat file that changes the temp directory for orbis-pub-gen.exe, a similar change might make the .bat files unnecessary.

As a fairly easy 'temp' solution, you can make a symlink of the ps4pub folder and have the files go wherever you want.

EnduringGuerila avatar Nov 02 '22 07:11 EnduringGuerila

Upon some further testing, I don't know why but it sometimes is already using a temp folder in the root app directory. I don't know if this was caused by me editing the .bat file or if something else caused it. I do see some files being created in 'D:\Games\ps4pub' but I am seeing the majority of files showing up in my R:\Torrent\Games\PS4\1a PKGRipper\temp next to where the app is actually running. (I didn't make any symlinks as I recommended above)

SET "TEMP=D:\Games"
SET "TMP=D:\Games"
echo Temp Set to D:\Games
echo.
GOTO Start

:Start
echo Starting PKGRipper...
Start "" "PkgRipper.exe"
timeout /t 5 >nul
GOTO Exit

:Exit
Exit

My guess is that the games are extracting to the apps temp directory on whatever drive and then as it starts to create the patched additional copy in appdata (or sometimes D:\Games for me), before then being recompiled into the output folder. If I'm correct, this seems fairly inefficient. I should have conducted more tests on smaller game files... not the 42GB game I was actively working on patching.

EnduringGuerila avatar Nov 02 '22 08:11 EnduringGuerila

So, the extraction itself uses the apps root temp folder (42GB game was about 48GB extracted), then ripper creates 1kb versions of the files you wanted deleted (mine dropped about 20GB), then the files get converted to TPFS files in your appdata or other TEMP folder (if set by a bat file)(the 28GB are not shrinking and the other temp folder is growing)

so it seems you aren't safe unless you have about 3x the size of the game available on various drives, depending on how you chose your temp folders.

EnduringGuerila avatar Nov 02 '22 09:11 EnduringGuerila