Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Nov 2017
Location: Australia
Raal Offline OP
stranger
OP Offline
stranger
Joined: Nov 2017
Location: Australia
Been messing with this for most of the night :(, not seeming to fire.

I ran the checks to ensure _GLOBAL_Subregions goal has initialized prior to the execution of the story goal.

Quote
DB_Subregion(TRIGGERGUID_DTD_JadensPlot_SubRegionTrigger_a06d4a1c-b3a3-4460-92f3-a868f35c0e06, "DTD_JadensPlot_SubRegionString", 0);


But still no dice =/.

I've attached the story log below in case that helps see what the potential problem is?

Quote

exec INIT section of goal "DTD_TriggerRegistration" (#192):
1--> DB_Subregion( (TRIGGERGUID)TRIGGERGUID_DTD_JadensPlot_SubRegionTrigger_a06d4a1c-b3a3-4460-92f3-a868f35c0e06, "DTD_JadensPlot_SubRegionString", 0 ) [add fact]

1--> RuleActionPart of THEN at line 15462 fires. Rule variables: (GUIDSTRING)(TRIGGERGUID)TRIGGERGUID_DTD_JadensPlot_SubRegionTrigger_a06d4a1c-b3a3-4460-92f3-a868f35c0e06, (STRING)(undef value), (INTEGER)(undef value)
2----> ProcTriggerRegisterForPlayers( (GUIDSTRING)(TRIGGERGUID)TRIGGERGUID_DTD_JadensPlot_SubRegionTrigger_a06d4a1c-b3a3-4460-92f3-a868f35c0e06 ) [Osiris procedure call]
exec [DIV query] GetRegion( (GUIDSTRING)(TRIGGERGUID)TRIGGERGUID_DTD_JadensPlot_SubRegionTrigger_a06d4a1c-b3a3-4460-92f3-a868f35c0e06, [out] (STRING)(undef value) )
Query returns: GetRegion( (TRIGGERGUID)TRIGGERGUID_DTD_JadensPlot_SubRegionTrigger_a06d4a1c-b3a3-4460-92f3-a868f35c0e06, "JadensPlot" )

2----> RuleActionPart of THEN at line 5305 fires. Rule variables: (GUIDSTRING)(TRIGGERGUID)TRIGGERGUID_DTD_JadensPlot_SubRegionTrigger_a06d4a1c-b3a3-4460-92f3-a868f35c0e06, (STRING)"JadensPlot"
3------> DB_PlayerTriggers( (STRING)"JadensPlot", (GUIDSTRING)(TRIGGERGUID)TRIGGERGUID_DTD_JadensPlot_SubRegionTrigger_a06d4a1c-b3a3-4460-92f3-a868f35c0e06 ) [add fact]
3------> ProcDoTriggerRegisterForPlayers( (STRING)"JadensPlot", (GUIDSTRING)(TRIGGERGUID)TRIGGERGUID_DTD_JadensPlot_SubRegionTrigger_a06d4a1c-b3a3-4460-92f3-a868f35c0e06 ) [Osiris procedure call]
exec [DIV query] ObjectExists( (GUIDSTRING)(TRIGGERGUID)TRIGGERGUID_DTD_JadensPlot_SubRegionTrigger_a06d4a1c-b3a3-4460-92f3-a868f35c0e06, [out] (INTEGER)0 )
Query returns: ObjectExists( (TRIGGERGUID)TRIGGERGUID_DTD_JadensPlot_SubRegionTrigger_a06d4a1c-b3a3-4460-92f3-a868f35c0e06, 1 )

3------> RuleActionPart of THEN at line 5320 fires. Rule variables: (STRING)"JadensPlot", (GUIDSTRING)(TRIGGERGUID)TRIGGERGUID_DTD_JadensPlot_SubRegionTrigger_a06d4a1c-b3a3-4460-92f3-a868f35c0e06
4--------> TriggerRegisterForPlayers( (GUIDSTRING)(TRIGGERGUID)TRIGGERGUID_DTD_JadensPlot_SubRegionTrigger_a06d4a1c-b3a3-4460-92f3-a868f35c0e06 ) [DIV call]
3------> [end of rule action part]

2----> [end of rule action part]

1--> [end of rule action part]

exec INIT section of goal "DTD_TriggerRegistration" (#192) END

Joined: Mar 2016
Location: Belgium
T
addict
Offline
addict
T
Joined: Mar 2016
Location: Belgium
What do you mean by "not seeming to fire"? You don't get CharacterEnteredTrigger events for your subregion triggers? If the issue is that you don't get the "sign" near the top of the screen that you entered the subregion: that's because the last parameter of your DB_Subregion() fact definition is 0 instead of 1. 0 means "don't show anything when entering", 1 means "show a sign when entering using the translated string with the specified key".

Joined: Dec 2013
old hand
Offline
old hand
Joined: Dec 2013
Originally Posted by Tinkerer
What do you mean by "not seeming to fire"? You don't get CharacterEnteredTrigger events for your subregion triggers? If the issue is that you don't get the "sign" near the top of the screen that you entered the subregion: that's because the last parameter of your DB_Subregion() fact definition is 0 instead of 1. 0 means "don't show anything when entering", 1 means "show a sign when entering using the translated string with the specified key".


Really? I thought those markers were the flag map markers on the player map. My UI notifications all appear with the floating banner when using 0 in the DB assignment. For instance, this gives me the "Iolo's Hut" banner when entering the region:

DB_Subregion(TRIGGERGUID_TRG_Moon_Iolo_hut_09b43f5f-278c-409a-9aaa-bf31b7364538, "LVL_SUB_IOLOS_HUT", 0);



DOS2 Mods: Happily Emmie After and The Noisy Crypt

Steam Workshop
Nexus Mods
Joined: Dec 2013
old hand
Offline
old hand
Joined: Dec 2013
Have you tried running this in game as well as the editor? Keep in mind some timing issues when running in the editor that can possibly trip you up.

For example, if your character is loaded into a level that is inside a subregion notification trigger, then you won't see it when running in the editor. This is because Osiris is actually executing story frames from the time you load your project, well before you hit the game client play button. By the time you load a level and start testing it, the player may have already entered the trigger and you lost the opportunity to see the UI notification.

For instance, just open your project and the level in question here and then open the story log generated before you ever test the level. If the character was loaded into the level inside the trigger that generates the subregion notification, you will see a "CharacterEnteredTrigger" event for that trigger before you even hit the play button. Because of this, you have missed the opportunity to see the UI notification because the player has already triggered the event and Osiris handled what it could at the time but some things will not happen while the game client side is not running.

I know this has tripped me up a couple of times in different ways and just wanted to point it out in case - not sure if it's related or not.

Last edited by Windemere; 28/11/17 08:07 PM.

DOS2 Mods: Happily Emmie After and The Noisy Crypt

Steam Workshop
Nexus Mods
Joined: Mar 2016
Location: Belgium
T
addict
Offline
addict
T
Joined: Mar 2016
Location: Belgium
Originally Posted by Windemere
Originally Posted by Tinkerer
What do you mean by "not seeming to fire"? You don't get CharacterEnteredTrigger events for your subregion triggers? If the issue is that you don't get the "sign" near the top of the screen that you entered the subregion: that's because the last parameter of your DB_Subregion() fact definition is 0 instead of 1. 0 means "don't show anything when entering", 1 means "show a sign when entering using the translated string with the specified key".


Really? I thought those markers were the flag map markers on the player map.


Oops, you're right! I was too quick drawing conclusions from a cursory look at the scripting. My bad.

Joined: Nov 2017
Location: Australia
Raal Offline OP
stranger
OP Offline
stranger
Joined: Nov 2017
Location: Australia
Thanks guys smile.

I'm gonna run some more tests in game and in other levels too.

I think the main cause of the issues I'm getting with journal (crashing on load), and other triggers not acting as intended (sub-regions) might be due to all the messing around / learning I did with character models and other pieces in the level.

e.g. Am not getting this auto-generated character model showing up (when I press T key on new level). I noticed this model doesn't show up in the World Outliner either.

[Linked Image]

Will start again, copying over map to new level and do some tests on sub-regions and journal entries.

Originally Posted by Tinkerer

What do you mean by "not seeming to fire"? You don't get CharacterEnteredTrigger events for your subregion triggers?


Apologies, week 2 and still learning the terms in engine smile. Better wording would have been - "Didn't do what I was expecting".

Will take feedback, test again with fresh level and see if the problem persists.

Thanks! smile


Last edited by Raal; 29/11/17 01:56 AM.

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5