Jump to content


Nasty bug, easy solution :)

No replies to this topic

#1 Isewein

  • Members
  • 21 posts
  • Gender:Female

Posted 08 April 2018 - 11:54 AM

I think I just figured out the small coding omission that caused so many players problems when trying one of the new paths (trying to be spoiler free here): ar5500add.baf Block 12 / line 208 needs a check for Global("HadBhaal25Dream3","GLOBAL",1) or any other variable ensuring it does not fire immediately upon re-entering Amkethran after killing the first of either Abazigal/Sendai. As it is, it messes up what could otherwise be an epic scene and really the crowning jewel of this mod! Hope someone finds the time to look over it, so that other players can enjoy it spoiler-free :)

//// Initialising the attack (if players leave the monastery to find it under attack in phase 2). ar5500add.baf

        RESPONSE #100

Now bug no.2 preventing the conclusion of this sequence (for which "DMWWVillageAttacked" needs to be set to 2) is considerably more arcane: basically, the sole culprit is a Bone Fiend with gender dysphoria. No, I'm not kidding you. Prepare to be led down a special rabbit hole...


The area script will only try to spawn new attackers when the current number of present hostiles is below a certain number. Essentially a good idea, so as to prevent the player from getting swamped. It mirrors the scripting for the horde faced in Pocket Plane Challenge 1. The hard-coded method of checking the current number of 'extras', i.e. non plot-essential creatures, in any given area at any given time runs via the local variable "EXTRACOUNT". There is different "EXTRACOUNT" for different types of creatures (in this case, for example,  two separate waves of attackers: one of cannon fodder, the other of stronger monsters smaller in number). These are "EXTRACOUNT2" to "EXTRACOUNT10", respectively checked against a corresponding value stored in a .cre file's gender of all things.


It so happens that of the assorted critters attacking Amkethran at a certain stage of this mod, the Bone Fiends are not assigned the correct gender value, preventing the "EXTRACOUNT7" area variable from decreasing on death, which in turn prevents further hostiles from spawning as the script still assumes CHARNAME to be up against a horde of androgynous Bone Fiends... and thus, the kill count necessary for the script to advance can not be reached.


There seems to be no documentation of this useful Infinity Engine feature in the common scripting guides; I eventually unravelled the mystery by way of this article. Isn't it magnificent? :D Verily, the wonders of the IE are manifold!



dw#vibon.cre, a copy of gorbat5.cre, is of gender 4 ("NIETHER" - sic!), but needs to be of gender 15 ("EXTRA7") for the script as it is currently coded to function properly. Whether this gender dysphoric Bone Fiend is an idiosyncrasy of my install / codependent on some other mod I cannot say for sure, but as the .cre is copied straight from core game files during the installation WoP, I suspect not.



cheers to the creator of this creative and daring mod! hope the few remaining bugs can one day be fixed - they are few, but as many variables in this mod are codependent, one little error such as this one can have far-reaching consequences if the player notices too late that things didn't go as they should have :(


EDIT: There is indeed a third bug in this sequence. According to the attached documentation files of WoP, DMWWVillageAttacked has to be set to 1 by the dw#monme dialogue file ... it's not gamebreaking, as it will instead be set by the peasants, but it has the potential to mess things up since Balthazar won't fire an appropriate script to teleport out, etc. Easy fix: add SetGlobal("DMWWVillageAttacked","GLOBAL",1) to the actions at the end of army_abaz and army_send chains in the mod's balthadd.d.

Edited by Isewein, 18 April 2018 - 02:00 AM.

Reply to this topic


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users