Jump to content


Photo

Install fault on PnP Undead if PnP fiends not installed


  • Please log in to reply
2 replies to this topic

#1 MikeX

MikeX
  • Member
  • 22 posts

Posted 06 June 2024 - 06:02 PM

@totor115 since your version seems to be most recent/advanced one... ;)

 

As the title says, if rr#spain.spl is not already installed by the fiend component, installing pnp undead failed in this area (undead.tpa):


 

//Wall of Ice
ACTION_IF !FILE_EXISTS_IN_GAME rr#icew.spl BEGIN
  COPY ~atweaks/bam/rr#icew.bam~ ~override~                                          // Wall of Ice BAM
  COPY ~atweaks/spl/rr#icew.spl~ ~override~                                          // Wall of Ice
    SAY NAME1 @1024 SAY NAME2 @1024
/*    READ_LONG  0x64 ab_off
    READ_SHORT 0x68 ab_num
    FOR(i=0; i<ab_num; i+=1) BEGIN
      WRITE_SHORT (ab_off+i*0x28+0x26) %rr#icew%                                     // use new projectile
    END
*/    LPF ALTER_SPELL_HEADER INT_VAR projectile = ~%rr#icew%~ END					 // use new projectile (party friendly)
END

//Symbol, Pain
ACTION_IF !FILE_EXISTS_IN_GAME rr#spain.spl BEGIN
  COPY ~aTweaks/SPL/RR#SPAIN.SPL~ ~override~                                         // Symbol Pain
/*    READ_LONG  0x64 ab_off
    READ_SHORT 0x68 ab_num
    FOR(i=0; i<ab_num; i+=1) BEGIN
      WRITE_SHORT (ab_off+i*0x28+0x26) %RR#SPAIN%                                    // use new projectile (party friendly)
    END
*/    LPF ALTER_SPELL_HEADER INT_VAR projectile = ~%rr#spain%~ END					 // use new projectile (party friendly)
END


I've changed it to the same treatment the spell gets in rr#fiend.tph and the component installed succesfully,

 



#2 TotoR

TotoR
  • Modder
  • 105 posts

Posted 08 June 2024 - 05:16 AM

@mikex,

 

This is strange as I have already install this component alone... it is now fixed, but I thik it comes from :

 

tactical_shared.tpa

//We forcibly reload all PRO variables, because there's a bug in WeiDU 231
COPY_EXISTING missile.ids override
  READ_2DA_ENTRIES_NOW buff 2
  PATCH_FOR_EACH pro IN rr#spain fl#cnenp fl#sight rr#pyrot rr#fcsng rr#icew rr#vrpo BEGIN
    FOR (i = buff - 1; i >= 0; --i) BEGIN
      READ_2DA_ENTRY_FORMER buff i 1 label
      PATCH_IF "%label%" STRING_EQUAL_CASE "%pro%" BEGIN
        READ_2DA_ENTRY_FORMER buff i 0 real_value
        SET EVAL "%pro%" = real_value
        i = "-1"
      END
    END
  END
BUT_ONLY

 

 

I'll check when I can. In the meantime, the code has been updated.

 

Thank you



#3 MikeX

MikeX
  • Member
  • 22 posts

Posted 08 June 2024 - 07:46 PM

@totoR,

 

Thank you for taking care of this gem.