1. Welcome to our bug report and feature request forum.
    • For game exploits, post in the Private Issues forum. Please provide details in your message.
    • For all other suggestions and reports:
      • Apply the appropriate prefix to your post
      • Please include every detail (such as how a mechanic works or how to reproduce a bug)
      • Remember that new features need to be balanced and fair.

[Suggestion] Make Launcher only update itself when there is an update

Discussion in 'Suggest + Report Bugs + Get Help' started by suchtie, Mar 5, 2014.

  1. suchtie

    suchtie #LinuxMasterRace

    Joined:
    Jun 17, 2013
    Messages:
    303
    Likes Received:
    114
    Every single time I start up the launcher, it updates itself, downloading the whole thing. Not a very serious issue, but the download takes quite a while for me since I have a very bad internet connection (up to 2 min, depending on time of day).

    I didn't test this on Windows as I have no Java on there (and I only use Windows for Skyrim anyway), so I don't know if it behaves like this on a non-Linux OS. So this behaviour may be unintended, but I don't assume this since the download will likely take <5 sec. with normal bandwidth, that's perfectly acceptable.

    Would be great if the launcher only downloaded if there actually is an update.
     
  2. NolanSyKinsley

    NolanSyKinsley IRC lurker

    Joined:
    Nov 2, 2012
    Messages:
    497
    Likes Received:
    179
    this doesn't happen on windows, but I did notice this on linux and have not found a way around it.
     
    suchtie likes this.
  3. NolanSyKinsley

    NolanSyKinsley IRC lurker

    Joined:
    Nov 2, 2012
    Messages:
    497
    Likes Received:
    179
    I just by chance came across a solution.

    1. Go into the "~/.skcraftlauncher/launcher" folder

    2. Sort by date and choose the most recent ".jar." file, it will just be a string of numbers then ".jar."

    3. Remove the period from the end of the file so it is just ".jar"

    4. (Optional) You can probably safely delete all of the old ".jar." files, as they are no longer used, I did.
     
    suchtie likes this.
  4. suchtie

    suchtie #LinuxMasterRace

    Joined:
    Jun 17, 2013
    Messages:
    303
    Likes Received:
    114
    Oh, so it's probably just a typo in the code and OpenJDK doesn't handle this as well as Oracle's Java (which you cannot easily install on Linux anymore, sadly). Or maybe it's because of Linux itself, but that's unlikely.

    Anyway, thanks for the help! However, it's only partially resolved until the code is fixed.
     
  5. NolanSyKinsley

    NolanSyKinsley IRC lurker

    Joined:
    Nov 2, 2012
    Messages:
    497
    Likes Received:
    179
    It happens with me on both openjdk and oracle. Took a look at the code, couldn't seem to figure out where it is coming from, but posted a bug report on the github.
     
  6. sk89q

    sk89q Administrator
    Staff Member

    Joined:
    Dec 1, 2011
    Messages:
    2,490
    Likes Received:
    1,504
    It looks like it fails to drop off the ending '.', but I think Windows drops it off automatically.

    Does the attached version fix the problem? It's a bug in the bootstrapper and not the launcher itself.
     

    Attached Files:

  7. NolanSyKinsley

    NolanSyKinsley IRC lurker

    Joined:
    Nov 2, 2012
    Messages:
    497
    Likes Received:
    179
    Works for me. Deleted the previous launcher files, used new launcher and it downloaded once, then restarted and it did not download again.