Author Topic: BIFF_IS_COMPRESSED only supports relative paths?  (Read 926 times)

Offline Magus_BGforge

  • Planewalker
  • *****
  • Posts: 75
BIFF_IS_COMPRESSED only supports relative paths?
« on: July 16, 2016, 11:54:36 AM »
Trying to check a biff for compression, I'm getting something like this:

Code: [Select]
ERROR: BIFF [.\C:\Games\bg2_test\AREA000D.BIF] cannot be loaded: Unix.Unix_error(20, "stat", ".\\C:\\Games\\bg2_test\\AREA000D.BIF")

I guess that means that all biffs are implied to be inside the game directory, and used with relative paths. But strictly speaking, it's not necessarily the case. They could be anywhere, and even (as weidu readme mentions) shared between games.

Offline Argent77

  • Planewalker
  • *****
  • Posts: 187
Re: BIFF_IS_COMPRESSED only supports relative paths?
« Reply #1 on: July 16, 2016, 12:51:48 PM »
WeiDU doc states: "FileName must match against the contents of what is stored in chitin.key". So you are pretty much limited to "data/filename.bif" only. The correct "CDx" subfolders (if any) are probably searched automatically.

It would probably be easier to check the BIFF file headers manually, but since WeiDU can't properly handle files >16MB this may not work for what you have in mind.

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: BIFF_IS_COMPRESSED only supports relative paths?
« Reply #2 on: July 24, 2016, 04:09:10 AM »
Just decompress the biff. If it's already decompressed, nothing happens. If the game can find it, WeiDU can find it.

 

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