Jump to content


Photo

BG1 NPC Project


  • Please log in to reply
26 replies to this topic

#1 danemanuelk

danemanuelk
  • Member
  • 136 posts

Posted 19 September 2009 - 12:19 AM

I think I found another problem with NPC Project for me. I have Kivan in my party and one of his quest is supposed to trigger in area with Lighthouse in the night. Is suppose to find at coordinate 3417 974 at night a sea Elf, but not appear :(. I have install BWP 8.0.1 and in this NPC Project is ver 17. Please Help

#2 OneEyedPhoenix

OneEyedPhoenix
  • Member
  • 308 posts

Posted 19 September 2009 - 12:22 AM

Change log please.
This quest fired correctly in my game with the same BG1NPC version.

#3 danemanuelk

danemanuelk
  • Member
  • 136 posts

Posted 19 September 2009 - 12:29 AM

Thanks for Help OneEyedPhoenix but for what file I need to make a change log ?

#4 Lollorian

Lollorian

    smiley addict

  • Member
  • 4150 posts

Posted 19 September 2009 - 12:40 AM

As always, run the attached thing ;) The file is AR9200.bcs btw :P Search for "SeaWitchChangelog.txt" :D

Cheers,
Lol

Attached Files


"I am the smiley addict, yellow and round, this is my grin :D when I'm usually around :P.
When there's trouble brewing, see me post, cuz it's usually a wall o' yellow and your eyes are toast!!!"

BWP GUIDE - BWP FIXES - impFAQ - NPC LIST - KIT LIST - AREA LIST

GitHub Links : BWP Fixpack | Lolfixer | BWP Trimpack | RezMod


#5 danemanuelk

danemanuelk
  • Member
  • 136 posts

Posted 19 September 2009 - 12:49 AM

Thanks Lollorian :D

[WeiDU.exe] WeiDU version 21100
[WeiDU.exe] Using scripting style "BG2"



Mods affecting AR9200.BCS:
00000: /* from game biffs */ ~SETUP-DSOTSC.TP2~ 0 0 // DSotSC for BGT-Weidu
00001: /* from game biffs */ ~BG1NPC.TP2~ 0 1 // The BG1 NPC Project: Banters, Quests, and Interjections
00002: ~HAIASS/SETUP-HAIASS.TP2~ 0 0 // Haiass the Wolf

#6 OneEyedPhoenix

OneEyedPhoenix
  • Member
  • 308 posts

Posted 19 September 2009 - 01:08 AM

Thanks Lollorian :D

[WeiDU.exe] WeiDU version 21100
[WeiDU.exe] Using scripting style "BG2"



Mods affecting AR9200.BCS:
00000: /* from game biffs */ ~SETUP-DSOTSC.TP2~ 0 0 // DSotSC for BGT-Weidu
00001: /* from game biffs */ ~BG1NPC.TP2~ 0 1 // The BG1 NPC Project: Banters, Quests, and Interjections
00002: ~HAIASS/SETUP-HAIASS.TP2~ 0 0 // Haiass the Wolf


Nothing overly helpfull there...
Open ar9200.bcs with near Infinity and check that it has the following code in there somewhere:

IF	!Global("endofbg1","GLOBAL",2)	Global("X#KivanSea","GLOBAL",0)	TimeOfDay(NIGHT)	InParty("kivan")	Global("X#SeasnakeExist","AR9200",0)THEN	RESPONSE #100		SetGlobal("X#SeasnakeExist","AR9200",1)		CreateCreature("X#SEASN",[3417.974],3) // Jozzi Seasnake - SeasnakeEND

Alternately you could type the following in your clua console:
CLUAConsole:GetGlobal("X#SeasnakeExist","GLOBAL")

If this doesn't report a value then the script hasn't fired for some reason.

#7 Miloch

Miloch

    Barbarian

  • Modder
  • 6579 posts

Posted 19 September 2009 - 01:11 AM

It should trigger if it's night and Kivan's in your party and isn't dead or anything like that. (And no, it isn't DS or Haiass causing any problems.)

Might want to attach your actual ar9200.bcs (decompile to .baf if you know how to do that with NearInfinity, DLTCEP or WeiDU - otherwise just attach as-is). I'm assuming also you're using the regular BG1 Kivan (with a scripting name/death variable of "Kivan") and not some weird modded version.

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#8 danemanuelk

danemanuelk
  • Member
  • 136 posts

Posted 19 September 2009 - 01:16 AM

My script from ar9200.bcs is:

IF
Global("DSitems","AR9200",0)
THEN
RESPONSE #100
ActionOverride("Container 1",CreateItem("DSWAND01",0,0,0)) // Ettin's Wand
ActionOverride("Container 1",CreateItem("DSSWD07",0,0,0)) // Deceiver's Blade
SetGlobal("DSitems","AR9200",1)
Continue()
END

IF
!Global("endofbg1","GLOBAL",2)
Global("X#KivanSea","GLOBAL",0)
TimeOfDay(NIGHT)
InParty("kivan")
Global("X#SeasnakeExist","AR9200",0)
THEN
RESPONSE #100
SetGlobal("X#SeasnakeExist","AR9200",1)
CreateCreature("X#SEASN",[3417.974],3) // Jozzi Seasnake - Seasnake
END

IF
!Global("endofbg1","GLOBAL",2)
Global("X#KivanSea","GLOBAL",7)
Global("X#SeaElfTreasure","AR9200",0)
THEN
RESPONSE #100
SetGlobal("X#SeaElfTreasure","AR9200",1)
ActionOverride("Container1",CreateItem("AMUL11",0,0,0)) // Pearl Necklace
ActionOverride("Container1",CreateItem("DAGG11",0,0,0)) // Boomerang Dagger +2
END

IF
!Global("endofbg1","GLOBAL",2)
InParty("kivan")
Global("X#KivanSea","GLOBAL",2)
THEN
RESPONSE #100
ClearAllActions()
SetGlobal("X#KivanSea","GLOBAL",3)
StartCutSceneMode()
StartCutScene("X#KISE1")
END

IF
Global("HaiassJumpOn","GLOBAL",1)
Global("HaiassSeUne","GLOBAL",1)
!InActiveArea("haiass")
!See("haiass")
!Dead("haiass")
THEN
RESPONSE #100
MoveGlobalObject("haiass",Protagonist)
END

#9 OneEyedPhoenix

OneEyedPhoenix
  • Member
  • 308 posts

Posted 19 September 2009 - 01:25 AM

Looks correct.
Try the CLUAConsole:GetGlobal("X#SeasnakeExist","GLOBAL") so we can see if the script has fired or not.

#10 danemanuelk

danemanuelk
  • Member
  • 136 posts

Posted 19 September 2009 - 01:25 AM

Thanks MILOCH :)

First I have Kivan in my party and is not death and was night when I search for sea elf (for three times). No I don't use some weird modded version I use BWP Tactics - just that.

Attached Files



#11 danemanuelk

danemanuelk
  • Member
  • 136 posts

Posted 19 September 2009 - 01:31 AM

