Jump to content
  • 0

TvT Event acis 399 error


Sonti

Question

Hi,

 

Quote

java.lang.InterruptedException: sleep interrupted
        at java.base/java.lang.Thread.sleep(Native Method)
        at net.sf.l2j.gameserver.events.TvTEvent.waiter(TvTEvent.java:409)
        at net.sf.l2j.gameserver.events.TvTEventManager.waiter(TvTEventManager.java:150)
        at net.sf.l2j.gameserver.events.TvTEventManager.run(TvTEventManager.java:70)
        at net.sf.l2j.commons.pool.ThreadPool$TaskWrapper.run(ThreadPool.java:221)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)

 

This shows up when shutting down or restarting the server. Does anyone know a solution and could help me?

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Won't cause you any problems, I imagine this is caused because your TvT event logic uses Thread.sleep() till next run of the event (which is beyond stupid) so when server shuts down it gets interrupted, therefore you get this error. I could be wrong though, can't tell for sure if we don't have the code.

 

It would only cause problems if there was data to be saved after the sleep() call, which I doubt.

Edited by An4rchy
Link to comment
Share on other sites

  • 0
13 hours ago, Sonti said:

Hi,

 

 

This shows up when shutting down or restarting the server. Does anyone know a solution and could help me?

i would suggest you to use a different tvt event 

  • Haha 1
Link to comment
Share on other sites

  • 0

 

I just found this on the internet few days ago.

 

TvT Acis 398 Yo: Sarada - Pastebin.com

 

It's hard to find a working TvT Event for acis 399+. The others from revision 382+ don't work for me, I don't know java to be able to do it myself. This one worked and generally everything works. 

 

A colleague Zake suggested not to use this code so I'm sure he knows and I'll listen to him.

Sorry for the late reply and thank you all for replying.

 

Link to comment
Share on other sites

  • 0

The one you got will work just fine. What you can do is store the TvTEventManager task and cancel it on server shutdown manually so that you don't get InterruptedException. This error won't cause you any problems though.

Link to comment
Share on other sites

  • 0

this code has some questionable functions and changes inside, thread.sleep and concurrent exceptions, i would not use it raw you should fix alot of things on this code.

 

the developer probably didnt know how to use enumerations and changed this

partyPlayer.setTeam(TeamType.NONE);

 

to this
partyPlayer.setTeam(0);

and that should be enough about this code to make you understand its not good quality.

 

Note: dont use random free stuff you find on the internet, you might damage your server.

:kim:peace✌

Edited by Nightw0lf
Link to comment
Share on other sites

  • 0

I appreciate your reply.

 

From Nightw0lf's entry I understand that it's not worth using this code. I went one by one and had to change important things in the acis code. I'm changing it to the original version and looking for something better.

 

An4rchy I don't know Java, I do everything by copy paste and sometimes I shine and I don't know how 😛 Thank you for your answer, I'll try something myself with the internet.

 

I found another thing. I think this code is better but I will be grateful if you take a look at it.

Unfortunately, the code is incomplete and I don't even know what's missing.

 

https://pastebin.com/MTbQv2FJ

 

Thank you.

Link to comment
Share on other sites

  • 0
Don't use FBIAgent's TvT, it is at least 10y old and since BRs (=Sarada) don't know how to code, they simply re-share with 0 added value (or bad written configs addition).
  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • How's the project doing? Is there any news? It really interesting 🤔
    • thx for answer, i tried and woks encrypting, but i still having crashes 😞 i changed the icon in skillgrp.dat from "icon.skill0003" to "Myicons.misil" as i saved the file before endec and nothing. this is the report i got
    • New Season coming May 2024! First post updated      Website: L2Kain.net  Discord: https://discord.gg/l2kain  Wiki: https://info.kain.ws/   Important Dates   Server Start: TBD  Open Beta Test: 10th of May 2024!   Basic Information     Briefly about the concept of the server! We decided to move away from the standard Mid-Rate server concept and keep the mechanics of our beloved Lineage 2 that everyone loves! Massive battles for epic bosses, battles for profitable farming locations, resource spoilage and equipment crafting, daily instances, a balanced economy and much more. This server is build as a Craft-PvP concept. The goal is to gather players with a variety of preferences in the game and make a high-quality and interesting server with alternative character development options. We are well aware that "grinding" is an integral part of the game, but we diluted the boring and the same type of farming with interesting solutions and non-standard mechanics!   We have prepared a new High Five x25 on Modern Client for you. This server will be another step in the development of the platform and the project as a whole! Your appeals to those. support was not ignored, which means the new server will be even better than the previous one!      ⭐ Promotions and Bonuses for new players!     ⭐ Events and Giveaways daily!   ⭐ Rewards for Voting!   ℹ️ Server Rates Learn more about server rates! Server rates are configured in such a way that farming is best rewarded. Adena, drops, quests, various rewards and prices in the game store are well balanced among themselves!   Basic Server Rates:  ⭐ Experience & Skill Points - x25  ⭐ Adena Drop - x15 & Fixed Chance 66%  ⭐ Drop Rates - x10  ⭐ Spoil Rates - x10   Crafting keys, recipes drop & spoil with fixed amount from 2 to 3 and increased chances on all locations and quests  related to farm them.  ⭐ Quest Rates - x5  ⭐ Fortresses & Sieges - x5  ⭐ Raid Bosses & Epic Bosses - x1  ⭐ Weight Limit - x10      Connect with Us:  Discord: https://discord.gg/l2kain  Facebook: https://www.facebook.com/KainLineage2  TikTok: https://www.tiktok.com/@l2kain.net  YouTube: https://www.youtube.com/@Lineage2Kain
  • Topics

×
×
  • Create New...