Thread: Another MX3 Help Thread

Results 1 to 7 of 7
  1. #1 Another MX3 Help Thread 
    Registered Member xRokku_Ri's Avatar
    Join Date
    Jun 2014
    Posts
    305
    Thanks given
    91
    Thanks received
    30
    Rep Power
    0
    I wanted to refrain from posting here but at this point, after 3 days, it can't be helped.

    I downloaded the MX3 official release from Cjay about 4 days ago and attempted to get it all loaded into Eclipse and working properly.
    I managed to get it into Eclipse with no errors except for needing to update my workspace to source 1.8 (or something like that).

    I had set my Game launcher and Login launcher parameters in the Run Configuration menu to use Hosted mode, and ran into 'cannot bind to port' 'failed to bind to ip' 'bad location' errors. I used Hosted mode = true, debug mode = false, and nonhosted_sharing = false in Settings.java for this.

    After consulting a few fellow R-S members, I changed the booleans to Hosted = false, debug = false, and nonhosted_sharing = true. Upon running the login-server I didnt get an error. Upon running the Game-server I got an error but it was an error that did not terminate the process.

    Code:
    ERROR! THREAD NAME: udpdevicewrite-9283938
    java.net.BindException: Cannot assign requested address: Datagram send failed
    	at java.net.DualStackPlainDatagramSocketImpl.socketSend(Native Method)
    	at java.net.DualStackPlainDatagramSocketImpl.send(Unknown Source)
    	at java.net.DatagramSocket.send(Unknown Source)
    	at com.rs.net.UDPDevice$2.run(UDPDevice.java:114)
    After that running the client loaded the cache and I was able to enter a username and password and press login, however after a few client freezes and a minute or 2 I would get different errors depending on which IP I was using. Using 0.0.0.0 or 127.0.0.1 gave me "error connecting to server" messages. Using my IPv4 address gave me a "No response from login-server, please try again later." I Had changed the IPs in Settings.java for Nonhosted_sharing and in GameWorld.java but the one in GameWorld.java only pertains to the server being Hosted = true.

    So after messing with all that and not reaching a solution, I deleted the project from Eclipse and loaded a fresh one from the .rar. This time around I started with login/game server arguments as "true false", and "1 true false false false" respectively. Change the IP's to my IPv4 and made sure my ports were open. Now I get this error:

    Code:
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 10
    	at com.rs.utils.huffman.Huffman.init(Huffman.java:17)
    	at com.rs.GameLauncher.main(GameLauncher.java:87)
    Flame all you want but i'm stumped. Thanks for reading.


    "If you believe in your dreams, I will prove to you that you can achieve your dreams just by working hard." ~Rock Lee
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Jul 2011
    Posts
    808
    Thanks given
    448
    Thanks received
    250
    Rep Power
    126
    Did you load the cache? It seems it cant get indx 10. Be sure to have the cache located at the place where it tries to load it from.
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member xRokku_Ri's Avatar
    Join Date
    Jun 2014
    Posts
    305
    Thanks given
    91
    Thanks received
    30
    Rep Power
    0
    Quote Originally Posted by Zephyr_ View Post
    Did you load the cache? It seems it cant get indx 10. Be sure to have the cache located at the place where it tries to load it from.
    Yea my cache is in C:/Users/Devin/Rokku Cache and I have that set as CACHE_PATH in Settings.java


    "If you believe in your dreams, I will prove to you that you can achieve your dreams just by working hard." ~Rock Lee
    Reply With Quote  
     

  5. #4  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    Quote Originally Posted by xRokku_Ri View Post
    Yea my cache is in C:/Users/Devin/Rokku Cache and I have that set as CACHE_PATH in Settings.java
    The error is definately because the cache isn't initiated. Do you have Cache.init() anywhere before Huffman.init() in your GameLauncher?
    Project thread
    Reply With Quote  
     

  6. Thankful user:


  7. #5  
    Registered Member xRokku_Ri's Avatar
    Join Date
    Jun 2014
    Posts
    305
    Thanks given
    91
    Thanks received
    30
    Rep Power
    0
    Quote Originally Posted by clem585 View Post
    The error is definately because the cache isn't initiated. Do you have Cache.init() anywhere before Huffman.init() in your GameLauncher?
    Right before:
    Code:
    long currentTime = Utils.currentTimeMillis();
    		Logger.log("Launcher", "Initing File System...");  
    		SerializableFilesManager.init();
    		Logger.log("Launcher", "Initing Cache...");
    		Cache.init();
    		Huffman.init();
    		BodyDefinitions.init();
    		Logger.log("Launcher", "Initing Data Files...");
    		Censor.init();

    I managed to fix it... I changed the CACHE_PATH from reading the actual location to how it was found before with the System.getProperty("user.home") and it loaded the cache. Now when I run the login-server and game-server I get NO eclipse errors. In RS3applet I changed the IP to my IPv4 matching all the others, and now I'm getting error_game_js5_connect

    EDIT: OH MY GOD I GOT IT. I left the http://127.0.0.1 the same and changed only the other 2 to my external IP and it let me log in Im excited lol thanks guys.


    "If you believe in your dreams, I will prove to you that you can achieve your dreams just by working hard." ~Rock Lee
    Reply With Quote  
     

  8. Thankful user:


  9. #6  
    Donator

    Join Date
    Dec 2008
    Posts
    163
    Thanks given
    60
    Thanks received
    26
    Rep Power
    14
    Have fun
    Reply With Quote  
     

  10. Thankful user:


  11. #7  
    Registered Member xRokku_Ri's Avatar
    Join Date
    Jun 2014
    Posts
    305
    Thanks given
    91
    Thanks received
    30
    Rep Power
    0
    Quote Originally Posted by Tornify View Post
    Have fun
    As soon as I finished character creation and logged in I was kicked from the server and now when I run the login-server I get 'login packet rejected' spam.. zzz

    The origin of the error comes from this:

    Code:
    if (packet.getLength() < 9 || world == null || !Arrays.equals(world.getLoginAddress().getAddress().getAddress(), packet.getAddress().getAddress())) { // the world doesn't exist or the ip doesn't match
    				if (Settings.DEBUG)
    					Logger.log(LoginServerChannelManager.class, "Game->Login packet was rejected");
    				continue; // discard it
    I attempted to change the Debug boolean to false but that didn't work. As it stands I have Debug = false, Hosted = false, Nonhosted_sharing = true. The IP's have to match because I just logged in previously. The world ID is originally set to 0, should I increase it by 1?

    Searched high and low for this error here and on Runelocus and can't find any information on it. Bummer.


    "If you believe in your dreams, I will prove to you that you can achieve your dreams just by working hard." ~Rock Lee
    Reply With Quote  
     


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. Another Ruse Help Thread..
    By Hexious in forum Help
    Replies: 3
    Last Post: 10-11-2015, 03:30 AM
  2. Yet, another help thread.
    By Karma_K in forum Help
    Replies: 8
    Last Post: 05-11-2013, 10:19 PM
  3. help, repost last help thread unless i dont get help pvp. alexmansons
    By `Lubricant in forum RS 503+ Client & Server
    Replies: 14
    Last Post: 08-11-2008, 07:10 PM
  4. Ultimate unofficial help thread!
    By Xx Pker Xx in forum Tutorials
    Replies: 20
    Last Post: 08-30-2007, 05:15 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
  •