PluginBugs / Issues-ItemsAdder

Repository used to keep track of issues of my plugin ItemsAdder
https://itemsadder.devs.beer
51 stars 21 forks source link

pack.mcmeta new features #3209

Closed ColorsASD closed 3 weeks ago

ColorsASD commented 9 months ago

Terms

Discord tag (optional)

No response

Describe the solution you'd like

Hello! Now that the overlay has been added to the pack.mcmeta, I am using version 1.20.2, so in addition to the assets, pack.mcmeta, and pack.png, I also need a custom folder, let's call it gui1202. In this folder, there is also an assets folder, which overrides the original assets folder under the appropriate version, enabling support between different versions. Unfortunately, ItemsAdder does not generate or include this folder in the generate.zip file. I don't know how to include it.

Is your feature request related to a problem?

So, my problem is that ItemsAdder is not willing to include the gui1202 folder in the generated.zip file, which is necessary for me. Is there any way to resolve this issue?

Describe alternatives you've considered

One solution is to replace the directory section in the pack.mcmeta from gui1202 to assets. Then, there should be another assets folder inside the assets folder, but this is not ideal if I want more than one override in the future.

Additional context

pack.mcmeta:

{
   "pack": {
    "pack_format": 22,
    "supported_formats": {
      "min_inclusive": 7,
      "max_inclusive": 22
      },
      "description": "CENSOR"
    },
  "overlays": {
    "entries": [
      {
        "formats": {
          "min_inclusive": 16,
          "max_inclusive": 22
        },
        "directory": "gui1202"
      }
    ]
  }
}

image generated.zip: image And one more thing: as far as I know, there is no option for a subfolder in the "directory": "gui1202" section. I tried, for example, "directory": "assets/gui1202" or the same with a backslash, but unfortunately, it is not possible. Only the folders that exist next to the pack.mcmeta file can be specified. I really wish I could be wrong about this.

github-actions[bot] commented 9 months ago

Hello, your report will be looked into as soon as possible. Please do not bump this thread and don't post it on multiple platforms.

Thanks a lot for your patience.

LoneDev6 commented 9 months ago

I consider this feature useless to be honest as ItemsAdder already provides a very simple way to merge resourcepacks. This "overlays" feature also doesn't merge files, it just overrides them. For example if you have multiple folders with "diamond_sword.json" it won't merge them all, it will use only the top one. ItemsAdder allows multiple json files to be merged and working correctly. Can you elaborate more why you wish this feature to be implemented?

Please check the resourcepack merging tutorial: https://itemsadder.devs.beer/plugin-usage/merge-resourcepacks#how-to-merge

ColorsASD commented 9 months ago

There is no such feature in ItemsAdder; yours has a function that combines textures independently of the version, meaning multiple textures are grouped together. Overlays' functions are version-specific. So, what you want in 1.20.2 won't appear in 1.19.3. There have been many recent changes regarding the GUI, so this is useful for servers supporting multiple versions.

LoneDev6 commented 9 months ago

I see, this is definitely interesting. I can implement that but keep in mind that it might take time. Thanks for clearing things up!

https://feedback.minecraft.net/hc/en-us/articles/19703470383757-Minecraft-Java-Edition-1-20-2

OVERLAYS

LoneDev6 commented 9 months ago

One big drawback of this vanilla feature is that the client will download the whole zip file, am I correct? This is a bad decision as because if you have created a pack with multiple overlays there is a big issue: If each overlay is for a different version the client would have to download the whole zip containing useless packs for their game version.

Am I correct?

ColorsASD commented 9 months ago

I only need basic vanilla functions, requiring a custom folder generated by the plugin. However, if you're willing to invest time and effort, you can create your own improved overlay that downloads the specific package with users based on brand or version.

I'm not looking for a new function, just the ability to use this basic function. Just like using pack.png and pack.mcmeta, I believe there is no need for any development. It would be sufficient if, as I described above, it generates folders outside of assets.

ColorsASD commented 9 months ago

Otherwise, the package is limited to 50MB, I think 250MB, I don't know, I don't think downloading this would be a problem for anyone. The overlays feature was essentially introduced because the GUI was completely broken into pieces. Under 1.19.2, the textures slide, and above 1.20.2, the texture names are different. I use the overlay for this purpose.

image image

image image

ColorsASD commented 9 months ago

So, I use the overlays feature to address the errors caused by the GUI from 1.20.2 and onwards. If you look around on CurseForge, you'll find the overlays in more and more texture packs because of the GUI issues.

ColorsASD commented 1 month ago

This function is needed more and more because of the rapid version changes.

LoneDev6 commented 3 weeks ago

I sadly don't understand the urge to have multi-version compatibility on servers. You can read more about what I think about multi-version here: https://itemsadder.devs.beer/itemsadder-v4 For now I have to discard this compatibility, what you can do is manually create a pack.mcmeta and let ItemsAdder put it into the zip automatically, which should already be able to do that without issues.

ColorsASD commented 2 weeks ago

This is still not about whether YOU support the other versions or not; it's about the fact that YOU are not allowing this. You didn't create this, MOJANG did. It's a basic feature, just like how you can add an image to the texture named pack.png.

The modification you need to create in the file structure is simply to generate custom folders alongside the assets, pack.png, and pack.mcmeta files, like this:

The following texture elements should be placed in the assets folder: contents/<your_name>/resourcepack/assets

The following texture elements should be placed in a custom folder where the assets are located: contents/<your_name>/resourcepack/custom

So, the main directory of the texture pack would look like this:

So, this isn't about YOU doing the support; you just need to keep up with MOJANG's basic texture developments. THIS IS A BASIC FEATURE SINCE 1.19.4, PLEASE.

Andre601 commented 2 weeks ago

And YOU need to learn that ItemsAdder is done by one single dev while Mojang has a group of developers behind itself, doing ONLY work on Minecraft as their daily job.

LoneDev has to do absolutely nothing here. This plugin isn't his only priority in life and there is no obligation for him to do anything to support whatever Mojang throws out the next week.

Also, multi-version support on Servers is absolute cancer if it is done for anything but allowing multiple versions on a local lobby server. MC was and never will be designed for multi-version support and LoneDev shouldn't need to bend over backwards here just to satisfy a single individual (you) here.

Stop acting like this is a company you own or that LoneDev owes you because you bought a plugin from him. He owes you absolutely nothing and could stop working on IA at any time here, so be happy he hasn't yet.

ColorsASD commented 2 weeks ago

Go ahead. You don't know anything about me, and I don't know anything about you either. Those who think of everything as work know that it’s more important for me to keep 20k people up to date in the best possible way. If I can’t do that, I’ll switch, it’s that simple. I’m not here to make demands, as YOU said. You don’t have to do anything, you can stop, we’re not dependent on anyone. The issue here is that a basic Minecraft function has been REMOVED, not that it’ll be fixed in 3-4 years; it has been literally deleted. Have a nice day.

LoneDev6 commented 2 weeks ago

As I said before you can already do that manually by creating a pack.mcmeta file inside a directory, for example: plugins\ItemsAdder\contents\my_custom_packmcmeta\resourcepack\pack.mcmeta. ItemsAdder should already merge it automatically.