Pocket Plane Group
BG2 Completed Mods => Unfinished Business => UB Workroom => Topic started by: CamDawg on July 12, 2006, 12:43:56 AM
-
The bug reports thread is boring, full of slackers who just want to create work for you. I reduce it! (Well, OK, so I'm fixing my own mess here... :) )
UB's Glacias charm fix in Restored Minor Dialogues is from the Fixpack, but it'll choke when installed more than once since I didn't properly safeguard my code. Two options: detect the Fixpack and don't modify ar1303.bcs, or use a more robust patch (I suggest the latter):
// fixes Glacias charm issue
COPY_EXISTING ~ar1303.bcs~ ~override~
DECOMPILE_BCS_TO_BAF
REPLACE_TEXTUALLY ~[^,]ApplySpell("kpglai01",WIZARD_TRUE_DISPEL_MAGIC)~
~ActionOverride("kpglai01",ApplySpell("kpglai01",FORCE_DISPEL_MAGIC))~
REPLACE_TEXTUALLY ~[^,]ChangeEnemyAlly("kpglai01",NEUTRAL)~
~ActionOverride("kpglai01",ChangeEnemyAlly("kpglai01",NEUTRAL))~
COMPILE_BAF_TO_BCS
BUT_ONLY_IF_IT_CHANGES
The component still installs, but will report an error. It will also completely nuke the script.
-
Cheers, Cam. :) I'll replace the code with this patch.
-
Sorry to necro this thread up, but I am going to be installing UB and the Fixpack soon and I have no knowledge of how to modify the code as specified. Can I confirm that if I change ar1303.bcs to be read-only when installing the Fixpack and change it back after installation, UB will install fine and there will be no crashes associated?
:-[ :-[ :-[
-
I don't know what will happen if you make it read-only, actually. If you try it, I'd advise keeping a backup of the file. And you'd probably want to make it read-only when installing UB, not the Fixpack. :)
-
Sounds good. I'll report back once I receive my BG this Sunday.
-
Cam, I've put this code into the tp2. Does anything else need to change for the next version of Fixpack?
-
I would guess that there might be a significant amount of redundancy between the Fixpack and some parts of the UB components "Corrected BAMs and Scripts", "Corrected Character Names" and "Restored Minor Dialogues".