Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Display Modes
  #31  
Old 07-11-2017, 18:58
Razor12911's Avatar
Razor12911 Razor12911 is offline
Coder
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,293
Thanks: 1,786
Thanked 8,300 Times in 1,838 Posts
Razor12911 is on a distinguished road
R2 uploaded

Changes

-Removed custom open dialog ability
-Added default open dialog

Notes

-Seems like source had to be changed a bit for this, good thing I uploaded source here because I no longer had it.
-Ran 2 tests and no bugs so I guess bug is fixed.
-Data not affected, just replace cls and add functions to iss to fix old cls bugs.
Attached Files
File Type: 7z CLS_DISKSPAN_SRC_updated_081117.7z (8.1 KB, 93 views)
__________________
Looking for something?
Visit the
Tutorial Index


Last edited by Razor12911; 07-11-2017 at 19:07.
Reply With Quote
The Following 9 Users Say Thank You to Razor12911 For This Useful Post:
78372 (07-11-2017), arkantos7 (08-11-2017), danswano (07-11-2017), EzzEldin16 (08-11-2017), kassane (08-11-2017), Mini (08-11-2017), oltjon (07-11-2017), pakrat2k2 (07-11-2017), Simorq (08-11-2017)
Sponsored Links
  #32  
Old 07-11-2017, 22:53
danswano danswano is offline
Registered User
 
Join Date: Feb 2013
Location: Luxm
Posts: 314
Thanks: 218
Thanked 26 Times in 21 Posts
danswano is on a distinguished road
Thanks razor but can you help me with my second issue?
i want to be able to extract another single arc archive after the split archive extraction is done, the installer is skipping it.
Reply With Quote
  #33  
Old 08-11-2017, 03:51
Simorq's Avatar
Simorq Simorq is offline
Registered User
 
Join Date: Mar 2014
Location: Iran
Posts: 634
Thanks: 3,451
Thanked 1,111 Times in 427 Posts
Simorq is on a distinguished road
Thanks Razor12911
Works well.
Reply With Quote
The Following User Says Thank You to Simorq For This Useful Post:
Razor12911 (08-11-2017)
  #34  
Old 08-11-2017, 06:23
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 2,778
Thanks: 712
Thanked 4,136 Times in 1,495 Posts
KaktoR is on a distinguished road
^Could you share compiled source?
__________________
Haters gonna hate
RIP GOD
Reply With Quote
  #35  
Old 08-11-2017, 07:00
78372's Avatar
78372 78372 is offline
Registered User
 
Join Date: Dec 2016
Location: Bangladesh
Posts: 573
Thanks: 644
Thanked 714 Times in 259 Posts
78372 is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
^Could you share compiled source?
Can you see first post?
Reply With Quote
  #36  
Old 08-11-2017, 07:33
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 2,778
Thanks: 712
Thanked 4,136 Times in 1,495 Posts
KaktoR is on a distinguished road
Sorry bro, i have just to open my eyes
__________________
Haters gonna hate
RIP GOD
Reply With Quote
  #37  
Old 08-11-2017, 08:23
Razor12911's Avatar
Razor12911 Razor12911 is offline
Coder
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,293
Thanks: 1,786
Thanked 8,300 Times in 1,838 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by danswano View Post
Thanks razor but can you help me with my second issue?
i want to be able to extract another single arc archive after the split archive extraction is done, the installer is skipping it.
Upload iss and compressor
__________________
Looking for something?
Visit the
Tutorial Index

Reply With Quote
The Following 2 Users Say Thank You to Razor12911 For This Useful Post:
danswano (08-11-2017), oltjon (08-11-2017)
  #38  
Old 08-11-2017, 12:15
danswano danswano is offline
Registered User
 
Join Date: Feb 2013
Location: Luxm
Posts: 314
Thanks: 218
Thanked 26 Times in 21 Posts
danswano is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
Upload iss and compressor
PM sent, thank you very much.
Reply With Quote
  #39  
