ammarx / tagapi_3 Goto Github PK
View Code? Open in Web Editor NEWOpen-source Minecraft Launcher API - TagAPI
License: MIT License
Open-source Minecraft Launcher API - TagAPI
License: MIT License
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.
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();
Currently the support for old versions is broken as the version.json has a different structure. The application is unable to directly run it.
The following interface functions should be added to the API:
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"
}
}
},
This is required for mods. Some mods use inheritance in the .json. Example "Forge"
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
},
The user should only pass 2 variables.
Check: http://www.mkyong.com/java/how-to-detect-os-in-java-systemgetpropertyosname/
Make use of this code in order to auto detect the OS.
Pls add forge and optifine
Launching the same version of minecraft again closes the previous one that is open.
Reason:
Natives folder gets recreated. This causes game to stop working.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.