REPLACE_BCS_BLOCK
#1
Posted 15 February 2004 - 12:35 PM
How do I 'introduce' the
COPY_EXISTING ~vamemi01.bcs~ ~override/vamemi01.bcs~
REPLACE_BCS_BLOCK ~take.baf~ ~replace.baf~ command
to make sure the file needed to be patched is in the override?
I know of REQUIRE_FILE ~override/file~, but this will end the install if the file ain't there.
So is there something like HAVE_FILE ?
Also since COPY_EXISTING copies from the biff, I guess it is a bit stupid to copy it to the override, especially if the file you want has been placed in the override by a previous mod. Then weidu will give an error since the blocks aren't in the COPY_EXISTING bcs. Is that true?
(most of the info about this came from http://www.shsforums.net/index.p...lace_bcs_block)
#2
Posted 15 February 2004 - 01:35 PM
UNLESS ~tactics.bcs~
COPY_EXISTING ~script.bcs~ ~override~
REPLACE_BCS_BLOCK ~replace.bcs~ ~script.bcs~
IF ~tactics.bcs~
#3
Posted 15 February 2004 - 04:48 PM
(hehe tactics.bcs doesn't exist)
The REAL problem is that vamemi01.bcs is in the tougher vampire part, and that 's optional. So it isn't 100% sure it'll work via IF ~some other file~, I presume.
#4
Posted 17 February 2004 - 03:35 PM
#5
Posted 25 February 2004 - 02:27 AM
#6
Posted 25 February 2004 - 03:54 PM
I've did it like this:
ACTION_IF NOT FILE_EXISTS ~override/vamemi01.bcs~
OR ( FILE_SIZE ~override/vamemi01.bcs~ 509 )
THEN BEGIN
COPY ~garl/baf/vamemi01.bcs~ ~override~
END
ACTION_IF FILE_EXISTS ~override/vamemi01.bcs~
AND ( FILE_SIZE ~override/vamemi01.bcs~ => 27001 )
THEN BEGIN
COPY_EXISTING ~vamemi01.bcs~ ~override/vamemi01.bcs~
REPLACE_BCS_BLOCK ~garl/baf/take.baf~ ~garl/baf/rep.baf~
END
For this syntax I got inspired by tactics.tp2. When installing it, weidu says that '=' is near the text. Where do I put '=>'?
Is this a correct use of values? Yeah so I think hmm FILE_SIZE ~override/vamemi01.bcs~ gives a number that can be compared with my specified value. The weidu readme however says that 'Offsets are values'. Can values and their multiplication etc. only be used in a offset context?
#7
Posted 09 March 2004 - 01:47 AM
#8
Posted 09 March 2004 - 02:34 AM
COPY_EXISTING ~vamemi01.bcs~ ~override/vamemi01.bcs~ ACTION_IF NOT FILE_CONTAINS ~override/vamemi01.bcs~ ~xyxInitialized~ THEN BEGIN COPY ~garl/baf/vamemi01.bcs~ ~override~ END ACTION_IF FILE_CONTAINS ~override/vamemi01.bcs~ ~xyxInitialized~ THEN BEGIN REPLACE_BCS_BLOCK ~garl/baf/take.baf~ ~garl/baf/rep.baf~ END
#9 -topaz-
Posted 09 March 2004 - 02:54 AM
#10
Posted 09 March 2004 - 02:03 PM
FILE_MD5 filename md5sum
In order to use this, you need the md5sum of the version of the file you expect to find. To get this, run the command with "md5sum" set to some bogus number like 0. Then check the log file for the md5sum value WeiDU finds for your file (it's prints this out).
#11
Posted 09 March 2004 - 02:06 PM
Thanks Fred, I've been wondering how to find this.To get this, run the command with "md5sum" set to some bogus number like 0. Then check the log file for the md5sum value WeiDU finds for your file (it's prints this out).