Old 08-11-2017, 14:21
Razor12911's Avatar
Razor12911 Razor12911 is offline
Coder
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,293
Thanks: 1,786
Thanked 8,300 Times in 1,838 Posts
Razor12911 is on a distinguished road
Code:
procedure ISDone_Unpack;
begin                                                   
  ISDone_Resources;
  ISDoneError:=false;
  if ISDoneInit(ExpandConstant('{tmp}\records.inf'), $F777, 0,0,0, MainForm.Handle, 512, @ProgressCallback) then
  begin
    ChangeLanguage('English');
    if SrepInit(AddBackSlash(ExpandConstant('{app}')),512 ,0) and PrecompInit('',128, 0) and FileSearchInit(true) then
    begin
      WizardForm.ProgressGauge.Position := 0;
      Wizardform.ProgressGauge.Max := 1000;
      ClsSourcePath(ExpandConstant('{src}'));
      ClsDiskRequest(@MyDiskRequest);
      if not ISArcExtract(0, 90, ExpandConstant('{src}\data.001'), ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false) then
      //here dear razor
      if not ISArcExtract(0, 10, ExpandConstant('{src}\data.arc'), ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false) then
        ISDoneError := True;
    end;
    ISDoneStop;
  end;
  if ISDoneError = True then
    WizardForm.CancelButton.OnClick(nil);
end;
this part here:

Code:
      if not ISArcExtract(0, 90, ExpandConstant('{src}\data.001'), ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false) then
      //here dear razor
      if not ISArcExtract(0, 10, ExpandConstant('{src}\data.arc'), ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false) then
        ISDoneError := True;
to properly write it, it's something like
Code:
if not ISArcExtract(0, 90, ExpandConstant('{src}\data.001'), ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false) then
  if not ISArcExtract(0, 10, ExpandConstant('{src}\data.arc'), ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false) then
     ISDoneError := True;
means if unpacking data.001 and if unpacking fails then unpack data.arc but if data.001 gets unpacked successfully, then don't unpack data.arc, not CLS-diskspan bug but your coding mistakes


you forgot to add ISDoneError := True for data.001, so to fix it, it has to be

Code:
procedure ISDone_Unpack;
begin                                                   
  ISDone_Resources;
  ISDoneError:=false;
  if ISDoneInit(ExpandConstant('{tmp}\records.inf'), $F777, 0,0,0, MainForm.Handle, 512, @ProgressCallback) then
  begin
    ChangeLanguage('English');
    if SrepInit(AddBackSlash(ExpandConstant('{app}')),512 ,0) and PrecompInit('',128, 0) and FileSearchInit(true) then
    begin
      WizardForm.ProgressGauge.Position := 0;
      Wizardform.ProgressGauge.Max := 1000;
      ClsSourcePath(ExpandConstant('{src}'));
      ClsDiskRequest(@MyDiskRequest);
      if not ISArcExtract(0, 90, ExpandConstant('{src}\data.001'), ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false) then
      	ISDoneError := True; // that is what you missed
      if not ISArcExtract(0, 10, ExpandConstant('{src}\data.arc'), ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false) then
        ISDoneError := True;
    end;
    ISDoneStop;
  end;
  if ISDoneError = True then
    WizardForm.CancelButton.OnClick(nil);
end;
Didn't run test, but it seemed like the obvious source of the problem in the script.
__________________
Looking for something?
Visit the
Tutorial Index

Reply With Quote
The Following 4 Users Say Thank You to Razor12911 For This Useful Post:
danswano (08-11-2017), EzzEldin16 (11-11-2017), oltjon (08-11-2017), pakrat2k2 (08-11-2017)
  #40  
Old 08-11-2017, 23:06
danswano danswano is offline
Registered User
 
Join Date: Feb 2013
Location: Luxm
Posts: 314
Thanks: 218
Thanked 26 Times in 21 Posts
danswano is on a distinguished road
What the world can do without you dear razor.
Really appreciate your kind help and efforts.
God bless you.
Reply With Quote
The Following User Says Thank You to danswano For This Useful Post:
Razor12911 (09-11-2017)
  #41  
Old 10-11-2017, 06:15
vollachr's Avatar
vollachr vollachr is offline
Conversions & UCC Creator
 
Join Date: Sep 2009
Location: Israel
Posts: 251
Thanks: 58
Thanked 521 Times in 185 Posts
vollachr is on a distinguished road
Hi,

Razor12911, with your permission, I would love to add this to the compression tool I created as a FreeArc compression method.

