Author Topic: A challenge to other tp2 leeters.  (Read 1227 times)

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
A challenge to other tp2 leeters.
« on: July 08, 2005, 06:14:35 PM »
Find a real use for the optNoBackup operator  :D
I just found one, and before sharing I thought I'd hear if anybody else ever did  :)
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 Grim Squeaker

  • Fallen
  • Planewalker
  • *****
  • Posts: 1019
  • Gender: Male
Re: A challenge to other tp2 leeters.
« Reply #1 on: July 09, 2005, 08:58:17 AM »
Is that the + on COPYs etc?  I've seen people use it for copying an uninstall batch file (as they'll need to run it after WeiDU has uninstalled the COPYs), though personally I just have the batch files run from their install directory rather than copying them to the override.
"You alone can make my song take flight..."

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: A challenge to other tp2 leeters.
« Reply #2 on: July 09, 2005, 03:16:26 PM »
Is that the + on COPYs etc? I've seen people use it for copying an uninstall batch file (as they'll need to run it after WeiDU has uninstalled the COPYs), though personally I just have the batch files run from their install directory rather than copying them to the override.
Yeah, that '+'. My use was for detecting at game time (rather than at install time) the presence of a mod (it's needed for a very delicate problem between Refinements and G3Tweaks). Code follows:

Code: [Select]
<<<<<<<< nothere0.baf
IF
    Global("tb#refinements0installed","global",1)
THEN
    RESPONSE #100
    SetGlobal("tb#refinements0installed","global",0)
    Continue()
END
>>>>>>>>

<<<<<<<< here0.baf
IF
    Global("tb#refinements0installed","global",0)
THEN
    RESPONSE #100
    SetGlobal("tb#refinements0installed","global",1)
    Continue()
END
>>>>>>>>

COPY_EXISTING + ~baldur25.bcs~ ~override~

ACTION_IF NOT FILE_CONTAINS ~override/baldur.bcs~ ~tb#refinements0installed~ THEN
BEGIN
COPY_EXISTING ~baldur.bcs~ ~override/tempbaldur.bcs~
EXTEND_TOP ~tempbaldur.bcs~ ~nothere0.baf~
COPY_EXISTING + ~tempbaldur.bcs~ ~override/baldur.bcs~
END

COPY_EXISTING ~baldur.bcs~ ~override~
REPLACE_BCS_BLOCK ~nothere0.baf~ ~here0.baf~

ACTION_IF FILE_EXISTS_IN_GAME ~baldur25.bcs~
COPY_EXISTING + ~baldur.bcs~ ~override~

ACTION_IF NOT FILE_CONTAINS ~override/baldur25.bcs~ ~tb#refinements0installed~ THEN
BEGIN
COPY_EXISTING ~baldur25.bcs~ ~override/tempbaldur25.bcs~
EXTEND_TOP ~tempbaldur25.bcs~ ~nothere0.baf~
COPY_EXISTING + ~tempbaldur25.bcs~ ~override/baldur25.bcs~
END

COPY_EXISTING ~baldur25.bcs~ ~override~
REPLACE_BCS_BLOCK ~nothere0.baf~ ~here0.baf~
END

Rhetorical question to Weimer: is it possible to have the optnobackup option also for EXTEND_TOP? (this would allow me to skip the two lines regarding tempbaldur.bcs, so no biggie).

It's easier than using AT_UNINSTALL, but it's not still strictly needed  :)
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).

 

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)?: