Author Topic: [BUG?] UNINSTALL and %LANGUAGE%  (Read 1106 times)

Offline Turambar90

  • Planewalker
  • *****
  • Posts: 32
  • Gender: Male
[BUG?] UNINSTALL and %LANGUAGE%
« on: February 05, 2012, 12:33:06 PM »
Code: [Select]
UNINSTALL ~generalized_biffing.tp2~ ~0~
[snip]
 COPY - ~DSotSC/Worldmap/%LANGUAGE%/worldmap.tra~  ~tmp_worldmap.tra~
fails with error:
Quote
ERROR: error loading [DSotSC/Worldmap//worldmap.tra]
If I've understood correctly, the problem is that the UNINSTALL action sets some variables, such as the LANGUAGE variable, to the one of the mod being uninstalled. If the mod's not traified, it will be turned into an empty string.
Is there a way to make variables set by UNINSTALL local?
Otherwise, I could add to the code:
Code: [Select]
OUTER_SPRINT UNINSTALL_LANGUAGE ~%LANGUAGE%~
UNINSTALL ...
O_S LANGUAGE ~%UNINSTALL_LANGUAGE%~
Could WeiDU do that automatically when you call UNINSTALL? I think it would be safer

PS: the reason why I used that code is to suggest a proper order for mod installation, such as "the worldmap must go last" and so on, and allow people to quickly fix order issues if they want (there is actually a prompt before the UNINSTALL action, so a person can also ignore that).

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: [BUG?] UNINSTALL and %LANGUAGE%
« Reply #1 on: February 05, 2012, 01:49:48 PM »
It's not really possible, I'm afraid.
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)?: