Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-13-2004, 04:12 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
PMs going to wrong person

This is like the deleting pm history on block... One of those things that irritate you but you begin to cope with over time. When you try pming someone and they sign off right before you send the pm, you get a pm from somebody else going "ummm... wtf?" because your pm somehow accidentally went to them.
Reply With Quote
  #2  
Old 01-13-2004, 01:46 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
not a lot you can do... the client sends PMs to specific IDs, not accounts
Reply With Quote
  #3  
Old 01-13-2004, 03:03 PM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Seems to me that it could be made to send to that ID and also check the account name as well, could it not? That would solve this problem.
__________________
Kat
Reply With Quote
  #4  
Old 01-13-2004, 04:45 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Easy one.
If you have a PM window open, and the respective player logs off, just disable the send/reply buttons.
Reply With Quote
  #5  
Old 01-13-2004, 04:51 PM
Thought Thought is offline
PipBoy Extraordinaire!
Thought's Avatar
Join Date: Nov 2001
Location: Long Beach, California.
Posts: 692
Thought is on a distinguished road
This only happens if another player signs on and gets the old players ID I believe. Could be wrong... I havn't seen these problem happen as much as it used to, though, oddly.
__________________
Rick ([email protected])
#gscript on FreeNode (#gscript Guild, #gscript Information)
Graal User Statistics

I am now using my new account, Rick.
Reply With Quote
  #6  
Old 01-13-2004, 05:23 PM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Quote:
Originally posted by Loriel
Easy one.
If you have a PM window open, and the respective player logs off, just disable the send/reply buttons.
Ok, here's a scenario:
1. Player sends a message.
2. Sender's connection lags during the send, the send is delayed.
3. The recipient logs off.
4. Sender's lag dissipates, the message gets sent.
5. The server receives the message after the recipient has logged off, so it sends the message to the new player with that ID.

Same problem, just less likely.
__________________
Kat
Reply With Quote
  #7  
Old 01-13-2004, 05:25 PM
narkotic narkotic is offline
Registered User
Join Date: Dec 2003
Location: Florida
Posts: 100
narkotic is on a distinguished road
Send a message via AIM to narkotic
Well then this looks like a problem with the PM system at the code level. Why is it using the unique connection ID of the player? It really should be based on account names. This might create further problems in the long-run that cannot be determined at the moment.
__________________
Norm Kahn
Seisen Youjutsusha of Kurenai Joukai,
Bane of Sanity
Reply With Quote
  #8  
Old 01-13-2004, 05:36 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally posted by -Ramirez-
Sender attaches timestamp to message, server checks whether recipient is online since <timestamp> or longer.
Reply With Quote
  #9  
Old 01-13-2004, 05:56 PM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Quote:
Originally posted by Loriel
Sender attaches timestamp to message, server checks whether recipient is online since <timestamp> or longer.
...*****, the account name method works far more reliably.
__________________
Kat
Reply With Quote
  #10  
Old 01-13-2004, 10:12 PM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
Or, the client sends information to/from the account... Forget the IDs, why do we bother having them?
__________________
Reply With Quote
  #11  
Old 01-13-2004, 10:23 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by zell12
Or, the client sends information to/from the account... Forget the IDs, why do we bother having them?
You are not connected to every client at once. The server acts as a mediator, you send data to the server, it sends it back, I don't really think it would be safe to be connected to every single player online.
Reply With Quote
  #12  
Old 01-13-2004, 10:27 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
So for each PM sent, you want to iterate through about sixty people connected and compare their account name to the one sent with the PM; instead of just going by ID?
How would you decide whether the RC client or Graal client of someone was to receive the PM?
Reply With Quote
  #13  
Old 01-13-2004, 10:58 PM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Loriel, you jumped a step ahead in assuming that the PM would be sent to the correct account if their ID changed. If the account of the ID the player sends the PM to isn't the account it's supposed to be, the server could send a message back saying something like the PM wasn't received or so.
__________________
Kat
Reply With Quote
  #14  
Old 01-13-2004, 11:32 PM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
I just don't understand the difference between the numbers of IDs, and the letters of Account Names.
__________________
Reply With Quote
  #15  
Old 01-14-2004, 12:13 AM
Hevaricubed Hevaricubed is offline
Registered User
Join Date: Aug 2003
Posts: 262
Hevaricubed is on a distinguished road
Send a message via AIM to Hevaricubed Send a message via Yahoo to Hevaricubed
Quote:
Originally posted by zell12
I just don't understand the difference between the numbers of IDs, and the letters of Account Names.
If stefan implemented a binary searching algorythym to find a player when they are being pmmed, then it would be hard to implement for account numbers.

You could of course convert the account names into numbers and sort them then do a binary search but that would take as long as going through them one at a time in a loop.
__________________
Reply With Quote
  #16  
Old 01-14-2004, 12:15 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally posted by -Ramirez-
Loriel, you jumped a step ahead in assuming that the PM would be sent to the correct account if their ID changed.
Sounds fine but I was mainly answering to Excalibur anyway.


Excalibur: The ID is two bytes, and the serverside list of players is probably sorted by ID anyway so it is easy to find the player to deliver the PM to. But if you send PMs by account, you need to compare every byte of the account name sent with the PM to every byte of each player's account name until you got the right one
Probably not all that resources consuming, but, eh, got to optimize where you can.
Reply With Quote
  #17  
Old 01-14-2004, 12:36 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
But then the account name is transferred into binary when a player logins? Wouldn't that take as many resources as checking for the whole account
__________________
Reply With Quote
  #18  
