Author Topic: Bug with Yaga-Shura in the Final Battle?  (Read 8704 times)

Offline eddy

  • Planewalker
  • *****
  • Posts: 1
Bug with Yaga-Shura in the Final Battle?
« on: February 26, 2008, 02:18:12 PM »
Hi there,

According the the readme Yaga-Shura should lose his resistances slowly over the time and what I can see from the game scripts he should lose 2% each round.
I guess that this also applies to Yaga-Shura in the final battle?

However I noticed that Yaga-Shura doesn't lose any of his resistances in the final battle. After playing a couple of rounds I added him to my party using CTRL+Q and he still had 99% in everything.
I don't think that this is the intended behaviour as this makes him practically invulnerable.

edit: I just found what was causing the trouble:
Code: [Select]
IF
CheckStatGT(Myself,0,RESISTCOLD)
!GlobalTimerNotExpired("WeakenYaga","LOCALS")
THEN
RESPONSE #100
SetGlobalTimer("WeakenYaga","LOCALS",9)
ApplySpell(Myself, 0)
Continue()
END

I guess some mod messed up the spell.ids or something.

my WeiDU.log:

Code: [Select]
// Log of Currently Installed WeiDU Mods
// The top of the file is the 'oldest' mod
// ~TP2_File~ #language_number #component_number // [Subcomponent Name -> ] Component Name
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #3 #0 // BG2 Fixpack - Hauptteil reparieren
~SETUP-TP.TP2~ #0 #0 // BG2 Text-Patch | Version 2.4
~SETUP-BGT.TP2~ #4 #0 // Baldur's Gate Trilogy - Hauptteil 1.05a
~SETUP-TACTICS.TP2~ #2 #0 // Verbesserter Ilyich (benötigt TdB)
~SETUP-TACTICS.TP2~ #2 #3 // Verbesserte Sahuagin-Stadt
~SETUP-TACTICS.TP2~ #2 #4 // Verbesserte Bodhi
~SETUP-TACTICS.TP2~ #2 #15 // Kensai Ryus Verbesserter Gruftkönig
~SETUP-TACTICS.TP2~ #2 #20 // Verbesserte Golems
~SETUP-TACTICS.TP2~ #2 #24 // Kensai Ryus Intelligentere Vampire
~SETUP-ASCENSION.TP2~ #1 #0 // Ascension v1.41 (ben”tigt TdB)
~SETUP-ASCENSION.TP2~ #1 #1 // Verbesserter Abazigal (optional, ben”tigt TdB)
~SETUP-ASCENSION.TP2~ #1 #2 // Original Demogorgon (optional, ben”tigt TdB)
~SETUP-ASCENSION.TP2~ #1 #3 // Verbesserter Gromnir (optional, ben”tigt TdB)
~SETUP-ASCENSION.TP2~ #1 #4 // Verbesserte Illasera (optional, ben”tigt TdB)
~SETUP-ASCENSION.TP2~ #1 #5 // Verbesserter Yaga-Shura (optional, ben”tigt TdB)
~SCSII/SETUP-SCSII.TP2~ #0 #10 // Detectable spells and effects (required for most other components)
~SCSII/SETUP-SCSII.TP2~ #0 #20 // Allow Spellstrike to take down a Protection from Magic scroll
~SCSII/SETUP-SCSII.TP2~ #0 #30 // More consistent Breach spell (always affects liches and rakshasas; doesn't penetrate Spell Turning)
~SCSII/SETUP-SCSII.TP2~ #0 #50 // Iron Skins behaves like Stoneskin (can be brought down by Breach)
~SCSII/SETUP-SCSII.TP2~ #0 #61 // Modify the Harm spell so it does damage rather than reducing target to 1 hp -> Enemy and player Harm spells both do 150 hp of damage
~SCSII/SETUP-SCSII.TP2~ #0 #70 // Make individual versions of Spell Immunity available, so that players can use them in Contingencies etc.
~SCSII/SETUP-SCSII.TP2~ #0 #80 // Revert Greater Restoration back to only affecting one creature
~SCSII/SETUP-SCSII.TP2~ #0 #90 // Blade Barrier and Globe of Blades only affect hostile creatures
~SCSII/SETUP-SCSII.TP2~ #0 #100 // Cap damage done by Skull Trap at 12d6
~SCSII/SETUP-SCSII.TP2~ #0 #110 // Make Minute Meteors into +2 weapons
~SCSII/SETUP-SCSII.TP2~ #0 #130 // Remove the invisibility power of the Staff of the Magi
~SCSII/SETUP-SCSII.TP2~ #0 #175 // Faster Bears
~SCSII/SETUP-SCSII.TP2~ #0 #201 // Prevent party members from dying irreversibly
~SCSII/SETUP-SCSII.TP2~ #0 #220 // Smarter general AI
~SCSII/SETUP-SCSII.TP2~ #0 #235 // Potions for NPCs
~SCSII/SETUP-SCSII.TP2~ #0 #238 // Improved Spiders
~SCSII/SETUP-SCSII.TP2~ #0 #240 // Improved fiends -> Fiends have fast, uninterruptable innate magic
~SCSII/SETUP-SCSII.TP2~ #0 #250 // Smarter genies -> Genies have fast, uninterruptable innate magic
~SCSII/SETUP-SCSII.TP2~ #0 #260 // Smarter celestials -> Celestials have fast, uninterruptable innate magic
~SCSII/SETUP-SCSII.TP2~ #0 #270 // Smarter dragons -> Dragons have fast, uninterruptable innate magic
~SCSII/SETUP-SCSII.TP2~ #0 #281 // Smarter beholders -> Upgrade the beholders found in the hive in the Underdark (borrowed from Quest Pack)
~SCSII/SETUP-SCSII.TP2~ #0 #292 // Smarter mind flayers -> Illithids have enhanced damage resistance; Illithids can see through invisibility (matches Tactics mod)
~SCSII/SETUP-SCSII.TP2~ #0 #300 // Smarter githyanki
~SCSII/SETUP-SCSII.TP2~ #0 #320 // Smarter Mages -> Mages cast some short-duration spells instantly at start of combat, to simulate pre-battle casting
~SCSII/SETUP-SCSII.TP2~ #0 #330 // Smarter Priests -> Priests cast some short-duration spells instantly at start of combat, to simulate pre-battle casting
~SCSII/SETUP-SCSII.TP2~ #0 #340 // Add high-level abilities (HLAs) to ToB mages -> Only selected ToB mages get HLAs
~SCSII/SETUP-SCSII.TP2~ #0 #350 // Add high-level abilities (HLAs) to ToB priests -> Only selected ToB priestss get HLAs
~SCSII/SETUP-SCSII.TP2~ #0 #380 // Improved d'Arnise Keep ("Tactics Remix") -> Enhanced spirit trolls (as in Tactics)
~SCSII/SETUP-SCSII.TP2~ #0 #387 // Improved Shade Lord
~SCSII/SETUP-SCSII.TP2~ #0 #420 // Ease-of-use party AI
~SCSII/SETUP-SCSII.TP2~ #0 #440 // Move Boo into Minsc's pack
~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #3 #50 // Avatar-Transformations-Skript
~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #3 #60 // Aennderungen von Waffenanimationen
~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #3 #110 // Symbol Verbesserungen
~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #3 #120 // Avatar aendern, wenn er Roben oder Ruestungen traegt (Galactygon)
~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #3 #1020 // Trefferpunkt-Ausloeser für die Dialoge verwundeter NPCs ändern
~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #3 #1130 // Ruf zuruecksetzen in BG2 (nur BGT)
~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #3 #1170 // Zusaetzliche Haendler (Baldurdash)
~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #3 #2210 // Regeltreue Grossmeisterschaft (Baldurdash)
~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #3 #3000 // Mehr Trefferpunkte beim Stufenaufstieg -> Maximale Trefferpunkte beim Stufenaufstieg
~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #3 #3030 // Einfaches Erlernen von Zauberspruechen -> 100%-iges Erlernen von Zauberspruechen
~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #3 #3060 // "Ihr muesst Eure Gruppe erst sammeln"-Sound entfernen" (Weimer)
~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #3 #3125 // Neutrale Charaktere machen zufrieden Bemerkungen bei einem mittelmäßigem Ruf
~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #3 #3150 // Abstellen der grässlichen Animationen von Spiegelumhang, Zauberfalle und Materiespiegel
~SETUP-NPCFLIRT.TP2~ #2 #0 // Aerie Flirt Pack für SOA
~SETUP-NPCFLIRT.TP2~ #2 #2 // Aerie Flirt Pack für TOB
~SETUP-NPCFLIRT.TP2~ #2 #4 // Jaheira Flirt Pack für SOA
~SETUP-NPCFLIRT.TP2~ #2 #6 // Jaheira Flirt Pack für TOB
~SETUP-NPCFLIRT.TP2~ #2 #8 // Viconia Flirt Pack für SOA
~SETUP-NPCFLIRT.TP2~ #2 #10 // Viconia Flirt Pack für TOB
~SETUP-NPCFLIRT.TP2~ #2 #12 // Anomen Flirt Pack für SOA
~SETUP-NPCFLIRT.TP2~ #2 #14 // Anomen Flirt Pack für TOB
~SETUP-BANTERPACK.TP2~ #2 #0 // Pocket Plane Banter Pack für BG2: Schatten von Amn
~SETUP-BANTERPACK.TP2~ #2 #1 // Banter-Beschleuniger-Skript für SvA installieren? (Verringert den Abstand zwischen Unterhaltungen innerhalb der Gruppe.)
~SETUP-BANTERPACK.TP2~ #2 #2 // Pocket Plane Banter Pack für BG2: Thron des Bhaal
~SETUP-BANTERPACK.TP2~ #2 #3 // Banter-Beschleuniger-Skript für TdB installieren? (Verringert den Abstand zwischen Unterhaltungen innerhalb der Gruppe.)
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #3 #104 // Ghreyfains Heiliges Symbol berichtigen
~SCSII/SETUP-SCSII.TP2~ #0 #40 // Antimagic attacks penetrate improved invisibility
~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #3 #1010 // Mehr Interjektionen
« Last Edit: February 26, 2008, 03:25:22 PM by eddy »

