Thread: OdysseyV1

Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 42
  1. #21  
    Registered Member
    Zivik's Avatar
    Join Date
    Oct 2007
    Age
    28
    Posts
    4,421
    Thanks given
    891
    Thanks received
    1,527
    Rep Power
    3285
    Doesn't look like anything special - thanks for the share though.
    Reply With Quote  
     

  2. #22  
    Registered Member
    Join Date
    Nov 2015
    Posts
    173
    Thanks given
    6
    Thanks received
    2
    Rep Power
    11
    never mind i found it, but it stills doesnt let me log in?
    Reply With Quote  
     

  3. #23  
    Banned

    Join Date
    Jun 2015
    Posts
    1,517
    Thanks given
    31
    Thanks received
    143
    Rep Power
    0
    Quote Originally Posted by JHUSS View Post
    never mind i found it, but it stills doesnt let me log in?
    yeah, it says client update or like that, any fix?




    are you sure is that the client.java ?

    package server.model.players.pvp;

    public class Client {

    }
    Reply With Quote  
     

  4. #24  
    Banned
    Join Date
    Aug 2014
    Posts
    518
    Thanks given
    88
    Thanks received
    21
    Rep Power
    0
    Quote Originally Posted by purebird2 View Post
    alphabeta.java -> RESTRICTED_LOGIN = true; to false, I think should work
    Awesome thanks
    Reply With Quote  
     

  5. #25  
    Banned

    Join Date
    Jun 2015
    Posts
    1,517
    Thanks given
    31
    Thanks received
    143
    Rep Power
    0
    Quote Originally Posted by Pandemia View Post
    Awesome thanks
    xd, did you fixed it? it not working for me !

    any fix for client.java server side, and complier
    Reply With Quote  
     

  6. #26  
    Banned

    Join Date
    Nov 2015
    Posts
    377
    Thanks given
    97
    Thanks received
    75
    Rep Power
    0
    Quote Originally Posted by Fremenik_Blade View Post
    Thats nice, Thnak you!

    How could i fix that?

    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.AbstractStringBuilder.insert(Unknown Source)
    at java.lang.StringBuilder.insert(Unknown Source)
    at com.ospvp.UpdateClient.run(UpdateClient.java:26)

    package com.ospvp;
    import java.awt.Desktop;
    import java.io.DataInputStream;
    import java.io.File;
    import java.io.FileOutputStream;
    import java.net.URISyntaxException;
    import java.net.URL;
    import java.security.CodeSource;


    public class UpdateClient extends Thread {

    static final String URL_ADDRESS = "";

    private static String getApplicationPath() throws URISyntaxException {
    CodeSource codeSource = client.class.getProtectionDomain().getCodeSource() ;
    return new File(codeSource.getLocation().toURI().getPath()).g etAbsolutePath();
    }

    @Override
    public void run() {
    try {
    URL applicationURL = new URL(URL_ADDRESS);
    StringBuilder sb = new StringBuilder(getApplicationPath());
    int indexOfExtension = sb.indexOf(".jar");
    sb.insert(indexOfExtension, " Updated");
    File applicationFile = new File(sb.toString());


    File oldApplicationFile = new File(getApplicationPath());

    if(oldApplicationFile.exists()) {
    oldApplicationFile.delete();
    }

    applicationFile.createNewFile();
    DataInputStream input = new DataInputStream(applicationURL.openStream());
    FileOutputStream output = new FileOutputStream(applicationFile);
    byte[] data = new byte[1024];
    int read = 0;

    while((read = input.read(data, 0, data.length - 1)) != -1) {
    output.write(data, 0, read);
    }
    output.close();

    if(Desktop.isDesktopSupported()) {
    Desktop.getDesktop().open(applicationFile);
    } else {
    javax.swing.JOptionPane.showMessageDialog(null,
    "Your Operating System does not support\n"
    + "the resources needed to relaunch the new client.\n"
    + "Please access the file directly at the following path;\n\n"
    + applicationFile.getAbsolutePath());
    }
    System.exit(0);
    } catch (Exception e) {
    javax.swing.JOptionPane.showMessageDialog(null,
    "We were unable to download the file from the site.\n"
    + "Please visit the forums at http://RuneStorm-rsps.com/\n");
    e.printStackTrace();
    }
    }
    }
    I LOL'd IRL
    Reply With Quote  
     

  7. #27  
    现场大

    tiller's Avatar
    Join Date
    Dec 2015
    Posts
    757
    Thanks given
    335
    Thanks received
    164
    Rep Power
    303
    Quote Originally Posted by Fremenik_Blade View Post
    Thats nice, Thnak you!

    How could i fix that?

    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.AbstractStringBuilder.insert(Unknown Source)
    at java.lang.StringBuilder.insert(Unknown Source)
    at com.ospvp.UpdateClient.run(UpdateClient.java:26)

    package com.ospvp;
    import java.awt.Desktop;
    import java.io.DataInputStream;
    import java.io.File;
    import java.io.FileOutputStream;
    import java.net.URISyntaxException;
    import java.net.URL;
    import java.security.CodeSource;


    public class UpdateClient extends Thread {

    static final String URL_ADDRESS = "";

    private static String getApplicationPath() throws URISyntaxException {
    CodeSource codeSource = client.class.getProtectionDomain().getCodeSource() ;
    return new File(codeSource.getLocation().toURI().getPath()).g etAbsolutePath();
    }

    @Override
    public void run() {
    try {
    URL applicationURL = new URL(URL_ADDRESS);
    StringBuilder sb = new StringBuilder(getApplicationPath());
    int indexOfExtension = sb.indexOf(".jar");
    sb.insert(indexOfExtension, " Updated");
    File applicationFile = new File(sb.toString());


    File oldApplicationFile = new File(getApplicationPath());

    if(oldApplicationFile.exists()) {
    oldApplicationFile.delete();
    }

    applicationFile.createNewFile();
    DataInputStream input = new DataInputStream(applicationURL.openStream());
    FileOutputStream output = new FileOutputStream(applicationFile);
    byte[] data = new byte[1024];
    int read = 0;

    while((read = input.read(data, 0, data.length - 1)) != -1) {
    output.write(data, 0, read);
    }
    output.close();

    if(Desktop.isDesktopSupported()) {
    Desktop.getDesktop().open(applicationFile);
    } else {
    javax.swing.JOptionPane.showMessageDialog(null,
    "Your Operating System does not support\n"
    + "the resources needed to relaunch the new client.\n"
    + "Please access the file directly at the following path;\n\n"
    + applicationFile.getAbsolutePath());
    }
    System.exit(0);
    } catch (Exception e) {
    javax.swing.JOptionPane.showMessageDialog(null,
    "We were unable to download the file from the site.\n"
    + "Please visit the forums at http://RuneStorm-rsps.com/\n");
    e.printStackTrace();
    }
    }
    }
    go into shop assistant, and delete
    Code:
    if (c.myShopId != 115) {
    					if (c.playerItemsN[Slot2] >= TotPrice2) {
    						if (c.getItems().freeSlots() > 0) {
    							c.getItems().deleteItem(11849, c.getItems().getItemSlot(11849), TotPrice2);
    							c.getItems().addItem(itemID, 1);
    							ShopHandler.ShopItemsN[c.myShopId][fromSlot] -= 1;
    							ShopHandler.ShopItemsDelay[c.myShopId][fromSlot] = 0;
    							if ((fromSlot + 1) > ShopHandler.ShopItemsStandard[c.myShopId]) {
    								ShopHandler.ShopItems[c.myShopId][fromSlot] = 0;
    							}
    						} else {
    							c.sendMessage("You don't have enough space in your inventory.");
    							break;
    						}
    					} else {
    						c.sendMessage("You don't have enough Mark of Grace.");
    						break;
    					}
    				}
    Attached image
    Reply With Quote  
     

  8. #28  
    Banned

    Join Date
    Jun 2015
    Posts
    1,517
    Thanks given
    31
    Thanks received
    143
    Rep Power
    0
    Quote Originally Posted by Tory Lanez View Post
    go into shop assistant, and delete
    Code:
    if (c.myShopId != 115) {
    					if (c.playerItemsN[Slot2] >= TotPrice2) {
    						if (c.getItems().freeSlots() > 0) {
    							c.getItems().deleteItem(11849, c.getItems().getItemSlot(11849), TotPrice2);
    							c.getItems().addItem(itemID, 1);
    							ShopHandler.ShopItemsN[c.myShopId][fromSlot] -= 1;
    							ShopHandler.ShopItemsDelay[c.myShopId][fromSlot] = 0;
    							if ((fromSlot + 1) > ShopHandler.ShopItemsStandard[c.myShopId]) {
    								ShopHandler.ShopItems[c.myShopId][fromSlot] = 0;
    							}
    						} else {
    							c.sendMessage("You don't have enough space in your inventory.");
    							break;
    						}
    					} else {
    						c.sendMessage("You don't have enough Mark of Grace.");
    						break;
    					}
    				}
    i cant complie, there are something on client.java lol

    and deleted still same xd
    Reply With Quote  
     

  9. #29  
    Registered Member
    Join Date
    Nov 2015
    Posts
    173
    Thanks given
    6
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by Fremenik_Blade View Post
    yeah, it says client update or like that, any fix?




    are you sure is that the client.java ?

    package server.model.players.pvp;

    public class Client {

    }
    Ive just used os-pvp client it connects to it without that shit, and use it with the odyssey cache
    Reply With Quote  
     

  10. #30  
    Registered Member
    Join Date
    Nov 2015
    Posts
    7
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    Any idea how to fix the shops? I can't buy anything from pretty much every store...
    Reply With Quote  
     

Page 3 of 5 FirstFirst 12345 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •