Jump to content
  • 0

TvT Event acis 399 error


Question

Posted

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?

8 answers to this question

Recommended Posts

  • 0
Posted (edited)

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
  • 0
Posted
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
  • 0
Posted

 

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.

 

  • 0
Posted

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.

  • 0
Posted (edited)

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
  • 0
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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

    • This post originally appeared on zupyak.   If you're diving into MLB The Show 25, you know how essential stubs are for building a powerhouse team. Whether you're aiming to snag elite players, upgrade your roster, or stock up on packs, stubs are the key to success. The good news? You don't need to spend real money to earn them. With a little strategy and effort, you can rake in stubs and dominate the diamond.  Here are the top five strategies to maximize your MLB The Show stub earnings and create the ultimate team without breaking the bank.    1. Earning Stubs with Diamond Quest Diamond Quest is a goldmine for stubs. By completing challenges in this mode, you can earn Diamond cards, which often have high sell values. Once you've earned these cards, sell them in the in-game Marketplace for a quick influx of stubs. Additionally, the packs you earn from Diamond Quest can be opened for more cards to sell or use in collections.   2. Completing Conquest Maps Conquest Maps are another excellent way to rack up stubs. Focus on capturing territories and completing map-specific goals. Many maps offer hidden rewards, including packs and stubs, which can significantly boost your earnings. You don't always need to conquer Strongholds—simply taking over territories can yield great rewards.   3. Flipping Cards in the Marketplace The Marketplace is your playground for flipping cards. Look for cards with a significant gap between their "Buy Now" and "Sell Now" prices. Place a Buy Order slightly above the current "Sell Now" price, then list the card for a "Sell Order" just below the "Buy Now" price. After the 10% Marketplace tax, you'll still make a profit. This strategy works best with high-value cards but requires patience and consistency.     4. Leveraging Player Exchanges Player Exchanges are an underrated method for earning stubs. Purchase cheap Silver cards near their quick-sell value, then exchange them for Gold players. These Gold players can either be used in your lineup or sold for a profit. This method is especially effective early in the game when Gold cards hold higher value.   5. Selling Things You Don't Need Don't let unused items clutter your inventory. Regularly check for duplicate cards, equipment, or other items you don't need. Sell these through the Marketplace to free up space and earn extra stubs. Even Bronze and Silver cards can add up over time, so don't overlook them. With these strategies, you'll be well on your way to building a dream team without spending real money. Let me know if you'd like to dive deeper into any of these methods!   Final Thoughts Building your dream team in MLB The Show 25 doesn't have to cost real money. With these five strategies—earning rewards through Diamond Quest, conquering Conquest Maps, flipping cards in the Marketplace, leveraging Player Exchanges, and selling unused items—you'll be well on your way to amassing stubs and creating a roster that rivals even the best in the game. Remember, consistency is key! Whether you're grinding through challenges or flipping cards daily, every little bit adds up over time. Stick with these methods, and soon enough, you'll have the stubs you need to dominate the diamond. Let us know which strategy works best for you—or if you've discovered any additional tips that deserve a spot on this list! Happy grinding!   
    • I don't see that ur account got unbanned https://maxcheaters.com/profile/80641-∽ave∽/  
    • Looking for gracia final/gracia epilogue server files including source.
    • Got banned for ALLEGED scamm. Unbaned because I never scammed anyone - I either deliver or refund. So You can cry as much as You like, post as much idiotic and chidlish emotes as You like, but I'm not a scammer. So...get a life kid, and fuck off Cuntw0lf. There is a reason You have "0" in Your nickname. You are a zero 😎
    • talk in the mirror 🖕  🤏 in some of those urls you are banned for scam     definition of scam for you is not include delivery we all know scammer once scammer always i cant understand why you talk to me only and ignore the others? why nobody else triggers you like that
  • Topics

×
×
  • Create New...