That said, I can't really figure out what to add into the Arc.ini file in order to get it working, so if you would, could you please explain that?

Thank you.
Reply With Quote
  #42  
Old 10-11-2017, 20:54
Razor12911's Avatar
Razor12911 Razor12911 is offline
Coder
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,293
Thanks: 1,786
Thanked 8,300 Times in 1,838 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by vollachr View Post
Hi,

Razor12911, with your permission, I would love to add this to the compression tool I created as a FreeArc compression method.

That said, I can't really figure out what to add into the Arc.ini file in order to get it working, so if you would, could you please explain that?

Thank you.
Knock yourself out.
cls do not work with arc.ini
__________________
Looking for something?
Visit the
Tutorial Index

Reply With Quote
The Following User Says Thank You to Razor12911 For This Useful Post:
78372 (10-11-2017)
  #43  
Old 11-11-2017, 03:33
vollachr's Avatar
vollachr vollachr is offline
Conversions & UCC Creator
 
Join Date: Sep 2009
Location: Israel
Posts: 251
Thanks: 58
Thanked 521 Times in 185 Posts
vollachr is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
Knock yourself out.
cls do not work with arc.ini
So how does it work with the arc.exe command, it just needs to be in the same folder? or is there something else?
Reply With Quote
  #44  
Old 11-11-2017, 19:03
Razor12911's Avatar
Razor12911 Razor12911 is offline
Coder
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,293
Thanks: 1,786
Thanked 8,300 Times in 1,838 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by vollachr View Post
So how does it work with the arc.exe command, it just needs to be in the same folder? or is there something else?
Quote:
Originally Posted by Razor12911 View Post
CLS-DiskSpan
The method diskspan should come after all methods you would have used for compression.
e.g.
pzlib:t4+srep:m3f:lzma:ultra+diskspan:4.35gb:4.36g b

The disk span method comes with two parameters. The first parameter is for first volume size, the second one is for all volumes apart from the first.
e.g. diskspan:390mb:400mb, 390mb in this case is the first volume size then the rest of the volumes will be 400mb
__________________
Looking for something?
Visit the
Tutorial Index

Reply With Quote
The Following 2 Users Say Thank You to Razor12911 For This Useful Post:
EzzEldin16 (12-11-2017), vollachr (12-11-2017)
  #45  
Old 12-11-2017, 00:53
vollachr's Avatar
vollachr vollachr is offline
Conversions & UCC Creator
 
Join Date: Sep 2009
Location: Israel
Posts: 251
Thanks: 58
Thanked 521 Times in 185 Posts
vollachr is on a distinguished road
Yeah, pretty much figured that out by now, just one thing I noticed..

It seems DiskSpan only works correctly if there are no other methods set before it or there are External Compressors set for method before it.

I couldn't get it to work when setting the FreeArc internal methods such as M2, M3 or M4 before DiskSpan, it spits out an error.

Also, So far all the attempts I made in adding support for DiskSpan to my compression tool failed, it's basically a batch script (bat file), thing is Arc.exe keeps crashing when I'm making it use DiskSpan in my script, I can't figure out why.

UPDATE:
OK, Managed to get it partially working, it creates the .001 file when the size can fit in one archive but I get an error when it actually need to start to split (creating the .002 file), also, it seems arc.exe only crashes when there's no other external compressor defined before diskspan.

Last edited by vollachr; 12-11-2017 at 06:50.
Reply With Quote
Reply

Thread Tools
Display Modes

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
Quantum Break GTX590 PC Games - CD/DVD Conversions 105 25-03-2019 08:28
Bioshock Infinite Complete Edition (7xDVD5) UltraArc + CIU v2.0.3 By *Yener90* GTX590 PC Games - CD/DVD Conversions 13 17-06-2017 10:55
Call of Duty Black OPS 3 + DLC Awakening (11xDVD5) GTX590 PC Games - CD/DVD Conversions 22 30-12-2016 07:46
Mortal Kombat XL (7xDVD5) UltraArc + CIU v2.0.3 By *Yener90* GTX590 PC Games - CD/DVD Conversions 1 13-10-2016 16:03
UltraARC Tutorials, Hints and Examples Razor12911 Conversion Tutorials 33 14-12-2015 07:26



All times are GMT -7. The time now is 19:40.


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