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

    • Dear partners! At the moment we are in great need of the following positions: — Snapchat old and new accounts | With snapscores | Geo: Europe/USA | Full access via email/phone number — Reddit old (brute or hacked origin, self-registered) accounts with post and comment karma from 100 to 100,000+ | Full email access included — LinkedIn old accounts with real connections | Geo: Europe/USA | Full email access + active 2FA password — Instagram old accounts (2010–2023) | Full email access (possibly with active 2FA password) — Facebook old accounts (2010–2023) | Full email access (possibly with active 2FA password) | With friends or without friends | Geo: Europe/USA/Asia — Threads accounts | Full email access (possibly with active 2FA password) — TikTok/Facebook/Google ADS Agency advertising accounts — Email accounts: mail.ru, yahoo.com, gazeta.pl, gmx.ch / gmx.de / gmx.net (BUT NOT gmx.com) — Google ADS Manual Farm accounts (verified via email and phone number) | GEO: USA/Europe, mostly USA. — WhatsApp OLD Accounts — Twitter accounts with followers and posts (old accounts) Contact us via the details below. We will be glad to cooperate! We are also ready to consider other partnership and collaboration options. Active links to our projects: Digital goods store (Website): Go to Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Dear partners! At the moment we are in great need of the following positions: — Snapchat old and new accounts | With snapscores | Geo: Europe/USA | Full access via email/phone number — Reddit old (brute or hacked origin, self-registered) accounts with post and comment karma from 100 to 100,000+ | Full email access included — LinkedIn old accounts with real connections | Geo: Europe/USA | Full email access + active 2FA password — Instagram old accounts (2010–2023) | Full email access (possibly with active 2FA password) — Facebook old accounts (2010–2023) | Full email access (possibly with active 2FA password) | With friends or without friends | Geo: Europe/USA/Asia — Threads accounts | Full email access (possibly with active 2FA password) — TikTok/Facebook/Google ADS Agency advertising accounts — Email accounts: mail.ru, yahoo.com, gazeta.pl, gmx.ch / gmx.de / gmx.net (BUT NOT gmx.com) — Google ADS Manual Farm accounts (verified via email and phone number) | GEO: USA/Europe, mostly USA. — WhatsApp OLD Accounts — Twitter accounts with followers and posts (old accounts) Contact us via the details below. We will be glad to cooperate! We are also ready to consider other partnership and collaboration options. Active links to our projects: Digital goods store (Website): Go to Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • 冬天是享受优惠、省钱的好时机。 首次下单时使用促销码 SOCNET 即可获得 15% 折扣 ,适用于全场商品! 前往商店(网站) 前往商店(Telegram 机器人)
    • Winter is the time to save with benefits. Activate the promo code SOCNET on your first order and get a 15% discount on the entire assortment! Go to the store (website) Go to the store (Telegram bot)
    • Winter is the time to save with benefits. Activate the promo code SOCNET on your first order and get a 15% discount on the entire assortment! Go to the store (website) Go to the store (Telegram bot)
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock