Giter VIP home page Giter VIP logo

citresewn's People

Contributors

alpeerkaraca avatar alphaqu avatar amirhan-taipovjan-greatest-i avatar burrconnie avatar dbrighthd avatar felix14-v2 avatar fitfc avatar gazmanovich avatar godgun968 avatar gyular avatar imvietnam avatar madis0 avatar meenimc avatar mithicspirit avatar onako2 avatar shsupercm avatar thelegendofsaram avatar toldoven avatar xmikux 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  avatar  avatar  avatar  avatar  avatar

citresewn's Issues

Infinite loading times

I'm trying to enable BetterVanillaBuilding with Resewn but loading times are infinite (or just very long).
Logs read:

[23:38:20] [Worker-Main-1/WARN]: File ostoverhaul:sounds/music/withering_charge.ogg does not exist, cannot add it to event ostoverhaul:withering_charge
[23:38:20] [Worker-Main-1/WARN]: File ostoverhaul:sounds/music/withering.ogg does not exist, cannot add it to event ostoverhaul:withering
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_path' in 'matchBlocks' element 'grass_path' at index 74 in file 'minecraft:optifine/ctm/zsmalloverlays/odirt/dirt.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_path' in 'matchBlocks' element 'grass_path' at index 80 in file 'minecraft:optifine/ctm/zsmalloverlays/pcoarse dirt/coarsedirt.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_path' in 'matchBlocks' element 'grass_path' at index 81 in file 'minecraft:optifine/ctm/zsmalloverlays/qpodzol/podzol.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_path' in 'matchBlocks' element 'grass_path' at index 82 in file 'minecraft:optifine/ctm/zsmalloverlays/rclay/clay.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_path' in 'matchBlocks' element 'grass_path' at index 83 in file 'minecraft:optifine/ctm/zsmalloverlays/smycelium/mycelium.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_path' in 'matchBlocks' element 'grass_path' at index 84 in file 'minecraft:optifine/ctm/zsmalloverlays/tgrass_overlay/grass_block.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_path' in 'matchBlocks' element 'grass_path' at index 83 in file 'minecraft:optifine/ctm/zsmalloverlays/tgrass_overlay_bottom/grass.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_path' in 'matchBlocks' element 'grass_path' at index 84 in file 'minecraft:optifine/ctm/zsmalloverlays/tgrass_overlay_side/grass.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_path' in 'matchBlocks' element 'grass_path' at index 84 in file 'minecraft:optifine/ctm/zsmalloverlays/tsnow_grass/grasssnow.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_path' in 'matchBlocks' element 'grass_path' at index 84 in file 'minecraft:optifine/ctm/zsmalloverlays/tsnow_grass/snow.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_path' in 'matchBlocks' element 'grass_path' at index 84 in file 'minecraft:optifine/ctm/zsmalloverlays/tsnow_grassside/grasssnow.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_path' in 'matchBlocks' element 'grass_path' at index 84 in file 'minecraft:optifine/ctm/zsmalloverlays/tsnow_grassside/snow.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_path' in 'matchBlocks' element 'grass_path' at index 85 in file 'minecraft:optifine/ctm/zsmalloverlays/tycrimson/crimson.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_path' in 'matchBlocks' element 'grass_path' at index 84 in file 'minecraft:optifine/ctm/zsmalloverlays/tycrimson_side/crimson.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_path' in 'matchBlocks' element 'grass_path' at index 86 in file 'minecraft:optifine/ctm/zsmalloverlays/tzwarped/warped.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_path' in 'matchBlocks' element 'grass_path' at index 85 in file 'minecraft:optifine/ctm/zsmalloverlays/tzwarped_side/warped.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_path' in 'matchBlocks' element 'grass_path' at index 87 in file 'minecraft:optifine/ctm/zsmalloverlays/ugravel/gravel.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_path' in 'matchBlocks' element 'grass_path' at index 65 in file 'minecraft:optifine/ctm/zsmalloverlays/vred_sand/redsand.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_path' in 'matchBlocks' element 'grass_path' at index 66 in file 'minecraft:optifine/ctm/zsmalloverlays/wsand/sand.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_block_snow' in 'matchBlocks' element 'grass_block_snow' at index 76 in file 'minecraft:optifine/ctm/zsmalloverlays/ysnow/snow.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_path' in 'matchBlocks' element 'grass_path' at index 91 in file 'minecraft:optifine/ctm/zsmalloverlays/ysnow/snow.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_block_snow' in 'matchBlocks' element 'grass_block_snow' at index 77 in file 'minecraft:optifine/ctm/zsmalloverlays/zhay/hay.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/WARN]: Invalid block 'minecraft:grass_path' in 'matchBlocks' element 'grass_path' at index 92 in file 'minecraft:optifine/ctm/zsmalloverlays/zhay/hay.properties' in pack 'BetterVanillaBuildingV2.63.zip'
[23:38:20] [Worker-Main-1/INFO]: [citresewn] Parsing CITs...

Matching display name requires specific json format

If im turning on "allow broken paths in ressourcepacks" I can use my ressourcepack in singleplayer and it workes fine. (need to toggle this to on otherwise it wont load)

If im joining my server(which forces the server texturepack [same as in singleplayer] ), the ressourcepack gets applied but CIT isnt working. On renaming Items, the CIT is there for a milisecond then the items looks like normal.

Not compatible with 1.17

The site says that the mod is compatible with 1.17 and 1.17.1, however this is not the case...
image

Consider preventing broken resourcepacks from loading

Regarding #3, I understand and appreciate the approach you took in not implementing broken behaviour, however a crash is a bad UX either way.

Have you considered adding a feature that makes broken resource packs behave like vanilla's "incompatible" - disabled on start and show an exclamation mark with a tooltip in resource pack list?

That way users could easily know

  1. which resource packs are broken
  2. what to tell the resource pack makers

without having to try and decipher the crash.

Resource Reload Fail on seemingly "Non [a-z0-9/._-] character"

Resource reload fails on packs where a .properties file seemingly contains a non alphanumeric or comma/underscore/dash character.

The error line shows like this:
java.util.concurrent.CompletionException: net.minecraft.class_151: Non [a-z0-9/._-] character in path of location: minecraft:optifine/cit/custom elytras/after2020/a.properties

The file's contents are these (a.properties):

type=elytra
matchItems=minecraft:elytra
texture=a
nbt.display.Name=iregex:(crimson elytra)

Another example (dancer's sword.properties; another error caught with another pack):

type=item
items=minecraft:diamond_sword minecraft:netherite_sword
model=optifine/cit/models/melee_scale_x32_dancer's_sword
texture=dancer's_sword
nbt.display.Name=pattern:Dancers Sword

Broken paths and some texture packs crash the game

Using the New Default+ texture pack with Broken Paths did in fact allow the game to load up, but seeing certain CIT textures such as the "Piglin Brute Netherite Helmet" (yes its specific but its how it crashed the first time).

The error log is as follows:

20:49:07.744
net.minecraft.class_310
Render thread
Reported exception thrown!
net.minecraft.class_148: Registering texture
at net.minecraft.class_757.method_3192(class_757.java:883)
at net.minecraft.class_310.method_1523(class_310.java:1112)
at net.minecraft.class_310.method_1514(class_310.java:728)
at net.minecraft.client.main.Main.main(Main.java:217)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:234)
at net.fabricmc.loader.launch.knot.Knot.launch(Knot.java:153)
at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:28)
Caused by: net.minecraft.class_151: Non [a-z0-9/._-] character in path of location: minecraft:optifine/cit/models/new_default+_dungeons/armor_models/piglin_brute_armor_1.png.mcmeta
at net.minecraft.class_2960.(class_2960.java:41)
at net.minecraft.class_2960.(class_2960.java:50)
at net.minecraft.class_3294.method_14473(class_3294.java:170)
at net.minecraft.class_3294.method_14486(class_3294.java:50)
at net.minecraft.class_3304.method_14486(class_3304.java:62)
at net.minecraft.class_1049$class_4006.method_18156(class_1049.java:81)
at net.minecraft.class_1049.method_18153(class_1049.java:57)
at net.minecraft.class_1049.method_4625(class_1049.java:28)
at net.minecraft.class_1060.method_24303(class_1060.java:96)
at net.minecraft.class_1060.method_4616(class_1060.java:68)
at net.minecraft.class_1060.method_4619(class_1060.java:118)
at net.minecraft.class_4668$class_4683.method_23563(class_4668.java:238)
at net.minecraft.class_4668.method_23516(class_4668.java:36)
at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:408)
at net.minecraft.class_1921$class_4687.method_23595(class_1921.java:929)
at net.minecraft.class_4668.method_23516(class_4668.java:36)
at net.minecraft.class_1921.method_23012(class_1921.java:727)
at net.minecraft.class_4597$class_4598.method_22994(class_4597.java:96)
at net.minecraft.class_4597$class_4598.method_24213(class_4597.java:75)
at java.base/java.util.Optional.ifPresent(Optional.java:178)
at net.minecraft.class_4597$class_4598.method_22993(class_4597.java:72)
at net.minecraft.class_490.method_2486(class_490.java:155)
at net.minecraft.class_481.method_2389(class_481.java:779)
at net.minecraft.class_465.method_25394(class_465.java:101)
at net.minecraft.class_485.method_25394(class_485.java:43)
at net.minecraft.class_481.method_25394(class_481.java:690)
at net.minecraft.class_757.method_3192(class_757.java:874)
... 10 more

