Posted by: Wisp
« on: June 16, 2019, 12:57:38 PM »Yes, I mistyped. It was late.
In this case, I am afraid to find them redundant with component numbers, therefore useless.
Would it be possible to get rid of the warning when two or more components use the same LABEL?No. Labels resolve into component numbers and therefore must be unique.
ACTION_IF (MOD_IS_INSTALLED "infinityanimations.tp2" (ID_OF_LABEL "infinityanimations.tp2" "IA_content_01")) BEGIN
Is the point of LABEL to obliterate the need of markers, or only to allow for flexible MII substitute? Because if that's the former, then I'm unsure if you are fixing anything (I may be reading this thread wrong, though), since markers in reality serve a very definite purpose, completely different from MII.Marker files still remain the most effective way to track this sort of thing (you can use FILE_EXISTS ~override/banter-accelerator.mrk~ rather than keeping track of all mods that contain a banter accelerator). LABEL and MOD_IS_INSTALLED are like a Toyota Prius: it's ugly, slow and less cost-effective than oil-operated cars, but snotty intellectuals feel superior by using it because it doesn't pollute the
~setup-mod_1_name.tp2 #component_number1~
{
SET ag#_was_hereX = 1
}
~setup-mod_1_name.tp2 #component_number2~
{
SET ag#_was_hereY = 1
}
~setup-mod_2_name.tp2 #component_number1~
{
SET ag#_was_hereX = 1
SPRINT ag#_was_here_string ~~~~~using string for a mindf@cking crazy purpose I can't ~%possibly%~ imagine~~~~~
}
Using #component_number to allow for adequate per-mod variable deletion, in case the user opts to partially reinstall later.[Edit: on the other hand, L1NPCs relies on a !(MOD_IS_INSTALLED ~setup-scs.tp2~ 3020) to make sure it doesn't mess with BG1 NPCs affected by SCS's analogous component. So I guess I would need to know the LABEL for that if DavidW intends on changing the component number (again). If not, I don't see the need to replace a bunch of existing syntax.]
If I am reading this correctly, this is a more intricate way of doingIt's probably a "less intricate" or at any rate less crufty way of doing it. See here for a background discussion, if you really want some bedtime reading material .
BEGIN ~mymodcomponent~
COPY ~swh101.itm~ ~override/small_flag_file_that_indicates_this_component_is_installed.g3~