Jump to content


Photo

Problem understanding Change-Log result


  • Please log in to reply
1 reply to this topic

#1 tomkaz

tomkaz
  • Member
  • 992 posts

Donator

Posted 25 February 2016 - 07:03 AM

Hi All:

 

I am a novice at WeiDU and mod programming but have a background with other programming languages.  Now, I am starting to teach myself how mods are created.

 

I ran a Change-Log on  SPWI313.spl and am confused by one part of the result.  Here is the Change-Log result:

 

Mods affecting SPWI313.SPL:
00000: ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ 0 0 // BG2 Fixpack - Core Fixes: v10 (BWP Fixed to v11 Alpha 1)
00001: ~SPELL_REV/SETUP-SPELL_REV.TP2~ 0 20 // Mirror Image Fix: v3.1 (Hotfix 03)
00002: ~IWDIFICATION/SETUP-IWDIFICATION.TP2~ 0 30 // IWD Arcane Spell Pack: Beta 2 BWP Fix
00003: ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ 0 1000 // Initialise mod (all other components require this): v30 BWP Fix
00004: /* acted upon in an indetectable manner */~GENERALIZED_BIFFING/GENERALIZED_BIFFING.TP2~ 0 0 // Generalized Biffing: v2.2 BWP Fix
00005: /* acted upon in an indetectable manner */~GENERALIZED_BIFFING/GENERALIZED_BIFFING.TP2~ 0 0 // Generalized Biffing: v2.2 BWP Fix
 
With 00000:, 00001:, and 00003:, I can search the corresponding .TP2 files and find code that refers to either SPWI313 or Skull Trap.  So that I understand.
 
With 00002: the file  SETUP-IWDIFICATION.TP2 has no reference to either SPWI313 or Skull Trap.  Yet, the SPWI313.spl file can be found in the folder ...IWDIFICATION/Backup/30/.
 
Just wondering how the SPWI313.spl file is transfered to the backup folder if the SETUP-IWDIFICATION.TP2 file does not instruct WeiDU to do that.
 
Tom


#2 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5150 posts

Posted 25 February 2016 - 07:19 AM

With 00002: the file  SETUP-IWDIFICATION.TP2 has no reference to either SPWI313 or Skull Trap.  Yet, the SPWI313.spl file can be found in the folder ...IWDIFICATION/Backup/30/.
That's because you failed to read the line 110:
INCLUDE ~iwdification/lib/common_spell.tpa~
That file is executed when the component is ran... so you have to open the file... and it refers to all the spell files in line 124:
      COPY_EXISTING_REGEXP GLOB ~^.+\.spl$~ ~override~
        READ_LONG  0x64 abil_off
... 
... in short the function adds an effect to nearly all the .spl files, so they can be detected by a script or something... if I read it correctly(I could be off by miles too).

Edited by The Imp, 25 February 2016 - 07:26 AM.

Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.