Jump to content

Recommended Posts

Posted
On 5/11/2020 at 12:59 AM, AndreEsteves said:

Kara Vote SQL - Fixed

last_vote_kara.sql



Someone know how to fix queen ant heal?

heal or  hp? have half hp?

Posted (edited)

To fix the services button is easy..Open Eclpise and then Just open services.community and search for ''CommunityNpcs'' after that search   if ("bbsgetfav".equals(cmd) || "bbsnpcs".equals(cmd))
            {
            sendFileToPlayer(player, "bbs_npcs.htm", true);
            return; 

and UNGREEN IT..

Edited by addx20
  • 2 weeks later...
Posted
On 5/17/2020 at 10:44 PM, addx20 said:

To fix the services button is easy..Open Eclpise and then Just open services.community and search for ''CommunityNpcs'' after that search   if ("bbsgetfav".equals(cmd) || "bbsnpcs".equals(cmd))
            {
            sendFileToPlayer(player, "bbs_npcs.htm", true);
            return; 

and UNGREEN IT..

Well Done thank you!

  • 3 weeks later...
  • 2 weeks later...
  • 2 weeks later...
Posted
12 hours ago, lokaosk1000 said:

[GAMESERVER]

INFO Licensed IP 127.0.0.1
 INFO Licensed IP Please Contact Ichsan Rinaldi Sjofka

 

[LOGINSERVER]

INFO IP: 190.161.xxx.xx Login: kryz Assigned to Proxy: 127.0.0.1


i cant log in any idea?

fixed it

  • 4 weeks later...
Posted

Could someone help me out with this error?

Exception in thread "main" java.lang.NoSuchMethodError: java.nio.ByteBuffer.rewind()Ljava/nio/ByteBuffer;
        at l2f.gameserver.vote.DDSConverter.buildHeaderDxt1(DDSConverter.java:215)
        at l2f.gameserver.vote.DDSConverter.convertToDxt1NoTransparency(DDSConverter.java:126)
        at l2f.gameserver.vote.DDSConverter.convertToDDS(DDSConverter.java:113)
        at l2f.gameserver.cache.ImagesCache.loadImages(ImagesCache.java:69)
        at l2f.gameserver.cache.ImagesCache.<init>(ImagesCache.java:57)
        at l2f.gameserver.cache.ImagesCache$ImagesCacheHolder.<clinit>(ImagesCache.java:308)
        at l2f.gameserver.cache.ImagesCache.getInstance(ImagesCache.java:303)
        at l2f.gameserver.GameServer.<init>(GameServer.java:305)
        at l2f.gameserver.GameServer.main(GameServer.java:617)

I've tried all kinds of different java versions to run the gameserver and to compile everything, still throws this one every time.

  • 1 month later...
Posted
On 13/08/2020 at 13:06, estaz said:

Alguém poderia me ajudar com esse erro?


Eu tentei todos os tipos de versões diferentes de java para rodar o gameserver e compilar tudo, ainda jogo isso toda vez.

 

Error Compiler fixed .......

 

 

 

package l2f.commons.compiler;

import java.io.File;
import java.io.StringWriter;
import java.io.Writer;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Locale;

import javax.tools.Diagnostic;
import javax.tools.DiagnosticListener;
import javax.tools.JavaCompiler;
import javax.tools.JavaFileObject;
import javax.tools.StandardJavaFileManager;

import org.eclipse.jdt.internal.compiler.tool.EclipseCompiler;
import org.eclipse.jdt.internal.compiler.tool.EclipseFileManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * ????? ?????????? ??????? Java ??????<br>
 * ? ???????? ??????????? ???????????? Eclipse Java Compiler
 * @author G1ta0
 */
public class Compiler
{
    private static final Logger _log = LoggerFactory.getLogger(Compiler.class);
    
    private static final JavaCompiler javac = new EclipseCompiler();
    
    private final DiagnosticListener<JavaFileObject> listener = new DefaultDiagnosticListener();
    private final StandardJavaFileManager fileManager = new EclipseFileManager(Locale.getDefault(), Charset.defaultCharset());
    private final MemoryClassLoader memClassLoader = new MemoryClassLoader();
    private final MemoryJavaFileManager memFileManager = new MemoryJavaFileManager(this.fileManager, this.memClassLoader);
    
    public boolean compile(File... files)
    {
        // javac options
        List<String> options = new ArrayList<String>();
        options.add("-Xlint:all");
        options.add("-warn:none");
        // options.add("-g:none");
        options.add("-g");
        options.add("-source");
        options.add("1.8");
        // options.add("-deprecation");
        
        Writer writer = new StringWriter();
        JavaCompiler.CompilationTask compile = javac.getTask(writer, this.memFileManager, this.listener, options, null, this.fileManager.getJavaFileObjects(files));
        
        if (compile.call())
        {
            return true;
        }
        
        return false;
    }
    
    public boolean compile(Collection<File> files)
    {
        return this.compile(files.toArray(new File[files.size()]));
    }
    
    public MemoryClassLoader getClassLoader()
    {
        return this.memClassLoader;
    }
    
    private class DefaultDiagnosticListener implements DiagnosticListener<JavaFileObject>
    {
        @Override
        public void report(Diagnostic<? extends JavaFileObject> diagnostic)
        {
            _log.error(diagnostic.getSource().getName() + (diagnostic.getPosition() == Diagnostic.NOPOS ? "" : ":" + diagnostic.getLineNumber() + "," + diagnostic.getColumnNumber()) + ": " + diagnostic.getMessage(Locale.getDefault()));
        }
    }
}

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
Reply to this topic...

×   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

    • I open the l2j server and see 1. XOR->NewCrypt.encXORPass(raw, offset, size, Rnd.nextInt()); ---> xor everything is clear 2. _staticCrypt.crypt(raw, offset, size); -----> private void encryptBlock(byte[] src, int srcIndex, byte[] dst, int dstIndex) { int xl = bytesTo32bits(src, srcIndex); int xr = bytesTo32bits(src, srcIndex + 4); xl ^= P[0]; for (int i = 1; i < ROUNDS; i += 2) { xr ^= func(xl) ^ P[i]; xl ^= func(xr) ^ P[i + 1]; } xr ^= P[ROUNDS + 1]; bits32ToBytes(xr, dst, dstIndex); bits32ToBytes(xl, dst, dstIndex + 4); }   I scroll down the code and see this code   ----->>> /**      * Decrypt the given input starting at the given offset and place the result in the provided buffer starting at the given offset. The input will be an exact multiple of our blocksize.      * @param src      * @param srcIndex      * @param dst      * @param dstIndex      */     private void decryptBlock(byte[] src, int srcIndex, byte[] dst, int dstIndex)     {         int xl = bytesTo32bits(src, srcIndex);         int xr = bytesTo32bits(src, srcIndex + 4);         xl ^= P[ROUNDS + 1];         for (int i = ROUNDS; i > 0; i -= 2)         {             xr ^= func(xl) ^ P[i];             xl ^= func(xr) ^ P[i - 1];         }         xr ^= P[0];         bits32ToBytes(xr, dst, dstIndex);         bits32ToBytes(xl, dst, dstIndex + 4);     }   ===================================================   I'm transferring this code to C# private void decryptBlock(byte[] src, uint srcIndex, byte[] dst, uint dstIndex)    {        uint xl = BytesTo32bits(src, srcIndex);        uint xr = BytesTo32bits(src, srcIndex + 4);        xl ^= P[ROUNDS + 1];        for (int i = ROUNDS; i > 0; i -= 2)        {            xr ^= F(xl) ^ P[i];            xl ^= F(xr) ^ P[i - 1];        }        xr ^= P[0];        Bits32ToBytes(xr, dst, dstIndex);        Bits32ToBytes(xl, dst, dstIndex + 4);    }   And in c# I first do decryptBlock and then XOR and everything works, I get the package and the first 2 bytes have already been removed as far as I remember   This only works for the login server for the game server, I think it’s not much different  
    • Ask him what you know, and what I know hahaha.
    • https://prnt.sc/2G_hOHfUIGLM   not sure what you mean Teddy boi  
    • Hello first of all thank you for your prompt response and the time you are taking to read this and answer, I am aware that not everyone takes the time and for that I thank you. On the other hand the specific problem is when decrypting this package and being able to parse it,  In some places it says that it is only encrypted with xor, in others that only a static blowfish is used and in others that both are used in the order of xor and then blowfish, this is the problem in spite of being able to see the encryption mechanisms of the servers, I can not put together the function that reverses this encryption to obtain the keys sent by the init packet.   Thanks for your time, hopefully the rest can contribute something because it is a super useful module to extend any functionality to the client and I will publish it in an opensource way when it is finished.
  • Topics

×
×
  • Create New...