[Bug/Request] Potentially add support/better error catching for uppercase letters and in general

Logs: latest.log
This resourcepack has an uppercase letter in one of the folder and softcrashes CIT Resewn
Instead of falling back to my previous resource pack configuration, CIT Resewn disabled all my resource packs, which was quite a bit annoying (I use many so that takes many clicks and a reload to undo)
I believe that resource pack (minimally) works on OptiFine, so in theory it might be considered a bug
Also the "Resource Pack Failed To Load" message fades away too fast in my opinion, and does not tell it's CIT Resewn giving you that message, so it took me a while to figure out who was causing it. Would be cool if that message included the mod name too or something.

TL;DR: If any of the following are possible:

  • make CIT Resewn support a-Z0-9 regex instead of a-z0-9
  • make CIT Resewn go back to your previously working RP configuration instead of unequipping all resource packs
  • increase toast duration when a RP crashes CIT Resewn
  • tell us in some way that it was CIT Resewn that (soft)crashed when it does other than via latest.log

Rewrite CITParser properties discovery

Will fix multiple issues such as:

  • Zip vs directory inconsistencies.
  • CITs not loading from namespaces that are not "minecraft".
  • Mods cannot include cits in their assets.

Support for optifine Anim name space

Optifines Anim and by extension anim.properties fall very closely to CIT, allowing for overriding the armor model and such, might make sense to include it here instead of a separate mod

Chokes on assets with spaces in filename

The following resource pack fails to load due to having spaces in some asset names

