
Identifying BWP installation
#1
Posted 23 January 2011 - 03:56 AM
I need to use an ACTION_IF for that; could you tell me a good condition to identify the fact that the mod is being installed by BWP, or a file that is only related to BWP, whose existance I can use for that purpose?
Turambar
Currently supporting: DSotSC for BGT, NTotSC - forum
Turambar's fixes and tweaks for BG2, BGT, DSotSC, NTotSC, SoBH and more!
Before posting questions (even regarding posts written by myself), please look at Jarno Mikkola's FAQs for the Megamods!
(how to correctly report CTDs)
#2
Posted 23 January 2011 - 05:27 AM
#3
Posted 23 January 2011 - 05:52 AM
ok, I could use that... But still, it could also exist if, for some reason, you are installing by hand a mod, having downloaded (but not using) BWP. Otherwise, are there any temporary files which are created by the .bat when the installation starts and removed after the last mod is installed?BiG World Install.bat?
I think a file such as running.bwp would be a good way to see if a BWP installation is currently running, and not just if its files exist. For example, you could add a command "copy [any file] running.bwp" at the very beginning of the .bat, and "del running.bwp" as last command
edit: moreover, BIG world install.bat has spaces in its name; I'm not sure it doesn't create problems when I'm checking for its existance
Edited by Turambar, 23 January 2011 - 06:00 AM.
Turambar
Currently supporting: DSotSC for BGT, NTotSC - forum
Turambar's fixes and tweaks for BG2, BGT, DSotSC, NTotSC, SoBH and more!
Before posting questions (even regarding posts written by myself), please look at Jarno Mikkola's FAQs for the Megamods!
(how to correctly report CTDs)
#4
Posted 23 January 2011 - 06:00 AM
Italian users: help test the Stivan NPC!
Author or Co-Author: WeiDU - Widescreen - Generalized Biffing - Refinements - TB#Tweaks - IWD2Tweaks - TB#Characters - Traify Tool - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics - Nalia Mod - Nvidia Fix
Code dumps: Detect custom secondary types - Stutter Investigator
If possible, send diffs, translations and other contributions using Git.
#5
Posted 23 January 2011 - 06:15 AM
On linux, from what I know and have seen, having files in the override folder causes much worse lags than in windows, and if someone only installs SoS, biffing is important.The only time where biffing ITM and the like is NOT a bad idea is when the only mod you're installing is SoS (and, even then, the benefits are dubious at best). As such, you might as well never biff ITM files.
Anyway, I could ask the user if he wants to biff everything (not recommended unless it's the last mod) or to wait for general biffing. So, my idea was to only prompt the user if they are installing manually from setup-sos, or if they are re-installing previous mods, but I'd need to know a way to do it.
A thing I could use is, is the BW installation %interactive%?
Turambar
Currently supporting: DSotSC for BGT, NTotSC - forum
Turambar's fixes and tweaks for BG2, BGT, DSotSC, NTotSC, SoBH and more!
Before posting questions (even regarding posts written by myself), please look at Jarno Mikkola's FAQs for the Megamods!
(how to correctly report CTDs)
#6
Posted 23 January 2011 - 06:38 AM
Or you could just add a component that does the biffing, in which case the BWS wouldn't ever run the thing, but the manual installer(the player) might.On linux, from what I know and have seen, having files in the override folder causes much worse lags than in windows, and if someone only installs SoS, biffing is important.
Anyway, I could ask the user if he wants to biff everything (not recommended unless it's the last mod) or to wait for general biffing. So, my idea was to only prompt the user if they are installing manually from setup-sos, or if they are re-installing previous mods, but I'd need to know a way to do it.
A thing I could use is, is the BW installation %interactive%?
Deactivated account. The user today is known as The Imp.
#7
Posted 23 January 2011 - 06:48 AM
Good idea, thanks! FORCED_SUBCOMPONENT could work, so you can chose between moving to override and biffing (and BWP can just install the former).Or you could just add a component that does the biffing, in which case the BWS wouldn't ever run the thing, but the manual installer(the player) might.
Would AT_EXIT instructions from the main component be performed after the installation of the FORCED_SUBCOMPONENTs?
For example:
BEGIN main //install mod AT_EXIT ~instructions~ //install mod BEGIN ~biff~ FORCED_SUBCOMPONENT ~chose~ //biff BEGIN ~nobiff~ F_S ~chose~ //move to overrideAre the ~instructions~ performed after either ~biff~ or ~nobiff~ have been installed?
Edited by Turambar, 23 January 2011 - 07:09 AM.
Turambar
Currently supporting: DSotSC for BGT, NTotSC - forum
Turambar's fixes and tweaks for BG2, BGT, DSotSC, NTotSC, SoBH and more!
Before posting questions (even regarding posts written by myself), please look at Jarno Mikkola's FAQs for the Megamods!
(how to correctly report CTDs)
#8
Posted 23 January 2011 - 08:11 AM
Erhm, I was thinking more along the lines of:Would AT_EXIT instructions from the main component be performed after the installation of the FORCED_SUBCOMPONENTs?
For example:BEGIN main //install mod AT_EXIT ~instructions~ //install mod BEGIN ~biff~ FORCED_SUBCOMPONENT ~chose~ //biff BEGIN ~nobiff~ F_S ~chose~ //move to overrideAre the ~instructions~ performed after either ~biff~ or ~nobiff~ have been installed?
BEGIN main //Where all the things have this: COPY ~x~ ~override~ //And then: BEGIN ~Biffing~ ...And that's it. See the BWS would only install the first component where the manual installers can either go and choose to install all, or just one of the components, as then there is no subcomponents needed... just like the kits in this mod.
Deactivated account. The user today is known as The Imp.