Giter Site home page Giter Site logo

jiayisoftware / jiayilauncher Goto Github PK

View Code? Open in Web Editor NEW
56.0 6.0 15.0 931 KB

Minecraft for Windows mod manager

Home Page: https://jiayisoftware.github.io/launcher

License: GNU General Public License v3.0

C# 46.94% HTML 41.96% CSS 11.10%
modding shaders version-switcher bedrock minecraft mod-manager

jiayilauncher's Introduction

Jiayi Launcher

Minecraft for Windows mod manager (Bedrock Edition)

Build Discord server

Features

  • Simple, clean user interface
  • Manage and launch internal and external mods, both stored locally and from the Internet
  • A version manager that goes hand in hand with the mod manager
  • Switch between different game data folders with Profiles (resource packs, worlds, settings, etc.)
  • Extreme customizability, from the launcher's appearance down to the source code
  • Easily apply Renderdragon shaders and make your game look beautiful

Installation

If you're a regular user, you can download the installer here. It's about 6 MB in size.

Older releases can be found in the Releases page.

You can clone the repository and build Jiayi Launcher yourself with the instructions below.

Building

Requirements

Steps

  1. Clone the repository
  • git clone --recursive https://github.com/JiayiSoftware/JiayiLauncher.git

With an IDE:

  1. Open the solution file in the IDE
  2. Build the solution

Without an IDE:

  1. Navigate to the repository's root directory
  2. Run dotnet build

This will build the launcher in debug mode. You can append -c Release to build in release mode.

Contributing

If you want to contribute to Jiayi Launcher, you can fork the repository and submit a pull request.

Jiayi is written in C# and uses HTML for the UI via Blazor Hybrid.

The code is admittedly a mess, hence why there is no code style to adhere to. However, please try to keep the code clean and readable. There will be a code style guide in the future.

License

Jiayi Launcher is released under the GNU GPL-3.0 license, and you can read it here.

A quick rundown for those who don't want to read all that:

  • You can modify, share and sell the code any way you please
  • but you have to open source projects that do this under a compatible GPL license
  • Any changes should be documented

jiayilauncher's People

Contributors

dropalways avatar mruiaw avatar namooth avatar notcarlton 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  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  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

jiayilauncher's Issues

Launcher crash when downloading version (so far 1.18.31, which had no error but straight up just closed the launcher, 1.19.71 and 1.19.73 are the ones that don't seem to work, though I havent tried anything else.)

[16:49:18] [JiayiSettings - Info]: Loaded settings.
[16:49:18] [ModCollection - Info]: Loaded mod collection at C:\Users\dpr39\AppData\Local\JiayiLauncher\Mods
[16:49:19] [JiayiSettings - Info]: Saved settings.
[16:49:19] [ThemeManager - Info]: Applied theme.
[16:49:19] [JiayiStats - Info]: Loaded stats.
[16:49:19] [Discord - Info]: Connected to GoldenMeerket#8554
[16:49:20] [Discord - Info]: Presence updated: Playing with no mods - on 1.19.83.1
[16:49:32] [TargetInvocationException - Error]: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.Runtime.InteropServices.COMException (0x80040403): 0x80040403
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at JiayiLauncher.Features.Versions.RequestFactory.GetUpdateToken() in D:\projects\JiayiLauncher\JiayiLauncher\Features\Versions\RequestFactory.cs:line 46
at JiayiLauncher.Features.Versions.RequestFactory.BuildUpdateTickets() in D:\projects\JiayiLauncher\JiayiLauncher\Features\Versions\RequestFactory.cs:line 64
at JiayiLauncher.Features.Versions.RequestFactory.BuildHeader(String url, String methodName) in D:\projects\JiayiLauncher\JiayiLauncher\Features\Versions\RequestFactory.cs:line 78
at JiayiLauncher.Features.Versions.RequestFactory.GetDownloadUrl(String updateId) in D:\projects\JiayiLauncher\JiayiLauncher\Features\Versions\RequestFactory.cs:line 99
at JiayiLauncher.Features.Versions.VersionManager.DownloadVersion(MinecraftVersion version) in D:\projects\JiayiLauncher\JiayiLauncher\Features\Versions\VersionManager.cs:line 39
at JiayiLauncher.Pages.Extra.FullVersionList.DownloadClicked(MinecraftVersion ver) in D:\projects\JiayiLauncher\JiayiLauncher\Pages\Extra\FullVersionList.razor:line 151
at JiayiLauncher.Pages.Extra.FullVersionList.<>c__DisplayClass0_0.<b__8>d.MoveNext() in D:\projects\JiayiLauncher\JiayiLauncher\Pages\Extra\FullVersionList.razor:line 73
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
at Microsoft.AspNetCore.Components.WebView.Wpf.WpfDispatcher.InvokeAsync(Action workItem)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
--- End of inner exception stack trace ---
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at JiayiLauncher.App.Main()

The Toasts Room

general discussion for how to implement toasts. even if you're not a developer, you can throw in your two cents on how they should look and behave

Launcher starts and closes almost instantly

.NET was installed by the Jiayi installer ;
I click the start menu shortcut and the Launcher window appears and disappears almost instantly.
taskkill reveals no process like JiayiLauncher.exe is up

Proposal: Consider using Appx Packages

This would have many advantages:

  • Easy installation
  • Easy to uninstall
  • Follows the overall standard of a Windows application
  • Allows to reset app data from settings (and cache, ...)
  • File extension can be specified in package manifest
  • Easy for other apps to find the program on your system

Edit:

  • You can (or need to) sign the appx package, this would allow people verify that the package is legit
  • (Microsoft Store!?)

very deep crash when trying to switch versions

log for reference:

[...]
[18:55:36] [VersionManager - Info]: Switching to version 1.18.12.1
[18:55:36] [TargetInvocationException - Error]: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.InvalidCastException: Specified cast is not valid.
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
   at WinRT.IObjectReference.As[T](Guid iid)
   at WinRT.IObjectReference.As[T]()
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
   --- End of inner exception stack trace ---
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at WinRT.SingleInterfaceOptimizedObject..ctor(Type type, IObjectReference objRef, Boolean requireQI)
   at WinRT.SingleInterfaceOptimizedObject..ctor(Type type, IObjectReference objRef)
   at Windows.Storage.ApplicationData.Make__lazy_global__System_IDisposable()
   at Windows.Storage.ApplicationData.AsInternal(InterfaceTag`1 _)
   at Windows.Storage.ApplicationData.Dispose()
   at JiayiLauncher.Features.Versions.VersionManager.Switch(String version) in D:\projects\JiayiLauncher\JiayiLauncher\Features\Versions\VersionManager.cs:line 135
   at JiayiLauncher.Pages.Extra.FullVersionList.SwitchClicked(String ver) in D:\projects\JiayiLauncher\JiayiLauncher\Pages\Extra\FullVersionList.razor:line 215
   at JiayiLauncher.Pages.Extra.FullVersionList.<>c__DisplayClass0_0.<<BuildRenderTree>b__6>d.MoveNext() in D:\projects\JiayiLauncher\JiayiLauncher\Pages\Extra\FullVersionList.razor:line 67
[...]

i think it's an issue with winrt because of how deep this stack trace is but i could be wrong

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.