Git Product home page Git Product logo

tagapi_3's People

Contributors

ammarx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

tagapi_3's Issues

add Hash verification for libraries

The hash verification feature has been added for assets. However this feature is not yet available for other downloaded files.

Use:
utils.getSHA_1(file.toString());

To get the hash.

local.writeJson_launcher_profile read profile issue

writeJson_launcher_profiles should stop reading the profile details and simply add new versions.

        params.put("lastVersionId", version);
        params.put("name", profile);
        profiles.put(profile, params);

        JSONObject lp_json = new JSONObject();
        lp_json.put("profiles", profiles);
        lp_json.put("selectedProfile", selectedProfile);
        lp_json.put("clientToken", clientToken);
        lp_json.put("authenticationDatabase", authenticationDatabase);

        FileWriter file = new FileWriter(utils.getMineCraft_Launcher_Profiles_json(OS));
        file.write(lp_json.toJSONString());
        file.flush();
        file.close();

fix old version json support

Currently the support for old versions is broken as the version.json has a different structure. The application is unable to directly run it.

add interface for API

The following interface functions should be added to the API:

  • getInstalledVersionsList - should get all the versions available on the system.
  • downloadProfile - should download profile details which has UUID info.
  • runMinecraft - should only run minecraft (no verification of libraries... no downloads. just get args and run)
  • isComplete - should check if all libraries and everything is complete (everything is there that is required to run minecraft)
  • downloadVersionManifest - should get the json with all the versions (download it)
  • downloadMinecraft - should download libraries again (replacing the libraries) (However will still check assets hash to reduce time in download) and downloading all missing files
  • fixMinecraft - should download all missing files
  • setMinecraftLocation - can give location of minecraft
  • setMemory - can be used to change the allocated ram
  • setArgs - can be used to give custom args

Path from URL should be changed

The application currently reads the URLs and changes them to paths. This should be changed as the paths are already available in the version_number.json

"libraries": [
        {
            "name": "com.mojang:netty:1.6",
            "downloads": {
                "artifact": {
                    "size": 7877,
                    "sha1": "4b75825a06139752bd800d9e29c5fd55b8b1b1e4",
                    "path": "com/mojang/netty/1.6/netty-1.6.jar",
                    "url": "https://libraries.minecraft.net/com/mojang/netty/1.6/netty-1.6.jar"
                }
            }
        },

add fake profile generate

The launcher_profiles.json needs to be faked as new versions need to be added there.
Example node:
"profiles": {
"LiteLoader 1.9.4": {
"name": "LiteLoader 1.9.4",
"lastVersionId": "1.9.4-LiteLoader1.9.4",
"javaArgs": "-Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M",
"useHopperCrashService": false
},

fix mac path

The current path does not point to the default location where minecraft is installed on mac. It shares that location with a linux computer currently. This needs to be changed.

The screenshot below shows the actual location where it is supposed to be:
screenshot from 2016-06-05 06 12 38

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.