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
  #1  
Old 28-08-2021, 07:21
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 L33THAK0R View Post
Is it possible to get ASIS to have an additional component "level"? For some packs I'm working on, I'm offering optional pre-modded configurations, where the components, in an ideal scenario would look something like:
Code:
|- Main Files
|- Selective videos
    |-> Lossless
    |-> Lossy
|- Modded Content
    |->Type X of Mod
        |->Offering A
        |->Offering B
But I can't seem to figure out which part(s) require tinkering to make this possible.
You must use Tasks to do this.
Use the key level to shift items to the right 15 pixels for each value 1 incremented in the key level.
LEVEL 0 = 0 PIXEL
LEVEL 1 = 15 PIXELS
LEVEL 2 = 30 PIXELS
ETC
Reply With Quote
The Following User Says Thank You to Cesar82 For This Useful Post:
Gehrman (31-05-2022)
Sponsored Links
  #2  
Old 28-08-2021, 08:47
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 L33THAK0R View Post
Is it possible to get ASIS to have an additional component "level"? For some packs I'm working on, I'm offering optional pre-modded configurations, where the components, in an ideal scenario would look something like:
Code:
|- Main Files
|- Selective videos
    |-> Lossless
    |-> Lossy
|- Modded Content
    |->Type X of Mod
        |->Offering A
        |->Offering B
But I can't seem to figure out which part(s) require tinkering to make this possible.


Code:
[TasksSettings]
Enable=1
FlatPageMode=0
ShowTaskSize=1

Task1.Name=Main Files
Task1.ItemType=CHECKBOX
Task1.Size=500 mb
Task1.Level=0
Task1.Checked=1
Task1.Enabled=0

Task2.Name=Selective videos
Task2.ItemType=GROUP
Task2.Size=0
Task2.Level=0
Task2.Checked=1
Task2.Enabled=1

Task3.Name=Lossless
Task3.ItemType=RADIO
Task3.Size=600 mb
Task3.Level=1
Task3.Checked=1
Task3.Enabled=1

Task4.Name=Lossy
Task4.ItemType=RADIO
Task4.Size=300 mb
Task4.Level=1
Task4.Checked=0
Task4.Enabled=1

Task5.Name=Modded Content
Task5.ItemType=GROUP
Task5.Size=515 mb
Task5.Level=0
Task5.Checked=0
Task5.Enabled=1

Task6.Name=Type X of Mod
Task6.ItemType=GROUP
Task6.Size=0
Task6.Level=1
Task6.Checked=0
Task6.Enabled=1

Task7.Name=Offering A
Task7.ItemType=RADIO
Task7.Size=200 mb
Task7.Level=2
Task7.Checked=0
Task7.Enabled=1

Task8.Name=Offering B
Task8.ItemType=RADIO
Task8.Size=100 mb
Task8.Level=2
Task8.Checked=0
Task8.Enabled=1
You can replace RADIO with CHECKBOX if you give users the choice of installing "Offering A" + "Offering B" together.

Records.ini for the above example

Code:
[Record1]
Type=Freearc_Original
Source={src}\Main_Files.bin
Output={app}\
Disk=1
Size=500 MB
Task=1

[Record2]
Type=Freearc_Original
Source={src}\Lossless.bin
Output={app}\
Disk=1
Size=600 MB
Task=3

[Record3]
Type=Freearc_Original
Source={src}\Lossy.bin
Output={app}\
Disk=1
Size=300 MB
Task=4

[Record4]
Type=Freearc_Original
Source={src}\Offering_A.bin
Output={app}\
Disk=1
Size=200 MB
Task=7

[Record5]
Type=Freearc_Original
Source={src}\Offering_B.bin
Output={app}\
Disk=1
Size=100 MB
Task=8
__________________
Haters gonna hate

Last edited by KaktoR; 28-08-2021 at 08:51.
Reply With Quote
The Following 2 Users Say Thank You to KaktoR For This Useful Post:
abror (26-05-2022), Gehrman (31-05-2022)
  #3  
Old 28-08-2021, 09:11
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
@L33THAK0R, if you use ASIS together with DiskSpan GUI the DiskSpan GUI 2.0+ settings in "Resources\DSG_Settings.ini" for the KaktoR example above (Part related tasks) will look like this.

Code:
[Game1Settings]
//... others game configs
Data1.Name=Main_Files-01.bin
Data1.Tasks=1
Data2.Name=Lossless-01.bin
Data2.Tasks=3
Data3.Name=Lossy-01.bin
Data3.Tasks=4
Data4.Name=Offering_A-01.bin
Data4.Tasks=7
Data5.Name=Offering_B-01.bin
Data5.Tasks=8
Reply With Quote
  #4  
Old 28-08-2021, 09:24
L33THAK0R's Avatar
L33THAK0R L33THAK0R is offline
Registered User
 
Join Date: Feb 2021
Location: Saudi Arabia
Posts: 406
Thanks: 137
Thanked 117 Times in 70 Posts
L33THAK0R is on a distinguished road
@Cesar82 @KaktoR thank you so much for your time, however I think I've wasted your efforts (hopefully these instructions will be useful to future users), as I'm a stubborn bastard, still using v7.2.0 of the script, as such I'm not able to use "tasks" to accomplish my goal. However after looking through the script a bit, I think I've figured out the section(s) that I need to look at. Once again sorry to have bothered you lads, thank you for all the help you've given so far!
Reply With Quote
The Following User Says Thank You to L33THAK0R For This Useful Post:
Cesar82 (28-08-2021)
  #5  
Old 30-08-2021, 12:40
mr_gnar's Avatar
mr_gnar mr_gnar is offline
Registered User
 
Join Date: Oct 2020
Location: America
Posts: 13
Thanks: 1
Thanked 6 Times in 4 Posts
mr_gnar is on a distinguished road
Cool

I am still having issues relating to the Start Menu part of the script.

This is just an example. Even when the option to not make one is checked, it still makes them when the installer is finished. Is there any way I can fix this, or at the very least remove the checkbox?
__________________
Stretched to breaking an obscene canvas on a stretcher of parasitism.
Reply With Quote
The Following User Says Thank You to mr_gnar For This Useful Post:
KaktoR (30-08-2021)
  #6  
Old 30-08-2021, 13:14
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
Thanks for reporting.

Here is a fix for this

The problem was that all the icons were linked to desktop shortcut checkbox and the startmenu checkbox had literally no effect.
Attached Files
File Type: 7z Fix.7z (35.1 KB, 24 views)
__________________
Haters gonna hate
Reply With Quote
The Following 4 Users Say Thank You to KaktoR For This Useful Post:
Cesar82 (30-08-2021), mausschieber (30-08-2021), mr_gnar (01-09-2021), XxAZAxX (31-08-2021)
  #7  
Old 01-09-2021, 10:21
mr_gnar's Avatar
mr_gnar mr_gnar is offline
Registered User
 
Join Date: Oct 2020
Location: America
Posts: 13
Thanks: 1
Thanked 6 Times in 4 Posts
mr_gnar is on a distinguished road
Talking

Quote:
Originally Posted by KaktoR View Post
Thanks for reporting.

Here is a fix for this

The problem was that all the icons were linked to desktop shortcut checkbox and the startmenu checkbox had literally no effect.
Thank you! The fix works fine on the latest version of ASIS. I do have another question though, is there anyway I can insert this fix into an older version of it, like 7.2.0? I use 7.3.1 and 7.2.0, and I flip-flop between versions for testing. 7.3.1's has too much added stuff compared to 7.2.0, so it's hard to see what line I would have to change to add this fix to 7.2.0.
__________________
Stretched to breaking an obscene canvas on a stretcher of parasitism.
Reply With Quote
  #8  
