GithubHelp home page GithubHelp logo

Comments (9)

goumo avatar goumo commented on August 22, 2024 3

另一个 issue 也是冬季救援整合包,这也太巧了

我刚才试了下即使是 mmc 也不能导入,也就是说 instance.cfg 是必须的,由于发布时误删导致新版本 PCL 无法正确读取整合包,所以不应该由 PCL 背这口锅(

from pcl2.

3gf8jv4dv avatar 3gf8jv4dv commented on August 22, 2024 1

The modpack you provided is missing the instance.cfg file.

from pcl2.

3gf8jv4dv avatar 3gf8jv4dv commented on August 22, 2024 1

around February

I don't know where to get the historical version, but at the time this modpack was installed without problems

LTCatt uploaded 最新正式版.zip in GitHub repo. You can find the stable version provided by LTCatt through the commit history. I will try several versions later.

from pcl2.

goumo avatar goumo commented on August 22, 2024

The modpack you provided is missing the instance.cfg file.

That's all the files, and it's can be installed when using older versions of PCL

from pcl2.

3gf8jv4dv avatar 3gf8jv4dv commented on August 22, 2024

That's all the files, and it's can be installed when using older versions of PCL

I noticed that what you are trying to import is a MultiMC modpack. mmc-pack.json and instance.cfg are selected by default when exporting a modpack in MultiMC or Prism Launcher, somehow the latter is not included in the archive you uploaded.

I just did some testing and code review a while ago, and the latest PCL (whether from LTCatt or the build on GitHub) will try to read mmc-pack.json and instance.cfg when it detects the MultiMC modpack. I encountered the same situation as you when the latter was not included in the modpack.

'MMC
Private Sub InstallPackMMC(FileAddress As String, Archive As Compression.ZipArchive, ArchiveBaseFolder As String)
'读取 Json 文件
Dim PackJson As JObject, PackInstance As String
Try
PackJson = GetJson(ReadFile(Archive.GetEntry(ArchiveBaseFolder & "mmc-pack.json").Open, Encoding.UTF8))
PackInstance = ReadFile(Archive.GetEntry(ArchiveBaseFolder & "instance.cfg").Open, Encoding.UTF8)
Catch ex As Exception
Log(ex, "整合包安装信息存在问题", LogLevel.Hint)
Exit Sub

I tried creating an empty file and named it instance.cfg, and put it in the modpack you provided, and PCL will display the pop-up window for the player to enter the instance name normally.

You said that earlier versions of PCL did not encounter similar problems. Could you provide a rough version range?

Regards.

from pcl2.

goumo avatar goumo commented on August 22, 2024

Could you provide a rough version range?

around February

I don't know where to get the historical version, but at the time this modpack was installed without problems

from pcl2.

3gf8jv4dv avatar 3gf8jv4dv commented on August 22, 2024

I tested several versions and found that 2.7.4 worked fine, but 2.8.2 started to have the same problem as the author.

I further tested the versions within this range, 2.8.1 worked fine, but 2.8.2 started to have problems.

Not sure if this is related to the fix for #4194. Can be confirmed.

from pcl2.

lactobionicAcid avatar lactobionicAcid commented on August 22, 2024

HMCL 读取该整合包时似乎直接跳过了 mmc-pack.json 文件...
也就是说, HMCL 根本就没把这玩意作为 MultiMC 整合包读取。

说明 PCL 对于整合包类型的检测还不够完善...?

from pcl2.

3gf8jv4dv avatar 3gf8jv4dv commented on August 22, 2024

HMCL 读取该整合包时似乎直接跳过了 mmc-pack.json 文件...
也就是说, HMCL 根本就没把这玩意作为 MultiMC 整合包读取。

说明 PCL 对于整合包类型的检测还不够完善...?

The modpack provided by the author was originally considered as a CurseForge modpack by PCL. However, due to the code logic change in 2.8.2, the modpack was considered as a MultiMC modpack instead. The modpack happened to lack instance.cfg, so an error occurred in the PCL.

According to the information you provided, it seems that HMCL follows the previous logic of PCL. I tested HMCL, if only mmc-pack.json is retained without retaining other files, HMCL also cannot recognize modpack; it can be recognized normally when both mmc-pack.json and instance.cfg exist.

from pcl2.

Related Issues (20)

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.