the bigg Posted January 5, 2006 Share Posted January 5, 2006 Let's rid ourself of the ridiculous XR2* files: AT_EXIT: if not exist bg2fixpack\backup-chitin-do-not-remove.key then ( copy chitin.key bg2fixpack\backup-chitin-do-not-remove.key weidu --remove-biff data\progtest.bif weidu --remove-biff data\progtes2.bif ) AT_UNINSTALL: if exist bg2fixpack\backup-chitin-do-not-remove.key then ( del chitin.key move bg2fixpack\backup-chitin-do-not-remove.key chitin.key ) Ideas? EDIT: for the Mac people AT_EXIT: #!/bin/sh if ! [[ -f bg2fixpack/backup-chitin-do-not-remove.key ]]; then cp chitin.key bg2fixpack/backup-chitin-do-not-remove.key; weidu --remove-biff data:progtest.bif; weidu --remove-biff data:progtes2.bif; fi ) AT_UNINSTALL: if [[ -f bg2fixpack/backup-chitin-do-not-remove.key]]; then rm chitin.key; mv bg2fixpack/backup-chitin-do-not-remove.key chitin.key; fi ) Link to comment
CamDawg Posted January 5, 2006 Share Posted January 5, 2006 Good idea. But why not a C_E like the iplot items? Link to comment
the bigg Posted January 5, 2006 Author Share Posted January 5, 2006 Good idea. But why not a C_E like the iplot items? <{POST_SNAPBACK}> Due to WeiDU coding, it won't work, since WeiDU loads both override and biff version, even if it was already found in the override. I can change this to not loading biff if found in override, but if you want v185 compatibility it won't work. Link to comment
yarpen Posted January 9, 2006 Share Posted January 9, 2006 Please check my ideas in new topic. Here are one good idea for modder pack Link to comment
CamDawg Posted January 21, 2006 Share Posted January 21, 2006 I'm pleasantly surprised to report that low-tech wins the day. BEGIN ~Testing~ COPY_EXISTING ~ar0087.are~ ~override/xr2400.are~ ~ar0087.are~ ~override/xr2600.are~ COPY_EXISTING_REGEXP GLOB ~^.+\.are$~ ~override~ READ_BYTE 0x10 "foo" With or without the GLOB flag, this works just fine without a need to mess with the keyfile. Link to comment
the bigg Posted January 21, 2006 Author Share Posted January 21, 2006 Oh. But editing the chitin will also remove the mess with other XR files (mostly WED, TIS and BMP) Link to comment
CamDawg Posted January 21, 2006 Share Posted January 21, 2006 Yeah, I was surprised it worked as well. My original idea was just to create a new biff with xr2400.are and xr2600.are and just COPY it to the data folder. In all seriousness, who runs a C_E_R on wed/tis/bmp? I don't like messing with the key file, especially through an external script where someone might close WeiDU before it runs. Link to comment
the bigg Posted January 21, 2006 Author Share Posted January 21, 2006 In all seriousness, who runs a C_E_R on wed/tis/bmp? I don't like messing with the key file, especially through an external script where someone might close WeiDU before it runs. <{POST_SNAPBACK}> That's what AT_[iNTERACTIVE_]NOW is for For C_E_R sake, you can just weidu --biff data\\progtest.bif > list_of_files_to_remove weidu --biff data\\progtes2.bif >> list_of_files_to_remove cat list_of_files_to_remove | sed "s/[^ ]* contains *\([^ ]*\).*/\1/g" > list_of_files_to_remove to get the list of files in list_of_files_to_remove. Code speaks for itself Link to comment
CamDawg Posted January 21, 2006 Share Posted January 21, 2006 Again, why dick around with the key file for little to no benefit? Link to comment
the bigg Posted January 21, 2006 Author Share Posted January 21, 2006 Uh, these instructions are for listing the files in progtest.bif and progtes2.bif Link to comment
CamDawg Posted January 21, 2006 Share Posted January 21, 2006 I think you've missed my question twice now. The xr2400.are and xr2600.are files fixes are good, since they address Real Issues Faced By Modders. Why would we bother with the rest? edit: For the record, the Ding0 is advising that I'm being way too fussy and anal-retentive here. Anyone else? Link to comment
devSin Posted January 21, 2006 Share Posted January 21, 2006 I not be trusting WeiDU with my key. Link to comment
the bigg Posted January 22, 2006 Author Share Posted January 22, 2006 \me hurries to find a way to justify C_E_R ~^.*\.wed$~ Link to comment
CamDawg Posted July 10, 2006 Share Posted July 10, 2006 I'm pleasantly surprised to report that low-tech wins the day. BEGIN ~Testing~ COPY_EXISTING ~ar0087.are~ ~override/xr2400.are~ ~ar0087.are~ ~override/xr2600.are~ COPY_EXISTING_REGEXP GLOB ~^.+\.are$~ ~override~ READ_BYTE 0x10 "foo" With or without the GLOB flag, this works just fine without a need to mess with the keyfile. To drag up an old topic, I should note that this is not a persistent fix. I'm going to speculate on WeiDU internals as to why this is the case and the bigg can verify if he's so inclined. The above code works. However, if the xr* areas are not copied in the same session as the C_E_R then you'll get the standard error message. I'm speculating that WeiDU keeps an internal list of resources in the override file that it has previously copied, and uses it when given a GLOB parameter to avoid BIFF calls. In short, this workaround is dandy for mods that want to use it locally when doing C_E_Rs on area files--I use it for BG2 Tweaks--but it serves no purpose in the Fixpack. Suggest we remove for beta 2. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.