Offline Azazello

  • The Anti-Spammer
  • Planewalker
  • *****
  • Posts: 389
  • Gender: Male
    • Azazello’s Music Profile at Last.fm
Re: Bug with Yaga-Shura in the Final Battle?
« Reply #1 on: February 26, 2008, 07:52:18 PM »
I don't exactly what's causing this, but if you believe it's one of the IDS files, then both Tactics and Ascension are the culprits. Ascension overwrites stats.ids and Tactics overwrites a whole bunch of IDS's.

Since you're already near the end of the game, I'm not sure what can be done to help. Don't re-install as that will screw up your current saved games.

Until both mods are modernize to patch instead of overwrite files, in future, reorder your list so that Ascension comes before BG2 Fixpack (for simplicity, just make it your very first mod in the list) and change Tactics TP2 lines
Code: [Select]
ALWAYS

  ACTION_IF NOT FILE_EXISTS ~override/action.ids~ THEN BEGIN
    COPY ~tactics2/ids/action.ids~ ~override/action.ids~
  END
  ACTION_IF NOT FILE_EXISTS ~override/trigger.ids~ THEN BEGIN
    COPY ~tactics2/ids/trigger.ids~ ~override/trigger.ids~
  END
  ACTION_IF NOT FILE_EXISTS ~override/spell.ids~ THEN BEGIN
    COPY ~tactics2/ids/spell.ids~ ~override/spell.ids~
  END
  ACTION_IF NOT FILE_EXISTS ~override/race.ids~ THEN BEGIN
    COPY ~tactics2/ids/race.ids~ ~override/race.ids~
  END

