Larian Banner
Previous Thread
Next Thread
Print Thread
Osiris/Shared/DB CheckPoint #635033
01/11/17 04:40 PM
01/11/17 04:40 PM
Joined: Sep 2017
Posts: 159
M
monzua Offline OP
member
monzua  Offline OP
member
M

Joined: Sep 2017
Posts: 159
Hi when i define:

DB_CheckPoint(CHARACTERGUID_Humans_Female_Paladin_001_f47bc11c-9edd-4fac-adc3-833c317ce663,CHARACTERGUID_Humans_Female_Paladin_007_5dbc35fa-0f9a-477e-ac7f-71c531193b60,TRIGGERGUID_EventTrigger_007_38bb0110-2c6a-4da9-8bac-f2c430212f81,TRIGGERGUID_EventTrigger_005_985b5429-c7cf-49f0-ad1e-45286cb26d15,TRIGGERGUID_EventTrigger_006_7992db29-aef5-4628-aa82-d98f4dc3e65c,"ZugangPaladin");


based on wiki I should add "SneakTriggerSpotter" script but there is no such script available and the other Spotter scripts dont seem to work. I defined DB_CheckPoint within INIT.


Any Idea?

Re: Osiris/Shared/DB CheckPoint [Re: monzua] #635378
03/11/17 12:19 PM
03/11/17 12:19 PM
Joined: Mar 2016
Posts: 506
Belgium
T
Tinkerer Online content

addict
Tinkerer  Online Content

addict
T

Joined: Mar 2016
Posts: 506
Belgium
I've fixed the name of the character script you have to use, it is GLO_SneakSpotter.

However, I just noticed that the GLO_Checkpoints story file, which defines this functionality, is in the DivinityOrigins mod rather than in the shared mod :| That's really too bad, because there is nothing specific to the DivinityOrigins campaign about it. I guess your mod only depends on Shared? In that case, I would suggest you open the DivinityOrigins mod, copy the contents of that goal, and then add it to a goal in your own mod. Keep in mind that this goal must be initialised before any other goal that defines DB_CheckPoint() facts gets activated, so best name it _GLO_Checkpoints or so.

I will add that to the wiki page.

Re: Osiris/Shared/DB CheckPoint [Re: monzua] #635416
03/11/17 02:03 PM
03/11/17 02:03 PM
Joined: Sep 2017
Posts: 159
M
monzua Offline OP
member
monzua  Offline OP
member
M

Joined: Sep 2017
Posts: 159
If I copy and place as suggested I get following Errors (and yes indeed I only use Shared) :



I tried alot - wasnt able to fix it. Any idea?

Last edited by monzua; 03/11/17 02:05 PM.
Re: Osiris/Shared/DB CheckPoint [Re: monzua] #635422
03/11/17 02:52 PM
03/11/17 02:52 PM
Joined: Mar 2016
Posts: 506
Belgium
T
Tinkerer Online content

addict
Tinkerer  Online Content

addict
T

Joined: Mar 2016
Posts: 506
Belgium
Does it work if in your GLO_Checkpoints goal you replace the first IF with
Code:
IF
DB_CheckPoint((CHARACTERGUID)_Guard1, (CHARACTERGUID)_Guard2, (TRIGGERGUID)_Trigger1, (TRIGGERGUID)_Trigger2, (TRIGGERGUID)_Trigger3, (STRING)_Flag)

?

Re: Osiris/Shared/DB CheckPoint [Re: monzua] #635439
03/11/17 04:14 PM
03/11/17 04:14 PM
Joined: Sep 2017
Posts: 159
M
monzua Offline OP
member
monzua  Offline OP
member
M

Joined: Sep 2017
Posts: 159
Thanks for your help!

Alot better, only one more to fix:



Line: 62 & 80

-> I had this kind of error in some other situations too were I didnt understand why it ocurred at all. So giving me advice on this would be very appriciated because thats not the first time I Encounter this kind of bug "Osiris fact XXX does not start with "DB_"


Last edited by monzua; 03/11/17 04:22 PM.
Re: Osiris/Shared/DB CheckPoint [Re: monzua] #635726
05/11/17 04:12 PM
05/11/17 04:12 PM
Joined: Mar 2016
Posts: 506
Belgium
T
Tinkerer Online content

addict
Tinkerer  Online Content

addict
T

Joined: Mar 2016
Posts: 506
Belgium
In general, the error means that you are trying to call a proc or a query that is nowhere defined. When that happens, Osiris assumed you want to defined a database with that name, but it refuses to allow you to do so if the name does not start with DB_ (exactly to prevent you from mistyping names and then not getting any error).

In this particular case, it's because I made an error in the description of DB_CheckPoint: the guards don't automatically start a dialog, but instead PROC_CheckPointDialogue(_Player, _Guard) is called. See the updated https://docs.larian.game/Osiris/Shared/DB_CheckPoint for more information.

Since there is no definition of PROC_CheckPointDialogue in your mod, you get the error above. Implement it as described on the updated wiki page, and it should (finally) work fine.

Re: Osiris/Shared/DB CheckPoint [Re: monzua] #635758
05/11/17 08:50 PM
05/11/17 08:50 PM
Joined: Sep 2017
Posts: 159
M
monzua Offline OP
member
monzua  Offline OP
member
M

Joined: Sep 2017
Posts: 159
Hi, yes it works but: You might want to add to the wiki that in order for the guard to react on the trespassing the character needs to have script "CRIME_HumanReactions" assigned.

In addition for all who dont know how to "You have to overload and implement this routine" works. Just define the PROC before PROC_CheckPointDialogue(_Player, _Guard) is called in _GLO_Chechpoints like this:

PROC
PROC_CheckPointDialogue((CHARACTERGUID)_Player, CHARACTERGUID_S_RC_MIL_GuardWolf2_c55778a5-fa1f-484d-86d2-dc625d51ca59)
THEN
Proc_StartDialog(0, "RC_MIL_LastWarning", CHARACTERGUID_S_RC_MIL_GuardWolf2_c55778a5-fa1f-484d-86d2-dc625d51ca59, _Player);

Thanks again Trinkerer!

Last edited by monzua; 05/11/17 08:54 PM.

Moderated by  Dom_Larian, Larian_Koala 

Powered by UBB.threads™ PHP Forum Software 7.6.2