MehVahdJukaar / WoodGood

Other
54 stars 33 forks source link

[🐞]: Reloading resource packs that modify every compat textures cause the mod to ungenerate its textures #651

Closed thelegitdolt closed 1 month ago

thelegitdolt commented 1 month ago

Before Continuing:

Version

1.20.1

Loader

Forge

EveryCompat Version

everycomp-1.20-2.6.84H.jar

Moonlight Lib Version

moonlight-1.20-2.13.13-forge

Issue with mods

This appears to happen with every mod. I have installed Quark and Architect's Palette, and Autumnity.

Issue Detail

I have attempted to change some of every compat's assets with a texture pack

Screenshot 2024-10-23 at 10 09 58 PM

The above shows the image of all of the files that I changed.

When launching the game, everything is fine. However, if you reload the texture pack (F3 + T), the following happens:

Screenshot 2024-10-23 at 10 06 12 PM

OPTIONAL: Latest.log | Crash-report Attachment

https://gist.github.com/thelegitdolt/7e954f055e8a87c5c7f7755b0bf2df57 An excerpt. This shows all the models not being loaded yada yada.

OPTIONAL: To Produce

  1. Install this texture pack (unzip into texture pack folder) dolt_mod_resource.zip
  2. Launch the game with every compat installed as well as some mods that makes it generate some blocks I suppose
  3. Reload the texture ack
  4. Wow all the textures are gone
Xelbayria commented 1 month ago

I need the latest.log to look at the errors. The gist.github you provide is only pointing at the missing the model for planks and other blocks from a few different mods

thelegitdolt commented 1 month ago

i will give logs asap. I've also noticed that removing recipes + reloading will break the entire everycomp datapack

Xelbayria commented 1 month ago

Ok i've tested your resource pack. I had no problem but what I did is unzipped the ZIP

dolt_mod_resource.zip > dolt_mod_resource > ...

I selected all of them and added to dolt_mod_resource.zip via context menu (7-zip > add to dolt_mod_resource.zip). The structure should look like this:

dolt_mod_resource.zip
    L> assets
    L> pack.mcmeta
    L> so on...

and use it as a resource pack. You need to change one thing in pack.mcmeta which is

TO

how do i know it's 15. take a look at pack_format

thelegitdolt commented 1 month ago

I changed my pack resource to 15 and can still reproduce the issue. Did you reload the texture pack after you launched it

thelegitdolt commented 1 month ago
Screenshot 2024-10-23 at 11 10 17 PM
Xelbayria commented 1 month ago

Yes I also "reload the texture".

Some of blocks from Quark like hedges or fences, they don't need generated textures because they are using the vanilla textures from Minecraft. that applied to other wood mods (Biomes O' Plenty or Autumnity).

You only have these:

correct, if there are 1 or 2 more wood mods, i need to know which one.

thelegitdolt commented 1 month ago

can you send the texture pack you used

thelegitdolt commented 1 month ago

this is a copy of my everycomp config https://gist.github.com/thelegitdolt/60ea72fa572f138bf7894773bf5fb677 is there something here that owuld cuase any problems

thelegitdolt commented 1 month ago

Some of blocks from Quark like hedges or fences, they don't need generated textures because they are using the vanilla textures from Minecraft. that applied to other wood mods (Biomes O' Plenty or Autumnity).

Yes, but they still require generated blockstates files and models, which is what is broken

Xelbayria commented 1 month ago

github_issues_651

That's what it looks like. What i said in my post about the structure is very clear.

Yes, but they still require generated blockstates files and models, which is what is broken

They will get generated but something is preventing EveryCompat from finishing the job. It's the same recipes. you'll have to isolate all of mods down to one mod that is giving you the issue.

thelegitdolt commented 1 month ago

i will do that

MehVahdJukaar commented 1 month ago

i need latest.log

thelegitdolt commented 1 month ago

Hey!

I can reproduce with Every Compat, Quark, Autumnity, Quark, Blueprint, and Moonlight.

Please try my texture pack again with just these mods.

Logs: hi.txt

thelegitdolt commented 1 month ago

This ALSO APPLIES to using a datapack to change recipes. After doing /reload, all every compat datapacks will disappear, so recipes and others will be gone.

