View Single Post
  #3  
Old Today, 20:16
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,089
Thanks: 1,857
Thanked 2,322 Times in 795 Posts
Cesar82 is on a distinguished road
I like the project.
It’s interesting to see someone else developing a script compatible with DSG.

However, I believe the project needs a few adjustments to improve it.
The output folder in DSG is configurable. The default is DISK_1 (or simply DISK if there is only one medium); it only becomes "CONVERSION" when the UNLIMITED tab is selected.
Since the purpose of DiskSpan GUI (DSG) is to create multi-disk sets, the path handling should be compatible with this.
Because DSG stores its settings in an external file, you could read the INI file to determine the correct path.
You can read the `DSG_Settings.ini` file located in the "COMPRESSOR\Resources" folder.
Read ini: [CommonSettings] >> OutputPath= + \ + [CommonSettings] >> DiskLabel= + 1 (if not exist remove "_1" from patch and verify again)

Even so, there is still a minor issue. Your output folder for the "unpacker.exe" executable is "Conversion_Output\CONVERSION" (or potentially "Conversion_Output\DISK_1" / "Conversion_Output\DISK"), but DSG must first generate the `DATA.bin` files before you can create your "unpacker.exe".
Furthermore, DSG requires the "unpacker.exe" to be present in the `Setup_Files` folder so that it can determine its file size, perform calculations, and reserve the necessary space to include "unpacker.exe" on the first disk.

It would be possible to generate the "setup.dll" first, create your "unpacker.exe", and place it into the "Setup_Files" folder—but this would require the target medium/method to have been selected beforehand.

For these "DISKSPAN" reasons, DSG uses an external Setup.dll containing the decompressors. This is because if you choose the DVD5 option and generate your unpacker.exe afterward, you probably won't be able to burn it onto a DVD5 disc unless you reserve some space on the first disc, for example, 20 MB.
Attached Images
File Type: png snap0002831.png (12.8 KB, 3 views)
Attached Files
File Type: rar create external dll with compressors (wait dsg beta 3).rar (4.91 MB, 0 views)

Last edited by Cesar82; Today at 21:03.
Reply With Quote