Jump to content


Photo

patching BCS files


  • Please log in to reply
3 replies to this topic

#1 rhomboidspace

rhomboidspace
  • Member
  • 11 posts

Posted 09 February 2009 - 08:01 AM

if you patch BCS files using the normal copy command, to replace strings does it screw up the bcs if the strings used are different lengths?

#2 Mike1072

Mike1072
  • Modder
  • 539 posts

Posted 09 February 2009 - 09:57 AM

if you patch BCS files using the normal copy command, to replace strings does it screw up the bcs if the strings used are different lengths?

Could you elaborate a bit as to what you're trying to do?

I'd go about patching a script like this:

COPY_EXISTING ~script.bcs~ ~override~
  DECOMPILE_BCS_TO_BAF
  REPLACE_TEXTUALLY ~this~ ~that~
  // any number of other REPLACE_TEXTUALLY statements here
  COMPILE_BAF_TO_BCS


#3 rhomboidspace

rhomboidspace
  • Member
  • 11 posts

Posted 09 February 2009 - 10:30 AM

if you patch BCS files using the normal copy command, to replace strings does it screw up the bcs if the strings used are different lengths?

Could you elaborate a bit as to what you're trying to do?

I'd go about patching a script like this:

COPY_EXISTING ~script.bcs~ ~override~
  DECOMPILE_BCS_TO_BAF
  REPLACE_TEXTUALLY ~this~ ~that~
  // any number of other REPLACE_TEXTUALLY statements here
  COMPILE_BAF_TO_BCS


i was doing exactly that, just not decompiling first. since i was replacing item names with different item names, and even while compiled they're still strings, i figured replacing one for the other should work, just wasn't sure if WIEDU properly extends or shortens the lines if the strings are different lengths.

#4 Mike1072

Mike1072
  • Modder
  • 539 posts

Posted 09 February 2009 - 02:18 PM

i was doing exactly that, just not decompiling first. since i was replacing item names with different item names, and even while compiled they're still strings, i figured replacing one for the other should work, just wasn't sure if WIEDU properly extends or shortens the lines if the strings are different lengths.

It does. You can use REPLACE_TEXTUALLY to add stuff, change stuff, or delete stuff.