Xelbayria commented 1 month ago

I had no problem with these mods you've mentioned. Try do it without datapack and if you have no problem, then Datapack's the culprit.

EDIT:

I looked at the latest.log: Reloading ResourceManager: vanilla, mod_resources, Moonlight Mods Dynamic Assets, file/Detail-Brush-1.6-1.20, file/Farcr's Re-Crafted V2.12, file/Peeves - 1.19x, file/Up To Scratch V9, file/nomorezfightingironbars-1.13+.zip, file/soft_weather.zip, resources/dolt_mod_resource

thelegitdolt commented 1 month ago

Resource packs will work for 1.20.1 even if they are made for a different version. Are you saying that using the 1.19.2 version of peeves is causing the texture pack reload issue?

Can you please describe in greater detail how you are attempting to reproduce the bug? I am using Autumnity, Blueprint, Quark, Every Compat, Openloader, and Moonlight. https://gist.github.com/thelegitdolt/d2675663527332ea369917c5685487e3 This is my every compat configuration. if you insert the texture pack i am using into the Openloader texture pack (you can run /openloader folder resources in game to bring it up), reload the texture pack, all every compat resources should disappear.

thelegitdolt commented 1 month ago

I am not using a datapack, I am using crafttweaker to remove certain recipes. If you install Crafttweaker and put the following file into your scripts folder (run /ct scripts to bring it up)

https://cdn.discordapp.com/attachments/949164314852487218/1299090430037594112/hedge_make_good.zs?ex=671befbe&is=671a9e3e&hm=cf0ccc65ba56d450860d96a104eaecaaedd6b9e657e24b2be815807954f9febb&

On /reload, you should see that crafttweaker cannot find these recipes, all items added by every compat are missing recipes. (You can use JEI to see this).

thelegitdolt commented 1 month ago

I'm not sure how crafttweaker removes recipes but it is probably something datapack-related since i believe it is the same issue that is causing every compat textures to break after a texture reload

Xelbayria commented 1 month ago

I see. I have CraftTweaker (CrT) installed. and I don't have Openloader, i'll install and run a quick test. and I'll try that script to see if I can reproduce the issue

I have the dolt_mod_resource.zip enabled. I tried to use F3 + T and /reload can't replicate the issue. this is clearly not EveryCompat's issue. something else is causing the issue. you have to find it.

Xelbayria commented 1 month ago

I've ran test with Openloader and another test with CrT using the script you provided.

I can't replicate the issue.


On /reload, you should see that crafttweaker cannot find these recipes, all items added by every compat are missing recipes. (You can use JEI to see this).

I use EMI with JEI. yea I can tell what's going on. I don't see any errors when I ran /reload


I'm not sure how crafttweaker removes recipes but it is probably something datapack-related since i believe it is the same issue that is causing every compat textures to break after a texture reload

Simply, What CrT is doing is remove the recipes from the "RAM". so when you are crafting hedge, Minecraft would use "RAM" to look up recipes and found one that match what you are doing to output "hedge".

"RAM" may not an appropriate term to describe where the resources are restored in. It's the same place that datapack, recipes, and textures are restored in.

thelegitdolt commented 1 month ago

i'll like make a video of exactly what i'm doing JUST IN CASE you are missing something, if not I've literally no idea what to do

thelegitdolt commented 1 month ago

https://gist.github.com/thelegitdolt/ac01e9a5428c4ced0ee3c5c3c31b2951 < latest.log Okay i deleted + regenerated teh every compat config and this issue seems to have fixed itself. Yay!

    creative_tab = true
    #Makes dynamic assets that are generated depend on loaded resource packs. Turn off to make them just use vanilla assets
    assets_depend_on_loaded_packs = true
    #Creates a debug folder inside your instance directory where all the dynamically generated resources will be saved
    save_debug_resources = false

In my broken instance I had assets_depend_on_loaded_packs set to false and save_debug_resources set to true but after everything became default it was all fixed. Can you please try see if you can recreate this issue with the exact configs that I've sent

MehVahdJukaar commented 1 month ago

Depends on loaded packs makes EC only look at vanilla pack. That's it's purpose

Xelbayria commented 1 month ago

Ran a quick test on my side. I still can't replicate the issue. it's good that you got it all working properly.