L2TimeMachine Posted June 9, 2018 Posted June 9, 2018 hello i`ve got problem with a automatic vote system for hopzone. It worked at my last server but now... Sh1t happends... Topzone and l2network works fine but hopzone is not. Got all the time: I am trying to put every url`s what i can ito a powerpark config, this one is most close to be fine: # Hopzone: http://l2.hopzone.net VotesSiteHopZoneUrl = https://api.hopzone.net/lineage2/votes?token=UscplMw9V7DSTok3 # Topzone: http://l2topzone.com VotesSiteTopZoneUrl = http://l2topzone.com/tv.php?id=15459 # --------------------------------------- VotesSystemNetworkDelay = 300000 # L2Network: http://l2network.eu VotesSiteL2NetworkUrl = https://l2network.eu/details/L2TimeMachine/ Can someone help me with it?
0 L2TimeMachine Posted June 10, 2018 Author Posted June 10, 2018 3 minutes ago, L2TimeMachine said: public static void main(String[] args) { System.out.println(getHopZoneVotes()); } public static int getHopZoneVotes() { int votes = 0; boolean lineFound = false; try { URL url = new URL("https://l2.hopzone.net/lineage2/details/102978/L2TimeMachine"); InputStream is = url.openStream(); try (BufferedReader br = new BufferedReader(new InputStreamReader(is))) { String line; while ((line = br.readLine()) != null) { if (line.contains("<span class=\"rank tooltip\" title")) { lineFound = true; votes = Integer.valueOf(line.split(">")[2].replace("</span", "")); } } } } catch (IOException e) { System.out.println("Something went wrong while trying get votes from HopZone"); } if (!lineFound) System.out.println("The line wasn't found in HopZone, check site in case they updated."); return votes; } :/ got a failures in compilation
0 L2TimeMachine Posted June 10, 2018 Author Posted June 10, 2018 5 minutes ago, L2TimeMachine said: :/ got a failures in compilation Ok compiled, but... Its still not working ;S im done
0 melron Posted June 10, 2018 Posted June 10, 2018 1 minute ago, L2TimeMachine said: Ok compiled, but... Its still not working ;S im done this method does not have problem. so you have to check somewhere else.. check config maybe?
0 L2TimeMachine Posted June 10, 2018 Author Posted June 10, 2018 1 minute ago, melron said: this method does not have problem. so you have to check somewhere else.. check config maybe? that how the error looks in server console WARN [AutoVoteReward] Server HOPZONE is offline or something is wrong in link java.lang.NumberFormatException: For input string: "oding="UTF-8"?> <html xmlns:fb="https://www.facebook.com/2008/fbml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title> [HopZone.Net] - L2TimeMachine details </title> <meta name="description" content="HopZone.Net l2 top mmorpg, l2 servers, top game sites, join our high traffic top list and we guarantee players for your lineage 2 servers or game sites or mmorpg games for sure."/> <meta name="keywords" content="lineage2, lineage ii adena, C4, hellbound, gracia, epilogue, C3, C2, C1, C5, l2, private,online rpg, mmorpg, rpg online, mmorpg games, adena, lineage items, game toplist, lineage, game sites, gaming sites, links, 100, 200,đŻđżđ▓Đőđ╣ ĐüđÁĐÇđ▓đÁĐÇ"/> <meta name="author" content="Kadar and Hop_Hop"/> <meta name="Copyright" content="┬ę 2014 HopZone.Net"/> <meta name="revisit-after" content="1 days"/> <meta name="referrer" content="unsafe-url"/> <meta name="robots" content="index,follow"/> <meta name="googlebot" content="index,follow"/> <meta property="og:image" content="https://hopzone.r.worldssl.net/img/image_share.jpg"/> <meta property="og:description" content="Free Lineage 2 servers for you to play. Most complete lineage 2 private server top list."/> <meta name="google-site-verification" content="PSHNXNgWftqsgah1_ZxID2KPtbA1eZjUwLT6pqNGTpM"/> <!-- internationalization --> <link rel="alternate" href="https://l2.hopzone.net/br/lineage2/details/102978/L2TimeMachine" hreflang="pt-BR"/> <link rel="alternate" href="https://l2.hopzone.net/ru/lineage2/details/102978/L2TimeMachine" hreflang="ru-RU"/> <link rel="alternate" href="https://l2.hopzone.net/gr/lineage2/details/102978/L2TimeMachine" hreflang="el-GR"/> <link rel="alternate" href="https://l2.hopzone.net/lineage2/details/102978/L2TimeMachine" hreflang="x-default"/> <!-- Jquery directly from google servers--> <link href="https://hopzone.r.worldssl.net/css/style.css?v=109" rel="stylesheet" type="text/css"/> <!-- <link href="--> <!--css/fontello/fontello.min.css?v=1" rel="stylesheet" type="text/css"/>--> <link href="https://hopzone.r.worldssl.net/css/fontello/gamepad.css?v=2" rel="stylesheet" type="text/css"/> <!--[if IE 7]> <!--<link rel="stylesheet" href="css/fontello/fontello-ie7.css">--> <script id="facebook-jssdk" src="//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3"> </script> <script src="//connect.facebook.net/en_US/fbds.js"> </script> <script src="https://www.googletagmanager.com/gtm.js?id=GTM-T72MQ86"> </script> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js?v=1"> </script> <script type="text/javascript" src="https://hopzone.r.worldssl.net/js/jquery-workarounds.min.js?v=1"> </script> <script> //<![CDATA[ var blmofo = false; //]]> </script> <script type="text/javascript" src="https://hopzone.r.worldssl.net/js/bldet.js?v=1"> </script> <script language="javascript" type="text/javascript" src="https://hopzone.r.worldssl.net/js/flot/jquery.flot.min.js"> </script> <script language="javascript" type="text/javascript" src="https://hopzone.r.worldssl.net/js/flot/jquery.flot.time.min.js"> </script> <script async="" language="javascript" type="text/javascript" src="https://hopzone.r.worldssl.net/js/jquery.sparkline.min.js"> </script> <script type="text/javascript" src="https://hopzone.r.worldssl.net/js/jquery.inputmask.bundle.min.js?v=1"> </script> <script type="text/javascript"> //<![CDATA[ var BASE_URL = 'https://l2.hopzone.net/'; //]]> </script> <!-- Google Tag Manager --> <script> //<![CDATA[ (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-T72MQ86'); //]]> </script> <!-- End Google Tag Manager --> <script> //<![CDATA[ (function () { var _fbq = window._fbq || (window._fbq = []); if (!_fbq.loaded) { var fbds = document.createElement('script'); fbds.async = true; fbds.src = '//connect.facebook.net/en_US/fbds.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(fbds, s); _fbq.loaded = true; } _fbq.push(['addPixelId', '796818543769757']); })(); window._fbq = window._fbq || []; window._fbq.push(['track', 'PixelInitialized', {}]); //]]> </script> <link rel="preload" href="https://adservice.google.pl/adsid/integrator.js?domain=l2.hopzone.net"/> <link rel="preload" href="https://adservice.google.pl/adsid/integrator.js?domain=l2.hopzone.net"/> <style type="text/css"> .jqstooltip { position: absolute;left: 0px;top: 0px;visibility: hidden;background: rgb(0, 0, 0) transparent;background-color: rgba(0,0,0,0.6);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";color: white;font: 10px arial, san serif;text-align: left;white-space: nowrap;padding: 5px;border: 1px solid white;z-index: 10000;}.jqsfield { color: white;font: 10px arial, san serif;text-align: left;} </style> <style type="text/css"> .fb_hidden{position:absolute;top:-10000px;z-index:10001}.fb_reposition{overflow:hidden;position:relative}.fb_invisible{display:none}.fb_reset{background:none;border:0;border-spacing:0;color:#000;cursor:auto;direction:ltr;font-family:"lucida grande", tahoma, verdana, arial, sans-serif;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:1;margin:0;overflow:visible;padding:0;text-align:left;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;visibility:visible;white-space:normal;word-spacing:normal}.fb_reset>div{overflow:hidden}.fb_link img{border:none}@keyframes fb_transform{from{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.fb_animate{animation:fb_transform .3s forwards} .fb_dialog{background:rgba(82, 82, 82, .7);position:absolute;top:-10000px;z-index:10001}.fb_reset .fb_dialog_legacy{overflow:visible}.fb_dialog_advanced{padding:10px;border-radius:8px}.fb_dialog_content{background:#fff;color:#333}.fb_dialog_close_icon{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 0 transparent;cursor:pointer;display:block;height:15px;position:absolute;right:18px;top:17px;width:15px}.fb_dialog_mobile .fb_dialog_close_icon{top:5px;left:5px;right:auto}.fb_dialog_padding{background-color:transparent;position:absolute;width:1px;z-index:-1}.fb_dialog_close_icon:hover{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 -15px transparent}.fb_dialog_close_icon:active{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 -30px transparent}.fb_dialog_loader{background-color:#f6f7f9;border:1px solid #606060;font-size:24px;padding:20px}.fb_dialog_top_left,.fb_dialog_top_right,.fb_dialog_bottom_left,.fb_dialog_bottom_right{height:10px;width:10px;overflow:hidden;position:absolute}.fb_dialog_top_left{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/ye/r/8YeTNIlTZjm.png) no-repeat 0 0;left:-10px;top:-10px}.fb_dialog_top_right{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/ye/r/8YeTNIlTZjm.png) no-repeat 0 -10px;right:-10px;top:-10px}.fb_dialog_bottom_left{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/ye/r/8YeTNIlTZjm.png) no-repeat 0 -20px;bottom:-10px;left:-10px}.fb_dialog_bottom_right{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/ye/r/8YeTNIlTZjm.png) no-repeat 0 -30px;right:-10px;bottom:-10px}.fb_dialog_vert_left,.fb_dialog_vert_right,.fb_dialog_horiz_top,.fb_dialog_horiz_bottom{position:absolute;background:#525252;filter:alpha(opacity=70);opacity:.7}.fb_dialog_vert_left,.fb_dialog_vert_right{width:10px;height:100%}.fb_dialog_vert_left{margin-left:-10px}.fb_dialog_vert_right{right:0;margin-right:-10px}.fb_dialog_horiz_top,.fb_dialog_horiz_bottom{width:100%;height:10px}.fb_dialog_horiz_top{margin-top:-10px}.fb_dialog_horiz_bottom{bottom:0;margin-bottom:-10px}.fb_dialog_iframe{line-height:0}.fb_dialog_content .dialog_title{background:#6d84b4;border:1px solid #365899;color:#fff;font-size:14px;font-weight:bold;margin:0}.fb_dialog_content .dialog_title&g" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at com.l2jfrozen.gameserver.handler.AutoVoteRewardHandler.getHopZoneVotes(AutoVoteRewardHandler.java:380) at com.l2jfrozen.gameserver.handler.AutoVoteRewardHandler$AutoReward.run(AutoVoteRewardHandler.java:106) at com.l2jfrozen.gameserver.thread.ThreadPoolManager$RunnableWrapper.run(ThreadPoolManager.java:95) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.runAndReset(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
0 melron Posted June 10, 2018 Posted June 10, 2018 did you compile.... ? seems like you are using the old method
0 L2TimeMachine Posted June 10, 2018 Author Posted June 10, 2018 It looks like there is problem only with total votes read. But... If config is correct, code is correct.. What can be wrong? Last time when i was registring my server on hopzone, they cannot connect to my server. They said "we will add your server as "Online" but it was offline when we checked it" It seens like they only cant connect to my server. Like my server can`t connect to the hopzone... Mby problem is at the other side?
0 L2TimeMachine Posted June 10, 2018 Author Posted June 10, 2018 2 minutes ago, melron said: did you compile.... ? seems like you are using the old method now i putted old cause the new is not working too. If there is not a problem with code, i get back to the old methods
0 melron Posted June 10, 2018 Posted June 10, 2018 3 minutes ago, L2TimeMachine said: now i putted old cause the new is not working too. If there is not a problem with code, i get back to the old methods dude get real. i just proved you the connection how it should be done and its working. You are missing something idk 1
0 L2TimeMachine Posted June 10, 2018 Author Posted June 10, 2018 2 minutes ago, melron said: dude get real. i just proved you the connection how it should be done and its working. You are missing something idk i understund but it still make no changes, there must be a problem, but idk too where... To not waste your time ill try to do this by my self. Thank you very much
0 Solomun Posted June 10, 2018 Posted June 10, 2018 19 minutes ago, L2TimeMachine said: i understund but it still make no changes, there must be a problem, but idk too where... To not waste your time ill try to do this by my self. Thank you very much @Locked.
Question
L2TimeMachine
hello i`ve got problem with a automatic vote system for hopzone. It worked at my last server but now... Sh1t happends...
Topzone and l2network works fine but hopzone is not.
Got all the time:
I am trying to put every url`s what i can ito a powerpark config, this one is most close to be fine:
# Hopzone: http://l2.hopzone.net VotesSiteHopZoneUrl = https://api.hopzone.net/lineage2/votes?token=UscplMw9V7DSTok3 # Topzone: http://l2topzone.com VotesSiteTopZoneUrl = http://l2topzone.com/tv.php?id=15459 # --------------------------------------- VotesSystemNetworkDelay = 300000 # L2Network: http://l2network.eu VotesSiteL2NetworkUrl = https://l2network.eu/details/L2TimeMachine/
Can someone help me with it?
40 answers to this question
Recommended Posts