END
to
Code: [Select]
ALWAYS

COPY_EXISTING_REGEXP GLOB ~^.+\.ids$~ ~override~

//   ACTION_IF NOT FILE_EXISTS ~override/action.ids~ THEN BEGIN
//     COPY ~tactics2/ids/action.ids~ ~override/action.ids~
//   END
//   ACTION_IF NOT FILE_EXISTS ~override/trigger.ids~ THEN BEGIN
//     COPY ~tactics2/ids/trigger.ids~ ~override/trigger.ids~
//   END
//   ACTION_IF NOT FILE_EXISTS ~override/spell.ids~ THEN BEGIN
//     COPY ~tactics2/ids/spell.ids~ ~override/spell.ids~
//   END
//   ACTION_IF NOT FILE_EXISTS ~override/race.ids~ THEN BEGIN
//     COPY ~tactics2/ids/race.ids~ ~override/race.ids~
//   END

END
Yes-yes, lazy but effective.
Community Contributions
Level 1 NPCs * gMinion: expanded TP2 for MegaInstalls * PSM (PSQM): expanded scripts for Melanthium * Weimer's-Tactics: revised TP2 for MegaInstalls * non-detectable Cloak of Non-Detection ??
================================================================
"Deception has many faces. Truth...has only one."

Offline DavidW

  • Planewalker
  • *****
  • Posts: 218
Re: Bug with Yaga-Shura in the Final Battle?
« Reply #2 on: February 27, 2008, 03:46:14 AM »
I think it's a bug in Ascension itself, actually - a typo in finyaga.bcs that would be there even if Ascension was your only mod.

If you replace ApplySpell(Myself, 0) with ApplySpellRES("yagweak",Myself), it'll fix it.




Offline erebusant

  • Planewalker
  • *****
  • Posts: 20
Re: Bug with Yaga-Shura in the Final Battle?
« Reply #3 on: March 02, 2008, 09:55:51 AM »
I think it's a bug in Ascension itself, actually - a typo in finyaga.bcs that would be there even if Ascension was your only mod.

If you replace ApplySpell(Myself, 0) with ApplySpellRES("yagweak",Myself), it'll fix it.
Interesting. My original Ascension FINYAGA was as posted above, however my current FINYAGA after installing SCSII - Ascension foes AI seems to have the issue resolved already. From my final FINYAGA:
Code: [Select]
IF
!HasItem("sureHP1",Myself) // No such index
CheckStatGT(Myself,20,RESISTCOLD)
!GlobalTimerNotExpired("WeakenYaga","LOCALS")
THEN
RESPONSE #100
SetGlobalTimer("WeakenYaga","LOCALS",ONE_ROUND)
ReallyForceSpellRES("yagweak",Myself) // No such index
END
I've made the change to the source file in the Ascension package for my revamp.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: