Aller au contenu

Photo

Weird detect mode glitch


  • Veuillez vous connecter pour répondre
17 réponses à ce sujet

#1
comeandsee

comeandsee
  • Members
  • 32 messages

Hello, I'm experiencing a weird glitch on my server.

 

When players activate detect mode every heartbeat it keeps sending them a message "You search the area for traps..." and it spams it over and over. I've used a program called fileseek and gone through every single nss file from the default game, but I can't find what script that is calling.

 

You guys got any ideas?



#2
kevL

kevL
  • Members
  • 4 052 messages
sometimes they're scripted as a strref. My dialog.Tlk has this entry

181194 - You search the nearby area for traps ...


(although i searched around and couldn't find it.)

#3
comeandsee

comeandsee
  • Members
  • 32 messages

Ah, okay. I just found that as well. I'm trying to find what string is calling that GetStringByStrRef.

 

If I want to do a short-term fix am I able to edit the default dialog.tlk file in my NWN2 folder and it'll apply to everyone on the server or would a custom tlk file with that STR ref not work?



#4
Dann-J

Dann-J
  • Members
  • 3 161 messages

Feats that show up on the combat modes toolbar tend to be hardcoded, which precludes any attempt to alter them directly.

 

Even if you replace that line in the TLK file with a blank string, chances are the chat window will still continue to scroll. Although if each line is entirely empty in the chat window, then at least it'll be less distracting.



#5
kevL

kevL
  • Members
  • 4 052 messages
custom won't work, because +16million

I don't know how .Tlk's work for MP. But if the entry is blank the chat might not scroll blank lines (or it might, or the string itself could be hardcoded)

really you've got to find why the action-btn keeps firing

#6
comeandsee

comeandsee
  • Members
  • 32 messages

It's weird like its reapplying the mode or something every heartbeat.



#7
rjshae

rjshae
  • Members
  • 4 478 messages

You could try searching for the strref number kevL listed.



#8
kevL

kevL
  • Members
  • 4 052 messages
unfortunately the 'modebar.xml' uses a nefariously inaccessible gui function, UIButton_Input_HotbarLeftClick()

cas, if you've altered your modebar.xml, try reverting to the stock one. Check specially if it has some sort of update frequency in it, because it looks like it will run an update that calls UIButton_OnUpdate_UpdateHotbarButton() - which might be the culprit.

Ps. my Detect toggle seems to run the string from Dialog.Tlk alright ... but I can't find any script-call

#9
kevL

kevL
  • Members
  • 4 052 messages
also, enabling RunLogScript, nothing unusual came up when toggling Detect mode. just a bunch of heartbeats,

which could be it, on your side. (although if it were either the string or the Tlk id would be pretty easy to find.. )

#10
comeandsee

comeandsee
  • Members
  • 32 messages

Hmm, there's no update mode on it. It's the default one.

 

I even reinstalled the NWN2 client into a different folder and still having the same issue.



#11
Lance Botelle

Lance Botelle
  • Members
  • 1 480 messages

Hello, I'm experiencing a weird glitch on my server.
 
When players activate detect mode every heartbeat it keeps sending them a message "You search the area for traps..." and it spams it over and over. I've used a program called fileseek and gone through every single nss file from the default game, but I can't find what script that is calling.
 
You guys got any ideas?


Hi,

I believe this is "normal" behaviour when the ability is activated .... However, if I am reading between the lines correctly, the message is sent to "every player on your PW server"? If that is what you mean, is it possible that a campaign setting to do with "Allow Multiple Parties" or something to that effect, which may need to be switched on to ensure only the party activating the ability receive the message?

If I have misunderstood, sorry. :)

Cheers,
Lance.

#12
kevL

kevL
  • Members
  • 4 052 messages
Lance,
mine fires only once (single-player, tony's AI). I watched it over 8 heartbeats.

but now i think about it, twould be nice to see it every HB -- unless I'm playing an elf ... can't turn it off.

#13
comeandsee

comeandsee
  • Members
  • 32 messages

Just to show you what I mean: http://i.imgur.com/FUt9niP.png

 

This is what happens when any player toggles detect mode that doesn't already have the Keen Sense feat. It sends that stringref every heartbeat. It's only sending it to themselves.



#14
kevL

kevL
  • Members
  • 4 052 messages
Have you scrutinized the player HB script

gb_player_heart (listed in NwN2_Scriptsets.2da, row# 4 -- it's labelled "Companion Possessed" etc. but I find it runs for truePC also)

#15
kevL

kevL
  • Members
  • 4 052 messages
the more i think about this the more fundamental it seems - like a server setting or perhaps a campaign setting, as Lance suggested

I forget how NwN detect works, but if you think it appropriate you might want to post the question to the guys down in Underneath

#16
Lance Botelle

Lance Botelle
  • Members
  • 1 480 messages
Hi Again,

OK, I checked my own module and this time the string only fires when first activated ... but (if I recall correctly), I thought I noticed this happen like yours once. It is still possible that it is a setting somewhere else ... or (perhaps), there is something that is reinitialising the detection in some way.

The fact that it is heartbeat related means you have a clue that the source of the problem may be related to a heartbeat script somewhere.

I will keep a close eye open on my own system to see if I encounter the issue again and notice what caused it.

Cheers,
Lance.

#17
comeandsee

comeandsee
  • Members
  • 32 messages

Wow, I can't believe it. I finally found what was causing that!

 

In the nwn2player.ini file there is a setting for ShowSearchSpam=1

Turn it off and it stops doing it! Wow.



#18
Lance Botelle

Lance Botelle
  • Members
  • 1 480 messages

Wow, I can't believe it. I finally found what was causing that!
 
In the nwn2player.ini file there is a setting for ShowSearchSpam=1

Turn it off and it stops doing it! Wow.


Never heard of that one ... :huh: