Jump to content


Photo

Question to copy regexp


7 replies to this topic

#1 jastey

jastey
  • Gibberlings
  • 7219 posts
  • Gender:Female

Posted 31 January 2018 - 01:11 AM

I have a folder with PVRZ files ready for BG:EE which replaces an existing area tis (Lure of Sirine's Call, AR3600.tis Lighthouse Area). I want to use them in EET, where the area code is BG3600.

 

How do I copy my 40+x day- and night-area pvrz files into a new name scheme in one go?

 

I was hoping it would be something like

 

[COPY_REGEXP] ~sirinescall/extended_lighthouse/Lighthouse_ee/A3600.*~ ~override/B3600.*~

 

with [COPY_REGEXP] being something that does the trick.



#2 argent77

argent77
  • Modders
  • 777 posts
  • Gender:Male

Posted 31 January 2018 - 01:27 AM

You can use ACTION_BASH_FOR to process selected files.

Example:

ACTION_BASH_FOR ~sirinescall/extended_lighthouse/Lighthouse_ee~ ~A3600.*\.PVRZ~ BEGIN
  OUTER_PATCH_SAVE dest_file "%BASH_FOR_FILE%" BEGIN
    REPLACE_TEXTUALLY ~A\(3600.*\.PVRZ\)~ ~B\1~
  END
  COPY ~%BASH_FOR_FILESPEC%~ ~override/%dest_file%~
END


#3 jastey

jastey
  • Gibberlings
  • 7219 posts
  • Gender:Female

Posted 31 January 2018 - 03:41 AM

Thank you!

EDIT: Unfotunately, I came to a limit in file size with my planned PVRZ + tis approach. Your answer will be helpful nontheless.


Edited by jastey, 31 January 2018 - 03:47 AM.


#4 c4_angel

c4_angel
  • Members
  • 33 posts
  • Gender:Male
  • Location:Shanghai, China

Posted 05 February 2018 - 10:33 PM

Thank you!

EDIT: Unfotunately, I came to a limit in file size with my planned PVRZ + tis approach. Your answer will be helpful nontheless.

COPY_LARGE?



#5 jastey

jastey
  • Gibberlings
  • 7219 posts
  • Gender:Female

Posted 10 February 2018 - 01:44 PM

 

Thank you!

EDIT: Unfotunately, I came to a limit in file size with my planned PVRZ + tis approach. Your answer will be helpful nontheless.

COPY_LARGE?

 

I tried that already, too, but it didn't make the error message go away. Thank you nontheless for the idea!



#6 Jarno Mikkola

Jarno Mikkola

    The Imp

  • Modders
  • 6539 posts
  • Gender:Male
  • Location:The town where the dead haven't keeled over, yet. In Finland.

Posted 10 February 2018 - 10:33 PM

 

 

Thank you!

EDIT: Unfotunately, I came to a limit in file size with my planned PVRZ + tis approach. Your answer will be helpful nontheless.

COPY_LARGE?

I tried that already, too, but it didn't make the error message go away. Thank you nontheless for the idea!

How exactly ?

Cause the COPY_LARGE has the more restrictions than the COPY, and that is that you can't modify the file(bytewise).

And you probably want to do it like:

ACTION_BASH_FOR ~sirinescall/extended_lighthouse/Lighthouse_ee/small~ ~A3600.*\.PVRZ~ BEGIN
  OUTER_PATCH_SAVE dest_file "%BASH_FOR_FILE%" BEGIN
    REPLACE_TEXTUALLY ~A\(3600.*\.PVRZ\)~ ~B\1~
  END
  COPY ~%BASH_FOR_FILESPEC%~ ~override/%dest_file%~
END

ACTION_IF GAME_IS ~bgee~ BEGIN
COPY_LARGE ~sirinescall/extended_lighthouse/Lighthouse_ee/largefiles/ar1.PVRZ~ ~override/ar1.PVRZ~
           ~sirinescall/extended_lighthouse/Lighthouse_ee/largefiles/ar2.PVRZ~ ~override/ar2.PVRZ~
...
END

ACTION_IF GAME_IS ~eet~ BEGIN
COPY_LARGE ~sirinescall/extended_lighthouse/Lighthouse_ee/largefiles/ar1.PVRZ~ ~override/bg1.PVRZ~
           ~sirinescall/extended_lighthouse/Lighthouse_ee/largefiles/ar2.PVRZ~ ~override/bg2.PVRZ~
...
END

Edited by Jarno Mikkola, 10 February 2018 - 10:44 PM.

Welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand.
Here's how to install all the ... mods you ever really could want to Infinity Engine games. I removed the stable word from there as Roxanne began to add BS mods that are likely to break compatibility from the BWS.

#7 jastey

jastey
  • Gibberlings
  • 7219 posts
  • Gender:Female

Posted 10 February 2018 - 11:30 PM

The PVRZ weren't the problem. It's the unpacked, vanilla BGII tis that is too large, therefore I can't copy&rename it - as I need to do if it should work for BGT and Tutu both.

 

The problem doesn't arise for custom areas because there is no namechange, but Lure of Sirine's Call replaces the tis of an existing game area (Lighthouse area) which has different file names in different games.

 

And in the end. the area crashed for Tutu anyway, so I guess the problem kind of 'solved' itself.



#8 argent77

argent77
  • Modders
  • 777 posts
  • Gender:Male

Posted 11 February 2018 - 02:17 AM

You can rename files regardless of size with the MOVE command.

Example:
MOVE ~override/AR0500.TIS~ ~override/BG0500.TIS~




Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users