Thread: [PI] Clean out your process pt. 2

Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19
  1. #11  
    Registered Member

    Join Date
    May 2012
    Posts
    253
    Thanks given
    5
    Thanks received
    146
    Rep Power
    122
    Quote Originally Posted by Our Promise View Post
    If they know how to call the events correctly specifying the object owner, adding the extra chek isn't really necessary.
    What, haha? either way, when the player is disconnected the event will still run.

    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #12  
    Registered Member
    Join Date
    Oct 2013
    Posts
    775
    Thanks given
    48
    Thanks received
    104
    Rep Power
    14
    Quote Originally Posted by Rhubarb View Post
    What, haha? either way, when the player is disconnected the event will still run.
    iirc even pi has support for attaching objects to tasks so checking is not needed, all tasks with the attached player will be stopped automatically when the player logs out

    he doesn't seem to be attaching the player instance though lol

    quoted lare's reply.

    CycleEventHandler.getSingleton().stopEvents(this);

    this is called in destruct, so it should be stopping the event if they disconnect
    Reply With Quote  
     

  3. #13  
    Registered Member

    Join Date
    May 2012
    Posts
    253
    Thanks given
    5
    Thanks received
    146
    Rep Power
    122
    Quote Originally Posted by Our Promise View Post
    iirc even pi has support for attaching objects to tasks so checking is not needed, all tasks with the attached player will be stopped automatically when the player logs out

    he doesn't seem to be attaching the player instance though lol

    quoted lare's reply.

    CycleEventHandler.getSingleton().stopEvents(this);

    this is called in destruct, so it should be stopping the event if they disconnect
    Yeh, Lare is right. I didn't realise that was called in the destruct method.

    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #14  
    Banned
    Join Date
    Mar 2014
    Posts
    632
    Thanks given
    109
    Thanks received
    181
    Rep Power
    0
    How come you don't just switch frameworks?

    OT: Someone will probably use. Good job.
    Reply With Quote  
     

  5. #15  
    Registered MrClassic

    MrClassic's Avatar
    Join Date
    Oct 2008
    Age
    26
    Posts
    1,967
    Thanks given
    16,936
    Thanks received
    409
    Rep Power
    5000
    Quote Originally Posted by Rhubarb View Post
    What, haha? either way, when the player is disconnected the event will still run.
    In logout method there's something like this:

    CycleEventHandler.stopAllEvents(this);

    so there's no need to add those extra checks

    edit:
    nvm already been told
    Thanks, MrClassic.

    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. #16  
    Banned

    Join Date
    Oct 2012
    Posts
    4,716
    Thanks given
    1,682
    Thanks received
    1,105
    Rep Power
    0
    The itemHandler is causing a dupe atleast for me? when i drop a item there appears 2 of them
    Reply With Quote  
     

  7. #17  
    Registered Member Tylwr's Avatar
    Join Date
    Jul 2012
    Age
    23
    Posts
    477
    Thanks given
    105
    Thanks received
    41
    Discord
    View profile
    Rep Power
    15
    Quote Originally Posted by ipkmills View Post
    The itemHandler is causing a dupe atleast for me? when i drop a item there appears 2 of them
    08-14-2014, 07:11 AM

    why did you bump a year+ old thread, with the most recent reply being almost a year ago? Oh, and for you issue, re-add what you removed 1 by 1 until you fix your issue; if you re-add what you deleted then it isn't from your cleaning duties.

    Quote my post for me to see your reply.
    Discord: Tyler#6774

    Reply With Quote  
     

  8. #18  
    Banned

    Join Date
    Oct 2012
    Posts
    4,716
    Thanks given
    1,682
    Thanks received
    1,105
    Rep Power
    0
    Quote Originally Posted by Tylwr View Post
    08-14-2014, 07:11 AM

    why did you bump a year+ old thread, with the most recent reply being almost a year ago? Oh, and for you issue, re-add what you removed 1 by 1 until you fix your issue; if you re-add what you deleted then it isn't from your cleaning duties.
    Didn't check the posting area of the thread and its been resolved forgot to remove something
    Reply With Quote  
     

  9. #19  
    Extreme Donator

    Join Date
    Apr 2015
    Posts
    371
    Thanks given
    215
    Thanks received
    79
    Rep Power
    74
    Bump, I know this is 2 years old, but still worth doing.

    been adding / modifying these / using as a template for my own process clean up, I think more servers should use them.
    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 0
    Last Post: 07-18-2013, 09:28 AM
  2. Cleaning things out of process[PI]
    By TheLife in forum Snippets
    Replies: 38
    Last Post: 11-16-2012, 09:16 AM
  3. Replies: 25
    Last Post: 05-09-2011, 08:06 PM
  4. Cleaning out process()
    By odd17 in forum Help
    Replies: 7
    Last Post: 08-04-2010, 08:50 PM
  5. Cleaning out Process
    By Enjoi in forum Help
    Replies: 14
    Last Post: 05-19-2009, 08:35 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •