Thread: [Kronos] Some Kronos Errors Fixing

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 [Kronos] Some Kronos Errors Fixing 
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,647
    Thanks given
    175
    Thanks received
    257
    Rep Power
    358
    I have made some snippets and now a tutorial in hopes that people will leave 317 behind and move on to OSRS.





    If you haven't fixed these issues yet please read, or just scroll down to skip to password saving



    Fix Central Server Running on 144.217.10.42 and not localhost:

    Code:
    Kronos Central Server is now listening on 144.217.10.42:3845
    Go to io.ruin.api.netty > NettyServer.java

    Find:

    Code:
    host = "144.217.10.42";
    Change it to:

    Code:
    host = "127.0.0.1";
    Should now startup saying:

    Code:
    Kronos Central Server is now listening on 127.0.0.1:3845



    Next fix is the Update Server not finding server.properties

    Code:
    java.io.FileNotFoundException: server.properties (The system cannot find the file specified)
    Go to the update-server package and go to io.ruin.update > Server.java

    Find:

    Code:
     File systemProps = new File("server.properties");
    Change it to

    Code:
     File systemProps = new File("../kronos-server/server.properties");




    Now onto the RuneLite client error

    Error message: "Please check your internet connection and your DNS settings." (Error while loading!) / "Bad Code Base"

    You must update the jav_config file line in the client. If you don't have your own webserver to upload the file to, you can just use OSRS's jav_config.

    To do that find ClientConfigLoader.java in net.runelite.client.rs > ClientConfigLoader.java

    Replace this line:

    Code:
    private static final String CONFIG_URL = "http://community.kronos.rip/jav_config.ws";
    with:

    Code:
    private static final String CONFIG_URL = "http://oldschool6b.runescape.com/jav_config.ws";
    If you ever get this client error just ignore it, it won't impact anything:

    Code:
    Caused by: java.lang.IllegalStateException: Expected a name but was NUMBER at line 1 column 90 path $.2.ge_limit



    If you would like to add usergroup/rank saving see this snippet: https://www.rune-server.ee/runescape...nk-groups.html
    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    Donator

    Kid Buu's Avatar
    Join Date
    Aug 2017
    Posts
    433
    Thanks given
    182
    Thanks received
    227
    Rep Power
    424
    You're on a roll with these Kronos based contributions. Definitely going to help me out when I finally move away from 317s. Thank you!
    Attached image
    Reply With Quote  
     

  4. #3  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,647
    Thanks given
    175
    Thanks received
    257
    Rep Power
    358
    Quote Originally Posted by Kid Buu View Post
    You're on a roll with these Kronos based contributions. Definitely going to help me out when I finally move away from 317s. Thank you!
    No problem. Friends Chat/Clan Chat fix coming soon. (Currently still using the forum integration)

    Again to everyone who uses this: Please post any errors/bugs you have and I will fix them
    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    WVWVWVWVWVWVWVW

    _jordan's Avatar
    Join Date
    Nov 2012
    Posts
    3,046
    Thanks given
    111
    Thanks received
    1,848
    Rep Power
    5000
    Should highlight the exact code changes instead of saying to replace an entire block of code.
    Attached image
    Attached image
    Reply With Quote  
     

  7. #5  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,647
    Thanks given
    175
    Thanks received
    257
    Rep Power
    358
    Quote Originally Posted by _jordan View Post
    Should highlight the exact code changes instead of saying to replace an entire block of code.
    Sorry, was a bit lazy but I might edit it

    Updated the 2 different load methods to thread, better way of doing it:

    PlayerFile.java load method:

    Code:
        public static Player load(PlayerLogin login) {
            try {
                Player player;
                if(login.info.saved == null || login.info.saved.isEmpty())
                    player = new Player();
                else
                    player =  GSON_LOADER.fromJson(login.info.saved, Player.class);
                Config.load(player);
                return player;
            } catch(Throwable t) {
                Server.logError("", t);
                return null;
            }
        }
    PlayerLogin.java load method:

    Code:
     private void load(int index) {
            LOADING[index] = true;
            Server.worker.execute(() -> PlayerFile.load(this), player -> {
    
    
    
    
                if (player == null) {
                    deny(Response.ERROR_LOADING_ACCOUNT);
                    return;
                }
    
                if(player.getPassword() != null) {
                    if (!info.password.equalsIgnoreCase(player.getPassword())) {
                        deny(Response.INVALID_LOGIN);
                        return;
                    }
                }
    
                player.setIndex(index);
                player.init(info);
    
                //reconstruct players if their before the char fuck up
                //PlayerRestore.reconstructPlayer(player);
    
                World.players.set(index, player);
                LOADING[index] = false;
    
                player.getPacketSender().sendLogin(info);
                player.getChannel().pipeline().replace("decoder", "decoder", player.getDecoder());
            });
        }
    Reply With Quote  
     

  8. Thankful user:


  9. #6  
    ♫ Musical Project ♫

    Natalie's Avatar
    Join Date
    Dec 2015
    Posts
    172
    Thanks given
    91
    Thanks received
    59
    Rep Power
    154
    Quote Originally Posted by Armo View Post
    Sorry, was a bit lazy but I might edit it

    Updated the 2 different load methods to thread, better way of doing it:

    PlayerFile.java load method:

    Code:
        public static Player load(PlayerLogin login) {
            try {
                Player player;
                if(login.info.saved == null || login.info.saved.isEmpty())
                    player = new Player();
                else
                    player =  GSON_LOADER.fromJson(login.info.saved, Player.class);
                Config.load(player);
                return player;
            } catch(Throwable t) {
                Server.logError("", t);
                return null;
            }
        }
    PlayerLogin.java load method:

    Code:
     private void load(int index) {
            LOADING[index] = true;
            Server.worker.execute(() -> PlayerFile.load(this), player -> {
    
    
    
    
                if (player == null) {
                    deny(Response.ERROR_LOADING_ACCOUNT);
                    return;
                }
    
                if(player.getPassword() != null) {
                    if (!info.password.equalsIgnoreCase(player.getPassword())) {
                        deny(Response.INVALID_LOGIN);
                        return;
                    }
                }
    
                player.setIndex(index);
                player.init(info);
    
                //reconstruct players if their before the char fuck up
                //PlayerRestore.reconstructPlayer(player);
    
                World.players.set(index, player);
                LOADING[index] = false;
    
                player.getPacketSender().sendLogin(info);
                player.getChannel().pipeline().replace("decoder", "decoder", player.getDecoder());
            });
        }

    Tested and seems to save my password correctly, I've tried launching central server but just gives the error for world list not loading. I assume that's also whats causing the friends list, clan chat not to load and other things.
    Reply With Quote  
     

  10. #7  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,647
    Thanks given
    175
    Thanks received
    257
    Rep Power
    358
    Quote Originally Posted by Natalynn View Post
    Tested and seems to save my password correctly, I've tried launching central server but just gives the error for world list not loading. I assume that's also whats causing the friends list, clan chat not to load and other things.
    I still have to do the friends/clan chat part but for the worldlist just look at the worldlist part of this thread: https://www.rune-server.ee/runescape...orld-list.html

    Unless you don't have a webserver I will have to look into that. I don't think it needs to be used if you're only running 1 world.
    Reply With Quote  
     

  11. #8  
    ♫ Musical Project ♫

    Natalie's Avatar
    Join Date
    Dec 2015
    Posts
    172
    Thanks given
    91
    Thanks received
    59
    Rep Power
    154
    Quote Originally Posted by Armo View Post
    I still have to do the friends/clan chat part but for the worldlist just look at the worldlist part of this thread: https://www.rune-server.ee/runescape...orld-list.html

    Unless you don't have a webserver I will have to look into that. I don't think it needs to be used if you're only running 1 world.
    Yeah without would be nice for most. I did get it working with the world list. But I don't think its really needed, unless you're like a major RSPS with 100+ people.

    Edit: It may be nice to just keep to just have that functionality, but i'm not sure if the changes for friends list/clan chat, etc will need central server or not.
    Reply With Quote  
     

  12. #9  
    Registered Member
    Join Date
    Nov 2020
    Posts
    78
    Thanks given
    41
    Thanks received
    2
    Rep Power
    21
    Some questions:

    (I have multiple methods getPlayer in World.java) I added another one (Urs) like u said..


    io.ruin.central.model > Player.java

    I can't find: private String password;
    I only can find it in io/ruin/model/entity/player

    But you said above: io.ruin.central.model - Maybe u missed to add entity here?
    Reply With Quote  
     

  13. #10  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,647
    Thanks given
    175
    Thanks received
    257
    Rep Power
    358
    Sorry, I made a mistake. There is 2 Player.java files, one in the central server and one in the main server.

    For private String password; that would be in the main server Player.java
    and the load, save, getSaveFile methods are in the central server Player.java

    By the way, those aren't errors they are warnings. Don't worry about them
    Reply With Quote  
     

  14. Thankful user:


Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. No run.bat or compile for server??
    By Fredo Santana in forum Help
    Replies: 5
    Last Post: 05-05-2013, 07:47 AM
  2. Code for your forums
    By Big J in forum Chat
    Replies: 4
    Last Post: 05-10-2008, 09:05 AM
  3. [help]i need a tut for no-ip.com setup
    By Sneakykid69 in forum Tutorials
    Replies: 4
    Last Post: 12-19-2007, 02:24 PM
  4. Selling Players Online - For your Forum
    By PeeHPee in forum RS2 Server
    Replies: 6
    Last Post: 11-25-2007, 11:31 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •