Jump to content


Photo

[Incompatibility] Disease immunity effect batch vs. TobEx


2 replies to this topic

#1 Ascension64

Ascension64
  • Modders
  • 452 posts
  • Gender:Male

Posted 22 March 2013 - 04:47 AM

A request for BG2Fixpack to add the following line when fixing disease immunity effect batches. The installation clones an existing immunity to effect (disease) opcode. When it subsequently modifies the opcode to 100% poison resistance, it leaves junk data in param2. This doesn't agree with TobEx's Poison Resistance Mod hack, which makes use of param2

The code is located under the "// disease (revised by Wisp)" heading
Line 24855 (from v9 tp2)
PATCH_IF ("%new_fx_5%" = 0 AND !("%SOURCE_RES%" STRING_EQUAL_CASE spcl814 OR "%SOURCE_RES%" STRING_EQUAL_CASE misc8j)) BEGIN
INSERT_BYTES   ("%fx_off%" + ("%abil_fx_idx%" * (0x30 + (0xd8 * "%fx_type%")))) (0x30 + (0xd8 * "%fx_type%"))
WRITE_ASCIIE ("%fx_off%"  + ("%abil_fx_idx%" * (0x30 + (0xd8 * "%fx_type%")))) "%template%" // clones immunity effect
WRITE_SHORT  ("%fx_off%" + (0x08 * "%fx_type%") + ("%abil_fx_idx%" * (0x30 + (0xd8 * "%fx_type%")))) 173		  // reduced damage from poison
WRITE_LONG   ("%fx_off%" + 0x04 + (0x10 * "%fx_type%") + ("%abil_fx_idx%" * (0x30 + (0xd8 * "%fx_type%")))) 100		  // value
WRITE_LONG   ("%fx_off%" + 0x08 + (0x10 * "%fx_type%") + ("%abil_fx_idx%" * (0x30 + (0xd8 * "%fx_type%")))) 0			// set <---------- add this line to set param2 to 0
SET "new_fx" = ("%new_fx%" + 1)
SET "counter" = ("%counter%" + 1)
END


#2 Wisp

Wisp
  • Modders
  • 1098 posts
  • Gender:Male

Posted 22 March 2013 - 08:33 AM

Done.

#3 CamDawg

CamDawg

    Just a simple country Hyper-Chicken

  • Gibberling Poobah
  • 9371 posts
  • Gender:Not Telling

Posted 15 April 2013 - 05:59 AM

And yes, this made it into v10.

I came here with a simple dream: a dream of killing all humans. And this is how it must end? Who's the real seven billion ton robot monster here? Not I. Not... I.




Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users