Author Topic: two requests  (Read 1317 times)

-Turambar-

  • Guest
two requests
« on: July 30, 2011, 11:45:59 AM »
I hope these two requests don't require too much work:

Since Windows uses a "strange" charset for its batch windows, some characters appear differently if the mod is being installed on Windows or on other OSs.
So, I wanted to use different tra files, depending on the OS.
I tried using three different files called setup-win32.tra, setup-unix.tra and setup-osx.tra, and to declare them as ~setup-%WEIDU_OS%.tra~ in the LANGUAGE tag, but the variable was not evaluated, and I can't see any way to select the proper file so early (I can only load other .tra files during the installation of a component, but then it's already late).
Is it possible to enable variable evaluation there?
I don't think there will be compatibility issues; I think most variables have not been set yet, and I don't think someone would put %WEIDU_OS% in a file or folder name.
Otherwise, perhaps allowing the construct:
Code: [Select]
LANGUAGE ~[language]~
~[something]~
EVALUATE_BUFFER ~path_with_vars~
(which is not allowed yet) could be more safe?

Another feature I think could be useful either with mods which deal with huge quantities of files (and directly biff some of them), or with mods which edit saved games, would be something like AT_UNINSTALL_EARLY, which is performed before any other uninstallation action, regardless of UNINSTALL_ORDER: changing the latter would break most AT_UNINSTALL actions, whereas the former could be used together with AT_UNINSTALL to perform some actions before, and some actions after uninstallation.

Thanks in advance

PS: is it possible to update prompts.tra in the weidu archive? The file in the windows .zip archive only has strings between -1000 and -1024, whereas I've seen (in some translated mods) there are also strings -1025 to -1039 (or even more, or less?)

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: two requests
« Reply #1 on: July 30, 2011, 01:45:13 PM »
1. Done.
2. No. the MAKE_BIFF action works correctly as far as stack uninstallation goes, as would COPY + and plain AT_UNINSTALL on .sav files.
3. Done.
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 Turambar90

  • Planewalker
  • *****
  • Posts: 32
  • Gender: Male
Re: two requests
« Reply #2 on: September 17, 2011, 12:32:56 PM »
1. Done.
2. No. the MAKE_BIFF action works correctly as far as stack uninstallation goes, as would COPY + and plain AT_UNINSTALL on .sav files.
3. Done.
Thanks, I'll update my mod as soon as v230 is released

 

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