Jump to content

Versus

Legendary Member
  • Posts

    3,947
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Versus

  1. I think it's bad implementation of latest L2J mmocore to esios pack or acis, not so sure, since i never got really into these packs.

     

    With default settings there shouldn't be absolutely any problem, i was running my Interlude server for years using the exact same setup.

  2. if you followed versus method well obviously the fix you applied it was not a fix but you prevent from see it on log files readd old code back.. the error isnt the exception message log, you wont fix it buy deleting the message on logs on console.. if you even delete the log of gs console you will still got the lag and the error .. it is obviously a failure of a code inside the characteraitask

    Yeah, i was at work this morning, without looking at source and seeing this thoroughly, i remembered that at old L2J revs Throwable was used everywhere, so i recommended him to change that (which he should nevertheless).

     

    Stack overflows are usually caused by bad recursive calls. Most likely, a recursive call without a proper termination condition.

    @OP we can't help you much here, we'd need sources in order to provide further help.

  3.  

     

    At the moment its like this

    public void run()
    {
    try
    {
    getAI().notifyEvent(_evt, null);
    }
    catch (StackOverflowError e) {
    if(Config.DEBUG) // safer
    _log.log(Level.WARNING, "", e);
    }
    catch (Throwable t)
    {
    _log.log(Level.WARNING, "", t);
    }
    }

    but i think that stackoverflowerror is useless should i change to:

               public void run()
            {
                try
                {
                    getAI().notifyEvent(_evt, null);
                }
                catch (Exception e)
                {
                    _log.log(Level.WARNING, "NotifyAITask failed. " + e.getMessage() + " Actor " + L2Character.this, e);
                }

     

    Yes, you should change to that.

  4.    private int getVotes()
       {
           URL url = null;
           InputStreamReader isr = null;
           BufferedReader in = null;
           try
           {
               url = new URL(http);
               URLConnection con = url.openConnection();
               con.addRequestProperty("User-Agent", "Mozilla/4.76"); 
               isr = new InputStreamReader(con.getInputStream());
               in = new BufferedReader(isr);
               String inputLine;
               while ((inputLine = in.readLine()) != null)
               {
                   // for top-zone
            	   if (inputLine.contains("Votes:"))
            	   {
            	    	  return  Integer.parseInt(inputLine.split(">")[3].replace("</div", ""));
            	      }
               }
           }
    

    worked , thank you :)

     

    may i ask you something else? How i can make one item , to change the acces lvl of a player , i need this to give auto acces on the VIP  buffer. or how can i make vip buffer , check for items on players invetory and after give acces? :)

     

    No problem.

     

    Didn't notice you asked something else till today, the answer is rather simple, i can't access source right now, so i'll post an example:

    if (player.getInventory().getItemById(1234) != null)
        player.setAccessLvl(1);

    PS: This is merely an example, without checking source, methods should exist, at least, almost like that, don't forget you also need to check count and delete the item from player's inventory (not sure if you need this).

     

    If you need more help let me know.

  5. I'm not familiar with esios pack, but seems to me you are getting an error, you don't necessarily need. Most likely this is due to L2J's outdated way of using catch(Throwable t), that's almost never wanted, you want to catch specific exceptions and not generally everything - that should be the case only to the very top of a thread.

     

    Go to L2Character.java at NotifyAiTask class and replace 

    catch (Throwable t)
    {
    _log.log(Level.WARNING, "", t);
    }

    with

    catch (Exception e)
    {
    _log.log(Level.WARNING, "", e);
    }
  6. Το φιλαράκι λέει την gevey, η οποία δούλευε τέλεια σε ένα αγγλικό 4αρι που είχα παλιά, τώρα τι παίζει με τα 4s και τις νέες εκδόσεις iOS δε ξέρω.. αλλά γιατί δε ψάχνεις λίγο στο ίντερνετ πρωτού κάνεις την αγορά;

  7. Εγώ στη θέση σου θα περίμενα το 5s. Το 5s με διπύρηνο επεξεργαστή, είναι πιο γρήγορο από το s4 που έχει τετραπύρηνο! Μόνο αυτό θα έπρεπε να σου λέει πολλά. Η samsung έχει προσπαθήσει αρκετές φορές να κλέψει στα benchmarks και πάλι το 5s βγαίνει πιο γρήγορο..

     

    Γενικά όπως και να το δεις, το iPhone δε γίνεται να συγκριθεί με κανένα άλλο smartphone. Καταρχάς σκέψου ότι το iOS είναι σχεδιασμένο ειδικά για το iPhone, ενώ το Android είναι σχεδιασμένο για να τρέχει σε ένας Θεός ξέρει πόσες συσκευές. Μόνο αυτό ξέρεις τι λέει από άποψη αξιοπιστίας, ταχύτητας και απόδοση μπαταρίας;

     

    Ψάξε λίγο τι ισχύει πραγματικά, γιατί υπάρχουν πολλοί apple haters γιατί την έχουν δει όλοι να μισούν το mainstream, τι να κάνουμε ρε παιδιά αν το mainstream είναι καλύτερο;

     

    Όλα αυτά από κάποιον που έχει περάσει αρκετό καιρό και με galaxy και με iPhone.

  8. Hmm.. ok.. dw files were never sold, project was abandoned 4 years ago, can you imagine how many bugs there would be to 4 year old files? Jesus, your server is not even remotely the same as dw, you think ppl are that retarded and won't even notice it? Stop trying to steal what other people worked for and start doing your own.

     

    I also contacted Frank, he never sold the files to you and it's pretty obvious if you check your server features. -> Dw never had a voting system and even if we actually reopened it, we'd never use one.

     

    I seriously don't like making threats but i'm fed up with people trying to steal my server's name just for publicity, without even doing a decent job. Please rename your project or you won't even see it started.

  9.  

    Μου έβγαλε και ένα άλλο θέμα :/ ενώ βάζω να δίνει κάθε 1 vote reward για να το τεσταρω αλλά λέει ότι θα δώσει στα 21 ενώ ο σέρβερ έχει 3 votes :/ είδα στην database (απο navicat) στο table votes που αποθηκεύει τα votes ότι έχει μείνει στα 20 που ήταν τα votes στο Topzone τον προηγούμενο μήνα ! Εγώ όμως άλλαξα να δίνει reward με τους ψήφους του Hopzone, παρατήρησα ότι δεν αποθηκεύονται του hopzone τα votes.

     

    Ελπίζω να το περιέγραψα καλά και να καταλάβετε το πρόβλημά μου ! 

     

    Ευχαριστώ !

     

    το vote table είναι :

    id  vote
    1    20

    Μπορείς να παρέχεις το AutoVoteRewardHandler.java να του ρίξω μια ματιά;

  10. Μα δεν του βγάζει ούτε το μήνυμα "Hopzone/Topzone is offline" άρα πρέπει να γίνεται κάτι άλλο εκτός από αυτό.

     

    Πιθανότατα να είναι απενεργοποιημένο από τα configs.

    Με μια γρήγορη ματιά που έριξα στον κώδικα βρήκα αυτό το λάθος και του το είπα, πέρα από αυτό αν έχει κι άλλα προβλήματα μετά τη διόρθωση αυτού, εδώ είμαστε να τα φτιάξουμε κι αυτά. Τώρα αν έχει κλειστά τα configs.. τι να πω :P

  11. den katalava omos.. epidi kai egw exw etimo pack ti prepi na kanw?

    Απαιτείται τροποποίηση πηγαίου κώδικα, σε έτοιμο πακ δε μπορείς να κάνεις τίποτα. Θα σου συνιστούσα να κατεβάσεις τα sources του πακ σου και να ψαχτείς λίγο.. η λύση έχει δοθεί παραπάνω και είναι μικρο αλλαγές.

×
×
  • 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