Jump to content


Photo

Conversation sometimes not starting


  • Please log in to reply
12 replies to this topic

#1 Kexikus

Kexikus

    Jedi Master

  • Members
  • PipPipPipPipPip
  • 1,561 posts

Posted 14 April 2018 - 07:08 PM

While testing the Xor encounter for my dark side Juhani quest, I noticed that sometimes the final dialog won't start after fighting Xor. I haven't changed that behaviour so I guess it's a vanilla bug but if possible I'd like to fix it. The problem is that I have no idea why it's failing. My testing was done on Manaan where it worked most of the time but also failed a few times.

 

The dialog is started from Xors (kas_xor1.utc) OnUserDefine script (k_kas_xor_user). Here's the decompiled version:

 

Spoiler

 

My first guess was that the difference is whether his henchmen die before he goes under 20 HP or not but I tried killing them first multiple times and got both the desired dialog start and the bug. My only guess would be that ActionStartConversation somehow fails, but I don't really see why it would.

 

Anyone here with better ideas?



#2 newbiemodder

newbiemodder

    Jedi Apprentice

  • Members
  • PipPip
  • 38 posts

Posted 14 April 2018 - 10:31 PM

I was always kind of a hack scripter, piecing together scripts from examples from existing tbreads. I don't know a lot. However, when faced with a similar problem, I would start each dialog firing script with, if I recall correctly, AClearallAction, ClearallCommands entry.

And/or i would put a delay of 2-3 seconds on the start dialog.
Who's more foolish, the fool or the fool that follows?

Just exactly what is a head-piece to the Staff of Ra?

#3 Salk

Salk

    Jedi Master

  • Members
  • PipPipPipPipPip
  • 421 posts

Posted 15 April 2018 - 04:11 AM

Kexikus,

 

if you don't mind giving it a try, I would check whether the bug still occurs after commenting out the ClearAllActions() in the script.



#4 Kexikus

Kexikus

    Jedi Master

  • Members
  • PipPipPipPipPip
  • 1,561 posts

Posted 15 April 2018 - 09:14 AM

I was always kind of a hack scripter, piecing together scripts from examples from existing tbreads. I don't know a lot. However, when faced with a similar problem, I would start each dialog firing script with, if I recall correctly, AClearallAction, ClearallCommands entry.

And/or i would put a delay of 2-3 seconds on the start dialog.

 

ClearAllActions is already in, ClearAllCommands doesn't exist. And there is a delay already. Increasing that might work though.

 

Kexikus,

 

if you don't mind giving it a try, I would check whether the bug still occurs after commenting out the ClearAllActions() in the script.

 

Didn't work but thanks for the suggestion.

 

I think I'm just going to leave this as it is. I've played that encounter around 15 times and the issue occured only 2 times or so which makes testing really annoying and also isn't that often, so I guess it doesn't really matter either. But if anyone has some more ideas, please let me know and I'll give them a shot.



#5 Salk

Salk

    Jedi Master

  • Members
  • PipPipPipPipPip
  • 421 posts

Posted 15 April 2018 - 09:26 AM

Sorry it didn't help.

 

I was having similar issues with script modding in the Infinity Engine (Baldur's Gate) and ClearAllActions() inhibited sometimes other actions in the same script block. I must say I never experienced that bug myself. The only issue I addressed in the now defunct project of mine was when Xor would not appear if not using the rapid transit system.



#6 Kexikus

Kexikus

    Jedi Master

  • Members
  • PipPipPipPipPip
  • 1,561 posts

Posted 15 April 2018 - 09:38 AM

The only issue I addressed in the now defunct project of mine was when Xor would not appear if using the rapid transit system.

 

That's an issue? Never encountered that myself. All I know is that the second Xor encounter doesn't work on Tatooine. Could you tell me more about that bug?



#7 Salk

Salk

    Jedi Master

  • Members
  • PipPipPipPipPip
  • 421 posts

Posted 15 April 2018 - 01:59 PM

Well, first of all. I had recreated the whole ambush on Tatooine in SW: KotOR Upgrade... There is an image of it here, in case you are interested. This and much more will never be released but such was its destiny, it seems... ;)

 

