Thread: [PI] Event Problem? [Paying up to 30$] Major Problem

Results 1 to 5 of 5
  1. #1 [PI] Event Problem? [Paying up to 30$] Major Problem 
    Registered Member
    Join Date
    Apr 2008
    Age
    30
    Posts
    559
    Thanks given
    9
    Thanks received
    2
    Rep Power
    48
    Quote Originally Posted by SHAtter View Post
    I thought it was code I put into the server but then I decided to just download DSPK and run it on the VPS I have and I found it was not me.

    Quote Originally Posted by arrowzftw View Post
    Well basically i tried to use event manager for long term process's such as a bunyip healing the player every 15 seconds, but when i actually added it on the server for some time and multiple people like 30 people summoning a bunyip and, it healing them for about 4 minutes. The event manager crashes, disconnected all players with no error message, its somthing to do with them logging out when event manager is running. I dont want to use process() because i hate it.
    Can anyone give me a event manager which does not crash Heres the code for the current PI event manager.
    Quote Originally Posted by Throat View Post
    Let me give an example of my usage:

    Code:
    public static void startProcess() {
    		start();
    		EventManager.getSingleton().addEvent(new Event() {
    			public void execute(EventContainer c) {
    				start();
    			}
    		}, TIME_SET_IN_MINS * 60000);
    	}
    I would also make this initialize upon server startup, once it does that it means it's active.

    But it only stays executed for 30 minutes (roughly) , after that the server completely stops all events from running.

    So I guess, executed Events are not meant to stay up for a long period of time?



    I've tried the CycleEventHandler but that doesn't even work.


    From what I've been reading on other threads it's something to do with the eventmanager shutting off but Ill pay somone 30$ for a fix, no MSN contact through pm if you would like. My server can not run over an hour without having the problem... It doesnt say anything in command when it shuts off, just like the first quote.

    Reply With Quote  
     

  2. #2  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    The event manager does not shut off by itself. However if the player disconnects during an event and you are not handling this type of event occurring it will cause the event to throw an error.

    Also note you are using it wrong, the eventmanager is not for this kind of tasks, such things should be based on cycle tick not real time. See http://www.rune-server.org/runescape...s-handler.html
    Reply With Quote  
     

  3. #3  
    Donator

    Nintendo's Avatar
    Join Date
    Oct 2008
    Posts
    1,680
    Thanks given
    195
    Thanks received
    184
    Rep Power
    231
    no msn?
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Apr 2008
    Age
    30
    Posts
    559
    Thanks given
    9
    Thanks received
    2
    Rep Power
    48
    I don't know what its using? It just randomly shuts off

    Those are just quotes from other people

    Yeah I guess ill go on ebuddy add [email protected]

    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Apr 2008
    Age
    30
    Posts
    559
    Thanks given
    9
    Thanks received
    2
    Rep Power
    48
    Ill try adding your event manager

    Reply With Quote  
     


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. [614] this is major problem, ~~look~~
    By Mr Bill in forum Help
    Replies: 1
    Last Post: 08-18-2010, 11:59 AM
  2. [508] NPC Problem MAJOR [508]
    By YOUS-508 in forum Help
    Replies: 0
    Last Post: 12-05-2009, 03:22 AM
  3. major problem need help :/
    By The Turk in forum Help
    Replies: 2
    Last Post: 11-09-2009, 07:27 PM
  4. Major problem
    By dadabehh in forum Help
    Replies: 3
    Last Post: 07-27-2009, 05:14 AM
  5. Major Shop Problem...
    By LunarKnight in forum Help
    Replies: 3
    Last Post: 02-08-2009, 02:29 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
  •