Old 02-09-2021, 02:05
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
Unfortunatelly not supported anymore, because the system creating icons changed since then.
__________________
Haters gonna hate
Reply With Quote
  #9  
Old 03-09-2021, 05:09
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
I uploaded a hotfix for the "expression error" if you run the installer in compact mode and it finished.

Problem was that the installer tried to create startmenu shortcuts and failed, eventough this shouldn't be the case in compactmode (however the installation is done succesfull and desktop icons were created).

My previous fix for the shortcuts was just tested in normalmode, sorry for that
__________________
Haters gonna hate

Last edited by KaktoR; 03-09-2021 at 05:12.
Reply With Quote
The Following 4 Users Say Thank You to KaktoR For This Useful Post:
BKR-TN (05-09-2021), Cesar82 (03-09-2021), Grumpy (03-09-2021), mausschieber (03-09-2021)
  #10  
Old 20-09-2021, 03:22
L33THAK0R's Avatar
L33THAK0R L33THAK0R is offline
Registered User
 
Join Date: Feb 2021
Location: Saudi Arabia
Posts: 406
Thanks: 137
Thanked 117 Times in 70 Posts
L33THAK0R is on a distinguished road
Question

UPDATE: Realised I might be able to do a bit of a botched fix using batch scripts, its a bit fucky but thankfully I don't repack collections structured like this often!

Hi all,

