Coder Social home page Coder Social logo

kacperfaber / sandstonelauncher Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 197.25 MB

๐ŸŒ„ Minecraft Launcher allows you to download and run the game, I wrote in 2019 ๐Ÿ˜Ž๐ŸŒ„

C# 100.00%
argparse cli csharp minecraft minecraft-launcher

sandstonelauncher's Introduction

SandstoneLauncher

โœจ Project for my own Minecraft Launcher I made in 2019r. โœจ
Actually it only works using CLI

See Compose Application Repository

Usage

Documentation from Cli/Docs/cli.txt

1. This file presents how to use SandstoneLauncher.Minecraft.Cli.exe

2. Definitions:
-) SandstoneLauncher.Minecraft.Cli.exe [CLI] - Command Line Interface Program runs on .NET5 platform.

3. Commands

[SandstoneLauncher.Minecraft.Cli.Commands.LauncherProfilesCommands]
3.1 launcher_profiles create -int:width -int:height -str:name -str:gameDir -str:javaDir -str:javaArgs -str:lastVersionId
3.2 launcher_profiles update -int:width -int:height -str:name -str:gameDir -str:javaDir -str:javaArgs -str:lastVersionId
3.3 launcher_profiles delete -str:name

ADDITIONALLY:

3.1.1 launcher_profiles list

[SandstoneLauncher.Minecraft.Cli.Commands.PlayCommands]
3.4 play launch -str:v [version] -str:username -int:width -int:height -int:xms -int:xmx

ADDITIONALLY:
3.4.1 play launch -str:v [version] -str:username -int:width -int:height -int:xms -int:xmx -str?:gameDir -str?:javaDir -str?:javaArgs -str:launcherBrand

[SandstoneLauncher.Minecraft.Cli.Commands.VersionCommands]
3.5 version list-dir
3.6 version list
3.7 version delete <version_name>

[SandstoneLauncher.Minecraft.Cli.Commands.DownloadCommands]
3.8 download assets -str:v [version]
3.9 download game -str:v [version] -OS:os [WINDOWS/LINUX]

4. How to download game files?

Use command 3.9. 
You need to specify operating system [WINDOWS/LINUX], and game version.

When cli responds $.data is true, game files are successfully downloaded.

5. How to launch game?

Use command 3.4.
You need to specify parameters:
- v: Game Version, must be downloaded.
- username: Player name
- width: Resolution Width
- height: Resolution Height
- xms: Minimum Memory
- xmx: Maximum Memory

When $.data is true, then java process is launched. - We don't know it wouldn't crash

And actually there's no way to read output.

6. How to create launcher profile?

Use command 3.1
You need to specify parameters:
width -int:height -str:name -str:gameDir -str:javaDir -str:javaArgs
- lastVersionId: Last used Game Version ID
- width: Resolution Width
- height: Resolution Height
- gameDir: Should be %appdata%/.minecraft
- javaDir: Directory where java is installed.
- javaArgs: Java Arguments, For example: -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M

7. How to get all known launcher profiles?

Use command 3.1.1
]
Command will return response, where $.data is list of profiles [see models [8.1]]

8. Models

1. LauncherProfile
+ gameDir: string
+ javaDir: string
+ javaArgs: string
+ name: string
+ resolution: { width: int, height: int }
+ lastVersionId: string

Author

Kacper Faber

sandstonelauncher's People

Contributors

kacperfaber 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.