-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 20e1baa
Showing
256 changed files
with
577 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
@echo off | ||
setlocal | ||
|
||
REM /* this initializes the values for the different variables referenced in compatible_games */ | ||
call "%~dp0..\ModPackaging\utilities\ie_games.bat" | ||
|
||
REM /* MODIFY: set the values of the 3 variables below to reflect the current mod version */ | ||
set "mod_name=Plasmocat's 'Picks of the Litter' Portrait Pack" | ||
set mod_version=v3 | ||
set mod_folder=picks_of_the_litter | ||
|
||
REM /* MODIFY: list here which IE games the mod is compatible with, from this list of possibilities: */ | ||
REM /* %bg1%, %bg2%, %bgt%, %tutu%, %bgee%, %bgiiee%, %iwd1%, %iwdee%, %iwd2%, %iwd2ee%, %iwd-in-bg2%, %pst%, %pstee% */ | ||
set "compatible_games=%bg1%, %bg2%, %bgt%, %tutu%, %bgee%, %bgiiee%, %iwd1%, %iwdee%, %iwd2%, %iwd2ee%, %iwd-in-bg2%, or %eet%" | ||
|
||
REM /* MODIFY: these variables have sensible default values but they may need to be tweaked to match your particular mod */ | ||
REM /* the ico_folder is where your .ico files are stored, which is usually the mod's backup or style folder */ | ||
REM /* the audio_folder is where your sox and oggdec.exe utilities are stored (leave alone if you have no audio) */ | ||
REM /* the tispack_folder is the root directory that contains the win32, osx, and unix subfolders where your tisunpack utilities are stored (leave alone if you have no tilesets) */ | ||
REM /* the iconv_folder is where your iconv.exe utility is stored (leave alone if you are not converting charsets for BGEE) */ | ||
REM /* the mod_readme link should point to the online readme and work fine as-is if the mod uses the standard G3 naming scheme */ | ||
set ico_folder=%mod_folder%\style | ||
set audio_folder=%mod_folder%\audio | ||
set tispack_folder=%mod_folder%\tiz | ||
set iconv_folder=%mod_folder%\iconv | ||
set mod_readme=http://htmlpreview.github.io/?https://github.com/Gibberlings3/Documentation/blob/master/readmes/readme-%mod_folder%.html | ||
|
||
REM /* MODIFY: if you don't need to build a specific package, you can disable it by setting the appropriate variable below to 0 */ | ||
set build_windows=1 | ||
set build_osx=1 | ||
set build_linux=1 | ||
|
||
REM /* MODIFY: if you want to avoid making filenames lowercase, you can disable that by setting the variable below to 0 */ | ||
set lowercase_filenames=1 | ||
|
||
REM /* this performs the actual packaging */ | ||
call "%~dp0..\ModPackaging\utilities\complete_packaging.bat" | ||
|
||
endlocal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[.ShellClassInfo] | ||
IconFile=style\g3.ico | ||
IconIndex=0 | ||
IconResource=style\g3.ico,0 | ||
[ViewState] | ||
Mode= | ||
Vid= | ||
FolderType=Generic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@0 = ~Plasmocat's Picks of the Litter Portrait Pack~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
/* | ||
https://www.gibberlings3.net/forums/topic/29922-on-portrait-sizes/ | ||
portrait sizes: | ||
42 x 42 - IWD2 square, cropped small portraits 'S' for game screen | ||
36 x 58 - original IWD as game screen portrait as 'S' | ||
38 x 60 - original BG/BG2 game screen/dialogue as 'S' portrait | ||
54 x 84 - EE as 'S' portrait (unused?) | ||
110 x 170 - original BG2 record screen as 'M' portrait; original BG/IWD record screen as 'L' portrait | ||
169 x 266 - EE game screen/dialogue as 'M' portrait | ||
210 x 330 - original BG as 'G' portrait (unused?); original BG2 epilogue as 'L' portrait; original IWD as initial character selection portrait as 'G'; IWD2 as main portrait; EE epilogue/record screen as 'L' portrait | ||
*/ | ||
|
||
ACTION_CLEAR_ARRAY ~cd_portrait_map~ // just in case | ||
|
||
ACTION_IF GAME_IS ~bgee bg2ee eet iwdee pstee~ BEGIN // EEs | ||
OUTER_SPRINT portrait_directory "%USER_DIRECTORY%/portraits" // e.g. My Documents/Baldur's Gate 2 Enhanced Edition/portraits | ||
ACTION_DEFINE_ASSOCIATIVE_ARRAY cd_portrait_map BEGIN | ||
330 => l | ||
END | ||
END ELSE BEGIN | ||
OUTER_SPRINT portrait_directory "portraits" // e.g. [game folder]/portraits | ||
ACTION_IF GAME_IS ~bg1 totsc~ BEGIN // original bg | ||
ACTION_DEFINE_ASSOCIATIVE_ARRAY cd_portrait_map BEGIN | ||
60 => s | ||
170 => l | ||
END | ||
END ELSE BEGIN | ||
ACTION_IF GAME_IS ~iwd how totlm~ BEGIN // original iwd | ||
ACTION_DEFINE_ASSOCIATIVE_ARRAY cd_portrait_map BEGIN | ||
58 => s | ||
170 => l | ||
END | ||
END ELSE BEGIN | ||
ACTION_IF GAME_IS ~iwd2~ BEGIN // original iwd2 | ||
ACTION_DEFINE_ASSOCIATIVE_ARRAY cd_portrait_map BEGIN | ||
42 => s | ||
330 => l | ||
END | ||
END ELSE BEGIN // original bg2 | ||
ACTION_DEFINE_ASSOCIATIVE_ARRAY cd_portrait_map BEGIN | ||
60 => s | ||
170 => m | ||
END | ||
END | ||
END | ||
END | ||
END | ||
|
||
DEFINE_ACTION_FUNCTION cd_portrait_bioware // used to preserve (mod) NPC portraits as player-available portraits before overwriting them | ||
INT_VAR | ||
STR_VAR | ||
destination = "foo" | ||
source = "bar" | ||
BEGIN | ||
|
||
ACTION_PHP_EACH cd_portrait_map AS size => suffix_dest BEGIN // read in array of needed size/names for PC portraits | ||
|
||
ACTION_FOR_EACH suffix_source IN g l m s BEGIN // iterate through known suffixes since we can not rely on mods to follow naming conventions | ||
|
||
OUTER_SET height = 0 | ||
COPY_EXISTING ~%source%%suffix_source%.bmp~ ~override~ // check height, if file exists | ||
READ_LONG 0x16 height | ||
BUT_ONLY IF_EXISTS | ||
|
||
ACTION_IF height = size BEGIN // if height matches the desired size, copy over as properly named file to player portrait folder | ||
|
||
COPY_EXISTING ~%source%%suffix_source%.bmp~ ~%portrait_directory%/%destination%%suffix_dest%.bmp~ | ||
|
||
END | ||
|
||
END | ||
|
||
END | ||
|
||
END | ||
|
||
DEFINE_ACTION_FUNCTION cd_pc_portrait_copy // used to copy portraits as to make them player-available | ||
INT_VAR | ||
STR_VAR | ||
destination = "" | ||
source = "" | ||
source_path = "%MOD_FOLDER%/portraits" | ||
BEGIN | ||
|
||
ACTION_IF ("%destination%" STRING_COMPARE_CASE "" = 0) BEGIN OUTER_SPRINT destination "%source%" END | ||
|
||
ACTION_PHP_EACH cd_portrait_map AS size => suffix BEGIN | ||
|
||
COPY ~%source_path%/%source%_%size%.bmp~ ~%portrait_directory%/%destination%%suffix%.bmp~ | ||
|
||
END | ||
|
||
END | ||
|
||
DEFINE_ACTION_FUNCTION cd_portrait_copy // used to copy portraits as to replace existing NPC portraits, e.g. a new portrait for Imoen | ||
INT_VAR | ||
debug = 0 | ||
STR_VAR | ||
source = "" | ||
destination = "" | ||
source_path = "%MOD_FOLDER%/portraits" | ||
RET | ||
success | ||
BEGIN | ||
|
||
OUTER_SET success = 0 | ||
ACTION_FOR_EACH suffix IN g l m s BEGIN | ||
|
||
ACTION_IF FILE_EXISTS_IN_GAME ~%destination%%suffix%.bmp~ BEGIN | ||
|
||
COPY_EXISTING ~%destination%%suffix%.bmp~ ~override~ | ||
READ_LONG 0x16 height | ||
BUT_ONLY | ||
|
||
ACTION_IF FILE_EXISTS ~%source_path%/%source%_%height%.bmp~ THEN BEGIN | ||
|
||
COPY ~%source_path%/%source%_%height%.bmp~ ~override/%destination%%suffix%.bmp~ | ||
OUTER_SET success = 1 | ||
|
||
END ELSE BEGIN | ||
|
||
WARN ~%destination%%suffix%.bmp found, but no replacement available: looking for %source_path%/%source%_%height%.bmp~ | ||
|
||
END // end local portrait check to copy/warn | ||
|
||
END ELSE BEGIN | ||
|
||
ACTION_IF debug BEGIN PRINT ~%destination%%suffix%.bmp not found~ END | ||
|
||
END // end portrait check | ||
|
||
END // end ACTION_PHP_EACH | ||
|
||
END // end function define |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
BACKUP ~picks_of_the_litter/backup~ | ||
SUPPORT ~https://www.gibberlings3.net/forums/forum/28-miscellaneous-released-mods/~ | ||
|
||
VERSION ~v3~ | ||
|
||
ALWAYS | ||
|
||
ACTION_IF NOT VARIABLE_IS_SET cd_always THEN BEGIN // check to make this happen only once per install | ||
|
||
OUTER_SET cd_always = 1 | ||
INCLUDE ~picks_of_the_litter/lib/cd_portrait_copy.tph~ | ||
|
||
END | ||
|
||
END | ||
|
||
README ~picks_of_the_litter/readme-picks_of_the_litter.html~ | ||
|
||
LANGUAGE ~English~ ~english~ ~picks_of_the_litter/english/setup.tra~ | ||
|
||
BEGIN @0 | ||
|
||
ACTION_FOR_EACH file IN pc1aeri pc1ajan pc1anom pc1ash pc1cern pc1chli pc1dwar pc1fald pc1fdru pc1felf pc1fpal pc1fran pc1fred pc1frog pc1gold pc1hood pc1jan pc1kara | ||
pc1man2 pc1mazz pc1mbar pc1melf pc1meli pc1mins pc1monk pc1moon pc1mran pc1mthf pc1nali pc1safa pc1shar pc1thie pc1usur pc1vico pc1warn BEGIN | ||
|
||
LAF cd_pc_portrait_copy STR_VAR source = "%file%" source_path = "picks_of_the_litter/portraits" END | ||
|
||
END |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.