Giter VIP home page Giter VIP logo

projbobcat's People

Contributors

biduang avatar codingeric avatar dependabot[bot] avatar fr1g avatar g-plane avatar imjack6 avatar laolarou726 avatar mcoo avatar taigostudio avatar yueyinqiu 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  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  avatar  avatar  avatar

projbobcat's Issues

在nuget安装失败

在尝试从nuget安装此项目时一直失败
但在经过测试后,发现只有在1.5以上的版本会出现此问题
问题报错如下:

正在尝试收集与目标为“.NETFramework,Version=v4.7.2”的项目“HarbourLauncher”有关的包“ProjBobcat.1.6.0”的依赖项信息
收集依赖项信息花费时间 6 ms
正在尝试解析程序包“ProjBobcat.1.6.0”的依赖项,DependencyBehavior 为“Highest”
解析依赖项信息花费时间 0 ms
正在解析操作以安装程序包“ProjBobcat.1.6.0”
已解析操作以安装程序包“ProjBobcat.1.6.0”
已从“packages.config”中删除程序包“ProjBobcat.1.0.7”
已从 HarbourLauncher 成功卸载“ProjBobcat.1.0.7”
安装失败。正在回滚...
程序包“ProjBobcat.1.6.0”不存在于项目“HarbourLauncher”中
程序包“ProjBobcat.1.0.7”已存在于文件夹“H:\WorkSpace\Code\C#Project\HarbourLauncher\packages”中
已将程序包“ProjBobcat.1.0.7”添加到“packages.config”
程序包“ProjBobcat.1.6.0”不存在于文件夹“H:\WorkSpace\Code\C#Project\HarbourLauncher\packages”中
执行 nuget 操作花费时间 4.72 sec
无法安装程序包“ProjBobcat 1.6.0”。你正在尝试将此程序包安装到目标为“.NETFramework,Version=v4.7.2”的项目中,但该程序包不包含任何与该框架兼容的程序集引用或内容文件。有关详细信息,请联系程序包作者。

是.NET版本的问题吗?

初学者的一个问题

严重性 代码 说明 项目 文件 行 禁止显示状态
错误 CS0103 当前上下文中不存在名称“clientToken” MCL(Projbobcat) D:\嘉嘉\8-编程\visual studio编程\MCL(Projbobcat)\MainWindow.xaml.cs 46 活动

[BUG] Yggdrasil cannot log in, login failed

Describe the bug
When I use the skin station and need to use the YggdrasilAuthenticator authenticator, when executing var authResult = await yggdrasilAuthenticator.AuthTaskAsync();, result.User is Null, resulting in Object reference not set to an instance of an object , the first exception occurs at ProjBobcat\DefaultComponent\Authenticator\YggdrasilAuthenticator.cs:line 176

ProjBobcat Version
The latest Master branch of the repository

To Reproduce
Steps to reproduce the behavior:

  1. Initialize the Authenticator
            var yggdrasilAuthenticator = new YggdrasilAuthenticator
            {
                AuthServer = [AuthServer],
                Email = [Email],
                LauncherAccountParser = ...,
                Password = [Password]
            };
  1. Use var authResult = await yggdrasilAuthenticator.AuthTaskAsync(); to authenticate.
  2. Go to ProjBobcat\DefaultComponent\Authenticator\YggdrasilAuthenticator.cs:line 176 to see the error.

Expected behavior
Can login

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows
  • Version: 11

Additional context
When I checked the source code, I found that the result.User at

        var profile = new AccountModel
        {
            AccessToken = result.AccessToken,
            AccessTokenExpiresAt = DateTime.Now.AddHours(48),
            EligibleForMigration = false,
            HasMultipleProfiles = profiles.Count > 1,
            Legacy = false,
            LocalId = rUuid,
            Persistent = true,
            RemoteId = result.User.UUID.ToString(),
            Type = "Mojang",
            UserProperites = result.User?.Properties?.ToAuthProperties(profiles).ToArray() ??
                             Array.Empty<AuthPropertyModel>(),
            Username = Email
        };

was Null and caused an exception to be thrown.

关于使用VisualStudio开发时的警告和运行闪退问题

BUG描述
在对Nuget上的ProjBobcat包进行了安装且成功后,VS跳出来如下警告:

警告	
MSB3270	所生成项目的处理器架构“MSIL”与引用“XXX\ProjBobcat.dll”的处理器架构“AMD64”不匹配。
这种不匹配可能会导致运行时失败。
请考虑通过配置管理器更改您的项目的目标处理器架构,以使您的项目与引用间的处理器架构保持一致,或者为引用关联一个与您的项目的目标处理器架构相符的处理器架构	

并且在编译后的运行程序会进行闪退,根据文档的描述:
image
并没有在VS的项目属性中找到关于“首选32位”的选项,VS版本为2022

ProjBobcat 版本
1.23.1

authlib-injector

可以加入authlib-injector外置登录的方法吗?
https://github.com/yushijinhun/authlib-injector

Still outdated documentation

我最早下个月19号可以开始更新文档,在此之前还有一个月的时间,可能还是要其他contributor写一下。

Outdated Documentation

The code example provided by README.md is currently not working in the latest revision of ProjBobcat. A thorough documentation update is required.

Windows11下启动出现的问题[BUG]

Describe the bug
启动器给了管理员权限
内存设置的 512 - 4098

