Giter Site home page Giter Site logo

hpsl's Introduction

HPSL

简体中文(当前语言) | English

介绍

HPSL是一个未完工的python的minecraft启动器,当然你也可以当成一个高兼容性的启动模块

本启动器不依赖于任何第三方库

已测试过的python版本=['3.8.4', '3.11.0b3']

计划

  • 文件补全
  • 原版客户端启动
  • 高版本启动
  • 多线程下载
  • java下载
  • java自动扫描
  • UI
  • Forge,Fabric,LiteLoader,Optifine
  • 修改窗口标题

用法

获取版本列表:

import hpsl.GameFile
pt = hpsl.GameFile.Download()
pt.get_versions_list_online()

安装版本+补全文件:

import hpsl.GameFile
mc_dir = hpsl.GameFile.MinecraftDir('F:\\.minecraft')
if mc_dir.is_client_exists('1.19'):
    mc_ver = mc_dir.get_client('1.19')
else:
    mc_ver = mc_dir.create_client('1.19')
if not mc_ver.is_client_json_exists():
    mc_ver.set_client_json_online('1.19')
mc_ver.complete_files()

补全文件:

import hpsl.GameFile
mc_dir = hpsl.GameFile.MinecraftDir('F:\\.minecraft')
mc_ver = mc_dir.get_client('1.19')
mc_ver.complete_files()

启动游戏:

import hpsl.GameFile
java_path = 'E:\\jdk-17\\jdk-17_windows-x64_bin\\jdk-17.0.2\\bin\\java.exe'
mc_dir = hpsl.GameFile.MinecraftDir('F:\\.minecraft')
mc_ver = mc_dir.get_client('1.19')
mc_ver.launch(java_path, '', ('hsn', '0', '0'), '')

单次实现下载,补全,启动实例:

import hpsl.GameFile
java_path = 'E:\\jdk-17\\jdk-17_windows-x64_bin\\jdk-17.0.2\\bin\\java.exe'
mc_dir = hpsl.GameFile.MinecraftDir('F:\\.minecraft')
if mc_dir.is_client_exists('1.19'):
    mc_ver = mc_dir.get_client('1.19')
else:
    mc_ver = mc_dir.create_client('1.19')
if not mc_ver.is_client_json_exists():
    mc_ver.set_client_json_online('1.19')
mc_ver.complete_files()
mc_ver.launch(java_path, '', ('hsn', '0', '0'), '')

hpsl's People

Contributors

hsn8086 avatar

Watchers

 avatar

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.