Got a small question regarding whether my proposed solution could work at all (I'm terribly new to pascal/delphi). I've got a fair few packs that feature selective, multiple-title offerings to the end-user, each with their own, separate executable to launch from (since some are emulated and require a small script to launch the ROM), as well as their own entry under the shortcut section of the "Settings.ini" file used in ASIS (baked into a executable thats just a batch script wrapped in an exe). My issue is that regardless of the component selection, upon extraction of all selected archives, all desktop shortcuts defined within the "settings.ini" are generated (should the option be selected).

My current thought process is using the "RemoveShortcut" function, in the Post-install section of the script to delete the shortcut, if a given .txt file is missing (which would be packed with a given selective offering), like so:

Code:
    
#if ("{app}\_CommonRedist\APPS\APP_1.txt" == "0") && ("{userdesktop}\APP_1.lnk" == "1")
 #for {i = 1; Trim(ReadIni(SourcePath + "\Settings.ini", "Executable" + Str(i), "ShortcutName", "")) != ""} RemoveShortcut
#endif
#if ("{app}\_CommonRedist\APPS\APP_2.txt" == "0") && ("{userdesktop}\APP_2.lnk" == "1")
 #for {i = 2; Trim(ReadIni(SourcePath + "\Settings.ini", "Executable" + Str(i), "ShortcutName", "")) != ""} RemoveShortcut
#endif
However upon testing this both shortcuts were removed even when installing only one of the selected components. Does anyone have any idea why this might be?

Last edited by L33THAK0R; 21-09-2021 at 10:00.
Reply With Quote
The Following User Says Thank You to L33THAK0R For This Useful Post:
Gehrman (31-05-2022)
  #11  
Old 22-09-2021, 08:53
MartinezPL MartinezPL is offline
Registered User
 
Join Date: Oct 2011
Location: Poland
Posts: 117
Thanks: 46
Thanked 24 Times in 9 Posts
MartinezPL is on a distinguished road
Hi,
Any idea why shortcut is a white blank icon?

I have this in Settings.ini

[Executable1]
ShortcutName=Kena Bridge of Spirits
ExePath=Kena.exe
ExeParam=
IconFileName=Kena.exe

I even had:
IconFileName=Setup.ico

Since Setup.ico use icon straight from game .exe file.
Still it was white blank image.
Reply With Quote
  #12  
Old 22-09-2021, 09:14
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 MartinezPL View Post
Hi,
Any idea why shortcut is a white blank icon?

I have this in Settings.ini

[Executable1]
ShortcutName=Kena Bridge of Spirits
ExePath=Kena.exe
ExeParam=
IconFileName=Kena.exe

I even had:
IconFileName=Setup.ico

Since Setup.ico use icon straight from game .exe file.
Still it was white blank image.
Remove IconFileName= key or try:
IconFileName={app}\Kena.exe
Reply With Quote
The Following 2 Users Say Thank You to Cesar82 For This Useful Post:
abror (28-05-2022), MartinezPL (23-09-2021)
  #13  
Old 23-09-2021, 03:36
MartinezPL MartinezPL is offline
Registered User
 
Join Date: Oct 2011
Location: Poland
Posts: 117
Thanks: 46
Thanked 24 Times in 9 Posts
MartinezPL is on a distinguished road
"IconFileName={app}\Kena.exe"
This made the trick.
Thank you very much Cesar82
Reply With Quote
  #14  
Old 11-10-2021, 01:01
L33THAK0R's Avatar
L33THAK0R L33THAK0R is offline
Registered User
 
Join Date: Feb 2021
Location: Saudi Arabia
Posts: 406
Thanks: 137
Thanked 117 Times in 70 Posts
L33THAK0R is on a distinguished road
Is it there any easy solution to have multiple data files for single selected component? I'm currently making a collection, with one of the selective titles having to have certain files packed separately. I know I could just instruct the user to select 2 items, but for the sake of it looking better I was wondering if a neater solution would be possible.

I tried modifying
Code:
if Trim(GetIniString('ComponentsSettings', 'Component' + IntToStr(I) + '.File', '', IniFile)) = '' then
&
Code:
ComponentFile := ExpandConstant('{src}\' + GetIniString('ComponentsSettings', 'Component' + IntToStr(CompIndexList[I]) + '.File', '', ExpandConstant('{tmp}\Settings.ini')));
to
Code:
if Trim(GetIniString('ComponentsSettings', 'Component' + IntToStr(I) + '.FileA' or '.FileB', '', IniFile)) = '' then
&
Code:
ComponentFile := ExpandConstant('{src}\' + GetIniString('ComponentsSettings', 'Component' + IntToStr(CompIndexList[I]) + '.FileA', '', ExpandConstant('{tmp}\Settings.ini')));
ComponentFile := ExpandConstant('{src}\' + GetIniString('ComponentsSettings', 'Component' + IntToStr(CompIndexList[I]) + '.FileB', '', ExpandConstant('{tmp}\Settings.ini')));
when they appeared (twice for each) within the script, however this sadly didn't work out, with other attempts either not functioning when testing with a set of example archives, or an error was met on compiling the script. Does anyone familiar with Pascal have any idea if this type of modification is possible? I'm assuming such a solution isn't feasible, as the script wasn't designed to have multiple entries for a single component part.
Reply With Quote
  #15  
Old 11-10-2021, 02:18
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
Yes, however, you have to enable Tasks

Just make a Task

Code:
Task1.Name=Game Files
Task1.ItemType=CHECKBOX
Task1.Size=<Game size> gb/mb/kb/b
Task1.Level=0
Task1.Checked=1
Task1.Enabled=0
And records.ini

Code:
[Record1]
Type=Freearc_Original
Source={src}\Data1a.bin
Output={app}\
Disk=1
Size=<archive size> gb/mb/kb/b
Task=1

[Record2]
Type=Freearc_Original
Source={src}\Data1b.bin
Output={app}\
Disk=1
Size=<archive size> gb/mb/kb/b
Task=1

...
Maybe it works without Task too, but I have not tested it.

But may I ask, why you don't make a masked data archive? You can store different files with different compressions inside a single freearc archive.

Edit: Ohh, I just forgot you are working with an older script (right?). In this case I can't help you much, but I guess it is possible neverthless (I guess in this case you have to work with Component=# instead of Task=# in records.ini).
__________________
Haters gonna hate

Last edited by KaktoR; 11-10-2021 at 02:22.
Reply With Quote
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 14:03.


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