Thread: question about process

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 question about process 
    Registered Member
    Join Date
    Jan 2012
    Posts
    26
    Thanks given
    0
    Thanks received
    1
    Rep Power
    13
    from what ive been seeing using process's are bad

    but i got this
    Code:
    	public void process() {
    	getPA().sendFrame126("@or1@Players: @gre@"+PlayerHandler.getPlayerCount()+ "", 663);
    	getPA().sendFrame126("The Bank of Infinity" , 5383);
    	getPA().sendFrame126("", 17510);
    	getPA().sendFrame126("@whi@ Bank of Infinity", 14923);
    will that " be bad" because i dont know any other way to overwrite the words of some interfaces
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Dec 2011
    Posts
    131
    Thanks given
    0
    Thanks received
    1
    Rep Power
    13
    mehh processes are good under some conditions i think this is such a little process tho ull be ok try it
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Jul 2011
    Age
    30
    Posts
    745
    Thanks given
    2,207
    Thanks received
    451
    Rep Power
    0
    It's only bad if you miss-use it i.e jamming shit into that method, were it could be placed elsewhere i.e placing your statements into loginText method or w.e it's called

    Haven't really looked into that method to extensively
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jan 2012
    Posts
    26
    Thanks given
    0
    Thanks received
    1
    Rep Power
    13
    so in this case, mine would be fine?
    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    Oct 2009
    Age
    30
    Posts
    320
    Thanks given
    43
    Thanks received
    45
    Rep Power
    0
    getPA().sendFrame126("The Bank of Infinity" , 5383);
    getPA().sendFrame126("", 17510);
    getPA().sendFrame126("@whi@ Bank of Infinity", 14923);

    these should be place in your initialize method

    while the playercount one has to be updated when a player logs out or logs in which could be place into those categorys instead of checking every 600ms.
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Jul 2011
    Age
    30
    Posts
    745
    Thanks given
    2,207
    Thanks received
    451
    Rep Power
    0
    Quote Originally Posted by Boosie_ View Post
    getPA().sendFrame126("The Bank of Infinity" , 5383);
    getPA().sendFrame126("", 17510);
    getPA().sendFrame126("@whi@ Bank of Infinity", 14923);

    these should be place in your initialize method

    while the playercount one has to be updated when a player logs out or logs in which could be place into those categorys instead of checking every 600ms.
    No, they should be placed in the handleLogInText method in server or client class
    Reply With Quote  
     

  7. #7  
    Banned
    Join Date
    Oct 2009
    Age
    30
    Posts
    320
    Thanks given
    43
    Thanks received
    45
    Rep Power
    0
    Quote Originally Posted by Ambient View Post
    No, they should be placed in the handleLogInText method in server or client class
    its the same shit its still being called on login dont try to prove me wrong lol.
    Reply With Quote  
     

  8. Thankful user:


  9. #8  
    Registered Member Endian's Avatar
    Join Date
    Sep 2011
    Posts
    121
    Thanks given
    21
    Thanks received
    14
    Rep Power
    35
    The process() method is techically wrong because it's called every 500 or 600 seconds. So it's very 'expensive' to have so many method calls and if-else clauses every 600 seconds.
    Reply With Quote  
     

  10. #9  
    Registered Member Recursion's Avatar
    Join Date
    Feb 2010
    Posts
    638
    Thanks given
    0
    Thanks received
    29
    Rep Power
    41
    What boosie said is correct. When someone logs out/in be sure to apply the text update to everyone currently online and you'll be fine. This can be done using a for statement.
    Reply With Quote  
     

  11. #10  
    Banned

    Join Date
    Jul 2011
    Age
    30
    Posts
    745
    Thanks given
    2,207
    Thanks received
    451
    Rep Power
    0
    Quote Originally Posted by Boosie_ View Post
    its the same shit its still being called on login dont try to prove me wrong lol.
    Considering how much stress is already in that method.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. process..
    By Software in forum Help
    Replies: 1
    Last Post: 11-23-2009, 12:28 AM
  2. Process
    By Markian in forum Help
    Replies: 7
    Last Post: 11-07-2009, 02:18 AM
  3. Process
    By Rugrats in forum Help
    Replies: 2
    Last Post: 08-25-2009, 07:50 PM
  4. process()
    By zedex ranger in forum Help
    Replies: 1
    Last Post: 06-14-2009, 08:02 PM
  5. Process
    By ultimatescape in forum Help
    Replies: 0
    Last Post: 10-24-2008, 03:48 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
  •