Jump to content

WeiDU error when extracting wtswam.tis from BIF archive


argent77

Recommended Posts

Posted

I’m using the command COPY_EXISTING to copy and rename files which I need for my area files. It works fine most of the time, but for some reason it doesn’t work on WTSWAM.TIS which is located in DATA/ARMISC.BIF.

 

This is the TP2 code:

Installing [Test Mod]
Copying 1 file ...
BIFF may be in hard-drive CD-path [F:\Games\Baldurs Gate II\CD5\/DATA/ARMISC.BIF]
BIFF may be in hard-drive CD-path [F:\Games\Baldurs Gate II\CD4\/DATA/ARMISC.BIF]
BIFF may be in hard-drive CD-path [F:\Games\Baldurs Gate II\CD3\/DATA/ARMISC.BIF]
BIFF may be in hard-drive CD-path [F:\Games\Baldurs Gate II\CD2\/DATA/ARMISC.BIF]
BIFF may be in hard-drive CD-path [F:\Games\Baldurs Gate II\CD2\/DATA/ARMISC.BIF]
BIFF may be in hard-drive CD-path [F:\Games\Baldurs Gate II\CD1\/DATA/ARMISC.BIF]
BIFF may be in hard-drive CD-path [F:\Games\Baldurs Gate II\/DATA/ARMISC.BIF]
[F:\Games\Baldurs Gate II\/DATA/ARMISC.BIF] 1739005 bytes, 5 files, 45 tilesets
ERROR: BIFF [F:\Games\Baldurs Gate II\/DATA/ARMISC.BIF] has tileset entries 0--44, 
   cannot extract tileset at entry 31 (this BIFF and your KEY file don't match)
ERROR: BIFF [F:\Games\Baldurs Gate II\/DATA/ARMISC.BIF]: unable to extract tileset 31

ERROR locating resource for 'COPY'
Resource [wtswam.tis] not found in KEY file:
[./chitin.key]
Stopping installation because of error.

I have checked the existence of the file in Near Infinity and DLTCEP which have no trouble displaying or extracting it.

 

Is there a way to make it work? If possible I don’t want to include that file in my mod package.

Posted

Hmm, it’s getting stranger. The command partly works now, although I haven’t changed anything. It extracts the file as specified, but the error message persists.

 

It looks like that now:

Installing [Test Mod]
Copying 1 file ...
BIFF may be in hard-drive CD-path [F:\Games\Baldurs Gate II\CD5\/DATA/ARMISC.BIF]
BIFF may be in hard-drive CD-path [F:\Games\Baldurs Gate II\CD4\/DATA/ARMISC.BIF]
BIFF may be in hard-drive CD-path [F:\Games\Baldurs Gate II\CD3\/DATA/ARMISC.BIF]
BIFF may be in hard-drive CD-path [F:\Games\Baldurs Gate II\CD2\/DATA/ARMISC.BIF]
BIFF may be in hard-drive CD-path [F:\Games\Baldurs Gate II\CD2\/DATA/ARMISC.BIF]
BIFF may be in hard-drive CD-path [F:\Games\Baldurs Gate II\CD1\/DATA/ARMISC.BIF]
BIFF may be in hard-drive CD-path [F:\Games\Baldurs Gate II\/DATA/ARMISC.BIF]
[F:\Games\Baldurs Gate II\/DATA/ARMISC.BIF] 1739005 bytes, 5 files, 45 tilesets
ERROR: BIFF [F:\Games\Baldurs Gate II\/DATA/ARMISC.BIF] has tileset entries 0--44, 
   cannot extract tileset at entry 31 (this BIFF and your KEY file don't match)
ERROR: BIFF [F:\Games\Baldurs Gate II\/DATA/ARMISC.BIF]: unable to extract tileset 31
[wtswam.tis] loaded, 30720 bytes
Copied [wtswam.tis] to [override/A7water.tis]

Posted
This is the TP2 code:

COPY_EXISTING ~wtswam.tis~ ~override/A7water.tis~

Apparently you cannot use COPY_EXISTING... This is because the file is too large... you could probably use COPY_LARGE.
Posted
Apparently you cannot use COPY_EXISTING... This is because the file is too large... you could probably use COPY_LARGE.

Thank you! It works perfectly now. :mad:

 

I didn’t know that a 30kb file would already exceed the size limit of COPY_EXISTING. Or does that limit apply to the BIF archive too (which is about 1.7MB in my case)?

Posted

Looks like I have cheered too soon. :mad:

 

Now I’m getting this error message:

WeiDU v 21800 Log

setup-testmod.exe
[./CHITIN.KEY] loaded, 590551 bytes
[./CHITIN.KEY] 182 BIFFs, 41793 resources
[dialog.tlk] loaded, 8692747 bytes
[dialog.tlk] 74107 string entries
[./Autorun.ini] loaded, 1452 bytes
[./baldur.ini] loaded, 3909 bytes
Possible HD/CD Path: [F:\Games\Baldurs Gate II\]
Possible HD/CD Path: [F:\Games\Baldurs Gate II\CD1\]
Possible HD/CD Path: [F:\Games\Baldurs Gate II\CD2\]
Possible HD/CD Path: [F:\Games\Baldurs Gate II\CD2\]
Possible HD/CD Path: [F:\Games\Baldurs Gate II\CD3\]
Possible HD/CD Path: [F:\Games\Baldurs Gate II\CD4\]
Possible HD/CD Path: [F:\Games\Baldurs Gate II\CD5\]
[./Keymap.ini] loaded, 5615 bytes
[./Mplaynow.ini] loaded, 230 bytes
[setup-testmod.exe] Using scripting style "BG2"
[dialog.tlk] claims to be writeable.
[dialog.tlk] claims to be a regular file.

Install Component [Test Mod]?
[i]nstall, or [N]ot Install or [Q]uit? 
Installing [Test Mod]
Copying 1 file ...
ERROR: error copying [WTSWAM.TIS]
Stopping installation because of error.

ERROR Installing [Test Mod], rolling back to previous state
[testmod/backup/0/UNSETSTR.0] SET_STRING uninstall info not found
Will uninstall   1 files for [TESTMOD/SETUP-TESTMOD.TP2] component 0.
Unable to Unlink [override/A7water.tis]: Unix.Unix_error(20, "unlink", "override/A7water.tis")
Uninstalled      1 files for [TESTMOD/SETUP-TESTMOD.TP2] component 0.
ERROR: Unix.Unix_error(20, "stat", "WTSWAM.TIS")
PLEASE email the file SETUP-TESTMOD.DEBUG to some@email.address

Install Component [Test Mod]?
[i]nstall, or [N]ot Install or [Q]uit? Saving This Log:

NOT INSTALLED DUE TO ERRORS Test Mod

	WeiDU Timings
OUTER_INNER_PATCH                0.000
READ_*                           0.000
load TLK                         0.000
Parsing TP2 files                0.000
DEFINE_PATCH_MACRO               0.000
DEFINE_ACTION_MACRO              0.000
parsing .log files               0.000
saving files                     0.000
INCLUDE                          0.000
process_patch2                   0.000
DEFINE_PATCH_FUNCTION            0.000
eval_pe                          0.000
COPY_LARGE                       0.010
loading files                    0.020
Parsing TPA files                0.020
tp2 uninstall                    0.020
unmarshal KEY                    0.040
unmarshal TLK                    0.070
stuff not covered elsewhere      4.330
TOTAL                            4.510

 

My complete code of the TP2 file:

BACKUP ~testmod/backup~
AUTHOR ~some@email.address~

BEGIN ~Test Mod~
COPY_LARGE ~WTSWAM.TIS~   ~override/A7water.tis~

 

I guess I have to include the TIS file in my mod for now until I find a reliable way to extract it from the BIF archive.

Posted

I don't think there's a COPY_EXISTING_LARGE though maybe there should be (or just drop the _LARGE stuff entirely from WeiDU and increase the size limit). But I would question the benefit of using the exact same .tis as an existing area. Maybe you should extract it to your mod folder, change it a bit with DLTCEP (usually involves extracting it to a .bmp, messing with it in a graphics program then reimporting it to a .tis) then install it with your mod using tisunpack.

Posted
or just drop the _LARGE stuff entirely from WeiDU and increase the size limit

Sure, why not. French programmers are so lovingly open to the idea of majorly altering their code to fix restrictive limitations.

Posted

I’ve been testing a bit with my area files again and it looks like I don’t really need to copy the TIS file in question into the override folder. The game loads fine without any crashes when loading my new area.

 

I guess that the ARMisc.bif or its references in the CHITIN.KEY have some issues, because everything else is working perfectly with COPY_EXISTING (as long it is <16MB).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...