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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 30-04-2021, 21:25
pratikpatel8982 pratikpatel8982 is offline
Registered User
 
Join Date: Sep 2020
Location: India
Posts: 116
Thanks: 105
Thanked 49 Times in 30 Posts
pratikpatel8982 is on a distinguished road
Quote:
Originally Posted by L33THAK0R View Post
I'm in no way qualified to say anything on this but I'm fairly sure you don't need to put component files in records.ini
Component settings should be in settings.ini file.
There is also a helpfile for settings.ini.
Reply With Quote
Sponsored Links
  #2  
Old 01-05-2021, 00:27
pratikpatel8982 pratikpatel8982 is offline
Registered User
 
Join Date: Sep 2020
Location: India
Posts: 116
Thanks: 105
Thanked 49 Times in 30 Posts
pratikpatel8982 is on a distinguished road
Multiple Music Files Support in ASIS??

I wanted to ask if I can add multiple music files like background images. For example:
Code:
For background images in settings.ini
[Background]
//---------------Setup\Background\#.jpg
Enable=1
InstallBGDuration=5000
InstallBGAnimation=1
BGAfterInstall=1

Similarly for music:
[Music]
Enable=1
MusicFile=Setup\Music\Track#.mp3
OR ALTERNATIVELY, 
MusicFile=Setup\Music\*.mp3 [To Load all mp3 files]
MusicVolume=10
So if I can use Setup\Music\Track#.mp3 and then in the "Music" folder, place files with name:
Code:
Track1.mp3
Track2.mp3
Track3.mp3
Track4.mp3
Track5.mp3
Track6.mp3
...
Does this require code change??
And one more thing, does it loop music like FG Repacks?
If it's not possible, then I will merge all the tracks into a single music file.

Last edited by pratikpatel8982; 01-05-2021 at 00:36.
Reply With Quote
  #3  
Old 01-05-2021, 03:58
alucard1973 alucard1973 is offline
Registered User
 
Join Date: Apr 2015
Location: Madrid
Posts: 45
Thanks: 1
Thanked 3 Times in 3 Posts
alucard1973 is on a distinguished road
Quote:
Originally Posted by pratikpatel8982 View Post
Component settings should be in settings.ini file.
There is also a helpfile for settings.ini.
I know that there is the task= but as it is not in the Setting.ini, I had to adapt myself with the Component1 etc ... but I look at the help file, there is nothing on
Reply With Quote
  #4  
Old 01-05-2021, 08:24
pratikpatel8982 pratikpatel8982 is offline
Registered User
 
Join Date: Sep 2020
Location: India
Posts: 116
Thanks: 105
Thanked 49 Times in 30 Posts
pratikpatel8982 is on a distinguished road
Quote:
Originally Posted by alucard1973 View Post
I know that there is the task= but as it is not in the Setting.ini, I had to adapt myself with the Component1 etc ... but I look at the help file, there is nothing on
You have to add the whole component thing in settings.ini to be able to choose which component to install. Just copy everything starting from [Component] and paste it at the end of settings.ini
Also you forgot to add this line for each component:
Code:
Component#.File=(The archive linked for the component)
For example:
Component1.File=Component1.arc
You have to add it for each component to make it work properly.
Reply With Quote
  #5  
Old 01-05-2021, 09:42
alucard1973 alucard1973 is offline
Registered User
 
Join Date: Apr 2015
Location: Madrid
Posts: 45
Thanks: 1
Thanked 3 Times in 3 Posts
alucard1973 is on a distinguished road
Quote:
Originally Posted by pratikpatel8982 View Post
You have to add the whole component thing in settings.ini to be able to choose which component to install. Just copy everything starting from [Component] and paste it at the end of settings.ini
Also you forgot to add this line for each component:
Code:
Component#.File=(The archive linked for the component)
For example:
Component1.File=Component1.arc
You have to add it for each component to make it work properly.
yes, I removed it because the setup I want to choose for installation is in components2.file and components3.file
the concern is that in the record, I do how, I understood correctly that you tell me to do nothing, but unfortunately, it installs me everything every time and I would like to choose in the pack, the game and the language of the game that I want to install, for example, commando beyond line and commando 2 without installing the others

I don't know if I'm explaining myself well
what I want to do, is therefore if I choose to install commandos 2, is that it installs me this version as well as this file

[Record5]
Type=Freearc_Original
Source={src}\Setup3FR.cab
Output={app}\SteamApps\common\Commandos 2 Men of Courage\
Disk=1

[Record13]
Type=Freearc_Original
Source={src}\Setup3STEAM.cab
Output={app}\SteamApps\

I would test more or less what you tell me because they don't laugh to put in the record.ini as in CIU which was for me Task = 2 for example, I doubt that it works for me, but I have nothing more to lose

another thing, to uninstall a backup, is there a line to put in setting.ini?

Last edited by alucard1973; 01-05-2021 at 09:59.
Reply With Quote
  #6  
Old 01-05-2021, 10:28
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
Quote:
Originally Posted by alucard1973 View Post
yes, I removed it because the setup I want to choose for installation is in components2.file and components3.file
the concern is that in the record, I do how, I understood correctly that you tell me to do nothing, but unfortunately, it installs me everything every time and I would like to choose in the pack, the game and the language of the game that I want to install, for example, commando beyond line and commando 2 without installing the others

