Skip to content

Weidu installation (batch installation): Question about options to be passed into the interactive

shevy123456shevy123456 Member Posts: 514
edited June 26 in BGII:EE Mods
When I want to install a BG2 mod, such as the tweaks mod, I get asked a lot of questions.

The repository is here:

https://github.com/Gibberlings3/Tweaks-Anthology

Today I decided I need a batch installer, as I play on windows (my main computer here is on Linux, so I need to move to the other computer).

A while ago I started to use .yml files for all mods, and background info for mods, I use, e. g. the github repository, and some other parameters, name and so forth. This allows me to iterate over all mods and then attempt to install them. (Initially this was only to batch-download them, but today I also ran into some strange issues, e.g "untranslated strings", for some of Lava's mods, and I never had these problems before, so I suspect that some prior mod, caused some strangeness here, perhaps some string was unresolved or something. I got some strange error from weidu here which I never saw before, and the
only difference I could see was that I tried to install perhaps three new mods).

Calling "batch" installer is a bit of a misnomer here. I just call the .exe file for each mod, one after the other. Now one bottleneck I realised is that I still have to input the answers to the questions manually, for instance:

"Use universal clubs? Y/N". I tend to pick yes here.

But ideally I would like to feed the answer to that question in automatically.

Does anyone have an idea how to best do so? I am not an expert in weidu, but since it queries for user input via the keyboard, I was thinking that it should be possible to control each step here. It's fine to use any language by the way, be it python or lua or what not. Or, even better, if weidu itself may support this, perhaps from reading in from a file or otherwise. Right now I am not sure how this user input thing is handled via weidu, but clearly those questions probably go into whatever internally is used by weidu, probably ocaml or something. Or, perhaps there is an internal API that could be used here. I'd be grateful for any explanation or answer, as that would allow me to more easily feed in the default input that I use for some of the mods, in particular the larger ones (tweaks, tactics remix etc...); for the smaller mods it is not a big deal, but for the larger ones, answering like 40 questions can be quite tedious.

Edit: I found a few semi-related programs such as:

https://github.com/subtledoctor/MacOS_Weidu_Launcher

But that one is for Mac; and it is not quite what I want, e. g. I think I just want a commandline variant, and feed in the answers to questions from, say, a local file or so; or control each question step. I guess a better name may be a commandline installer, as weidu is more a commandline frontend that assumes interactive use only, or at the least it defaults to interactive use. I also saw argent77's tool here, but it is a GUI too: https://github.com/InfinityTools/WeiduInstallTool

Perhaps I have not yet found such a non-interactive commandline installer tool yet.
Sign In or Register to comment.