Old 01-14-2004, 01:28 AM
Thought Thought is offline
PipBoy Extraordinaire!
Thought's Avatar
Join Date: Nov 2001
Location: Long Beach, California.
Posts: 692
Thought is on a distinguished road
You guys are misinterpreting player IDs.

When a player logs on, they are given an open 'slot' in a list of players.

The ID# is basically the 'slot' number in the list.

Instead of having a huge list that takes up lots of memory, the GServer reuses empty slots (which is why player B get the same ID as player A when player B logs on after player A logs off).

There is no searching involved, it automatically knows which 'slot' to send the PM to, which is also why player B gets the PM you tried to send to player A, but player A logged off.
__________________
Rick ([email protected])
#gscript on FreeNode (#gscript Guild, #gscript Information)
Graal User Statistics

I am now using my new account, Rick.
Reply With Quote
  #19  
Old 01-14-2004, 05:31 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
When a player logs off the ID should be void until it cycles through all the numbers, like 250 or something
__________________
Reply With Quote
  #20  
Old 01-14-2004, 10:22 AM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
The simpliest solution if you want an easy fix without destroying the optimism of the server would be to continue using the system, but sending the accountname in the beginning of the packet and let the CLIENT check it.

if it doesnt match the accountname you're currently using, well let the client reject it.
__________________
Reply With Quote
  #21  
Old 01-14-2004, 12:25 PM
konidias konidias is offline
Old Bee
konidias's Avatar
Join Date: Jul 2001
Location: Orlando, FL
Posts: 7,222
konidias will become famous soon enough
Send a message via AIM to konidias
The account name check would work fine, as long as it's setting that sender account as soon as you open the message window. Otherwise it would be checking the account name of the ID after the other person logged off.

Like:


PlayerA opens PM to PlayerB

PlayerA is typing message

PlayerB signs off

New PlayerB takes their place

PlayerA sends message

Message checks the account of PlayerB

PlayerB account matches and sends message

That would be the bad way to do it, the easiest way, would be to just check PlayerB as soon as PlayerA opens the PM to start typing.

I don't see why the account check wouldn't be sufficient. There should also be an option to sort the playerlist by accountname, like on RC.
__________________

Put this image in your sig if you support Bomy Island! (g2k1 revision)
play bomberman while you wait!


Reply With Quote
  #22  
Old 01-14-2004, 02:19 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
you're forgetting about mass messages... massing to all on a highly populated server would make a pretty large packet in this case
Reply With Quote
  #23  
Old 01-14-2004, 07:05 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally posted by Kristi
If it doesnt match the accountname you're currently using, well let the client reject it.
So I could hack my client to receive strange PMs as well.
Reply With Quote
  #24  
Old 01-14-2004, 07:25 PM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
Quote:
Originally posted by Loriel

So I could hack my client to receive strange PMs as well.
You could yes, but that becomes pointless ; )
You wouldnt be affecting anyone.

and yes the construction of the packet would including getting the account as soon as you open the window

and phython, if you send soemthing to 50 players, youre sending out 50 packets, which can be arrayed with their own account.
__________________
Reply With Quote
  #25  
Old 01-14-2004, 09:58 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally posted by Python523
you're forgetting about mass messages... massing to all on a highly populated server would make a pretty large packet in this case
Yea, come to think about it... Mass Messaging should be limited by the number of people you can send it to except for with staff. toalls work perfectly fine... AND that way it's not as easy to mass profanity because you can't skip over the GPs on the playerlist.

EDIT: Before I'm done, how about somebody fixes the quotation marks in guild pms bug?

Also, how about a second ignore where you can ignore mass messages from certain, specific players, but not have to ignore pms from them? and at the same time not ignoring mass messages that you might want to hear?

Last edited by jake13jake; 01-14-2004 at 10:09 PM..
Reply With Quote
  #26  
Old 01-15-2004, 01:57 AM
Thought Thought is offline
PipBoy Extraordinaire!
Thought's Avatar
Join Date: Nov 2001
Location: Long Beach, California.
Posts: 692
Thought is on a distinguished road
Quote:
Originally posted by Kristi


You could yes, but that becomes pointless ; )
You wouldnt be affecting anyone.

and yes the construction of the packet would including getting the account as soon as you open the window

and phython, if you send soemthing to 50 players, youre sending out 50 packets, which can be arrayed with their own account.
Wrong, you're sending one packet, with a list of all players to send to.
__________________
Rick ([email protected])
#gscript on FreeNode (#gscript Guild, #gscript Information)
Graal User Statistics

I am now using my new account, Rick.
Reply With Quote
  #27  
Old 01-15-2004, 02:41 AM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
Quote:
Originally posted by Thought

Wrong, you're sending one packet, with a list of all players to send to.
bite me =P
that makes sense but still bite me

well dont have it apply to mass messages? usually a mass message is intended for everyone anyway.
__________________
Reply With Quote
  #28  
Old 01-15-2004, 03:38 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally posted by Kristi


bite me =P
that makes sense but still bite me

well dont have it apply to mass messages? usually a mass message is intended for everyone anyway.
Why not just revamp the messaging system? having:
-toalls go to all (instead of how mass messages are usually used).
-guild messages with the fixed quotation mark thing.
-mass messages going to a max of (maybe 5?), also checking for accounts, unless staff uses it, then goes same was as a toall.
-private messages checking for accounts.
-ability to ignore an individual's toalls, mass messages, guild messages, private messages, or all as seperate options.
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 06:13 PM.


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