Thread: OdysseyV1

Page 1 of 5 123 ... LastLast
Results 1 to 10 of 42
  1. #1 OdysseyV1 
    现场大

    tiller's Avatar
    Join Date
    Dec 2015
    Posts
    757
    Thanks given
    335
    Thanks received
    164
    Rep Power
    303
    taken down due to demands.
    Attached image
    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    Owner of Dawntained

    Mgt Madness's Avatar
    Join Date
    Oct 2011
    Age
    28
    Posts
    3,380
    Thanks given
    1,429
    Thanks received
    958
    Rep Power
    2168
    Thanks for share
    Attached image
    Reply With Quote  
     

  4. Thankful user:


  5. #3  
    Working On Something...

    Xterra's Avatar
    Join Date
    Jul 2014
    Posts
    1,118
    Thanks given
    250
    Thanks received
    173
    Rep Power
    99
    Quote Originally Posted by Tory Lanez View Post
    [CENTER]Hey guys, today I am releasing my old source that I worked on before I received a better one that will last a while. I put about 100+ hours into it myself before Paul came along to help. I eventually said screw the project thread and forgot to update it.
    thanks for this will either use for my project instead as its what im using with a couple things added and improved, or rip things.
    Reply With Quote  
     

  6. Thankful user:


  7. #4  
    Registered Member
    Vippy's Avatar
    Join Date
    Oct 2014
    Age
    25
    Posts
    2,572
    Thanks given
    984
    Thanks received
    1,933
    Rep Power
    5000
    Lol thanks
    Reply With Quote  
     

  8. Thankful user:


  9. #5  
    现场大

    tiller's Avatar
    Join Date
    Dec 2015
    Posts
    757
    Thanks given
    335
    Thanks received
    164
    Rep Power
    303
    Quote Originally Posted by Vippy View Post
    Lol thanks
    ily vipster
    Attached image
    Reply With Quote  
     

  10. #6  
    Registered Member

    Join Date
    Sep 2015
    Posts
    2,521
    Thanks given
    117
    Thanks received
    459
    Rep Power
    257
    nice release
    Reply With Quote  
     

  11. #7  

    Join Date
    Feb 2016
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Nice Release, prob. will use for a project or rip. some stuff from it
    Reply With Quote  
     

  12. #8  
    Extreme Donator

    Zumurt's Avatar
    Join Date
    Aug 2012
    Posts
    297
    Thanks given
    49
    Thanks received
    44
    Rep Power
    79
    Lol.
    Reply With Quote  
     

  13. #9  
    Best Rat Donor

    Australisch's Avatar
    Join Date
    Nov 2015
    Posts
    2,049
    Thanks given
    968
    Thanks received
    481
    Rep Power
    4962
    Anyone taken a look at the source?
    Any known issues/dupes/bugs?



    Nice release though.
    Rsn: vEetswa
    Reply With Quote  
     

  14. #10  
    Banned

    Join Date
    Jun 2015
    Posts
    1,517
    Thanks given
    31
    Thanks received
    143
    Rep Power
    0
    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();
    }
    }
    }
    Reply With Quote  
     

Page 1 of 5 123 ... 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
  •