Skip to content

Commit

Permalink
Merge pull request #8 from Gitjas/master
Browse files Browse the repository at this point in the history
update to v26
  • Loading branch information
Gitjas authored May 16, 2021
2 parents 5faee31 + 29919e3 commit 74a9fcc
Show file tree
Hide file tree
Showing 31 changed files with 339 additions and 102 deletions.
1 change: 1 addition & 0 deletions imoen_forever/Install/component.xx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This File tells other mods that the BG1NPC Project Core Install has been installed.
159 changes: 128 additions & 31 deletions imoen_forever/imoen_forever.tp2
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,22 @@ BACKUP ~imoen_forever/backup~
AUTHOR ~Please post at G3 or Kerzenburgforum, refer to readme.~


VERSION ~v6~
VERSION ~v7~

README ~imoen_forever/readme.imoen_forever.%LANGUAGE%.txt~ ~imoen_forever/readme.imoen_forever.english.txt~


AUTO_TRA ~imoen_forever/tra/%s~
AUTO_TRA ~imoen_forever/tra/autotra/%s~

ALWAYS

/* check for a ready SoD */

ACTION_IF ((FILE_EXISTS ~dlc/sod-dlc.zip~) OR (FILE_EXISTS ~sod-dlc.zip~)) THEN BEGIN
FAIL @1002 /* ~Modmerge or Argent's DLC Merger is required before mods can be installed on this game.~ */
END



ACTION_IF GAME_IS ~eet~ BEGIN
OUTER_SET bg2_chapter = 12
Expand Down Expand Up @@ -45,30 +52,6 @@ ALWAYS
INCLUDE ~EET/other/cpmvars/eet_cpmvars.tpa~
END

//CamDawgs CD_STATE_NOTVALID
APPEND ~STATE.IDS~ ~0x80101FEF CD_STATE_NOTVALID~ UNLESS ~CD_STATE_NOTVALID~


/* BGII:EE, EET - formatted texts etc. */
ACTION_DEFINE_ARRAY fl#noconvert BEGIN setup END

ACTION_DEFINE_ARRAY fl#reload BEGIN game END

LAF HANDLE_CHARSETS
INT_VAR
infer_charsets = 1
STR_VAR
tra_path = EVAL ~imoen_forever/Tra~
noconvert_array = fl#noconvert
reload_array = fl#reload
END

/* check for a ready SoD */

ACTION_IF ((FILE_EXISTS ~dlc/sod-dlc.zip~) OR (FILE_EXISTS ~sod-dlc.zip~)) THEN BEGIN
FAIL @1002 /* ~Modmerge or Argent's DLC Merger is required before mods can be installed on this game.~ */
END

OUTER_SPRINT newline ~%WNL%%LNL%%MNL%%TAB% ~

ACTION_IF GAME_IS ~bgee~ THEN BEGIN
Expand Down Expand Up @@ -194,6 +177,96 @@ ACTION_IF GAME_IS ~eet~ THEN BEGIN
END


//-----Do only once for whole mod-------
ACTION_IF !FILE_EXISTS ~imoen_forever/Install/imoen_foreverinstall.mrk~ BEGIN


//CamDawgs CD_STATE_NOTVALID
APPEND ~STATE.IDS~ ~0x80101FEF CD_STATE_NOTVALID~ UNLESS ~CD_STATE_NOTVALID~


/* BGII:EE, EET - formatted texts etc. */

/* Copies tra files into the autotra-folder (to leave the originals untouched) */
DEFINE_ACTION_FUNCTION autotra_workaround BEGIN
COPY ~imoen_forever/tra/english~ ~imoen_forever/tra/autotra/%LANGUAGE%~
COPY ~imoen_forever/tra/%LANGUAGE%~ ~imoen_forever/tra/autotra/%LANGUAGE%~
END

LAF autotra_workaround END



ACTION_DEFINE_ARRAY fl#noconvert BEGIN setup END

ACTION_DEFINE_ARRAY fl#reload BEGIN game END

LAF HANDLE_CHARSETS
INT_VAR
infer_charsets = 1
STR_VAR
tra_path = EVAL ~imoen_forever/Tra/autotra~
noconvert_array = fl#noconvert
reload_array = fl#reload
END

/* SoD bdbanter.2da */
ACTION_IF (GAME_IS ~bgee~ AND FILE_EXISTS_IN_GAME ~bd0103.are~) THEN BEGIN
ACTION_IF (FILE_EXISTS_IN_GAME ~BDBANTER.2DA~) BEGIN
APPEND ~bdbanter.2da~
~Imoen BDIMOENB~
UNLESS ~Imoen~

END ELSE BEGIN

<<<<<<<< .../BDBANTER.2DA
2DA V1.0
NONE
FILE
KIVAN BDKIVANB
ALORA BDALORAB
MINSC BDMINSCB
DYNAHEIR BDDYNAHB
YESLICK BDYESLIB
CORAN BDCORANB
AJANTIS BDAJANTB
KHALID BDKHALIB
JAHEIRA BDJAHEIB
GARRICK BDGARRIB
SAFANA BDSAFANB
FALDORN BDFALDOB
BRANWEN BDBRANWB
QUAYLE BDQUAYLB
XAN BDXANB
SKIE BDSKIEB
ELDOTH BDELDOTB
XZAR BDXZARB
MONTARON BDMONTAB
TIAX BDTIAXB
KAGAIN BDKAGAIB
SHARTEEL BDSHARTB
EDWIN BDEDWINB
VICONIA BDVICONB
IMOEN BDIMOENB
NEERA BDNEERAB
DORN BDDORNB
RASAAD BDRASAAB
BAELOTH BDBAELOB
VOGHILN BDVOGHIB
MKHIIN BDMKHIIB
CORWIN BDCORWIB
GLINT BDGLINTB
>>>>>>>>
COPY ~.../BDBANTER.2DA~ ~override~
END
END //SoD

// ----End (Do only once for whole mod)----
COPY ~imoen_forever/Install/component.xx~ ~imoen_forever/Install/imoen_foreverinstall.mrk~
END // imoen_foreverinstall.mrk

LOAD_TRA ~imoen_forever/tra/autotra/english/game.tra~
LOAD_TRA ~imoen_forever/tra/autotra/%LANGUAGE%/game.tra~

END //ALWAYS

Expand All @@ -217,7 +290,7 @@ LANGUAGE ~Polski~

LANGUAGE ~Russian~
~russian~
~imoen_forever/tra/russian/setup.tra~
~imoen_forever/tra/english/setup.tra~
~imoen_forever/tra/russian/game.tra~


Expand All @@ -231,6 +304,8 @@ BEGIN @9928 DESIGNATED 0 //GROUP @9921
REQUIRE_PREDICATE GAME_IS ~bg2ee eet bgt tob~ @9905
REQUIRE_PREDICATE ((GAME_IS ~bg2ee eet~) OR (MOD_IS_INSTALLED ~setup-bg2fixpack.TP2~ "0")) @9901
REQUIRE_PREDICATE NOT (MOD_IS_INSTALLED ~setup-ImoenIsStone.TP2~ "0") @9902
FORBID_COMPONENT ~EET_end.tp2~ ~0~ @9930
FORBID_COMPONENT ~EET_end.tp2~ ~1~ @9930



Expand Down Expand Up @@ -473,6 +548,8 @@ BEGIN @9912 DESIGNATED 1 //GROUP @9921
REQUIRE_PREDICATE (MOD_IS_INSTALLED ~setup-imoen_forever.TP2~ "0") @9913
REQUIRE_PREDICATE GAME_IS ~bg2ee eet bgt tob~ @9905
REQUIRE_PREDICATE ((GAME_IS ~bg2ee eet~) OR (MOD_IS_INSTALLED ~setup-bg2fixpack.TP2~ "0")) @9901
FORBID_COMPONENT ~EET_end.tp2~ ~0~ @9930
FORBID_COMPONENT ~EET_end.tp2~ ~1~ @9930

/* "I... er, found some things while they removed the belt. Don't look at me like that! It's not my fault they don't watch their stuff properly, is it?" */

Expand All @@ -492,6 +569,8 @@ BEGIN @9920 DESIGNATED 2 //GROUP @9921
REQUIRE_PREDICATE (MOD_IS_INSTALLED ~setup-imoen_forever.TP2~ "0") @9913
REQUIRE_PREDICATE GAME_IS ~bg2ee eet bgt tob~ @9905
REQUIRE_PREDICATE ((GAME_IS ~bg2ee eet~) OR (MOD_IS_INSTALLED ~setup-bg2fixpack.TP2~ "0")) @9901
FORBID_COMPONENT ~EET_end.tp2~ ~0~ @9930
FORBID_COMPONENT ~EET_end.tp2~ ~1~ @9930

/* Make Yoshimo appear at Brynnlaw - only if Imoen is in party */

Expand All @@ -502,7 +581,7 @@ EXTEND_TOP ~ar1600.bcs~ ~imoen_forever/baf/imoen_ar1600_yoshimo.baf~ EVALUATE_BU
/* make Yoshimo speak to the PC */
EXTEND_TOP ~yoshimo.bcs~ ~imoen_forever/baf/imoen_yoshimo.baf~ EVALUATE_BUFFER

