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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 23-05-2017, 07:57
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Fixes to CIU v2.0.3.8.b.

For the friend who posts the CIU codes...
Fixes to CIU v2.0.3.8.b...

The line below is not required. The installer is compressing 2 times the image Installer1.png
Source: Setup\Setup\Installer1.png; DestDir: {tmp}; Flags: dontcopy

Replace all parts of the lines containing (Error UltraArc Languages to all CIU v2)

Replace From:
if ((Data[i - 1].Arc[6] = '') or (LanguageTranslator(Data[i - 1].Arc[6]) = ActiveLanguage))

Replace To:
if (Data[i - 1].Arc[6] = '') or (Data[i - 1].Arc[6] = ActLangShort)

Need fixe all others parts replacing "ActiveLanguage" to "ActLangShort" in all CIU v2 (Without quotes).


Sugestion: Translate as FreeArc Custom Messages ins script and adding custom messages to language files.

Thanks!
Reply With Quote
The Following 2 Users Say Thank You to Cesar82 For This Useful Post:
houcine80 (23-05-2017), pakrat2k2 (24-05-2017)
Sponsored Links
  #2  
Old 24-05-2017, 08:25
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
Quote:
Originally Posted by LuisCésar82 View Post
The line below is not required. The installer is compressing 2 times the image Installer1.png
Source: Setup\Setup\Installer1.png; DestDir: {tmp}; Flags: dontcopy
Compiler only contains 1 Installer1.png.
Parsing -> Compressing

Are you sure about that? Can't find a second file in Setup.exe after compiling.

Quote:
Originally Posted by LuisCésar82 View Post
Replace all parts of the lines containing (Error UltraArc Languages to all CIU v2)

Replace From:
if ((Data[i - 1].Arc[6] = '') or (LanguageTranslator(Data[i - 1].Arc[6]) = ActiveLanguage))

Replace To:
if (Data[i - 1].Arc[6] = '') or (Data[i - 1].Arc[6] = ActLangShort)

Need fixe all others parts replacing "ActiveLanguage" to "ActLangShort" in all CIU v2 (Without quotes).


Sugestion: Translate as FreeArc Custom Messages ins script and adding custom messages to language files.

Thanks!
For what? Is it neccessary? I don't understand properly i guess.
__________________
Haters gonna hate
Reply With Quote
  #3  
Old 24-05-2017, 12:55
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Fixes to CIU

Quote:
Originally Posted by KaktoR View Post
Compiler only contains 1 Installer1.png.
Parsing -> Compressing

Are you sure about that? Can't find a second file in Setup.exe after compiling.

For what? Is it neccessary? I don't understand properly i guess.
From version 2.0 of CIU (All CIU v2) the language obtained with the ActiveLanguage function is always eng.

In the link below contains images with or repeated files and the fixed script (buy with beyond compare to see the differences).
https://mega.nz/#!lAgQTaQS!vuX921KwB...1kq5f6WUDXF9-0

The arc file info in Data[i - 1].Arc[6] is the language to extract the specified ultraArc file.

Sugestion use function to multiples languages to one file:
Code:
function CheckLanguageArc(Lang: String): Boolean;
var
  TmpLang: String;
begin
  Result := False;
  TmpLang := Trim(RemoveQuotes(Lang));
  if TmpLang = '' then begin
    Result := True;
    Exit;
  end;
  if Copy(TmpLang, Length(TmpLang), 1) <> ',' then
    TmpLang := TmpLang + ',';
  while Length(TmpLang) > 0 do begin
    if CompareText(Trim(Copy(TmpLang, 0, Pos(',', TmpLang) - 1)), ActLangShort) = 0 then begin
      Result := True;
      Break;
    end;
    TmpLang := Copy(TmpLang, Pos(',', TmpLang) + 1, Length(TmpLang));
  end;
end;
And use: if CheckLanguageArc(Data[i - 1].Arc[6]) and (ComponentsCheckFA(Data[i - 1].Arc[4])) then

Last edited by Cesar82; 26-05-2017 at 11:00.
Reply With Quote
The Following 3 Users Say Thank You to Cesar82 For This Useful Post:
Behnam2018 (30-01-2020), houcine80 (25-05-2017), Simorq (27-05-2017)
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
BlackBox v2 y_thelastknight Conversion Tutorials 567 11-03-2025 07:16
Useful Dll for Inno Setup users peterf1999 Conversion Tutorials 88 01-12-2017 16:00
Total War Collection - 6xDVD9 [LZMA + INNO SETUP + CIU] REV0 PC Games - CD/DVD Conversions 1 28-06-2015 17:00
Total War Collection - 2xBLURAY [LZMA + INNO SETUP + CIU] REV0 PC Games - CD/DVD Conversions 2 09-01-2013 18:02
Total War Collection - 11xDVD5 [LZMA + INNO SETUP + CIU] REV0 PC Games - CD/DVD Conversions 0 09-01-2013 16:38



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


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