Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #766  
Old 07-04-2020, 03:27
pincoball pincoball is offline
Registered User
 
Join Date: Mar 2020
Location: Italy
Posts: 29
Thanks: 20
Thanked 10 Times in 8 Posts
pincoball is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
Yeah UltraArc merge is broken on both scripts.

I think it is already the case that the installer automatically take the next slice, but only if it's in same place as first archive/setup.exe.
Ok I see but the installer doesn't take it automatically in this case. Trying understanding how the script code works, it seems that somehow this request of the next slice (even though placed in the same folder as the setup file) is encoded in the first slice itself rather than the ASIS/CIU script. (confirmation + file opener selection)

Is that right?

Edit: I attach the recors.ini generated by DiskSpan

Code:
[Record1]		
Type=Freearc_Original
Source={src}\Data1.bin.001
Output={app}\Game Name
Disk=1

Last edited by pincoball; 07-04-2020 at 04:18.
Reply With Quote
Sponsored Links
  #767  
Old 07-04-2020, 07:04
pincoball pincoball is offline
Registered User
 
Join Date: Mar 2020
Location: Italy
Posts: 29
Thanks: 20
Thanked 10 Times in 8 Posts
pincoball is on a distinguished road
I think I've found the solution for DiskSpan based on the example script posted from Razor12911 at

https://www.fileforums.com/showthread.php?t=99627

What was missing is simply the initialization of DiskSpan inside the script (i.e. ClsInit), then in order to solve the problem of request of the next disk do as follow:

Look for this snippet of code inside the IS script:

