Posted by: cmorgan
« on: August 26, 2008, 08:44:37 AM »EDIT: never mind - read too fast. You came to this conclusion already. I tyoped it, so I will leave it, but ignore it.
Plainab, the real (technical) difficulty here is twofold:
PATCH_IF (~%text_value%~ STRING_EQUAL ~This would be exact copy of text taken from desired state I want to branch from~) BEGIN
This means you would need to match .tra references to standard game, GTU updates, Baldurdash GTU, localized translations/repairs, Fixpack (either BG one you are working on or BG2, UB repairs, etc., etc. If you do it via regexp, you risk patching the wrong state completely. And if you match a mod .tra reference, then it is ebven worse, as every time they implememnt editorial stuff or correct spelling, your patch fails.
The second is pretty straightforward - in order for players to see your mod added content, you would have to be last in the install order. One huge strength of not doing this solo and instead adding to crossmod content is that the mod is designed to take all existing NPCs (in any order) and detect their installation, then pathc in added content customized to the users install, just as you are suggesting.
Given STATE_WHICH_SAYS (similar limitations) and install order problems, I think your best bet is to add this/submit this to crossmod. If the authors do not agree to your changes or are unavailable, then you can build an "adon" mod that ships alongside your mod; a mini-crossmod pack that is installed at the end along with banterpack and crossmod.
Or, be safest - add a script block or I_C_T a variable into place, and trigger a separate dialog.
Plainab, the real (technical) difficulty here is twofold:
PATCH_IF (~%text_value%~ STRING_EQUAL ~This would be exact copy of text taken from desired state I want to branch from~) BEGIN
This means you would need to match .tra references to standard game, GTU updates, Baldurdash GTU, localized translations/repairs, Fixpack (either BG one you are working on or BG2, UB repairs, etc., etc. If you do it via regexp, you risk patching the wrong state completely. And if you match a mod .tra reference, then it is ebven worse, as every time they implememnt editorial stuff or correct spelling, your patch fails.
The second is pretty straightforward - in order for players to see your mod added content, you would have to be last in the install order. One huge strength of not doing this solo and instead adding to crossmod content is that the mod is designed to take all existing NPCs (in any order) and detect their installation, then pathc in added content customized to the users install, just as you are suggesting.
Given STATE_WHICH_SAYS (similar limitations) and install order problems, I think your best bet is to add this/submit this to crossmod. If the authors do not agree to your changes or are unavailable, then you can build an "adon" mod that ships alongside your mod; a mini-crossmod pack that is installed at the end along with banterpack and crossmod.
Or, be safest - add a script block or I_C_T a variable into place, and trigger a separate dialog.