Jump to content


Photo

A feature request


  • Please log in to reply
9 replies to this topic

#1 Caedwyr

Caedwyr

    Wraith Editor

  • Member
  • 962 posts

Posted 09 April 2004 - 10:09 AM

There are several mod packages coming out and already out that share components. Currently if a player tries to install a component that has already been installed by another mod, they get an error message like this:

Install Component [World Map Fixes]
[Y]es or [N]o or [Q]uit?
Installing [World Map Fixes]
Checking for forbidden files ...
[override/C!World.xxx] found: 11 bytes

This component is already installed by another mod.

ERROR Installing [World Map Fixes], rolling back to previous state
[CDTweaks/backup/0/UNSETSTR.0] SET_STRING uninstall info not found
WARNING: [CDTweaks/backup/0/UNINSTALL.0] is a 0 byte file
[CDTweaks/backup/0/UNINSTALL.0] loaded, 0 bytes
Will uninstall  0 files for [SETUP-CDTWEAKS.TP2] component 0.
Uninstalled      0 files for [SETUP-CDTWEAKS.TP2] component 0.
[...]
SETUP-CDTWEAKS.TP2  0  6 Installed
SETUP-REFINEMENTS.TP2  0  0 Installed
SETUP-REFINEMENTS.TP2  0  1 Installed
SETUP-REFINEMENTS.TP2  0  2 Installed
SETUP-REFINEMENTS.TP2  0  3 Installed
SETUP-REFINEMENTS.TP2  0  4 Installed
SETUP-REFINEMENTS.TP2  0  5 Installed
SETUP-REFINEMENTS.TP2  0  6 Installed
SETUP-REFINEMENTS.TP2  0  7 Installed
ERROR: Failure("override/C!World.xxx")
PLEASE email the file SETUP-CDTWEAKS.DEBUG to webmaster@camagna.net
Using Language [English]
[English] has 1 top-level TRA files
[CDTweaks/english/setup.tra] parsed
[CDTweaks/english/setup.tra] has 9 translation strings

Install Component [World Map Fixes]
[Y]es or [N]o or [Q]uit?


If it is possible, it could save some headaches if the components that are already installed by another mod were autoskipped.
"Knowledge is Power. Power Corrupts. Study Hard. Be Evil." - Ferret

PnP Celestials
Geomantic Sorcerer Kit

#2 jcompton

jcompton
  • Modder
  • 492 posts

Posted 11 April 2004 - 11:11 PM

I think the more precise way to format this question is:

Wes, can we have

A. FORBID_FILE and REQUIRE_FILE "pre-processed", so that if they would cause the install to fail, that component is never presented?

or

B. FORBID_FILE_SKIP and REQUIRE_FILE_SKIP that do what A describes, leaving the existing F_F and R_F to work as before.

It turns out that a goodly number of people will break out of their install process when they see the ominous ERROR show up.

#3 Caedwyr

Caedwyr

    Wraith Editor

  • Member
  • 962 posts

Posted 11 April 2004 - 11:57 PM

Heh, thanks. I know practically nothing about weidu and only rudimentary things about programing, so I'll leave the more advanced requests to people who actually know what they are talking about.
"Knowledge is Power. Power Corrupts. Study Hard. Be Evil." - Ferret

PnP Celestials
Geomantic Sorcerer Kit

#4 MagusWizardo

MagusWizardo

    Don't ask... please don't ask.

  • Member
  • 201 posts

Posted 12 April 2004 - 01:23 AM

I second this request.

EDIT:
Also, could this be exteneded to do the same for REQUIRE_COMPONENT and UNINSTALL (or, possibly, another new feature - say, FORBID_COMPONENT which takes the same arguments as REQUIRE_COMPONENT, but does the same as FORBID_FILE ). That is, if a needed mod is not installed, or a forbidden mod *is* installed, WeiDU will not ask to install this component instead of displaying an error.

Edited by MagusWizardo, 12 April 2004 - 02:13 AM.


#5 weimer

weimer
  • Member
  • 1569 posts

Posted 20 April 2004 - 11:10 AM

This is a good idea, and I will code it up.

#6 weimer

weimer
  • Member
  • 1569 posts

Posted 20 April 2004 - 11:14 AM

REQUIRE_COMPONENT should already be pre-processed in this manner. If not, show a TP2 file (or files) and I'll fix it. Now on to REQUIRE/FORBID_FILE.

#7 Idobek

Idobek

    Pocket Plane Gibberling

  • Member
  • 429 posts

Posted 20 April 2004 - 11:21 AM

REQUIRE_COMPONENT is already pre-processed - that works like a charm. A FORBID_COMPONENT would be nice, as MagusWizardo stated.

Thanks Wes.

#8 weimer

weimer
  • Member
  • 1569 posts

Posted 20 April 2004 - 11:26 AM

FORBID_FILE and REQUIRE_FILE are now "preprocessed" -- if the condition fails, the default for that component is set to "skip" (or "uninstall").

Look for it in the next WeiDU. You guys will have to test it for me.

#9 weimer

weimer
  • Member
  • 1569 posts

Posted 20 April 2004 - 11:28 AM

FORBID_COMPONENT added.

#10 Idobek

Idobek

    Pocket Plane Gibberling

  • Member
  • 429 posts

Posted 20 April 2004 - 11:32 AM

WooHoo!

You guys will have to test it for me.

With the amount of uses we have for this at moment this is not going to be a problem.