I don't know if I'm explaining myself well
what I want to do, is therefore if I choose to install commandos 2, is that it installs me this version as well as this file

[Record5]
Type=Freearc_Original
Source={src}\Setup3FR.cab
Output={app}\SteamApps\common\Commandos 2 Men of Courage\
Disk=1

[Record13]
Type=Freearc_Original
Source={src}\Setup3STEAM.cab
Output={app}\SteamApps\

I would test more or less what you tell me because they don't laugh to put in the record.ini as in CIU which was for me Task = 2 for example, I doubt that it works for me, but I have nothing more to lose

another thing, to uninstall a backup, is there a line to put in setting.ini?
I don't know if the ASIS 7.2.2 I have here is the latest version, but from what I found in the code it doesn't have any reading of key Component= or Comp= in records.ini

The installation is done normally from the Records.ini files (like Main Game).
After the main extraction, the ASIS configuration is checked in the [ComponentsSettings] section, key Component#.File= (starting with 1) and if any of them are checked and the file exists, it will be extracted.
NOTE: For the data file to work, it must be in the same path as Setup.exe, so if it is burned to disk or ISO it must be on the last disk, otherwise (folders) it must be next to Setup.exe.
Component#.File should only be the name of the component or <SubDir>\<DataFile> in relation to {src} (Setup.exe directory)

The Component will always be extracted to {app} so if you need to put the files in subfolders they must be in subfolders before compression.

If you understand a little bit, see the code below the component extraction process done after installing the main game.
Code:
    {Unpack selected components}
    #if UseComponents == "1"
      if ComponentsPageAvai then
      begin
        for I := 0 to GetArrayLength(CompIndexList) - 1 do
          if ComponentsList.Checked[CompIndexList[I]] then
          begin
            ComponentFile := ExpandConstant('{src}\' + GetIniString('ComponentsSettings', 'Component' + IntToStr(CompIndexList[I]) + '.File', '', ExpandConstant('{tmp}\Settings.ini')));
            if (ISDoneError = False) and FileExists(ComponentFile) then
              if not ISArcExtract(0, 0, ComponentFile, ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false) then
                ISDoneError := True;
          end;
      end;
    #endif
Reply With Quote
The Following User Says Thank You to Cesar82 For This Useful Post:
Gehrman (01-05-2021)
  #7  
Old 01-05-2021, 14:53
alucard1973 alucard1973 is offline
Registered User
 
Join Date: Apr 2015
Location: Madrid
Posts: 45
Thanks: 1
Thanked 3 Times in 3 Posts
alucard1973 is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
I don't know if the ASIS 7.2.2 I have here is the latest version, but from what I found in the code it doesn't have any reading of key Component= or Comp= in records.ini

The installation is done normally from the Records.ini files (like Main Game).
After the main extraction, the ASIS configuration is checked in the [ComponentsSettings] section, key Component#.File= (starting with 1) and if any of them are checked and the file exists, it will be extracted.
NOTE: For the data file to work, it must be in the same path as Setup.exe, so if it is burned to disk or ISO it must be on the last disk, otherwise (folders) it must be next to Setup.exe.
Component#.File should only be the name of the component or <SubDir>\<DataFile> in relation to {src} (Setup.exe directory)

The Component will always be extracted to {app} so if you need to put the files in subfolders they must be in subfolders before compression.

If you understand a little bit, see the code below the component extraction process done after installing the main game.
Code:
    {Unpack selected components}
    #if UseComponents == "1"
      if ComponentsPageAvai then
      begin
        for I := 0 to GetArrayLength(CompIndexList) - 1 do
          if ComponentsList.Checked[CompIndexList[I]] then
          begin
            ComponentFile := ExpandConstant('{src}\' + GetIniString('ComponentsSettings', 'Component' + IntToStr(CompIndexList[I]) + '.File', '', ExpandConstant('{tmp}\Settings.ini')));
            if (ISDoneError = False) and FileExists(ComponentFile) then
              if not ISArcExtract(0, 0, ComponentFile, ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false) then
                ISDoneError := True;
          end;
      end;
    #endif
So if I put this, it should extract the components2.file if I choose the FRENCH version
The components1 I left empty because it is to deselect if I do not want to install it, suddenly I guess I have a problem with setting.ini

Component1.Name=Commandos Behind Enemy Lines
Component1.File=
Component1.Size=
Component1.Level=1
Component1.Exclusive=0
Component1.Checked=1
Component1.Enabled=1

Component2.Name=French
Component2.File=Setup1FR.cab
Component2.Size=930
Component2.Level=0
Component2.Exclusive=1
Component2.Checked=0
Component2.Enabled=1

Component3.Name=English
Component3.File=Setup1.cab
Component3.Size=930
Component3.Level=0
Component3.Exclusive=1
Component3.Checked=0
Component3.Enabled=1

I will see and try to find a solution for it, but there is also the problem of registry.iss, suddenly, how do I put componets for the one I chose to install in relation to the settings.ini?
yes, the version I am using is 7.2.2a

Last edited by alucard1973; 01-05-2021 at 15:08.
Reply With Quote
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
[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 21:43.


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