PDA

View Full Version : HELP regarding creating repacks


wrathma
26-06-2024, 05:34
I have tried making repacks of small games which dont need to be cracked. But everytime i had some issue or i couldnt understand something so i just dropped it.

Right now im trying to make a self extractable repack of a 700 MB game. I used DiskSpan Gui (https://www.fileforums.com/showthread.php?t=104507) and compressed it to 340 MB using the predefined compression.XTool 2020 (zlib) + SREP + LOLZ

Then I extracted the dll and copied everything to Include folder of Simple Installer Script (https://www.fileforums.com/showthread.php?t=104745) and compiled it with required arguements such as name,size etc. And moved the compiled exe to diskspan folder where there is the compressed game.
But after executing the installer, it throws an error saying Unarc returned error code -2, unsopported compression. Need guidance now. Thanks in advanced.

Edit:
After some tweaking the installer now says data corrupted -
https://i.ibb.co/nDqHTQZ/image.png

My Include folder looks like this -

ARC.INI
CLS-DISKSPAN.dll
CLS-LOLZ.dll
cls-lolz_x64.exe
CLS-SREP_NEW.dll
CLS-SREP_NEW_x64.exe
CLS-SREP_NEW_x86.exe
CLS.INI
FACOMPRESS.DLL
FACOMPRESS_MT.DLL
UNARC.DLL
XTool\


And XTool folder -
hif2raw_dll.dll
liblz4.dll
libzstd.dll
lzo2.dll
preflate_dll.dll
raw2hif_dll.dll
XTool.exe
zlibwapi.dll

Fak Eid
26-06-2024, 10:09
Need to include the files in the script too like:
[Files]
Source: "Include\arc.ini"; DestDir: "{tmp}"; Flags: dontcopy
Source: "Include\CLS.ini"; DestDir: "{tmp}"; Flags: dontcopy
Source: "Include\English.ini"; DestDir: "{tmp}"; Flags: dontcopy
Source: "Include\Facompress.dll"; DestDir: "{tmp}"; Flags: dontcopy
Source: "Include\unarc.dll"; DestDir: "{tmp}"; Flags: dontcopy

and under CurStepChanged procedure too:
ExtractTemporaryFile('arc.ini');
ExtractTemporaryFile('CLS.ini');
ExtractTemporaryFile('English.ini');
ExtractTemporaryFile('Facompress.dll');
ExtractTemporaryFile('unarc.dll');

If these don't help, check if your arc.ini has zlib definition like:
[External compressor:xtool]
header = 0
unpackcmd = xtool.exe decode -t100p - - <stdin> <stdout>

If you want, you can also try out this and directly use the Setup.dll file from DSG.
Simple Installer FMXInno (https://fileforums.com/showpost.php?p=503761&postcount=28)

Compile it with Inno 5.6.0

wrathma
26-06-2024, 10:41
Need to include the files in the script too like:
[Files]
Source: "Include\arc.ini"; DestDir: "{tmp}"; Flags: dontcopy
Source: "Include\CLS.ini"; DestDir: "{tmp}"; Flags: dontcopy
Source: "Include\English.ini"; DestDir: "{tmp}"; Flags: dontcopy
Source: "Include\Facompress.dll"; DestDir: "{tmp}"; Flags: dontcopy
Source: "Include\unarc.dll"; DestDir: "{tmp}"; Flags: dontcopy


i believe i dont have to do these because script contains
#define Resources "Include\*"

wrathma
26-06-2024, 10:45
If these don't help, check if your arc.ini has zlib definition like:
[External compressor:xtool]
header = 0
unpackcmd = xtool.exe decode -t100p - - <stdin> <stdout>

still no luck. and i want to stick with this installer if possible.

wrathma
26-06-2024, 10:56
now i tried to use the same compiled exe with srep+lolz compressed archive and it worked, ig something with xtool is a problem here

Masquerade
27-06-2024, 00:20
Need to include the files in the script too like:

No, please read the page for my simple installer, the contents of the include folder is compiled so its is SIMPLE.

wrathma
You need the xtool unpackcmd inside arc.ini, the configuration for lolz and srep in cls.ini and then you need to put xtool.exe and required libraries (in this case looks like you only need xtool.exe and zlibwapi.dll). Don't put them in a folder.
Please use this thread to ask further questions: https://www.fileforums.com/showthread.php?t=105883

wrathma
27-06-2024, 06:29
No, please read the page for my simple installer, the contents of the include folder is compiled so its is SIMPLE.

wrathma
You need the xtool unpackcmd inside arc.ini, the configuration for lolz and srep in cls.ini and then you need to put xtool.exe and required libraries (in this case looks like you only need xtool.exe and zlibwapi.dll). Don't put them in a folder.
Please use this thread to ask further questions: https://www.fileforums.com/showthread.php?t=105883

i have xtools unpackcmd inside arc.ini, i just copied everything inside ARC_STANDARD.ini from setup.dll of diskspan archive and copied it to arc.ini inside include folder of the script