Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Bug Report
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 09-05-2011, 11:43 PM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
onPlayerChats() serverside

it appears that something is causing onPlayerChats to execute multiple times on the serverside since a recent update. I am not able to duplicate often the behavior on demand but have noticed it on Unholy Nation since the latest server and client updates, where scripts in events that award EP are being invoked 4 times in a row

NPC Code:
Buy a PC don't buy a Mac (Server): KaidaChan gave 1 EP to the team that won TeamSlashRace.
Buy a PC don't buy a Mac (Server): KaidaChan gave 1 EP to the team that won TeamSlashRace.
Buy a PC don't buy a Mac (Server): KaidaChan gave 1 EP to the team that won TeamSlashRace.
Buy a PC don't buy a Mac (Server): KaidaChan gave 1 EP to the team that won TeamSlashRace.



There are also cases where NPCs are invoking onPlayerChats 4-5+ in a row, I tried attaching a few echos/sendtorcs in places where players were now having problems with text commands and got results like this

NPC Code:
Buy a PC don't buy a Mac (Server): annulment attempted
Buy a PC don't buy a Mac (Server): annulment attempted
Buy a PC don't buy a Mac (Server): annulment attempted
Buy a PC don't buy a Mac (Server): annulment attempted
Buy a PC don't buy a Mac (Server): annulment attempted

Reply With Quote
  #2  
Old 09-05-2011, 11:45 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
This is as annoying as hell.
__________________
Reply With Quote
  #3  
Old 09-06-2011, 04:02 AM
kingcj kingcj is offline
Registered User
kingcj's Avatar
Join Date: Apr 2006
Location: TN
Posts: 114
kingcj will become famous soon enough
Send a message via MSN to kingcj
I got this as well in a shop script I've been using.
__________________
Zie

"It is not necessary to change. Survival is not mandatory." - W. Edwards Deming
Reply With Quote
  #4  
Old 09-06-2011, 04:29 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
Example of this happening can be found in liquidicechurch.nw on Unholy Nation, specifically in DB NPC "PriestNPC"

If you say
"get married to accountname" the event will invoke 5 times, causing the say2 to read "I am helping (your account name here)", even though it should be attached to you

I know this example is in GS1 but it is happening in the case of GS2 scripts as well.

If you give yourself an Events Team tag and go to unevent_tagteamp.nw, start the game, then use the command "/give ep 2", it will invoke 4 times from the same NPC (a level NPC joined to class unevent_pong"). I also added an echo for the npc.id to make sure it was the same NPC invoking it repeatedly.
Reply With Quote
  #5  
Old 09-06-2011, 11:15 AM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Also mark, there has been a lot of problems on UN's RC with suspicion that ET's are giving players more EP that is needed, hopefully they will see this and it will clear things up a bit :3
__________________
Reply With Quote
  #6  
Old 09-06-2011, 12:32 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Will check this.
In general it's good to put a player.chat = ""; in the script to avoid such cases, and also to give a feedback to the player that the chat command has been accepted.

Update: Ok fixed, restart your npcserver (/npcshutdown, /npcstart) to fix it.

Last edited by Admins; 09-06-2011 at 02:48 PM..
Reply With Quote
  #7  
Old 09-06-2011, 10:32 PM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
Thank you
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:22 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.