Dak'kons zerth/streaming blade question/bug
#1
Posted 22 August 2007 - 04:35 PM
Unfortunately it only works if used by the main character ( from my experience as many times as I've played, it only upgraded on main char. If I'm wrong someone correct me but it never worked for Kachiko for me)
What i'm trying to do now is make the item work for any npc in the party including and not limiting itself to Kachiko who is a Kensai/Mage after all.
The code is here and since I'm not a programmer any help appreciated on how to make this more versatile for all characters in party
///
IF
CheckStatGT(Myself,9,LEVEL)
HasItem("wa2dak",Myself) // Dak'kon's Zerth Blade +2
THEN
RESPONSE #100
DestroyItem("wa2dak") // Dak'kon's Zerth Blade +2
GiveItemCreate("wa2dak2",Myself,0,0,0) // Dak'kon's Streaming Blade
Wait(100)
END
///
This is for the first zerth bladeupgrade which happens when the main character reaches level 10.
If someone can help me make this more versatile to cover all characters and not just "Myself" which is the main char, I'd greatly appreciate it and perhaps we can then include the changed files in a next patch or something of the mod introducing the item, why not
#2
Posted 22 August 2007 - 06:11 PM
Where did ya get that code from?
#3
Posted 22 August 2007 - 06:34 PM
There's nothing in that code block limiting usage to the main character. Should work for whomever holds it.
Where did ya get that code from?
Lol r u sure that the script of this weapon was supposed to work on all 6 characters?
I got the code from my dakkon1.bcs file through NI.
I just checked the file items though and all of their abilities, and none of them seems to be connected through this bcs script.
dakkon1.bcs should activate when the wa2dak.item (first version of item) was wielded by a player of appropriate level (9to10)
I searched through the wa2dak.itm global properties through NI and none of the properties seem to connect it to the bcs script. (at least none that I can see with my knowledges). So I assume I have a wrong version of those items or? The only mods that seem to alter these itm files are TS, BP, a d0tweak component and a BG2Tweak component which are all supposed to be compatible.
Strange :S
Edited by Radagast-The-Brown, 22 August 2007 - 06:35 PM.
#4 --Vlad--
Posted 22 August 2007 - 11:18 PM
#5 --Radagast-the-Brown--
Posted 23 August 2007 - 08:54 AM
Get yourself Baldurdash-WeiDU 1.6.4. It is fixed there.
Well ye I guess its an option but no way it would be compatible with my big-mega installation and all those small and big mods. Besides I dont plan to reinstall from beginning so I really need a fast fix that be applied without reinstallations :S
#6
Posted 23 August 2007 - 10:00 AM
edit:BTW those two mods together are great for a PC kensai/mage
Just food for thought
Edited by Hoppy, 23 August 2007 - 10:02 AM.
"If you think that a size of the mod indicates an amount of bugs that it introduces and their severity you're totally wrong...
Try not to use next time a load of shitty "super-mega-improving-tweaking-revising" small mods that you have installed and try to meet Wulfgar once again." - King Diamond
The Definitive Guide to Trolls
"Finding food and a place to sleep is your own business. I imagine Paul the Cat should have some fun with you, too" - Potencius in The Darkest Day
"You have been warned, little bastard!" -Khelben to a young <CHARNAME>in Check the Bodies
There are those who will snivel, and offer nothing in return except criticism, meanwhile never lifting a finger to do other than to cut other peoples labor down simply for the fact that they lack the capability to put anything of their own together. -erebusant
#7
Posted 23 August 2007 - 10:43 AM
(Did I emphasize enough searching the forums first for previous reports?)
One other thing: search thru your game folders for a file beginning with 'dakkon1'. Maybe some mod has altered the script.
Edited by Azazello, 23 August 2007 - 10:45 AM.
#8
Posted 23 August 2007 - 11:35 AM
Radagast, go search G3 forums see if this was reported and/or fixed. If not, report it in the 'Fixpack general discussion' forum. Give 'em a link to your weidu.log that you posted somewhere on SHS.
(Did I emphasize enough searching the forums first for previous reports?)
One other thing: search thru your game folders for a file beginning with 'dakkon1'. Maybe some mod has altered the script.
Ye i know m8 i have already searched those forums and no real answer came up from there either. Anyway no thread came up about fixing this or even reported... I have already done a search like the one u just said in my game folders and the file only shows up in the TS baf folder nowhere else. :S
#9
Posted 23 August 2007 - 01:11 PM
Correction:wa2dak.itm and wa2dak2, 3 and 4 are in BP177 folder
wa2dak5 is in TS/itm folder
addendum: For clarification, I saw your posts from a couple years ago Radagast-the-Brown, regarding Dakkon's blade and am curious to get some insight into whether this item is going to screw dialogs/or quests. The discussion was in BP and they never seemed to answer your question at that time either. So the dialog bugginess is fixed but the extra NPC use is not?
Edited by Hoppy, 23 August 2007 - 01:41 PM.
"If you think that a size of the mod indicates an amount of bugs that it introduces and their severity you're totally wrong...
Try not to use next time a load of shitty "super-mega-improving-tweaking-revising" small mods that you have installed and try to meet Wulfgar once again." - King Diamond
The Definitive Guide to Trolls
"Finding food and a place to sleep is your own business. I imagine Paul the Cat should have some fun with you, too" - Potencius in The Darkest Day
"You have been warned, little bastard!" -Khelben to a young <CHARNAME>in Check the Bodies
There are those who will snivel, and offer nothing in return except criticism, meanwhile never lifting a finger to do other than to cut other peoples labor down simply for the fact that they lack the capability to put anything of their own together. -erebusant
#10
Posted 23 August 2007 - 01:39 PM
Check your BP177 folder. It should be in there along with your override
Correction:wa2dak.itm and wa2dak2, 3 and 4 are in BP177 folder
wa2dak5 is in TS/itm folder
we were talking about the dakkon*.bcs files tbh and not the .itm files hoppy.
But ye u r right the .itm files do show up in bp folder. They r totally useless though unless they r linked to the dakkon bcs files else no upgrade. And tbh I just edited them with NI and I can't find a single mention in them about the dakkon*.bcs files. But then again im not a modder so they might be related somehow but beats me i can't understand how :S
Ye I never got a straight answer on this issue and it really bugs me much that I still don't know which version of the files to use to at least know for sure that the dialogue/romance/quest screwing will never take place again. But the even harder part is to make the damn blade upgrade itself in the hands of npcs too and at the same time have no fear of screwing your game :Saddendum: For clarification, I saw your posts from a couple years ago Radagast-the-Brown, regarding Dakkon's blade and am curious to get some insight into whether this item is going to screw dialogs/or quests. The discussion was in BP and they never seemed to answer your question at that time either. So the dialog bugginess is fixed but the extra NPC use is not?
Update/Edited :
I noticed that the TS-BP versions of the wa2dak*.itm files have an "extra" global property AI script that link themselves with the dakkon*.bcs files "allowing" them to upgrade themselves.(but I don't know if at the same time they change the NPC's override script thus ruining all the character's future banters, quests, romances etc[this was a bug in the past btw])
On the other hand, the bp1.77 versions of the wa2dak*.itm files seem to lack this global property. ( and thus no upgrade takes place I guess?) Could this be the reason no upgrade takes place? So which file of those is the bugged one and which isn't :S
Can someone shed light to this mystery?
Edited by Radagast-The-Brown, 23 August 2007 - 02:56 PM.
#11
Posted 23 August 2007 - 06:08 PM
"If you think that a size of the mod indicates an amount of bugs that it introduces and their severity you're totally wrong...
Try not to use next time a load of shitty "super-mega-improving-tweaking-revising" small mods that you have installed and try to meet Wulfgar once again." - King Diamond
The Definitive Guide to Trolls
"Finding food and a place to sleep is your own business. I imagine Paul the Cat should have some fun with you, too" - Potencius in The Darkest Day
"You have been warned, little bastard!" -Khelben to a young <CHARNAME>in Check the Bodies
There are those who will snivel, and offer nothing in return except criticism, meanwhile never lifting a finger to do other than to cut other peoples labor down simply for the fact that they lack the capability to put anything of their own together. -erebusant
#12
Posted 27 August 2007 - 12:31 AM
There are two options you have:
1. Search the TP2 file and extract a fix for this blade including all related files (items, scripts).
2. Make a doom installation of BG2 + BD-WeiDU 1.6.4 and pick the related files from the override.
This blade had been seriously bugged before I fixed it. The items were disconnected from the corresponding scripts. I introduced new GLOBALs to make it usable. I don't remember, but it seems to me I wrote new blocks into BALDUR.BCS to make it available for any NPCs. Please, check.
P.S. If I am not mistaken, the latest versions of TS include this fix, if not modified by another mod such as BP.
Edited by Vlad, 27 August 2007 - 12:41 AM.
#13
Posted 27 August 2007 - 07:20 AM
Did I say "Install BD-WeiDU 1.6.4"?
There are two options you have:
1. Search the TP2 file and extract a fix for this blade including all related files (items, scripts).
2. Make a doom installation of BG2 + BD-WeiDU 1.6.4 and pick the related files from the override.
This blade had been seriously bugged before I fixed it. The items were disconnected from the corresponding scripts. I introduced new GLOBALs to make it usable. I don't remember, but it seems to me I wrote new blocks into BALDUR.BCS to make it available for any NPCs. Please, check.
Ok thanx a lot for the insight to this mystery blade, so I guess Ill do some extracting/testing. Editing the baldur.bcs though seems quite hard for me
P.S. If I am not mistaken, the latest versions of TS include this fix, if not modified by another mod such as BP.
So what u r suggesting is that I can always get the files from the Ts-BP installation or only from the TS stand alone weidu installation? Cause I already have the TS-BP installed.
UPDATE : Edited1 :
I tried a vannila install of BG2+ baldurdash fixpack and all i got is a file wa2dak.item without a script or global effect to upgrade itself and without a reference not even in the baldur.bcs file. So I guess that the streaming blade files are exclusively from TS or BP and it has nothing to do with the original game along with baldurdash fixpack.
So not much I could do with this way --->>
2. Make a doom installation of BG2 + BD-WeiDU 1.6.4 and pick the related files from the override.
So ill just do some testing with the "1" way though it seems hard for a nonprogrammer.
UPDATE2 : Edited2 :
Meh after about 2-3 hours of extracting testing and lots of NI editing/changing stuff the results :
I installed baldurdash and TS v6.11 on a clean install and had a better look on the dakkon bcs files and wa2dak items. The baldur.bcs had nothing to do with those files and a NI bcs search found nothing about scripting except the dakkon bcs files.The wa2dak items had a global effect AI script (82) that linked each item with the corresponding upgrade dakkon*.bcs file.
Funny is these files are completely changed in a bp or mega mod install and no global effect exists in any of the items about AI scripts on my install either. So, i tried copying these "fixed" files in my override and the result was the identified name of the items was screwed up as well as the description of the items. So that way was in vain.
So all I could do was edit my own "updated" files in the megamod installation with NI and add the same global effect with the same characteristics on each item. I tried loading a save before getting the 14 to 15th mage level of kachiko to see if the 2nd version of the sword would upgrade. Nothing happened. I tried getting the item through cheating and THEN get the level up to see if it would upgrade on Kachiko. Still nothing. Whatever I tried it just never ever upgrades in the hands of Kachiko and I really don't know what else to try cause I've tried almost everything.
One of the item files that I updated : wa2dak2.ITM 650bytes 292 downloads
(this previous file has also some other global effects from some small mods but they have nothing to do with scripting)
The original TS itm file : WA2DAK2.ITM 602bytes 247 downloads
Any help appreciated cause no luck here with all the testing
Edited by Radagast-The-Brown, 27 August 2007 - 10:24 AM.
#14
Posted 27 August 2007 - 10:40 AM
IF you use the files from Tortured Souls for Big Picture 6.10 you get the following:
- Working weapon upgrades as all bcs-files are assigned to their corresponding items.
- Totally weird text instead of your normal item names and descriptions.
On the other hand you've got the option to use the files from Big Picture v177:
- No upgrades
- But normal item names and descriptions
The way I did it:
1) Complete your installation with BPv177+Worldmap
2)use your editor of choice (mine was Near Infinity, as its quite easy to use and if you backup your dialog.tlk etc. you should be fine)
3) Select wa2dak.itm and go to the EDIT tab
4) Add an Effect
5) change it from bonus to AC to Set AI script by clicking on the View/Edit button
6) Also in this in this new window you should change the following:
- Target type to TargetSelf so that this script checks your inventory for the item
- Script type to RACE in order to avoid conflict with romances
- Duration to Instant/While Equipped so that it only runs when you equip the katana
- Probability 1 to 100 so that this script is executed at all
- Resource to Dakkon1.bcs because without a script this effect wouldn't work at all.
7) Save changes
Repeat all everything from step 4) onward with the remaining itm-files for Dak'kons blade save the final version. Remember to use the next version of Dakkon*.bcs.
Regards 10th
"I grab his deceased spirit and piledrive it back into his body, duplicating raise dead." - Psyren Oots board
#15
Posted 27 August 2007 - 03:04 PM
After reading your posts about Dak'kons blade Radagast, I've looked at the files in question.
IF you use the files from Tortured Souls for Big Picture 6.10 you get the following:
- Working weapon upgrades as all bcs-files are assigned to their corresponding items.
- Totally weird text instead of your normal item names and descriptions.
On the other hand you've got the option to use the files from Big Picture v177:
- No upgrades
- But normal item names and descriptions
I totally agree. Same things here. Both ways have mistakes.
The way I did it:
1) Complete your installation with BPv177+Worldmap
2)use your editor of choice (mine was Near Infinity, as its quite easy to use and if you backup your dialog.tlk etc. you should be fine)
3) Select wa2dak.itm and go to the EDIT tab
4) Add an Effect
5) change it from bonus to AC to Set AI script by clicking on the View/Edit button
6) Also in this new window you should change the following:
- Target type to TargetSelf so that this script checks your inventory for the item
- Script type to RACE in order to avoid conflict with romances
- Duration to Instant/While Equipped so that it only runs when you equip the katana
- Probability 1 to 100 so that this script is executed at all
- Resource to Dakkon1.bcs because without a script this effect wouldn't work at all.
7) Save changes
Repeat all everything from step 4) onward with the remaining itm-files for Dak'kons blade save the final version. Remember to use the next version of Dakkon*.bcs.
Meh thanx a lot for the interest but I already did all those steps before my last post (I mention it there though without the details u just said). I already done this to all the files but still no upgrade takes place on Kachiko. Perhaps it would work on a new game or to another char but from my savegame and if Kachiko equips it nope. It doesnt work.
PS : A question about this block 10th just to make my checking/testing easier:
"
IF
CheckStatGT(Myself,9,LEVEL)
HasItem("wa2dak",Myself) // Dak'kon's Zerth Blade +2
"
Does this check take place
1)"during" the 9th level of the char and constantly
2)does it take place when the char levels up from 8 to 9 level
3)or does it take place when the char levels up from 9 to 10 level?
Also the "wait (100)" code what does it do exactly?
Edited by Radagast-The-Brown, 27 August 2007 - 04:52 PM.
#16
Posted 27 August 2007 - 10:49 PM
Could you please attach all the files you extracted from TS-BP related to the Blade (ITMs and BCSs) here? Also, please attach the TP2 of TS-BP v6.10 itself. I'll take a look.
P.S. 10th, I didn't understand did you eventually fix the problem?
Edited by Vlad, 27 August 2007 - 10:53 PM.
#17
Posted 28 August 2007 - 02:58 AM
Well, now I bethought. Baldurdash fixes the original BG2's Dakkon's Blade, which has never been supposed to be upgraded at different levels. I did introduce in TS this upgrade, that is why the correct files are in TS installation (doesn't matter stand-alone or TS-BP). Other mods, which meddled into fixing this Blade such as BP just bugged it instead. That is why if you install BP after TS then you'll get the Blade bugged again. Wrong strings in description after you move files from one installation to another or directly from the archive to your override shouldn't pose any problem. It's normal because you doesn't add new description strings to your dialog.tlk this way. You may edit your dialog.tlk with DLTCEP. Just extract the description from TP2 of TS and add new strings manually in DLTCEP followed by updating the ITM file in NI with the new string number.
Could you please attach all the files you extracted from TS-BP related to the Blade (ITMs and BCSs) here? Also, please attach the TP2 of TS-BP v6.10 itself. I'll take a look.
Thnx a lot for the feedback here are the TS-BP files.
wa2dak.ITM 602bytes 250 downloads dakkon1.BCS 530bytes 286 downloads
wa2dak2.ITM 602bytes 250 downloads dakkon2.BCS 659bytes 276 downloads
wa2dak3.ITM 602bytes 261 downloads dakkon3.BCS 660bytes 275 downloads
wa2dak4.ITM 650bytes 236 downloads dakkon4.BCS 660bytes 258 downloads
wa2dak5.ITM 650bytes 254 downloads
as well as the tp2 file from TS-BP : Setup_TS_BP.tp2 82.46K 314 downloads
PS : I still wonder though if those files would work for Kachiko or not.In my install it never seems to work on her.
#18
Posted 28 August 2007 - 04:02 AM
- Script type to RACE in order to avoid conflict with romances
- Duration to Instant/While Equipped so that it only runs when you equip the katana
I'm not sure about these two. I hope KD knew what he did. I'll check this in the evening. May be the best solution is to simply EXTEND the scripts of all the NPCs with the corresponding block.
#19
Posted 28 August 2007 - 10:02 AM
IF
CheckStatGT(Myself,9,LEVEL)
HasItem("wa2dak",Myself) // Dak'kon's Zerth Blade +2
"
Does this check take place
1)"during" the 9th level of the char and constantly
2)does it take place when the char levels up from 8 to 9 level
3)or does it take place when the char levels up from 9 to 10 level?
Also the "wait (100)" code what does it do exactly?
Unless I am babbling and sprouting nonsense It should work the like that:
You equip the blade. As a result of the Duration of Instant/While Equipped the script runs once and checks your level. If you meet the minimum requirement it upgrades itself. If not it does nothing and you have to re-equip the blade if you meet it.
Concerning wait(100):
Straight from IESDP:
Wait(I:Time*)
Is used to create a delay into the object running the script. The time is in seconds.
Therefore this means that there is a wait time of 100 seconds at the end of the script.
@Vlad
Yes, after changing the files modified by BPv177 and assigning the bcs-files manually I got it to work. And like I said the upgrading process also works with the TS-BP files, but I didn't like the weird item descriptions.
To test it I started a new Throne of Bhaal game in order to get the most weapon upgrades. After waking up in the pocket plane I CLUAConsoled Dak'kons Zerth Blade and let Valygar equip it. After a few seconds it was removed from the weapon slot and the first version of Dak'kons Streaming Blade was added to his inventory. Some equips and re-equips later Valygar finally had wa2dak4 in his hands.
I almost forgot to mention that I did one other thing:
I changed the three zeros in GiveItemCreate to 1,0,0 for all dakkon*.bcs-files
But some time after that I biffed my override folder and if I now look at those bcs-files for Dak'kons Blade in Near Infinity it has reverted to 0,0,0. Therefore that couldn't be source of error.
10th
Edited by 10th, 28 August 2007 - 10:06 AM.
"I grab his deceased spirit and piledrive it back into his body, duplicating raise dead." - Psyren Oots board
#20
Posted 28 August 2007 - 11:07 AM
It all seems so clear to me now...
After all that testing it proved that the blade upgrades in the hands of Drizzt, Yoshimo or whoever equips it BUT there is a high drawback on that. Since I must have used the "BUGGED" blade in most of the time in my installation and not the TS-bp version and I wielded it on Kachiko, it seems that her entire scripting, romance, dialogues, and quests are 90% screwed up forever (an old bug that yes it haunts me again ffs!!-no wonder she never anymore speaks with Yoshimo last ingame weeks...), and thus as a result the blade will never ever work on her unless I make a new install from the beginning. I even doubt that I'll be able to do the karatur quests....... no comments...
PS1 : Vlad, Seanas, bp staff plz guys all I can ask is to do me the favor and include this fix in your next bp1.77 installation patch cause it seems that this is a never ending bug and Kachiko gets screwed up on 90% of the times... It also happened to me 2-3 years ago and ye it now haunts me again, making me getting rid of one of the best npcs I love or restarting the game while I was finishing whole chapter 2+ mods...
PS2: 10th, Vlad thanx anyway for all the help and time u spent with me but seems the problem is nonsolvable anymore for me and the npc is screwed for life...At least lets hope no more people in the future get the same problem...