User Tag List

Results 1 to 7 of 7

Thread: deleting a username from a server list

  1. #1
    No Products Registered

    Join Date
    Oct 2006
    Posts
    139
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    deleting a username from a server list

    I recently made a server and chat client, and everything works fine except that if someone tries to disconnect, the name doesn't disappear for some reason..

    I have a list of users all set up on my server, but if someone disconnects or closes their client, the name on the server list doesn't disappear. I've tried...

    + User: On User Left
    (under the list)
    - Delete line FindStringExact("List", PCU_GetName$("Mooclick"),1)

    and

    On the client:
    + Close windows has been selected
    (under Mooclick)
    - Player: Send P_GetName$("Mooclick") on subchannel 13 to Server
    (under Storyboard Controls)
    - End the application

    On the server:
    + Connection: On Client Message
    + SC_OnClientMsg_GetSubchannel("Mooclick") = 13
    (under the list)
    - Delete line FindStringExact("List", SC_OnClientMsg_GetText$("Mooclick"),0)

    Anybody know what's wrong?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: deleting a username from a server list

    1. There is no guarantee the message on sub-channel 13 will be sent.
    2. Perhaps do a check for disconnection event on the server and remove the person with that name, and mix that with semi-regular pinging to detect disconnection.
    .:::.Joshtek.:::.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator ProPatch Maker
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DJFuego's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    1,416
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: deleting a username from a server list

    Hang on, are subchanel messages sent on UDP? how can you send a TCP message?

  4. #4
    No Products Registered

    Join Date
    Oct 2006
    Posts
    139
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: deleting a username from a server list

    + User: On User Left
    (under the list)
    - Delete line FindStringExact("List", PCU_GetName$("Mooclick"),1)

    Isn't that checking to see if they disconnected?

  5. #5
    No Products Registered

    Join Date
    Oct 2006
    Posts
    139
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: deleting a username from a server list

    here are the files to download

    client: http://www.mediafire.com/?epefztv4tex
    server: http://www.mediafire.com/?ddhhgtyxl0e

  6. #6
    Clicker Fusion 2.5

    Join Date
    Jun 2006
    Location
    Stockholm, Sweden
    Posts
    1,529
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: deleting a username from a server list

    On user left: Delete line FindStringExact("List", PCU_GetName$("Mooclick"),0)
    ... or does it not matter?

    EDIT, You code is wrong!!

    Connection: On Disconnect
    + FindStringExact( "Userlist", SC_GetName$( "MooClick" ), 0)

    Find Condition under: Server->Connection->On Disconnect.

  7. #7
    No Products Registered

    Join Date
    Oct 2006
    Posts
    139
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: deleting a username from a server list

    thank you! It works now.

Similar Threads

  1. [CODE]Master Server List Example PHP/MMF
    By Pgm_snipe in forum Lacewing
    Replies: 7
    Last Post: 29th July 2010, 01:21 AM
  2. How would you create a Server-List?
    By Jonathan5 in forum Lacewing
    Replies: 4
    Last Post: 20th March 2009, 01:53 AM
  3. First Server List
    By Jonathan5 in forum File Archive
    Replies: 0
    Last Post: 20th March 2009, 01:51 AM
  4. Server List
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 5th July 2007, 01:00 AM
  5. Deleting, resets object list!
    By BrandonC in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 6th October 2006, 05:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •