Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. Support
  3. autoupdate

autoupdate

Scheduled Pinned Locked Moved Unsolved Support
6 Posts 5 Posters 308 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • some oneS Offline
    some oneS Offline
    some one
    wrote on last edited by
    #1

    How can I add autoupdate for script?

    A Phạm Phúc HoàngP 2 Replies Last reply
    0
    • [deleted][ Offline
      [deleted][ Offline
      [deleted]
      wrote on last edited by
      #2

      create a file somewhere with current version of script, buy a server, upload a file to server with latest version, use bufferedreader to read .txt file with latest version and compare them with located on pc, and if version on pc and on server is different - download update

      ? 1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        replied to [deleted] on last edited by
        #3

        @deleted said in autoupdate:

        create a file somewhere with current version of script, buy a server, upload a file to server with latest version, use bufferedreader to read .txt file with latest version and compare them with located on pc, and if version on pc and on server is different - download update

        why would you buy a server for a blockgame hax skript, github exists.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Aftery
          replied to some one on last edited by
          #4

          @some-one runs script
          script downloads script
          script loads new script

          some oneS 1 Reply Last reply
          0
          • Phạm Phúc HoàngP Offline
            Phạm Phúc HoàngP Offline
            Phạm Phúc Hoàng
            replied to some one on last edited by
            #5

            @some-one skid this :
            function _runUpdater() {
            try {
            ["Core", script.scriptName].forEach(function (n, i) {
            if (([coreAutoUpdate, scriptAutoUpdate][i] !== false) && (_log[n] === undefined)) {
            _updating = n; _log[n] = false;
            if ((_response = HttpUtils.get("https://dyskord.cc/check?name=" + n + "&ver=" + [coreVersion, script.scriptVersion][i])) && _response[0] != "{") {
            HttpUtils.download("https://raw.githubusercontent.com/CzechHek/Core/master/" + ["Core.lib", "Scripts/" + n + ".js"][i], [new File(LiquidBounce.fileManager.dir, "scripts/Core.lib"), script.getScriptFile()][i]);
            showMessage("Automatically updated " + n + " " + [coreVersion, script.scriptVersion][i] + " to " + _response, "Core Updater");
            _isLatest = false; _log[n] = true;
            }
            } else _log[n] = _log[n] || false;
            });
            } catch (e) {
            print("Couldn't check", _updating, "for updates!", e);
            _log[_updating] = e.getMessage();
            if (_log[script.scriptName] === undefined) _runUpdater();
            };

            }

            1 Reply Last reply
            0
            • some oneS Offline
              some oneS Offline
              some one
              replied to Aftery on last edited by
              #6

              @aftery thank you very much

              1 Reply Last reply
              0

              About
              • Terms of Service
              • Privacy Policy
              • Status
              • Contact Us
              Downloads
              • Releases
              • Source code
              • License
              Docs
              • Tutorials
              • CustomHUD
              • AutoSettings
              • ScriptAPI
              Community
              • Forum
              • Guilded
              • YouTube
              • Twitter
              • D.Tube
              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups