Author Topic: --biff-get-rest and .ini files  (Read 2177 times)

Offline Ascension64

  • Planewalker
  • *****
  • Posts: 472
--biff-get-rest and .ini files
« on: June 26, 2006, 07:25:54 AM »
I have discovered that the --biff-get-rest function likes to check baldur.ini for all possible locations of BIFF files for extraction of resources. That is, if someone decides to extract files from BIFFs but don't have a full installation of say BG:TotSC, or BG2:SoA/BG2:ToB, then the CD paths in baldur.ini are checked by WeiDU.

Now, if no disk is in the drive, then WeiDU pops up a 'No disk in the drive' error about 5 times per --biff-get-rest function call. If there is a disk in the drive and no BIFFs are found (the CD is not BG-related), then nothing happens. However, if there is a BG-related CD in the drive, then WeiDU will look at the BIFFs and try to extract stuff from them. This can result in the error "ZLIB: error decompressing block" and sometimes even crash WeiDU.

Even more interestingly, Weimer seemed to decide that .ini files rule, and even if I get rid of all the CD lines in baldur.ini, but make a backup of baldur.ini that KEEPS THE .INI EXTENSION (e.g. I backed up baldur.ini to shit.ini), the above still occurs. Wonky coding?

Since we can't seem to extract resources directly from CDs using WeiDU anyway, can't we just scrap the .ini searching in the command?

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: --biff-get-rest and .ini files
« Reply #1 on: June 26, 2006, 02:15:06 PM »
Quote
Since we can't seem to extract resources directly from CDs using WeiDU anyway, can't we just scrap the .ini searching in the command?
No, because it works fine with full installs, and removing this could cause backwards-compat problems.

Quote
Even more interestingly, Weimer seemed to decide that .ini files rule, and even if I get rid of all the CD lines in baldur.ini, but make a backup of baldur.ini that KEEPS THE .INI EXTENSION (e.g. I backed up baldur.ini to shit.ini), the above still occurs. Wonky coding?
in IWD2, it's called icewind2.ini, etc. Hence, it scans all ini files.
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 Ascension64

  • Planewalker
  • *****
  • Posts: 472
Re: --biff-get-rest and .ini files
« Reply #2 on: June 26, 2006, 11:17:27 PM »
Can you fix it then?

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: --biff-get-rest and .ini files
« Reply #3 on: June 27, 2006, 03:06:25 AM »
No, I can't, because if the install is performed on the HD this part works correctly. As for blocking the CD but not the HD, I don't know how to identify that.
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 Ascension64

  • Planewalker
  • *****
  • Posts: 472
Re: --biff-get-rest and .ini files
« Reply #4 on: June 27, 2006, 10:26:31 PM »
Heh, one of those conundrums I guess.  ;)

 

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