其他设置
-Xms512m
-Xmx4098m
-XX:+UseG1GC
-Dfml.ignoreInvalidMinecraftCertificates=true
-Dfml.ignorePatchDiscrepancies=true
-XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump
-Dos.name="Windows 10"
-Dos.version=10.0
-Djava.library.path="C:\Program Files\Minecraft-1.16.5\Game\003\versions\1.16.5-forge-36.2.27\natives"
-Dminecraft.launcher.brand=""
-Dminecraft.launcher.version=32

ProjBobcat Version
Version 1.8.0

To Reproduce
Steps to reproduce the behavior:
[启动 LOG] - 启动游戏
[游戏 LOG] - Error occurred during initialization of VM
[游戏 LOG] - agent library failed to init: instrument
DONE

Desktop (please complete the following information):

  • Windows11
  • Net5.0

[BUG] Doesn't support .NET Framework?

Describe the bug
I am using .NET Framework 4.8 (Latest) and it fails to install.

Could not install package 'ProjBobcat 1.16.0'. You are trying to install this package into a project that targets 
'.NETFramework,Version=v4.8', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

ProjBobcat Version
1.16.0

To Reproduce
Steps to reproduce the behavior:

  1. Install the package on a project that uses .NET Framework 4.8 via Nuget

Expected behavior
Should Install properly.

Desktop (please complete the following information):

  • OS: Windows 11 Pro
  • IDE: Visual Studio 2022 Community Edition
  • Version: 17.2.3

将依赖与实现分包以支持第三方扩展包

ProjBobcat.Interface接口下内容可以分门别类整理到Abstraction包中,从而直接支持基于package reference的扩展。

说到package reference,为什么不用新的项目结构呢,vs创建的项目多了很多无用且累赘的文件和臃肿的.csproj文件

采用全新的Linux java寻找办法

使用包管理器安装JDK后,会在/usr/lib/jvm/usr/lib64/jvm路径下生成文件。即/usr/lib/jvm/一个JDK/bin/java/usr/lib64/jvm/一个JDK/bin/java为java路径。此外,若存在/usr/lib/jvm/一个JDK/release/usr/lib64/一个JDK/release文件,也可以通过读取改文件中的JAVA_VERSION="版本"来获取java版本。若不存在也可以使用java -version来获得版本。使用Process读取时注意,应该使用.StandardError.ReadToEnd(),若使用.StandardOutput.ReadToEnd()可能会返回空串
此外,因为各个发行版提供了不同的默认Java选择方法,/usr/lib/jvm/usr/lib64/jvm路径下可能存在软连接文件夹,造成重复选择。
提供一个我的实现,参考参考

Suspending/Terminating a downloading task safely

The current version of the library does not offer an internal method to suspend/terminate a download task SAFELY, and workarounds on the linked launcher that do not modify the core's code are almost impossible to suspend/terminate the tasks safely for they are asynchronous and terminating them from outside results in exceptions. Whereas the function to suspend or terminate a task is severely in need especially for launchers that aim to be user-friendly considering that some users might regret their actions to download/launch a game.

Though this is an issue from a developer, we may not handle it in a short period. So PRs are welcome :)

[BUG] Forge 1.20.3+ launch error

Describe the bug
Forge 1.20.3+ launch error

ProjBobcat Version
latest

To Reproduce
When installing Forge versions 1.20.3 and 1.20.4 and running this version, an error occurs during Bootstrap initialization. There is no such error on other versions 1.20
01-01-2024.log

Desktop (please complete the following information):

  • OS: Windows 11

[BUG] Forge 1.16.5 installation error on Mac OS M2.

Describe the bug
Forge 1.16.5 installation error on Mac OS M2.

ProjBobcat Version
latest

Desktop (please complete the following information):

  • OS: MacOS
  • Processor: M2
  • Version [e.g. 22]

Error log:
[02.06.2024 12:50:27]: MGameUtils: (Stage: Forge Installer) 下载 - log4j-api-2.15.0.jar ( 60 / 63 ) 95,24%
[02.06.2024 12:50:28]: MGameUtils: (Stage: Forge Installer) 下载 - nashorn-core-compat-15.1.1.1.jar ( 61 / 63 ) 96,83%
[02.06.2024 12:50:28]: MGameUtils: (Stage: Forge Installer) 下载 - mixin-0.8.4.jar ( 62 / 63 ) 98,41%
[02.06.2024 12:50:28]: MGameUtils: (Stage: Forge Installer) 下载 - log4j-core-2.15.0.jar ( 63 / 63 ) 100%
[ERROR 02.06.2024 12:50:28]: System.ComponentModel.Win32Exception (8): An error occurred trying to start process '/Applications/Kubiki.app/Contents/Resources/bin/TAIGO.ECore/minecraft/runtime/jre-legacy/bin/java' with working directory '/Applications/Kubiki.app/Contents/Resources/bin/TAIGO.ECore/minecraft'. Exec format error
at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at ProjBobcat.DefaultComponent.Installer.ForgeInstaller.HighVersionForgeInstaller.InstallForgeTaskAsync()
at ProjBobcat.DefaultComponent.Installer.ForgeInstaller.HighVersionForgeInstaller.InstallForgeTaskAsync()
at ProjBobcat.DefaultComponent.Installer.ForgeInstaller.HighVersionForgeInstaller.InstallForgeTaskAsync()
at ProjBobcat.DefaultComponent.Installer.ForgeInstaller.HighVersionForgeInstaller.InstallForgeTaskAsync()

unit test on system info

how should we do unit test on system info properly? like searching for java, how could we share a same environment and test this?

错别字

输入的路劲为空或出错,亦或是指定的文件并不存在。
Uploading Cache_67aa768b7a7e9159.jpg…

Using with UAP

I'm currently unable to use the library in my UWP app that I'm trying to create. Is there a way to do so?

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.