Author Topic: Unattended installation of specific components from a mod  (Read 3163 times)

Offline forbjok

  • Planewalker
  • *****
  • Posts: 11
Unattended installation of specific components from a mod
« on: September 28, 2010, 02:57:04 AM »
Is it somehow possible to make WeiDU perform an unattended installation of a pre-configured set of components from a mod?
For instance, install only some components of BG2 tweak pack, ignoring the rest, based on a premade configuration of some sort, without having to manually specify what to do with each component.

Offline Mike1072

  • Planewalker
  • *****
  • Posts: 298
  • Gender: Male
Re: Unattended installation of specific components from a mod
« Reply #1 on: September 28, 2010, 03:59:31 AM »
From the command-line or .bat:

Code: [Select]
setup-modname.exe --language 0 --skip-at-view --force-install-list 0 1 5 8 9
This installs components 0, 1, 5, 8, and 9 in the first language translation (usually English) and doesn't display the readme.

You can use --force-uninstall-list 1 5 9 to uninstall some selection of components, or --uninstall to remove all components of a mod.

Offline forbjok

  • Planewalker
  • *****
  • Posts: 11
Re: Unattended installation of specific components from a mod
« Reply #2 on: September 28, 2010, 04:23:17 AM »
Are those component numbers unique IDs that will remain the same within the same mod (assuming the author doesn't change it, of couse) across versions, or are they simply an incremental ID based on the component's position in the install script?

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Unattended installation of specific components from a mod
« Reply #3 on: September 28, 2010, 05:34:51 AM »
They're generally incremental, but the author can optionally manually specify an identifier.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline forbjok

  • Planewalker
  • *****
  • Posts: 11
Re: Unattended installation of specific components from a mod
« Reply #4 on: September 28, 2010, 07:52:23 AM »
Nice :)
They are the "#component_number" from WeiDU.log then?

Another thing though... in the BGT installer, it asks for the path to BG1.
Is it possible to specify that through the commandline as well?

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Unattended installation of specific components from a mod
« Reply #5 on: September 28, 2010, 08:09:37 AM »
You can also get the component numbers via weidu --list-components mymod.tp2 0 (where 0 is the language #, obteinable via weidu --list-languages mymod.tp2).

You can specify the BG1 directory (and Widescreen resolution, etc.) via pipes: echo "C:\path\to\bg1" | setup-bgt.exe ... if it's a single line, or write the contents to a input.txt and then use type input.txt | setup-widescreen.exe ... . See also the install.bat from the Big World Setup for examples.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Miloch

  • Barbarian
  • Planewalker
  • *****
  • Posts: 1032
  • Gender: Male
Re: Unattended installation of specific components from a mod
« Reply #6 on: September 30, 2010, 07:53:37 AM »
If you don't want to spend your life hacking batch files (or reinventing the wheel), try the Big World Setup which will do that for you.

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Unattended installation of specific components from a mod
« Reply #7 on: September 30, 2010, 07:59:21 AM »
Wait, BWS has been able to do components for the last six months and has never been integrated in the BWP proper?
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Miloch

  • Barbarian
  • Planewalker
  • *****
  • Posts: 1032
  • Gender: Male
Re: Unattended installation of specific components from a mod
« Reply #8 on: September 30, 2010, 08:16:22 AM »
I don't know when exactly dabus added component-picking, but it worked just fine on my last install a month or so ago. Didn't have to touch a single batch file.

anon

  • Guest
Re: Unattended installation of specific components from a mod
« Reply #9 on: July 26, 2011, 05:10:06 PM »
Sorry for the thread necromancy, but this is so relevant to my question it makes more sense to continue the discussion than start a new one.

How exactly do I
Quote from: 'the bigg'
...write the contents to a input.txt and then use type input.txt | setup-widescreen.exe ...

I've looked at the bigworld install batch file and i follow most of it, but I don't see a clear use of this syntax. From the quote above, I don't see how to write multiple input options to a single file (assuming each row is a unique set of inputs for a given mod?) and then call the correct row via pipes to provide the input to weidu.

For example; say I've got input.txt with 3 rows, covering the romance cheat options for bg2 tweak pack, [a b a a], some entries for lvl 1 npcs, and my widescreen resolution.
Quote from: input.txt
a b a a
0 12 2 2 2
1400 900

and my corresponding .bat for installing said mods is
Quote from: 'WeiDU 07-24-11_BWP.bat'
SETUP-BG2_TWEAKS.exe --language 0 --force-install-list 3183 [romance cheat]  --skip-at-view
setup-level1npcs.exe --language 0 --force-install-list 0 1207 [jaheria] --skip-at-view
SETUP-WIDESCREEN.exe --language 0 --force-install-list 0 --skip-at-view

Do I edit my batch file and use some sort of array index notation to specify the row from input.txt?
Code: [Select]
input.txt(1) | SETUP-BG2_TWEAKS.exe --language 0 --force-install-list 3183 [romance cheat]  --skip-at-view
input.txt(2) | setup-level1npcs.exe --language 0  --force-install-list 0 1207 --skip-at-view
input.txt(3) | SETUP-WIDESCREEN.exe --language 0 --force-install-list 0 --skip-at-view

I have my own custom .bat that is _almost_ unattended, but there are about 5 mods that make me monitor it to give input and I know I can get around it, since BWP handles it somehow. Not to mention, automating lvl1npc would be _really_ nice.

Offline Jarno Mikkola

  • The Imp.
  • Planewalker
  • *****
  • Posts: 184
  • Gender: Male
    • website jocuri
Re: Unattended installation of specific components from a mod
« Reply #10 on: July 27, 2011, 08:41:13 AM »
You put the inputs for each setup....exe's to different files, and different inputs to different lines, so the above would be:
Quote from: input1.txt
a
b
a
a

Quote from: input2.txt
0
12
2
2
2


Quote from: input3.txt
1400
900

Code: [Select]
input1.txt | SETUP-BG2_TWEAKS.exe --language 0 --force-install-list 3183 --skip-at-view
input2.txt | setup-level1npcs.exe --language 0 --force-install-list 0 1207 --skip-at-view
input3.txt | SETUP-WIDESCREEN.exe --language 0 --force-install-list 0 --skip-at-view

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: