Open MidyGamy opened 3 months ago
I also oppened an issue on their issue report https://github.com/SmajloSlovakian/Minecraft-Smooth-Scrolling/issues/48
A log of the crash would help figure out exactly the incompatibility
hi, i'm the developer of smooth scrolling
i have now fixed the crash in my dev branch but most non-vanilla stuff you add is still broken (doesn't scroll smoothly and some minor unexpected issues occur)... maybe i can fix it by using matrixtransform instead of modifying the render positions of items... i think that you don't need to do anything to fix the issues
most of the issues (if not all) will be fixed in smooth scrolling version 2.1.3 without the need to update this mod.
i would like to fix one more issue though... so where can i get the items from your mod for any position in the tab? if i don't get them, the items will either mismatch sometimes when scrolling at the top or bottom or instantly disappear... i want to use that in my mixins/handledscreenmixin at around line 67 in my code
Sorry for not getting back to you on this issue as I have been busy with other mods and life stuff to say the least. I have made a PR that contains fixes for the issues outlined for 3.4.0: https://github.com/SmajloSlovakian/Minecraft-Smooth-Scrolling/pull/49
sorry you had to put up with my garbage code spaghetti and thanks for the pr... i'm now gonna try it and i may make some changes to it if i see fit... i make no promises that i will abide by the rules you just applied to the whole project by i'll try :)... thanks
there is just one problem: it can't find io.wispforest.condensed_creative.entry.EntryContainer... it does find everything else but this one line errors out and so minecraft crashes with these two mods when i open creative inventory... i'll try to fix it myself but if you know what should be done, feel free to tell
Hmmm odd, try refreshing gradle as it worked for me and the files should be within the latest CC version
i'll be able to try it out again tomorrow or later... and i don't see the file on your github so idk...
oh i think i see that you don't have it updated on github so that's why i don't see it... well then idk how it would use a lower version of your mod... gradle is weird...
Pushed the changes to Github btw
tried it out with version 3.4.0 in the run/mods folder... it now does this when i go to the second page of creative inventory, go down and go up... it is also a bit inconsistent on if it will render the mod's item entries or vanilla's on the end of the scrolling...
---- Minecraft Crash Report ---- // Don't be sad, have a hug! <3
Time: 2024-08-18 17:39:10 Description: Rendering screen
java.lang.ClassCastException: class smsk.smoothscroll.compat.CondensedInventoryCompat$CondensedEntryDelegatingInventory cannot be cast to class io.wispforest.condensed_creative.util.CondensedInventory (smsk.smoothscroll.compat.CondensedInventoryCompat$CondensedEntryDelegatingInventory and io.wispforest.condensed_creative.util.CondensedInventory are in unnamed module of loader net.fabricmc.loader.impl.launch.knot.KnotClassLoader @97e1986) at io.wispforest.condensed_creative.client.SlotRenderUtils.isSlotAbovePartOfCondensedEntry(SlotRenderUtils.java:77) at io.wispforest.condensed_creative.client.SlotRenderUtils.renderExtraIfEntry(SlotRenderUtils.java:48) at net.minecraft.client.gui.screen.ingame.HandledScreen.wrapOperation$zjp000$condensed_creative$renderExtraIfEntry(HandledScreen.java:1714) at net.minecraft.client.gui.screen.ingame.HandledScreen.wrapOperation$zjp000$condensed_creative$renderExtraIfEntry$mixinextras$bridge$47(HandledScreen.java) at net.minecraft.client.gui.screen.ingame.HandledScreen.drawSlot(HandledScreen.java:259) at net.minecraft.client.gui.screen.ingame.HandledScreen.drawSlotOverridden(HandledScreen.java:772) at net.minecraft.client.gui.screen.ingame.HandledScreen.handler$zph000$smoothscroll$renderMid0(HandledScreen.java:765) at net.minecraft.client.gui.screen.ingame.HandledScreen.render(HandledScreen.java:105) at net.minecraft.client.gui.screen.ingame.AbstractInventoryScreen.render(AbstractInventoryScreen.java:32) at net.minecraft.client.gui.screen.ingame.CreativeInventoryScreen.render(CreativeInventoryScreen.java:778) at net.minecraft.client.gui.screen.Screen.renderWithTooltip(Screen.java:117) at net.minecraft.client.render.GameRenderer.mixinextras$bridge$renderWithTooltip$177(GameRenderer.java) at net.minecraft.client.render.GameRenderer.wrapOperation$zkf000$fabric-screen-api-v1$onRenderScreen(GameRenderer.java:2086) at net.minecraft.client.render.GameRenderer.render(GameRenderer.java:913) at net.minecraft.client.MinecraftClient.render(MinecraftClient.java:1285) at net.minecraft.client.MinecraftClient.run(MinecraftClient.java:882) at net.minecraft.client.main.Main.main(Main.java:256) at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470) at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
-- Head -- Thread: Render thread Stacktrace: at io.wispforest.condensed_creative.client.SlotRenderUtils.isSlotAbovePartOfCondensedEntry(SlotRenderUtils.java:77) at io.wispforest.condensed_creative.client.SlotRenderUtils.renderExtraIfEntry(SlotRenderUtils.java:48) at net.minecraft.client.gui.screen.ingame.HandledScreen.wrapOperation$zjp000$condensed_creative$renderExtraIfEntry(HandledScreen.java:1714) at net.minecraft.client.gui.screen.ingame.HandledScreen.wrapOperation$zjp000$condensed_creative$renderExtraIfEntry$mixinextras$bridge$47(HandledScreen.java) at net.minecraft.client.gui.screen.ingame.HandledScreen.drawSlot(HandledScreen.java:259) at net.minecraft.client.gui.screen.ingame.HandledScreen.drawSlotOverridden(HandledScreen.java:772) at net.minecraft.client.gui.screen.ingame.HandledScreen.handler$zph000$smoothscroll$renderMid0(HandledScreen.java:765) at net.minecraft.client.gui.screen.ingame.HandledScreen.render(HandledScreen.java:105) at net.minecraft.client.gui.screen.ingame.AbstractInventoryScreen.render(AbstractInventoryScreen.java:32) at net.minecraft.client.gui.screen.ingame.CreativeInventoryScreen.render(CreativeInventoryScreen.java:778) at net.minecraft.client.gui.screen.Screen.renderWithTooltip(Screen.java:117) at net.minecraft.client.render.GameRenderer.mixinextras$bridge$renderWithTooltip$177(GameRenderer.java) at net.minecraft.client.render.GameRenderer.wrapOperation$zkf000$fabric-screen-api-v1$onRenderScreen(GameRenderer.java:2086)
-- Screen render details -- Details: Screen name: net.minecraft.client.gui.screen.ingame.CreativeInventoryScreen Mouse location: Scaled: (357, 148). Absolute: (1428.000000, 592.000000) Screen size: Scaled: (480, 270). Absolute: (1920, 1080). Scale factor of 4.000000 Stacktrace: at net.minecraft.client.render.GameRenderer.render(GameRenderer.java:913) at net.minecraft.client.MinecraftClient.render(MinecraftClient.java:1285) at net.minecraft.client.MinecraftClient.run(MinecraftClient.java:882) at net.minecraft.client.main.Main.main(Main.java:256) at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470) at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
-- Uptime -- Details: JVM uptime: 61.303s Wall uptime: 46.045s High-res time: 44.251s Client ticks: 802 ticks / 40.100s Stacktrace: at net.minecraft.client.MinecraftClient.addDetailsToCrashReport(MinecraftClient.java:2501) at net.minecraft.client.MinecraftClient.printCrashReport(MinecraftClient.java:949) at net.minecraft.client.MinecraftClient.run(MinecraftClient.java:902) at net.minecraft.client.main.Main.main(Main.java:256) at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470) at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
-- Affected level -- Details: All players: 1 total; [ClientPlayerEntity['Player540'/12, l='ClientLevel', x=0.38, y=-60.00, z=-12.75]] Chunk stats: 625, 381 Level dimension: minecraft:overworld Level spawn location: World: (0,-60,0), Section: (at 0,4,0 in 0,-4,0; chunk contains blocks 0,-64,0 to 15,319,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511) Level time: 972543 game time, 214715 day time Server brand: fabric Server type: Integrated singleplayer server Tracked entity count: 23
-- Last reload -- Details: Reload number: 1 Reload reason: initial Finished: Yes Packs: vanilla, fabric, cloth-config, condensed_creative, fabric-api, fabric-api-base, fabric-api-lookup-api-v1, fabric-biome-api-v1, fabric-block-api-v1, fabric-block-view-api-v2, fabric-blockrenderlayer-v1, fabric-client-tags-api-v1, fabric-command-api-v1, fabric-command-api-v2, fabric-commands-v0, fabric-content-registries-v0, fabric-convention-tags-v1, fabric-convention-tags-v2, fabric-crash-report-info-v1, fabric-data-attachment-api-v1, fabric-data-generation-api-v1, fabric-dimensions-v1, fabric-entity-events-v1, fabric-events-interaction-v0, fabric-game-rule-api-v1, fabric-item-api-v1, fabric-item-group-api-v1, fabric-key-binding-api-v1, fabric-keybindings-v0, fabric-lifecycle-events-v1, fabric-loot-api-v2, fabric-message-api-v1, fabric-model-loading-api-v1, fabric-networking-api-v1, fabric-object-builder-api-v1, fabric-particles-v1, fabric-recipe-api-v1, fabric-registry-sync-v0, fabric-renderer-api-v1, fabric-renderer-indigo, fabric-renderer-registries-v1, fabric-rendering-data-attachment-v1, fabric-rendering-fluids-v1, fabric-rendering-v0, fabric-rendering-v1, fabric-resource-conditions-api-v1, fabric-resource-loader-v0, fabric-screen-api-v1, fabric-screen-handler-api-v1, fabric-sound-api-v1, fabric-transfer-api-v1, fabric-transitive-access-wideners-v1, fabricloader, highlight_item, modmenu, prism, smoothscroll, sounds, yet_another_config_lib_v3
-- System Details --
Details:
Minecraft Version: 1.21
Minecraft Version ID: 1.21
Operating System: Linux (amd64) version 6.9.12-200.fc40.x86_64
Java Version: 21.0.4, Red Hat, Inc.
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Red Hat, Inc.
Memory: 296922008 bytes (283 MiB) / 926941184 bytes (884 MiB) up to 6132072448 bytes (5848 MiB)
CPUs: 12
Processor Vendor: AuthenticAMD
Processor Name: AMD Ryzen 5 4600H with Radeon Graphics
Identifier: AuthenticAMD Family 23 Model 96 Stepping 1
Microarchitecture: unknown
Frequency (GHz): -0.00
Number of physical packages: 1
Number of physical CPUs: 6
Number of logical CPUs: 12
Graphics card #0 name: TU117M [GeForce GTX 1650 Ti Mobile]
Graphics card #0 vendor: NVIDIA Corporation (0x10de)
Graphics card #0 VRAM (MiB): 288.00
Graphics card #0 deviceId: 0x1f95
Graphics card #0 versionInfo: unknown
Graphics card #1 name: Renoir [Radeon Vega Series / Radeon Vega Mobile Series]
Graphics card #1 vendor: Advanced Micro Devices, Inc. [AMD/ATI] (0x1002)
Graphics card #1 VRAM (MiB): 258.00
Graphics card #1 deviceId: 0x1636
Graphics card #1 versionInfo: unknown
Virtual memory max (MiB): 19885.85
Virtual memory used (MiB): 8469.14
Swap memory total (MiB): 8192.00
Swap memory used (MiB): 0.00
Space in storage for jna.tmpdir (MiB):
<===========--> 90% EXECUTING [1m 9s]
:runClient
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':runClient'.
Process 'command '/usr/lib/jvm/java-21-openjdk-21.0.4.0.7-2.fc40.x86_64/bin/java'' finished with non-zero exit value 255
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. Get more help at https://help.gradle.org.
Task :runClient FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.8/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. 7 actionable tasks: 7 executed Could not execute build using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-8.8-bin.zip'.
Ah that is my bad as I messed up with not removing the direct casts for CondensedInventory
instead of EntryContainer
in some code leading to issues.
Pushed an update for such hopefully fixing the crash
crashes are all fixed... but the trailing smooth scrolling items are still inconsistant - at least on the first two pages it just tends to copy one item all over the row for some reason but on other tabs it works great (aside from one small issue that the item backgrounds aren't joined and have a blue line between them - i don't expect you to fix that)... so that thing i would like you to fix properly because i don't think i'm able to do that... btw you can set the creative screen smooth scrolling speed to 0.99 in the config file of my mod and then reload resources so you can see the issue more easily
The games crashes when you open the creative inventory with the Smooth Scrolling mod...