Many years ago Darth333 had figured that in some cases the second Xor encounter would not start unless the party was using the rapid transit system and came with a fix for it, making a few changes to k_sup_gohawk.ncs (source file is available).



#8 JCarter426

JCarter426

    Jedi Master

  • M478_Staff
  • 410 posts

Posted 15 April 2018 - 02:27 PM

Are you sure the global is being properly set to 1? I've heard of that being a problem before. I'm assuming that's meant to happen when all the henchmen die and Xor's health is below a certain amount.

 

If it's not that, then I would guess the problem is in his heartbeat script rather than anything there, since the user defined script only ever fires from that. You could probably ignore the problem entirely and simply fire the dialogue from his heartbeat script, too.



#9 N-DReW25

N-DReW25

    GenoHaradan Legacy Developer

  • Members
  • PipPipPipPipPip
  • 899 posts
  • LocationSuper Secret GenoHaradan Base

Posted 15 April 2018 - 02:40 PM

Well, first of all. I had recreated the whole ambush on Tatooine in SW: KotOR Upgrade... There is an image of it here, in case you are interested. This and much more will never be released but such was its destiny, it seems... ;)

Now that alone would make a great stand-alone mod. A shame it got cancelled.



#10 Kexikus

Kexikus

    Jedi Master

  • Members
  • PipPipPipPipPip
  • 1,561 posts

Posted 15 April 2018 - 03:43 PM

Many years ago Darth333 had figured that in some cases the second Xor encounter would not start unless the party was using the rapid transit system and came with a fix for it, making a few changes to k_sup_gohawk.ncs (source file is available).

 

Do you have a link for that?

 

Are you sure the global is being properly set to 1? I've heard of that being a problem before. I'm assuming that's meant to happen when all the henchmen die and Xor's health is below a certain amount.

 

If it's not that, then I would guess the problem is in his heartbeat script rather than anything there, since the user defined script only ever fires from that. You could probably ignore the problem entirely and simply fire the dialogue from his heartbeat script, too.

 

Yeah, that global is set to 1 when the encounter starts. But I don't actually know when that case is actually used. Do you happen to know what each of the UserDefinedEvent numbers are?

 

I don't think the issue is in the heartbeat script though as that's just the default heartbeat script.



#11 JCarter426

JCarter426

    Jedi Master

  • M478_Staff
  • 410 posts

Posted 15 April 2018 - 04:12 PM

Oh, my mistake. I assumed it was using an event fired from heartbeat but it's actually his perception event (1002) which... should not be failing. Unless you went into stealth or something. It might be something wrong with the general AI.

 

The other one being used here is the damage event (1006) which makes him surrender. But you said that's working.

 

Still, you could bypass the problem with heartbeat like I was saying before. If you copy the whole 1002 tree to 1001 and put in a condition that the henchmen are dead, then it should fire that when his heartbeat event fires in the event that the other one doesn't.



#12 Salk

Salk

    Jedi Master

  • Members
  • PipPipPipPipPip
  • 421 posts

Posted 16 April 2018 - 02:50 AM

Now that alone would make a great stand-alone mod. A shame it got cancelled.

 

It was just one of the many good things I had worked on.

 

A shame indeed.



#13 LiliArch

LiliArch

    Jedi Master

  • Members
  • PipPipPipPipPip
  • 421 posts

Posted 16 April 2018 - 09:31 AM

I recall having the game randomly not triggering scripts it should for whatever reason. My assumption is that either the engine or computer hiccups at a critical point, thus skipping the trigger. Sometimes it appears to be using Force Jump that’s causing this, but sometimes it seems to be just... random. It would be cool to not need to suffer from it though.
BFix0.gif
Lady Arch, the Carrier of Northern Nights, the Harbinger of Iriaz and the Dark Lord of Orth.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users