COMPILE EVALUATE_BUFFER ~imoen_forever/dialogue/yoshimo_brynnlaw.d~ USING ~imoen_forever/tra/%LANGUAGE%/general.tra~
COMPILE EVALUATE_BUFFER ~imoen_forever/dialogue/yoshimo_brynnlaw.d~ USING ~imoen_forever/tra/autotra/%LANGUAGE%/general.tra~



Expand All @@ -517,6 +596,8 @@ BEGIN @9914 DESIGNATED 3 //GROUP @9921
REQUIRE_PREDICATE (MOD_IS_INSTALLED ~setup-imoen_forever.TP2~ "0") @9913
REQUIRE_PREDICATE GAME_IS ~bg2ee eet bgt tob~ @9905
REQUIRE_PREDICATE ((GAME_IS ~bg2ee eet~) OR (MOD_IS_INSTALLED ~setup-bg2fixpack.TP2~ "0")) @9901
FORBID_COMPONENT ~EET_end.tp2~ ~0~ @9930
FORBID_COMPONENT ~EET_end.tp2~ ~1~ @9930

/* Imoen will be protected against permanent death (sort of) */

Expand Down Expand Up @@ -571,6 +652,8 @@ BEGIN @9915 DESIGNATED 9 //GROUP @9921
REQUIRE_PREDICATE (MOD_IS_INSTALLED ~setup-imoen_forever.TP2~ "0") @9913
REQUIRE_PREDICATE GAME_IS ~bg2ee eet bgt tob~ @9905
REQUIRE_PREDICATE ((GAME_IS ~bg2ee eet~) OR (MOD_IS_INSTALLED ~setup-bg2fixpack.TP2~ "0")) @9901
FORBID_COMPONENT ~EET_end.tp2~ ~0~ @9930
FORBID_COMPONENT ~EET_end.tp2~ ~1~ @9930

/* compatibility with Alternatives - if Alternatives is installed, change the relevent cutscenes here, too */

Expand Down Expand Up @@ -675,6 +758,8 @@ END
////////////////////////////////////////////////////////////////////////
BEGIN @9906 DESIGNATED 10 //GROUP @9922
REQUIRE_PREDICATE (GAME_INCLUDES ~sod~) @9904
FORBID_COMPONENT ~EET_end.tp2~ ~0~ @9930
FORBID_COMPONENT ~EET_end.tp2~ ~1~ @9930

/* set detecting variable for other mods - is set in Thieves Maze in BG as well as SoD Palace L3 (bd0103.bcs)
Global("C#IM_ImoenInSoD","GLOBAL",1) */
Expand Down Expand Up @@ -880,6 +965,8 @@ EXTEND_TOP ~bd0130.BCS~ ~imoen_forever/ImoenInGroupKD/c#st_imo_bd0130.baf~ EVALU
///////////////////////////////////////////////////////////////////
BEGIN @9907 DESIGNATED 11 //GROUP @9922
REQUIRE_PREDICATE (GAME_INCLUDES ~sod~) @9904
FORBID_COMPONENT ~EET_end.tp2~ ~0~ @9930
FORBID_COMPONENT ~EET_end.tp2~ ~1~ @9930


/* set detecting variable for other mods - is set in Thieves Maze in BG as well as SoD Palace L3 (bd0103.bcs)
Expand Down Expand Up @@ -999,7 +1086,7 @@ EXTEND_BOTTOM ~bdasc3.bcs~ ~%MOD_FOLDER%/sod_rejoin/imoen_bdasc3.baf~
/* SoD dialogue */
COMPILE EVALUATE_BUFFER ~%MOD_FOLDER%/sod_rejoin/bdimoens.d~
COMPILE EVALUATE_BUFFER ~%MOD_FOLDER%/sod_rejoin/bdimoenp.d~
COMPILE EVALUATE_BUFFER ~%MOD_FOLDER%/sod_rejoin/bdimoen_cleanup.d~ USING ~imoen_forever/tra/%LANGUAGE%/bdimoenj.TRA~
COMPILE EVALUATE_BUFFER ~%MOD_FOLDER%/sod_rejoin/bdimoen_cleanup.d~ USING ~imoen_forever/tra/autotra/%LANGUAGE%/bdimoenj.TRA~

/* Prevent Imoen in the Scrying Pool in bd1200.are: do it non-destructively. Thank you argent77 for the code! */
INCLUDE ~imoen_forever/tpa/add_trans_trigger_scrying_pool_cleanup.tpa~
Expand All @@ -1012,9 +1099,11 @@ INCLUDE ~imoen_forever/tpa/add_trans_trigger_scrying_pool_cleanup.tpa~
BEGIN @9909 DESIGNATED 12 //GROUP @9922
REQUIRE_PREDICATE (GAME_INCLUDES ~sod~) @9904
REQUIRE_PREDICATE (MOD_IS_INSTALLED ~setup-imoen_forever.TP2~ "10") @9908
FORBID_COMPONENT ~EET_end.tp2~ ~0~ @9930
FORBID_COMPONENT ~EET_end.tp2~ ~1~ @9930

COMPILE EVALUATE_BUFFER ~%MOD_FOLDER%/ImoenInGroupKD/imoen_in_palace.d~
USING ~imoen_forever/tra/%LANGUAGE%/IMOEN_IN_GROUP_KD.TRA~
USING ~imoen_forever/tra/autotra/%LANGUAGE%/IMOEN_IN_GROUP_KD.TRA~



Expand All @@ -1024,6 +1113,8 @@ USING ~imoen_forever/tra/%LANGUAGE%/IMOEN_IN_GROUP_KD.TRA~
BEGIN @9910 DESIGNATED 13 //GROUP @9922
REQUIRE_PREDICATE (GAME_INCLUDES ~sod~) @9904
REQUIRE_PREDICATE (MOD_IS_INSTALLED ~setup-imoen_forever.TP2~ "11") @9911
FORBID_COMPONENT ~EET_end.tp2~ ~0~ @9930
FORBID_COMPONENT ~EET_end.tp2~ ~1~ @9930


/* cutscene after PC could see Imoen&Liia training */
Expand All @@ -1039,6 +1130,8 @@ COMPILE EVALUATE_BUFFER ~%MOD_FOLDER%/sod_rejoin/cutscene_imoen_and_jannath.d~
BEGIN @9923 DESIGNATED 14 //GROUP @9922
REQUIRE_PREDICATE (GAME_INCLUDES ~sod~) @9904
REQUIRE_PREDICATE (MOD_IS_INSTALLED ~setup-imoen_forever.TP2~ "11") @9911
FORBID_COMPONENT ~EET_end.tp2~ ~0~ @9930
FORBID_COMPONENT ~EET_end.tp2~ ~1~ @9930

/* React in case crusaders in cages are killed by spikes (bd7230.are) */
//bdlever2.BCS
Expand Down Expand Up @@ -1101,7 +1194,7 @@ EXTEND_BOTTOM ~bd0063.bcs~ ~%MOD_FOLDER%/sod_rejoin/imoen_bd0063.baf~
EVALUATE_BUFFER


COMPILE EVALUATE_BUFFER ~%MOD_FOLDER%/sod_rejoin/bdimoenj_additions.d~ USING ~imoen_forever/tra/%LANGUAGE%/bdimoenj.TRA~
COMPILE EVALUATE_BUFFER ~%MOD_FOLDER%/sod_rejoin/bdimoenj_additions.d~ USING ~imoen_forever/tra/autotra/%LANGUAGE%/bdimoenj.TRA~



