Jump to content
  • 0

[Help] GameServer error


Question

Posted

Hi guyz :)

I made a restart to my server but when gameserver is loading i get this error...

2j29bf8.png

i get this error long and long ........

when i enter the game it shows me at the "dmg chat" that the giran siege has start/end aden siege start/end and the same at all castles...... all the time

P.S.: This is not a fresh server ... I worked 3-5 hours for custom items and other things, so this means a lot of server restarts but... I dont get this such of error in this time :S (L2JBrasil Interlude) Plz helm me :(

 

Update: if i start the gs 1st it will run normally and when I start the ls, ls gives me the same error (gs error like in the image). And if I start ls 1st ... gs will give errors :(

My opinnion is that i dont have inuff memory ram or cpu is too slow ???

1252vk9.png

2l92xhc.png

 

Cpu: e2180 (DualCore) 2.00 GHz, 800 MHz

Ram: 2 Gb

Recommended Posts

  • 0
Posted

I just pickuped the content and copypasted it on a clean IL L2J SiegeManager.java, and the files are 100% the same except imports.

 

Anyway I'm stupid as this file can't in fault, as sieges tasks are launched from Siege.java.

 

----

 

PS : as I tought they focked up code. Ask them to correct Siege.java, at the "coded" line.

 

Search

public class ScheduleStartSiegeTask implements Runnable

and replace the whole method by the ancient method (pick it from L2J IL pack).

 

Why the heck they changed that, only Mulder & Scully know. There are like 0 reason to change this part of code, as it works since many years without problem lol.

 

I got the L2J clean method under the hand, so enjoy... C/p the name of the method and when you found it, c/p the whole method below on the L2JBr one.

 

    public class ScheduleStartSiegeTask implements Runnable
   {
       private Castle _castleInst;

       public ScheduleStartSiegeTask(Castle pCastle)
       {
       	_castleInst = pCastle;
       }

       public void run()
       {
           if (getIsInProgress()) return;

           try
           {
               long timeRemaining = getSiegeDate().getTimeInMillis()
                   - Calendar.getInstance().getTimeInMillis();
               if (timeRemaining > 86400000)
               {
                   ThreadPoolManager.getInstance().scheduleGeneral(new ScheduleStartSiegeTask(_castleInst),
                                                                   timeRemaining - 86400000); // Prepare task for 24 before siege start to end registration
               }
               else if ((timeRemaining <= 86400000) && (timeRemaining > 13600000))
               {
                   announceToPlayer("The registration term for " + getCastle().getName()
                       + " has ended.", false);
                   _isRegistrationOver = true;
                   clearSiegeWaitingClan();
                   ThreadPoolManager.getInstance().scheduleGeneral(new ScheduleStartSiegeTask(_castleInst),
                                                                   timeRemaining - 13600000); // Prepare task for 1 hr left before siege start.
               }
               else if ((timeRemaining <= 13600000) && (timeRemaining > 600000))
               {
                   announceToPlayer(Math.round(timeRemaining / 60000) + " minute(s) until "
                       + getCastle().getName() + " siege begin.", false);
                   ThreadPoolManager.getInstance().scheduleGeneral(new ScheduleStartSiegeTask(_castleInst),
                                                                   timeRemaining - 600000); // Prepare task for 10 minute left.
               }
               else if ((timeRemaining <= 600000) && (timeRemaining > 300000))
               {
                   announceToPlayer(Math.round(timeRemaining / 60000) + " minute(s) until "
                       + getCastle().getName() + " siege begin.", false);
                   ThreadPoolManager.getInstance().scheduleGeneral(new ScheduleStartSiegeTask(_castleInst),
                                                                   timeRemaining - 300000); // Prepare task for 5 minute left.
               }
               else if ((timeRemaining <= 300000) && (timeRemaining > 10000))
               {
                   announceToPlayer(Math.round(timeRemaining / 60000) + " minute(s) until "
                       + getCastle().getName() + " siege begin.", false);
                   ThreadPoolManager.getInstance().scheduleGeneral(new ScheduleStartSiegeTask(_castleInst),
                                                                   timeRemaining - 10000); // Prepare task for 10 seconds count down
               }
               else if ((timeRemaining <= 10000) && (timeRemaining > 0))
               {
                   announceToPlayer(getCastle().getName() + " siege "
                       + Math.round(timeRemaining / 1000) + " second(s) to start!", false);
                   ThreadPoolManager.getInstance().scheduleGeneral(new ScheduleStartSiegeTask(_castleInst),
                                                                   timeRemaining); // Prepare task for second count down
               }
               else
               {
               	_castleInst.getSiege().startSiege();
               }
           }
           catch (Throwable t)
           {

           }
       }
   }

  • 0
Posted

I was ready to copy the code from l2jfree or l2j Il.

But you made me do it faster.

 

Anyway,for now i will just implent and commit this code.

I can't test it because i need a new dp,i will test in 10 minutes.

 

http://trac.assembla.com/L2j-Brasil/changeset/1713 :D

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Looking for an L2OFF developer for a few paid tasks that need to be done. DM me if interested.
    • Splicho, you know who you are. I also know who I am. I won't keep telling you things. If that's the path you choose. Good for you. Just think how many people have stopped being there for you, and why. Hope you are doing well.
    • That still doesn't explain why you haven't asked me before you sell it to another customer. Yes I said I don't care in the end because you already sold the work.     Aren't you busy unfriending everyone and leave all discords because nobody gave a fuck about your battlecaller software?   Nimera V1 had problems yes (Which i had fixed once they were reported to me), but V2 is out and everyone is happy, so i don't know what you're trying to achieve here.   Yes, I am just being realistic here. Just because someone is my "friend" doesn't mean I am not free to share my opinion or call someone out.    Proto talking about being accountable for things, but still he isn't (PlayNocturn border incident). So ?   Also funny that you are coming here joining this topic after I called Proto out for reselling my artwork, bet he dm'd you saying you should back him up, funny.   I am not licking anybodys ass here lol. Just being honest, talk it out privately. That is not worth a report at all.  
    • Tengo un buffer, ese que aparece en la foto con letras amarillas, es un HTML normal pequeño y quiero dejarlo como en la foto 1, donde aparecen los buffs y el HTML es más grande. ¿Cómo puedo hacer eso?
    • Hola, estoy buscando el Phoenix Event y el sistema de PIN como el de la imagen. ¿Alguien podría pasármelo o darme la URL? es para un h5
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..