Code:
if Data[i - 1].Arc[0] = 'Freearc_Original' then
[... other code ...]
if ISDoneError = False and not IniKeyExists('Records2', 'Type', ExpandConstant('{{#InternalRecords == "1" ? "tmp" : "src"}}\records.ini')) and ({#UseComponents} = 0) then
            begin
              if not ISArcExtract(0, 100, UpdateSource(Data[i - 1].Arc[1],SourceDir), Data[i - 1].Arc[2], '', false, '', ExpandConstant('{tmp}\arc.ini'), Data[i - 1].Arc[2], false) then
                ISDoneError := True;
            end else begin
              if not ISArcExtract(0, 0, UpdateSource(Data[i - 1].Arc[1],SourceDir), Data[i - 1].Arc[2], '', false, '', ExpandConstant('{tmp}\arc.ini'), Data[i - 1].Arc[2], false) then
                ISDoneError := True;
            end;
            end;
then substitute with:

Code:
if Data[i - 1].Arc[0] = 'Freearc_Original' then
[... other code ...]
if ISDoneError = False and not IniKeyExists('Records2', 'Type', ExpandConstant('{{#InternalRecords == "1" ? "tmp" : "src"}}\records.ini')) and ({#UseComponents} = 0) then
            begin
              ClsInit(ExpandConstant('{src}'),WizardForm.Handle);
              if not ISArcExtract(0, 100, UpdateSource(Data[i - 1].Arc[1],SourceDir), Data[i - 1].Arc[2], '', false, '', ExpandConstant('{tmp}\arc.ini'), Data[i - 1].Arc[2], false) then
                ISDoneError := True;
            end else begin
              if not ISArcExtract(0, 0, UpdateSource(Data[i - 1].Arc[1],SourceDir), Data[i - 1].Arc[2], '', false, '', ExpandConstant('{tmp}\arc.ini'), Data[i - 1].Arc[2], false) then
                ISDoneError := True;
            end;
            end;
The only difference is the line with ClsInit(...) function
Reply With Quote
The Following User Says Thank You to pincoball For This Useful Post:
KaktoR (08-04-2020)
  #768  
Old 08-04-2020, 06:19
zenmar zenmar is offline
Registered User
 
Join Date: Jan 2020
Location: Indonesia
Posts: 5
Thanks: 8
Thanked 0 Times in 0 Posts
zenmar is on a distinguished road
Help me

I love this ASIS, thanks to the creator and anyone who get involved in making this installer... I have a problem when decompress my multiple archieves... I cant open my data1.bin.003 when the dialogue box showed n asked me to add it. Is there something I have to do with record.ini or anything else to solve it...? I lack in experience to do something with the script... I did some experiment and it's getting worse lol... Thanks in advance n sorry for my bad english...
Reply With Quote
  #769  
Old 08-04-2020, 09:56
pincoball pincoball is offline
Registered User
 
Join Date: Mar 2020
Location: Italy
Posts: 29
Thanks: 20
Thanked 10 Times in 8 Posts
pincoball is on a distinguished road
Quote:
Originally Posted by zenmar View Post
I love this ASIS, thanks to the creator and anyone who get involved in making this installer... I have a problem when decompress my multiple archieves... I cant open my data1.bin.003 when the dialogue box showed n asked me to add it. Is there something I have to do with record.ini or anything else to solve it...? I lack in experience to do something with the script... I did some experiment and it's getting worse lol... Thanks in advance n sorry for my bad english...
Did you generate the splitted archive with DiskSpan? Can you post your records.ini file (and also the compression method)? Also what do you mean you can't open the file? Does it give an error or not let you select it?
Reply With Quote
The Following User Says Thank You to pincoball For This Useful Post:
zenmar (08-04-2020)
  #770  
Old 08-04-2020, 15:04
zenmar zenmar is offline
Registered User
 
Join Date: Jan 2020
Location: Indonesia
Posts: 5
Thanks: 8
Thanked 0 Times in 0 Posts
zenmar is on a distinguished road
Quote:
Originally Posted by pincoball View Post
Did you generate the splitted archive with DiskSpan? Can you post your records.ini file (and also the compression method)? Also what do you mean you can't open the file? Does it give an error or not let you select it?
Yes, I used DiskSpan that came with ASIS 7.1.2 with "xZLib+srep+LZ4x4" compress method. There was no error but when I wanted to continue the installation process there was no explorer window opened that led me to select ".003" extension. The dialogue box asking me to to add "Data1.bin.003" continuously appears when I click "open" Here's my original record.ini created by diskspan...
Reply With Quote
  #771  
Old 08-04-2020, 15:11
zenmar zenmar is offline
Registered User
 
Join Date: Jan 2020
Location: Indonesia
Posts: 5
Thanks: 8
Thanked 0 Times in 0 Posts
zenmar is on a distinguished road
Quote:
Originally Posted by zenmar View Post
Yes, I used DiskSpan that came with ASIS 7.1.2 with "xZLib+srep+LZ4x4" compress method. There was no error but when I wanted to continue the installation process there was no explorer window opened that led me to select ".003" extension. The dialogue box asking me to to add "Data1.bin.003" continuously appears when I click "open" Here's my original record.ini created by diskspan...
Oops, sorry. This is the record.ini created by diskspan...
Attached Files
File Type: rar Records.rar (158 Bytes, 14 views)
Reply With Quote
  #772  
Old 08-04-2020, 15:16
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,684
Thanks: 1,106
Thanked 7,331 Times in 2,834 Posts
KaktoR is on a distinguished road
Could you test with some small files and make 1mb archives? So you reach 3 or 4 archives per 1mb or so...

And send me your Setup.exe please. Because I can't reproduce this error atm.
__________________
Haters gonna hate
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
zenmar (08-04-2020)
  #773  
Old 08-04-2020, 21:17
zenmar zenmar is offline
Registered User
 
Join Date: Jan 2020
Location: Indonesia
Posts: 5
Thanks: 8
Thanked 0 Times in 0 Posts
zenmar is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
Could you test with some small files and make 1mb archives? So you reach 3 or 4 archives per 1mb or so...

And send me your Setup.exe please. Because I can't reproduce this error atm.
Sure... I just tested with small files to make multiple archieves... It run well untill ".004" and this time there's error dialogue alert showed... It said the archiev data corrupted

I Just figured out that the problem i said before occured when I made iso files of "Data1.bin.001+Setup.exe"... So when I mount the iso file and run the setup.exe from it, the error occured, I cant add next archieve (002, 003 etc). It stuck at dialogue box asking me next archieve files..
Attached Files
File Type: rar TEST.rar (29.29 MB, 9 views)
Reply With Quote
  #774  
Old 09-04-2020, 01:09
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,684
Thanks: 1,106
Thanked 7,331 Times in 2,834 Posts
KaktoR is on a distinguished road
Which compressor did you use for test archive?

If you run from ISO image, you have to switch to next ISO if Setup ask for next archive. I will change this so the file explorer will always open if next archive is not directly next to previous archive.

Edit: So I can say your archive is not broken. It extracts very well with batch file. I will look what's causing this.
__________________
Haters gonna hate

Last edited by KaktoR; 09-04-2020 at 01:41.
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
zenmar (11-04-2020)
  #775  
Old 11-04-2020, 03:20
zenmar zenmar is offline
Registered User
 
Join Date: Jan 2020
Location: Indonesia
Posts: 5
Thanks: 8
Thanked 0 Times in 0 Posts
zenmar is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
Which compressor did you use for test archive?

If you run from ISO image, you have to switch to next ISO if Setup ask for next archive. I will change this so the file explorer will always open if next archive is not directly next to previous archive.

Edit: So I can say your archive is not broken. It extracts very well with batch file. I will look what's causing this.
Sorry, little bit late to reply, been busy with some works... I used default settings of ASIS and default setting of DiskSpan that came with ASIS 7.1.2... Cz I need more time to learn the setting and how to edit it... It's out of my expertise lol....
And yes, I switched the iso, even I mount all of the iso files at the same times but still with same problem. Perhaps it's just my fault by setting it wrong... I'll try to compress some files with different setting when my works here finished... Thank you for ur help...
Reply With Quote
  #776  
Old 11-04-2020, 14:30
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,684
Thanks: 1,106
Thanked 7,331 Times in 2,834 Posts
KaktoR is on a distinguished road
Me and Cesar done some tests

First, as mentioned above by user pincoball, the clsinit function was missing. Strange enough, because I'm sure I never touched this. That's why no search window was opened. But whatever.

Unpack will always fail if using a third command (lzma, lzma-mt, lolz, razor, zstd), xtool+srep works fine. xtool or srep alone works fine too. Even with CIU and other scripts.

There are some possibilities:
1. The archive size of 1mb per part. Most likely, because with bigger sizes it works (option 6 is most used for whole games by users here). And I can confirm this myself, because I use XTool+srep+LZMA-MT most of the time and never got issues.
2. Bug inside cls-diskspan, unarc.dll or isdone.dll. unarc.dll and isdone.dll are pretty old and never got updated since years. Maybe some incompatibilities or bugs they have with diskspan or vise-versa.

So really nothing I could fix.

However, I added the clsinit back and the search file will now work.
Attached Files
File Type: 7z Script_Fix.7z (22.8 KB, 21 views)
__________________
Haters gonna hate

Last edited by KaktoR; 11-04-2020 at 14:33.
Reply With Quote
The Following 4 Users Say Thank You to KaktoR For This Useful Post:
Cesar82 (11-04-2020), mausschieber (11-04-2020), Titeuf (12-04-2020), zenmar (11-04-2020)
  #777  
Old 12-04-2020, 02:52
pincoball pincoball is offline
Registered User
 
Join Date: Mar 2020
Location: Italy
Posts: 29
Thanks: 20
Thanked 10 Times in 8 Posts
pincoball is on a distinguished road
Regarding the problem of the splitting feature of UltraARC, I think I've found the causes of it during the merging

First problem:

The split.exe executable were not extracted from the {tmp} directory:

Solution:

from

Code:
procedure UnpackCompressors();
var
  CurrFile: String;
begin
  ExtractTemporaryFile('Arc.ini');
  ...
  ExtractTemporaryFile('Facompress_mt.dll');
to

Code:
procedure UnpackCompressors();
var
  CurrFile: String;
begin
  ExtractTemporaryFile('Arc.ini');
  ...
  ExtractTemporaryFile('Facompress_mt.dll');
  ExtractTemporaryFile('Split.exe');
Second problem:

Edit: Removed: It was a problem that I made in my script

Edit: I also attach the records.ini I've been using just for reference
Attached Files
File Type: zip Records.zip (318 Bytes, 10 views)

Last edited by pincoball; 12-04-2020 at 05:11.
Reply With Quote
  #778  
Old 12-04-2020, 03:28
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,684
Thanks: 1,106
Thanked 7,331 Times in 2,834 Posts
KaktoR is on a distinguished road
It works for me.

I created archives as follow:

Code:
\Test\Disk1\records.ini
\Test\Disk1\Setup.exe
\Test\Disk1\data1a.arc

\Test\Disk2\data1b.arc
\Test\Disk2\data2a.arc

\Test\Disk3\data2b.arc

\Test\Disk4\data2c.arc
\Test\Disk4\data3.arc
Each archive contains a single test file and after unpacking all 3 files are inside destination folder.
__________________
Haters gonna hate
Reply With Quote
  #779  
Old 12-04-2020, 03:38
pincoball pincoball is offline
Registered User
 
Join Date: Mar 2020
Location: Italy
Posts: 29
Thanks: 20
Thanked 10 Times in 8 Posts
pincoball is on a distinguished road
But should I place the split files in different folders or can I just pust all together with also the setup.exe? Because for me it doesn't work.
Also I use records.ini as internal so to integrate it in the installer
Reply With Quote
  #780  
Old 12-04-2020, 03:45
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,684
Thanks: 1,106
Thanked 7,331 Times in 2,834 Posts
KaktoR is on a distinguished road
I did a second test, this time with external and internal records.ini

Code:
\Test\Disk1\Setup.exe
\Test\Disk1\data1a.arc
\Test\Disk2\data1b.arc
\Test\Disk3\data1c.arc
\Test\Disk4\data1d.arc
\Test\Disk5\data1e.arc
\Test\Disk6\data1f.arc
\Test\Disk7\data1g.arc

[Record1]
Type=Split
Source={src}\data1a.arc
Output={app}\data1.arc
Disk=1
[Record2]
Type=Split
Source={src}\data1b.arc
Output={app}\data1.arc
Disk=2
[Record3]
Type=Split
Source={src}\data1c.arc
Output={app}\data1.arc
Disk=3
[Record4]
Type=Split
Source={src}\data1d.arc
Output={app}\data1.arc
Disk=4
[Record5]
Type=Split
Source={src}\data1e.arc
Output={app}\data1.arc
Disk=5
[Record6]
Type=Split
Source={src}\data1f.arc
Output={app}\data1.arc
Disk=6
[Record7]
Type=Split
Source={src}\data1g.arc
Output={app}\data1.arc
Disk=7
[Record8]
Type=Freearc_Split
Source={app}\data1.arc
Output={app}
Disk=7
It works just fine.

Splitted files were initially meant for put them into different folders, but it also work if you put all together into one folder. If you put all into one folder, don't forget to change the disk number inside records.ini.
__________________
Haters gonna hate
Reply With Quote
The Following 2 Users Say Thank You to KaktoR For This Useful Post:
pincoball (12-04-2020), Titeuf (12-04-2020)
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Help] need Advanced Installer script with Razor1911's UltraArc module rez3vil Conversion Tutorials 3 15-04-2024 02:24
Portable Installer Inno Setup Script y_thelastknight Conversion Tutorials 59 23-10-2020 00:02
INDEX - Conversion Tutorial Index Razor12911 Conversion Tutorials 5 11-06-2020 02:05
Simple Arc Installer 78372 Conversion Tutorials 1 15-06-2017 15:37
MSC+Srep+lzma Simple Script Example gozarck Conversion Tutorials 10 07-09-2015 16:31



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


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