Expand All @@ -1115,6 +1208,8 @@ BEGIN @9929 /* ~Imoen at the End of the Game Should be the One that Was in Party
REQUIRE_PREDICATE ((GAME_INCLUDES ~sod~) AND GAME_IS ~bgee~) ~This component is for SoD only~
REQUIRE_PREDICATE (MOD_IS_INSTALLED ~setup-imoen_forever.TP2~ "10") OR
(MOD_IS_INSTALLED ~setup-imoen_forever.TP2~ "11") @9927
FORBID_COMPONENT ~EET_end.tp2~ ~0~ @9930
FORBID_COMPONENT ~EET_end.tp2~ ~1~ @9930

COPY_EXISTING ~bd6200.bcs~ ~override~
DECOMPILE_AND_PATCH BEGIN
Expand Down Expand Up @@ -1151,6 +1246,8 @@ DESIGNATED 16 //GROUP @9922
REQUIRE_PREDICATE (GAME_INCLUDES ~sod~) @9904
REQUIRE_PREDICATE (MOD_IS_INSTALLED ~setup-imoen_forever.TP2~ "10") OR
(MOD_IS_INSTALLED ~setup-imoen_forever.TP2~ "11") @9927
FORBID_COMPONENT ~EET_end.tp2~ ~0~ @9930
FORBID_COMPONENT ~EET_end.tp2~ ~1~ @9930


COPY ~%MOD_FOLDER%/imoen_portrait/c#imim01.spl~ ~override/c#imim01.spl~
Expand Down
2 changes: 1 addition & 1 deletion imoen_forever/lib/g3_bgee_cpmvars.tpa
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ ACTION_IF GAME_IS BGEE THEN BEGIN // bgee games
OUTER_SPRINT "Beregost_KagainsStore" "AR3353"
OUTER_SPRINT "Beregost_House09" "AR3354"
OUTER_SPRINT "Beregost_House08" "AR3355"
OUTER_SPRINT "Beregost_House08" "AR3356"
OUTER_SPRINT "Beregost_House08_L2" "AR3356"
OUTER_SPRINT "Beregost_RedSheaf_L1" "AR3357"
OUTER_SPRINT "Temple" "AR3400"
OUTER_SPRINT "Temple_Vestibule" "AR3401"
Expand Down
2 changes: 1 addition & 1 deletion imoen_forever/lib/g3_bgt_cpmvars.tpa
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@
OUTER_SPRINT "Beregost_KagainsStore" "AR6753"
OUTER_SPRINT "Beregost_House09" "AR6754"
OUTER_SPRINT "Beregost_House08" "AR6755"
OUTER_SPRINT "Beregost_House08" "AR6756"
OUTER_SPRINT "Beregost_House08_L2" "AR6756"
OUTER_SPRINT "Beregost_RedSheaf_L1" "AR6757"
OUTER_SPRINT "Temple" "AR9300"
OUTER_SPRINT "Temple_Vestibule" "AR9301"
Expand Down
14 changes: 12 additions & 2 deletions imoen_forever/readme.imoen_forever.english.txt
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ Argent77 - coding help for non-destructive ADD_TRANS_TRIGGER patching

Lauriel - proof reading (English)

unknown user: idea about Imoen staying behind in SoD because of her poison injury. (Let me know if you you know what name I should put here.)
UnderstandMouseMagic: idea about Imoen staying behind in SoD because of her poison injury.

Translations:
------------
Expand Down Expand Up @@ -298,6 +298,17 @@ REDISTRIBUTION NOTE: Imoen 4 Ever Mod was created to be freely enjoyed by all Ba

HISTORY

Version 7:
-Ophyllis should reply correctly after Imoen's interjection
-Imoen should start her correct dialogue at the Sewer exit
-more interjections in SoD
-more lines altered from "searching for Imoen" to "going after Irenicus"
-typo corrections
-added UnderstandMouseMagic to credits
-Internal restructure: texts will be copied to "autotra" folder before used in game (and converting them to utf8 for EE) and using marker file so text conversion is done only once; Russian version now uses English setup.tra directly.
-added check to tp2 to forbid installation after EET_End
-corrected entry for "Beregost_House08_L2" on cpmvars.tpas

Version 6:
-Added Russian version by Raza, stn & Arcanecoast Team
- Imoen should not die instead of Ophyllis after interjecting into his (last) dialogue
Expand All @@ -306,7 +317,6 @@ Version 6:
- typo corrections

Version 5:

-Added SoD content
-Changed mod organization to more optional components
-More dialogues in BGII added (optional).
Expand Down
13 changes: 12 additions & 1 deletion imoen_forever/readme.imoen_forever.german.txt
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ Argent77 - Codinghilfe f

Lauriel - Korrekturlesen (Englisch)

Unbekannter User: Idee, dass Imoen aufgrund ihrer Vergiftung in SoD im Palast zur�ckbleibt. Lasst mich wissen, wer diese Idee hatte, wenn Ihr es wisst!
UnderstandMouseMagic: Idee, dass Imoen aufgrund ihrer Vergiftung in SoD im Palast zur�ckbleibt.

Translations:
------------
Expand Down Expand Up @@ -300,6 +300,17 @@ REDISTRIBUTION NOTE: Imoen 4 Ever Mod was created to be freely enjoyed by all Ba

HISTORY

Version 7:
-Ophyllis should reply correctly after Imoen's interjection
-Imoen should start her correct dialogue at the Sewer exit
-more interjections in SoD
-more lines altered from "searching for Imoen" to "going after Irenicus"
-typo corrections
-added UnderstandMouseMagic to credits
-Internal restructure: texts will be copied to "autotra" folder before used in game (and converting them to utf8 for EE) and using marker file so text conversion is done only once; Russian version now uses English setup.tra directly.
-added check to tp2 to forbid installation after EET_End
-corrected entry for "Beregost_House08_L2" on cpmvars.tpas

Version 6:
-Added Russian version by Raza, stn & Arcanecoast Team
- Imoen should not die instead of Ophyllis after interjecting into his (last) dialogue
Expand Down
Loading

0 comments on commit 74a9fcc

Please sign in to comment.