UltimaCraft_Enchantments_(b.1.0).zip (https://www.curseforge.com/minecraft/texture-packs/ultimacraft-enchantments)

Obviously the pack works with OF.

See full log below

selected resourcepacks
java.util.concurrent.CompletionException: net.minecraft.class_151: Non [a-z0-9/._-] character in path of location: minecraft:optifine/cit/enchanted_items/armor/05-aqua_affinity/diamond_armor_aqua affinity.properties
	at Not Enough Crashes deobfuscated stack trace.(1.17+build.10) ~[?:?]
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) ~[?:?]
	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) ~[?:?]
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1766) ~[?:?]
	at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1756) ~[?:?]
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295) ~[?:?]
	at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016) ~[?:?]
	at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665) ~[?:?]
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598) ~[?:?]
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) ~[?:?]
Caused by: net.minecraft.class_151: Non [a-z0-9/._-] character in path of location: minecraft:optifine/cit/enchanted_items/armor/05-aqua_affinity/diamond_armor_aqua affinity.properties
	at net.minecraft.util.Identifier.<init>(Identifier:41) ~[?:?]
	at net.minecraft.util.Identifier.<init>(Identifier:50) ~[?:?]
	at net.minecraft.resource.ZipResourcePack.findResources(ZipResourcePack:134) ~[?:?]
	at shcm.shsupercm.fabric.citresewn.pack.CITParser.parse(CITParser.java:40) ~[CITResewn-0.4.4.jar:?]
	at net.minecraft.client.render.model.ModelLoader.handler$znd000$addCITModels(ModelLoader:1142) ~[?:?]
	at net.minecraft.client.render.model.ModelLoader.addModel(ModelLoader:465) ~[?:?]
	at net.minecraft.client.render.model.ModelLoader.<init>(ModelLoader:193) ~[?:?]
	at net.minecraft.client.render.model.BakedModelManager.prepare(BakedModelManager:52) ~[?:?]
	at net.minecraft.client.render.model.BakedModelManager.prepare(BakedModelManager:19) ~[?:?]
	at net.minecraft.resource.SinglePreparationResourceReloader.method_18791(SinglePreparationResourceReloader:11) ~[?:?]
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?]
	... 6 more

Type=armor CITs not working

This is probably a user error since armor and elytra textures seem to work for others. However my armor textures aren't being displayed and no errors are shown in logs.

As an example, this .properties file is in assets/minecraft/optifine/cit/armor:

type=armor
items=iron_chestplate
texture=assets/minecraft/textures/models/armor/golem_heart_layer_1.png
nbt.display.Name:ipattern:*Golem Heart Chestplate*

Yet doesn't show in game. This was working just fine in optifine.

Rewrite sub item system

The sub item system should probably be rewritten with predicates in mind.

So instead of mapping baked sub models to cits for the real time conversions, explicitly map sub model names to model overrides and then mixinto the HEAD in the item renderer injection before vanilla overrides are tested and apply model override predicates from the cit, then just return early to boost performance.

Add github actions

Github actions automatically compiles on every commit pushed to github. This makes getting development versions easier.
For more info go to the Actions tab

Backport to 1.16.5

I know it's a lot of work to maintain two versions, so it's alright if you don't want to do this.

Unfortunately, I'm not too familiar with Fabric, or even Java, otherwise I'd try to do this myself.

I attempted changing the versions in the gradle.properties, and got these errors: https://termbin.com/6pn2.

Duplicate texture-based CITs are ignored when non standard native models are supplied

Recently I downloaded a pack and it works with Optifine, but not CIT Resewn. It uses NBT data, here's the file:

type=item
items=suspicious_stew
nbt.Effects.0.EffectId=iregex:(23)

Seems like the whole nbt part of the CIT thing isn't yet finished, just wanted to make sure it was known that it isn't. I know people have done things like NBT Crafting, not sure if that would be of any help or not but it's there if you want a guide on how to do it ๐Ÿ˜…

EDIT: TO be clear, the nbt is trying to work. But they all show up as the same stew regardless of what the nbt says :/

Cosmetic Armor Support doesn't support Elytras in Cosmetic Slots

Thanks for taking the time to add cosmetic armor support!

As title states though, Elytras don't seem to work with it... Is it possible to fix this?

Examples:
If nothing is in the main slot, but an elytra is in the cosmetic slot, nothing appears.
If an elytra is in the main slot, and the CIT elytra is in the cosmetic slot, it appears.
If a chestplate is in the main slot, and a CIT elytra is in the cosmetic slot, nothing appears, or sometimes, the Elytra will display but without the CIT

[Bug] Some properties do not work correctly

It seems like some of the cit properties are not working correctly as they should.

Using latest CITResewn version.

"tile" as a replacement for "texture" gives an error: "Skipped CIT: Cannot resolve path for model/texture"

"regex" does not seem to work at all sadly. ( Used something as simple as "nbt.display.Name=iregex:(Test)" or "nbt.display.Name=regex:Test" which work just fine in Optifine )

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.