Jump to content
  • 0

Interlude java error


Question

Posted

anyone know how to fix this?         

        String str = tb.stringValue();

i get it error in interlude mmocore and dont tell learn java or search cause i already did so if you know the answer reply

Recommended Posts

  • 0
Posted

The error is in the server console or in the core?

maybe you can post me a screen ?

 

the error is in recievablepacket.java

 

   protected String readS()

   {

       TextBuilder tb = TextBuilder.newInstance();

       char ch;

       while((ch = getByteBuffer().getChar()) != 0)

           tb.append(ch);

       String str = tb.stringValue();

       TextBuilder.recycle(tb);

       return str;

 

 

the problem is

       String str = tb.stringValue();

  • 0
Posted

try to replace it with that

    protected String readS()
    {
        TextBuilder tb = TextBuilder.newInstance();
        char ch;
        
        while((ch = getByteBuffer().getChar()) != 0)
            tb.append(ch);

        String str = tb.stringValue();
        TextBuilder.recycle(tb);
        return str;
    }

  • 0
Posted

try to replace it with that

    protected String readS()
    {
        TextBuilder tb = TextBuilder.newInstance();
        char ch;
        
        while((ch = getByteBuffer().getChar()) != 0)
            tb.append(ch);

        String str = tb.stringValue();
        TextBuilder.recycle(tb);
        return str;
    }

what? this is exactly the same... and it doesnt work...

  • 0
Posted

 

Gosh, 4shared >_>

 

Anyway, it's as it should be.

It is probably connected with other mmocore packets that cause this error because of a chain reaction.

http://www.maxcheaters.com/forum/index.php?topic=110159.0

Use these. They'll work.

  • 0
Posted

You are not modifying the original string.

 

What happens is that you create a new String object with the expression "n" + str, and you assign that new String object to the variable str. The old String object that str was referring to is discarded.

 

Class String is indeed immutable, which means that the content of a String object cannot be modified after it has been created. But ofcourse you can make variables of type String refer to a different String object.

 

And btw ,

 

String str = Your string.

 

tb ( just see your edit ) = your string has been changed.

 

PS : If you don't understand something , do not hesitate to ask me.

Guest
This topic is now closed to further replies.


  • Posts

    • Hi players ! Meet our project Lineage 2 Hiro Classic ! A low rate classic pvp oriented with many features. No pay to win, RB/AoE, group clan pvp castle etc ...  Dynamic rates, RB Xp 4x and soon massive update with auto farm ! Join now !  https://www.lineage2hiro.com/ Can't wait to see you online !
    • To all first time buyers we give a bonus + 10% of the order. 
    • 🔥 Looking for a powerful, clean, and player-friendly Auction House system for your Lineage 2 server? This fully-featured module is ready to plug into your project and provide your players with a modern, centralized marketplace!   💼 What is it? A complete Auction House system designed for fixed-price item sales between players. Forget about private stores and spammed zones—this system offers a smooth, secure, and offline-friendly way to buy and sell items across your server.   Photo Library: https://imgur.com/a/zLlUQbW   ✅ Main Features: 🔹 Fixed-Price Listings Only: Players list items at a set price. No bidding, no delays—just fast, clean trades. 🔹 Multi-Currency Support: Works with Adena, event coins, custom currencies—fully configurable. 🔹 Dynamic Interface: Players can filter items by name, type, and price. Easy-to-use HTML layout with smooth pagination. 🔹 Sell While Offline: Post items and receive payments even if you're not online—true passive trading. 🔹 Safety First: Full validation: no equipped/augmented/restricted items unless allowed. Prevents scams, mispricing, and listing errors. 🔹 Expiration Timer (Optional): Set listing time limits. Expired items go to warehouse/mail automatically. 🔹 Spam & Duplication Protection: Prevents multiple listings of identical items and unnecessary database load. 🔹 Performance Optimized: Clean, indexed SQL structure. No lag or bloating even with thousands of listings.   ⚙️ Plug & Play Clean Java code (compatible with aCis & derivatives). Easy setup with full instructions and sample configurations. Includes SQL, HTML files, and all Java classes – fully working out of the box.   💰 Pricing & Contact 📦 50 euro - One-time purchase with full support for setup & basic customization. 💬 Contact me here via PM or on Discord: @Luminous 🔐 Serious buyers only – source is clean, secure, and tested on live servers.     Give your server the next-level economy it deserves. No more chaotic trade zones. No more confusion. Just clean, efficient, server-wide trading.
    • We are certainly not an ambulance, but we will definitely cure you of blacklists and empty pockets. Live freely with SX! Each of you will receive a trial version of SX to familiarize yourself with the product, all you have to do is post in this thread
    • 166 pisses on their heads any day of the week though
  • Topics

×
×
  • Create New...