Jump to content


Nythrun

Member Since 11 Apr 2007
Offline Last Active Jun 05 2007 09:20 AM

Topics I've Started

Comments on the Compatibility Guide

05 June 2007 - 08:00 AM

Your changes to Haer'dalis's .cre files will cause issues with any other mod that mucks with his spells (I'm thinking in particular of Fixpack, which rectifies haer15.cre's totally empty spellbook).

May I suggest something like:
ACTION_FOR_EACH ~haer~ IN ~haer10~ ~haer11~ ~haer13~ ~haer15~ ~haer19~ BEGIN
  ACTION_IF (FILE_EXISTS_IN_GAME ~%haer%.cre~) THEN BEGIN
	COPY_EXISTING ~%haer%.cre~ ~override~
	  PATCH_IF (SOURCE_SIZE > 0x2d3) THEN BEGIN
		READ_LONG 0x2c4 "eo"
		FOR (READ_LONG 0x2c8 "ec"; "ec" > 0x0; "ec" -= 0x1) BEGIN
		  READ_LONG ("eo" + (0x108 * ("ec" - 0x1)) + 0x08) "op"
		  PATCH_IF ("op" = 0xe9) THEN BEGIN
			READ_LONG ("eo" + (0x108 * ("ec" - 0x1)) + 0x18) "pf"
			PATCH_IF ("pf" = 0x72) THEN BEGIN
			  WRITE_LONG ("eo" + (0x108 * ("ec" - 0x1)) + 0x14) 0x3
			  SET "ec" = 0x0
			END
		  END
		END
	  END
	BUT_ONLY
  END
END

or some such?