Jump to content
  • 0

Question

Posted

Hello there.. i have a java problem..

I try to insert an AUTO-RESTART CODE ,everything was alright untill now.im my config it gives error to a code here it is 

Spoiler

               public static void loadCustomConfig()
                      {
                   final String BYEXCALIBUR = FService.EXCALIBUR_FILE;
                   
                                  try
                                  {
                                  Properties CustomSettings = new Properties();
HERE~>                        InputStream is = new FileInputStream(new File(BYEXCALIBUR));
                                  CustomSettings.load(is);
                                          is.close();
                                          
     RESTART_BY_TIME_OF_DAY = Boolean.parseBoolean(CustomSettings.getProperty("EnableRestartSystem", "false"));
     RESTART_SECONDS = Integer.parseInt(CustomSettings.getProperty("RestartSeconds", "360"));
     RESTART_INTERVAL_BY_TIME_OF_DAY = CustomSettings.getProperty("RestartByTimeOfDay", "20:00").split(",");                        
                 {
HERE~>            e.printStackTrace();
       throw new Error("Failed to Load " + BYEXCALIBUR + " File.") ;     <~HERE
                                    
                            }   
                                  

 

 

 i found the code here :

 

I Use l2jfrozen as well but rev 1132.

13 answers to this question

Recommended Posts

  • 0
Posted

Just throwing this out there there is a little utility that I used that would restart my game server  exe or whatever  file you pointed it at if it crashed etc.. I can upload it if you want it

  • 0
Posted
2 minutes ago, Spikey said:

Just throwing this out there there is a little utility that I used that would restart my game server  exe or whatever  file you pointed it at if it crashed etc.. I can upload it if you want it

yes please

  • 0
Posted
32 minutes ago, Spikey said:

All that utility does is restart the executable if it crashes, So what is it your trying to save in game ? DB position ?

everything.. i use that and it doesnt save my last actions..what i mean :

to test it .i set it up for 18:50 then i open server at (18:49) i create an item to my invetory and  the item has gone after "restart" it doesnt save before restart its like close window and re-open it

  • 0
Posted

So what are you running L2j H5 MySql backend ? cause it sounds to me like a DB issue, when I exit my server all my items and position are saved, even if I craft something and crash it on purpose. sounds like the data not being written to the DB

  • 0
Posted
2 minutes ago, Spikey said:

So what are you running L2j H5 MySql backend ? cause it sounds to me like a DB issue, when I exit my server all my items and position are saved, even if I craft something and crash it on purpose. sounds like the data not being written to the DB

i don't know i solved auto-restart with global_task but i have  error while restarting server say's successfuly restarted and shutteddown and doenst reopen again :/ i have 5.0 sql..here is a picture of it

crash1.JPG

  • 0
Posted
1 minute ago, Spikey said:

Probably doesn't shutdown completely open up  task manager see if OpenJDK platform binary is still running after crash ?

ok wait  a sec

  • 0
Posted (edited)

@Spikey NOPE it doesn't ,also after server crashed it says about "r" to restart or "q" to quit ..if i press "r"restart it and 

open successfully ..pfff  

Edited by scraw
  • 0
Posted

Well at this point I'm as lost as you are however I would look at your JDK  ver make sure its up to date assuming your running l2j latest, I mean could be a number of things going on like antivirus locking file or your JDK version not up to date or older mysql build etc... wish I could be more help to you sorry.

  • 0
Posted
6 minutes ago, Spikey said:

Well at this point I'm as lost as you are however I would look at your JDK  ver make sure its up to date assuming your running l2j latest, I mean could be a number of things going on like antivirus locking file or your JDK version not up to date or older mysql build etc... wish I could be more help to you sorry.

you helped already enought mate ..Trying is that matters the most .Btw i think i find a quick solution .. i just set my sql to auto-restart if an error pop-up ,so isn't a solution actually but it do it work :/

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

    • Hey, any one can help me or tell advice how to make this shown damage on screen directly on enemy when im hitting it, becuase now this damage is located on my screen near my character. What script or what interface.u class i need modify?
    • Opening Date: Q4 2026 (exact date TBA) Chronicle: High Five (H5) Rates: Mob EXP/SP: low (secondary) | PvP EXP: main progression source (custom formula, exact rate TBA)   Hey everyone,   Announcing L2Berserk, a custom Lineage 2 High Five project currently in development. This is a solo project, so progress may take a bit longer than a full team would need — but it's moving forward steadily. The idea behind it is simple: most servers either force you into rigid factions or let PvP happen almost by accident while everyone grinds mobs for hours. L2Berserk is a crossover of both worlds — there's no faction split, no separate towns, everyone spawns and plays in one shared hub, but progression itself is built around fighting other players instead of farming spots. If you enjoy PvP more than staring at a bot-farming route, this is being built with you in mind.   Already implemented: Custom launcher — own CDN and updater, auto-detects your existing install so setup is fast and low-friction Tower of Trials — a 10-floor PvE dungeon, 3 monster waves per floor, difficulty scales as you climb; built as a solo/small-group challenge track separate from the PvP-EXP loop PvP Arena — an NPC that queues players into Party vs Party or Command Channel vs Command Channel arena matches on demand Olympiad — implemented and functional for structured 1v1/team PvP Event Manager — automated system running rotating events every 10 minutes non-stop, so there's always something active for players to jump into Single shared hub — no faction-locked zones; PvP-driven EXP progression is the main way you level PvP Zone — a dedicated zone avaiable through PvP Zone Teleport Scroll. Zones have boundaries so players won't run from pvp forever. Planned: Kill-streak rewards / bounty system — the more active you are in PvP, the more visible and rewarded you become PvP ranking / leaderboard with seasonal recognition More content and events Additional Discord integrations A live testing phase with the community before the official opening, so mechanics get stress-tested before Q4 A lot more features are planned beyond what's listed here — the project is still actively growing If you have suggestions, feel free to post them on Discord   A note on where things stand: the server is currently offline (0% uptime) — that's expected at this early stage, not a sign the project stalled. Following along and feedback from anyone interested in this kind of PvP-first server are very welcome.   Website: l2berserk.fun
  • 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..