Jump to content


Photo

Spell Revisions compatibility question


  • Please log in to reply
4 replies to this topic

#1 kreso

kreso
  • Member
  • 297 posts

Posted 18 January 2015 - 07:21 AM

Here's what I want to do:

 

Spell Revisions makes clerics not being able to gate demons. Instead, they can summon a Death Knight. 

Is it possible (and if, how) to exclude the aTweaks changes to Cleric Gate spell if Spell Revisions is installed (it doesn't really make sense with Spell Revisions)?

Basically, I want aTweaks demons w/o cleric's Gate, but with other aTweaks Demons/Fiends components.



#2 Crevs Daak

Crevs Daak

    me orc duh duh

  • Member
  • 88 posts

Posted 18 January 2015 - 12:58 PM

You'll have to edit aTweaks' c150.tpa file in atweaks/lib/, search for the block:
COPY_EXISTING sppr703.spl override // Gate (Cleric)
  SAY NAME1 #14260 SAY NAME2 #14260
  SAY DESC @754 SAY UNIDENTIFIED_DESC @754
  WRITE_ASCII 0x3a fl#905c #8 // New spellbook icon
  WRITE_ASCII 0x10 CAS_P03 #8 // Casting sound
  WRITE_SHORT 0x25 2 // Spell school (Conjuration)
  WRITE_SHORT 0x22 14 // Casting graphics (Conjuration)
  GET_OFFSET_ARRAY aa 0x64 4 0x68 2 0 0 0x28
  PHP_EACH aa AS i => off BEGIN
    WRITE_ASCII off + 0x4 fl#905b #8 // New icon (stone background)
    WRITE_SHORT off + 0x0e 30 // Range
    WRITE_SHORT off + 0x12 5 // Casting time
  END
  LPF fiend_summoning_spell
    INT_VAR
      duration = 396
    STR_VAR
      lawful = spgate
      lcneutral = fl#sultr
      chaotic = rr#sbalr
  END
BUT_ONLY
and comment it out (circle it with /* this */ things).

#3 kreso

kreso
  • Member
  • 297 posts

Posted 18 January 2015 - 03:47 PM

I tried that already, doesn't work. I get aTweaks description, (per Gate spell) even if the spell name is Summon Death Knight. 

Casting it (to my utmost surprise) doesn't crash the game, but the .eff is missing from spell, and nothing gets summoned.

I did manage to get it working (as per Spell Revisions) only by restoring both the sppr703 and eff from the backup aTweaks made, all attempts at hacking .tpa's were a splendid failure :( .



#4 subtledoctor

subtledoctor
  • Modder
  • 656 posts

Posted 23 February 2015 - 11:49 AM

You should be able to automate that, no? Make a small WeiDu script to
ACTION_IF FILE_EXISTS ~aTweaks/backup/sppr703.spl~ THEN BEGIN
   COPY ~aTweaks/backup/sppr703.spl~ ~override~

... and apply it after everything else?

#5 Salk

Salk
  • Modder
  • 1411 posts

Donator

Posted 10 July 2015 - 08:45 PM

Hopefully Wisp will take a look here to answer kreso and I'd take the opportunity also to ask to take another step towards compatibility with Spell Revisions, namely skipping the "Half Orc gains Infravision" component since Spell Revision removes that spell from the game.