OK OneEyedPhoenix I use CLUAConsole:GetGlobal("X#SeasnakeExist","GLOBAL") and the response was GLOBAL:SEASNAKEEXIST GLOBALDoes not exist. What this means? :(

#12 Miloch

Miloch

    Barbarian

  • Modder
  • 6579 posts

Posted 19 September 2009 - 01:42 AM

I use CLUAConsole:GetGlobal("X#SeasnakeExist","GLOBAL") and the response was GLOBAL:SEASNAKEEXIST GLOBALDoes not exist. What this means?

Well, it doesn't mean much because it's not a GLOBAL, it's an area variable. Try GetGlobal("X#SeasnakeExist","AR9200") and GetGlobal("X#KivanSea","GLOBAL").

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#13 OneEyedPhoenix

OneEyedPhoenix
  • Member
  • 308 posts

Posted 19 September 2009 - 02:01 AM

Well, it doesn't mean much because it's not a GLOBAL, it's an area variable. Try GetGlobal("X#SeasnakeExist","AR9200") and GetGlobal("X#KivanSea","GLOBAL").


Correct. I overlooked this.

#14 danemanuelk

danemanuelk
  • Member
  • 136 posts

Posted 19 September 2009 - 02:03 AM

OK Miloch

First I try GetGlobal("X#SeasnakeExist","AR9200") and response was GLOBAL:X#SEASNAKEEXIST AR9200

and second I try GetGlobal("X#KivanSea","GLOBAL") and response was GLOBAL:X#KIVANSEA GLOBALDoes not exist.


PLEASE explain me in normal terms :D what this means?

#15 OneEyedPhoenix

OneEyedPhoenix
  • Member
  • 308 posts

Posted 19 September 2009 - 02:08 AM

OK Miloch

First I try GetGlobal("X#SeasnakeExist","AR9200") and response was GLOBAL:X#SEASNAKEEXIST AR9200

and second I try GetGlobal("X#KivanSea","GLOBAL") and response was GLOBAL:X#KIVANSEA GLOBALDoes not exist.


PLEASE explain me in normal terms :D what this means?


It sounds like the first part of the script fired, but because you never found the elf the rest never could.
Just checking... does X#SEASN.cre exist in your game?

#16 danemanuelk

danemanuelk
  • Member
  • 136 posts

Posted 19 September 2009 - 02:26 AM

I have many X#SEASN.cre in my game .... witch of it is responsible ?


There is a CLUA command to force sea elf appear ?

Attached Images

  • X_seans.JPG

Edited by danemanuelk, 19 September 2009 - 02:28 AM.


#17 Miloch

Miloch

    Barbarian

  • Modder
  • 6579 posts

Posted 19 September 2009 - 02:33 AM

First I try GetGlobal("X#SeasnakeExist","AR9200") and response was GLOBAL:X#SEASNAKEEXIST AR9200

This is not a valid return. You should get either "GLOBAL: X#SEASNAKEEXIST AR9200Does not exist" if it hasn't been set or "GLOBAL: X#SEASNAKEEXIST AR9200 set to 1" (or whatever value) if it has. Maybe you cut off part of the text?

and second I try GetGlobal("X#KivanSea","GLOBAL") and response was GLOBAL:X#KIVANSEA GLOBALDoes not exist.

This means it hasn't been set yet, which is as it should be.

If the other variable also hasn't been set, then it means the creature hasn't been created, and therefore that either Kivan isn't in your party or it isn't night. If it is set to 1, then the creature has been created and you just haven't found it somehow.

I guess you might as well do a GetGlobal("endofbg1","GLOBAL") too, though I don't know why that would be set to anything (though if it is somehow, it could explain a lot of your problems).

Edit: If you just want to force it, go to those coordinates and enter CLUAConsole:CreateCreature("x#seasn").

Edited by Miloch, 19 September 2009 - 02:36 AM.

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#18 danemanuelk

danemanuelk
  • Member
  • 136 posts

Posted 19 September 2009 - 02:44 AM

OK I recheck GetGlobal("X#SeasnakeExist","AR9200") and was the same response GLOBAL:X#SEASNAKEEXIST AR9200. Is entire response I don't cut any part of text. I made a print screen you cud see.

I try GetGlobal("endofbg1","GLOBAL") too and response was Global:ENDOFBG1 GLOBALDoes not exist.

Attached Images

  • KIVAN.JPG


#19 Miloch

Miloch

    Barbarian

  • Modder
  • 6579 posts

Posted 19 September 2009 - 02:59 AM

Ah. Well the problem may be you're looking in the wrong area... should be AR9200 (Shipwreck's Coast) not Lighthouse or wherever :D.

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#20 danemanuelk

danemanuelk
  • Member
  • 136 posts

Posted 19 September 2009 - 03:03 AM

OH sorry I feel stupid I waste your time .... I will be more careful in future ... I hope :whistling:

SORRY again Miloch Lollorian and OneEyedPhoenix my apologies :mellow:

Edited by danemanuelk, 19 September 2009 - 03:26 AM.